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

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

Fantasy XF - an rpg platformer hybrid like the Castlevania games.swf

This is the info page for
Flash #89447

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


ActionScript [AS1/AS2]
Combined Code
movieClip 32 { frame 1 { gotoAndStop(_global.equippedweapon); } frame 10 { onEnterFrame = function () { gotoAndStop(_global.equippedweapon); }; } frame 11 { onEnterFrame = function () { gotoAndStop(_global.equippedweapon); }; } frame 12 { onEnterFrame = function () { gotoAndStop(_global.equippedweapon); }; } frame 20 { onEnterFrame = function () { gotoAndStop(_global.equippedweapon); }; } frame 21 { onEnterFrame = function () { gotoAndStop(_global.equippedweapon); }; } frame 22 { onEnterFrame = function () { gotoAndStop(_global.equippedweapon); }; } frame 30 { onEnterFrame = function () { gotoAndStop(_global.equippedweapon); }; } } movieClip 45 { frame 1 { onEnterFrame = function () { gotoAndStop(_global.equippedarmor); }; } frame 2 { onEnterFrame = function () { gotoAndStop(_global.equippedarmor); }; } frame 3 { onEnterFrame = function () { gotoAndStop(_global.equippedarmor); }; } frame 4 { onEnterFrame = function () { gotoAndStop(_global.equippedarmor); }; } frame 5 { onEnterFrame = function () { gotoAndStop(_global.equippedarmor); }; } frame 6 { onEnterFrame = function () { gotoAndStop(_global.equippedarmor); }; } } movieClip 47 { } movieClip 49 { } movieClip 51 { } movieClip 53 { } movieClip 55 { } movieClip 57 { } movieClip 59 { } movieClip 62 { } movieClip 65 { } movieClip 68 { } movieClip 71 { } movieClip 74 { } movieClip 77 { } movieClip 78 bigstatsbox { frame 1 { if (_global.gotweapon11 == false) { icon11._visible = false; } if (_global.gotweapon12 == false) { icon12._visible = false; } if (_global.gotweapon20 == false) { icon20._visible = false; } if (_global.gotweapon21 == false) { icon21._visible = false; } if (_global.gotweapon22 == false) { icon22._visible = false; } if (_global.gotweapon30 == false) { icon30._visible = false; } if (_global.goticebeam == false) { magic1icon._visible = false; } if (_global.gotexplosion == false) { magic2icon._visible = false; } if (_global.gotmegabolt == false) { magic3icon._visible = false; } if (_global.gotheal == false) { magic4icon._visible = false; } if (_global.gotanticurse == false) { magic5icon._visible = false; } if (_global.gotpainwave == false) { magic6icon._visible = false; } } frame 2 { stop(); onEnterFrame = function () { if (Key.isDown(81)) { _global.equippedweapon = 10; _global.playerattack = _global.playerbaseattack + 4; _global.currentweaponattack = 4; } else { if (Key.isDown(87) && _global.gotweapon11 == true) { _global.equippedweapon = 11; _global.playerattack = _global.playerbaseattack + 8; _global.currentweaponattack = 8; } else { if (Key.isDown(69) && _global.gotweapon12 == true) { _global.equippedweapon = 12; _global.playerattack = _global.playerbaseattack + 11; _global.currentweaponattack = 11; } else { if (Key.isDown(82) && _global.gotweapon20 == true) { _global.equippedweapon = 20; _global.playerattack = _global.playerbaseattack + 15; _global.currentweaponattack = 15; } else { if (Key.isDown(84) && _global.gotweapon21 == true) { _global.equippedweapon = 21; _global.playerattack = _global.playerbaseattack + 18; _global.currentweaponattack = 18; } else { if (Key.isDown(89) && _global.gotweapon22 == true) { _global.equippedweapon = 22; _global.playerattack = _global.playerbaseattack + 22; _global.currentweaponattack = 22; } else { if (Key.isDown(85) && _global.gotweapon30 == true) { _global.equippedweapon = 30; _global.playerattack = _global.playerbaseattack + 28; _global.currentweaponattack = 28; } } } } } } } }; } } movieClip 83 weapon30strike { } movieClip 85 weapon22strike { } movieClip 87 weapon21strike { } movieClip 92 weapon20strike { } movieClip 94 weapon12strike { } movieClip 96 weapon11strike { } movieClip 101 weapon10strike { } movieClip 114 painwave { frame 11 { stop(); } } movieClip 118 { } movieClip 122 { } movieClip 123 megabolt { frame 14 { stop(); } } movieClip 126 { } movieClip 127 { } movieClip 128 fountain heal { frame 16 { stop(); this.removeMovieClip(); } } movieClip 129 heal { frame 1 { recovery = _global.playerbaseattack * 1.5; recovery = Math.round(recovery); _global.playerhp += recovery; if (_global.playerhp > _global.playermaxhp) { _global.playerhp = _global.playermaxhp; } _root.attachMovie('healtextp', 'healtextp', 5); _root.healtextp._x = _root.player._x; _root.healtextp._y = _root.player._y; _root.healtextp.damage = recovery; } frame 16 { stop(); this.removeMovieClip(); } } movieClip 138 explosion { frame 9 { stop(); } } movieClip 141 { } movieClip 142 { } movieClip 144 anticurse { frame 1 { _global.cursed = false; } frame 16 { stop(); } } movieClip 146 platform1 { frame 1 { this._visible = false; standinghere = false; onEnterFrame = function () { if (_root.player.hitbox.hitTest(this)) { if (_root.player.gravity >= 0) { if (standinghere == false) { standinghere = true; ++_root.player.hits; } _root.player._y = this._y; } } else { if (standinghere == true) { --_root.player.hits; standinghere = false; } } }; } } movieClip 169 lvluptext { frame 1 { done = false; } frame 32 { stop(); this.removeMovieClip(); } } movieClip 191 healmptextp { frame 1 { done = false; } frame 26 { stop(); this.removeMovieClip(); } } movieClip 212 healtextp { frame 1 { done = false; } frame 26 { stop(); this.removeMovieClip(); } } movieClip 233 damagetextp { frame 1 { done = false; } frame 45 { stop(); _root.player.gotoAndStop(1); _global.invincible = false; this.removeMovieClip(); } } movieClip 254 damagetext { frame 1 { done = false; } frame 45 { stop(); done = true; } } movieClip 262 5coin { frame 1 { var sound = new Sound(); sound.attachSound('snd_itemget'); onEnterFrame = function () { if (this.hitTest(_root.player.player1)) { _global.coinage += 8; sound.start(0, 0); this.removeMovieClip(); } }; } } movieClip 267 1coin { frame 1 { var sound = new Sound(); sound.attachSound('snd_itemget'); onEnterFrame = function () { if (this.hitTest(_root.player.player1)) { _global.coinage += 4; sound.start(0, 0); this.removeMovieClip(); } }; } } movieClip 296 { } movieClip 437 dialog { frame 1 { _global.dialogisup = true; onEnterFrame = function () { this._x = _root.vcam._x; this._y = _root.vcam._y - 110; }; } frame 15 { stop(); onEnterFrame = function () { if (Key.isDown(90)) { if (pages > 1) { play(); } else { gotoAndPlay(200); } } this._x = _root.vcam._x; this._y = _root.vcam._y - 110; }; } frame 25 { stop(); onEnterFrame = function () { if (Key.isDown(90)) { if (pages > 2) { play(); } else { gotoAndPlay(200); } } this._x = _root.vcam._x; this._y = _root.vcam._y - 110; }; } frame 35 { stop(); onEnterFrame = function () { if (Key.isDown(90)) { if (pages > 3) { play(); } else { gotoAndPlay(200); } } this._x = _root.vcam._x; this._y = _root.vcam._y - 110; }; } frame 45 { stop(); onEnterFrame = function () { if (Key.isDown(90)) { if (pages > 4) { play(); } else { gotoAndPlay(200); } } this._x = _root.vcam._x; this._y = _root.vcam._y - 110; }; } frame 55 { stop(); onEnterFrame = function () { if (Key.isDown(90)) { if (pages > 5) { play(); } else { gotoAndPlay(200); } } this._x = _root.vcam._x; this._y = _root.vcam._y - 110; }; } frame 65 { stop(); onEnterFrame = function () { if (Key.isDown(90)) { if (pages > 6) { play(); } else { gotoAndPlay(200); } } this._x = _root.vcam._x; this._y = _root.vcam._y - 110; }; } frame 200 { onEnterFrame = function () {}; } frame 204 { _global.dialogisup = false; this.removeMovieClip(); } } movieClip 439 { } movieClip 440 wardheal { frame 21 { _global.healing = false; stop(); this.unloadMovie(); } } movieClip 442 { } movieClip 443 drinkmprecover { frame 21 { _global.healing = false; stop(); this.unloadMovie(); } } movieClip 445 { } movieClip 446 drinkheal { frame 21 { _global.healing = false; stop(); this.unloadMovie(); } } movieClip 449 alreadyhave { frame 1 { _root.boxup = true; } frame 45 { _root.boxup = false; this.removeMovieClip(); } } movieClip 451 toomany { frame 1 { _root.boxup = true; } frame 45 { _root.boxup = false; this.removeMovieClip(); } } movieClip 453 nomoney { frame 1 { _root.boxup = true; } frame 45 { _root.boxup = false; this.removeMovieClip(); } } movieClip 456 sold { frame 1 { _root.boxup = true; } frame 45 { _root.boxup = false; this.removeMovieClip(); } } movieClip 460 healthpoint { frame 1 { var sound = new Sound(); sound.attachSound('snd_itemget'); onEnterFrame = function () { if (this.hitTest(_root.player.player1)) { recovery = _global.playermaxhp / 10; recovery = Math.round(recovery); _global.playerhp += recovery; if (_global.playerhp > _global.playermaxhp) { _global.playerhp = _global.playermaxhp; } sound.start(0, 0); this.removeMovieClip(); } }; } } movieClip 464 magicpoint { frame 1 { var sound = new Sound(); sound.attachSound('snd_itemget'); onEnterFrame = function () { if (this.hitTest(_root.player.player1)) { recovery = _global.playermaxmp / 10; recovery = Math.round(recovery); _global.playermp += recovery; if (_global.playermp > _global.playermaxmp) { _global.playermp = _global.playermaxmp; } sound.start(0, 0); this.removeMovieClip(); } }; } } movieClip 473 cursing { frame 42 { this.removeMovieClip(); } } movieClip 476 bigmouthfireball { frame 1 { if (going == 1) { xmove = -10; } else { if (going == -1) { xmove = 10; } } onEnterFrame = function () { this._x += xmove; if (this.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 50; _root.player.gotoAndPlay(50); _global.cursed = true; gotoAndPlay(25); } }; } frame 22 { this.removeMovieClip(); } frame 25 { onEnterFrame = function () {}; } frame 66 { this.removeMovieClip(); } } movieClip 481 cultistblast { frame 1 { if (going == 1) { xmove = -9; } else { if (going == -1) { xmove = 9; } } onEnterFrame = function () { this._x += xmove; if (this.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 80; _root.player.gotoAndPlay(50); this.removeMovieClip(); } }; } } movieClip 484 eye blast down { frame 1 { ymove = 9; onEnterFrame = function () { this._y += ymove; if (this.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 110; _root.player.gotoAndPlay(50); this.removeMovieClip(); } }; } } movieClip 486 eye blast left { frame 1 { xmove = -9; onEnterFrame = function () { this._x += xmove; if (this.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 110; _root.player.gotoAndPlay(50); this.removeMovieClip(); } }; } } movieClip 490 wormfireball { frame 1 { if (going == 1) { xmove = -9; } else { if (going == -1) { xmove = 9; } } onEnterFrame = function () { ++counter; this._x += xmove; if (this.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 16; _root.player.gotoAndPlay(50); this.removeMovieClip(); } }; } } movieClip 493 fallingpencil { frame 1 { onEnterFrame = function () { this._y += 10; if (this.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 74; _root.player.gotoAndPlay(50); } }; } } movieClip 498 { } movieClip 499 orb { frame 1 { onEnterFrame = function () { this._y += 9; if (this.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 68; _root.player.gotoAndPlay(50); } }; } } movieClip 502 fallingrock { frame 1 { onEnterFrame = function () { this._y += 10; if (this.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 18; _root.player.gotoAndPlay(50); } }; } } movieClip 506 { } movieClip 507 flame { frame 1 { onEnterFrame = function () { if (this.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 65; _root.player.gotoAndPlay(50); } }; } frame 88 { this.unloadMovie(); } } movieClip 513 icicle { frame 1 { onEnterFrame = function () { if (this.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 33; _root.player.gotoAndPlay(50); } }; } frame 88 { this.unloadMovie(); } } movieClip 515 { frame 1 { this._visible = false; } } movieClip 517 otherwolfblast2 { frame 1 { xmove = 11; hitback = false; onEnterFrame = function () { if (hitbox.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 98; _root.player.gotoAndPlay(50); } if (this.hitTest(_root.player.weaponstrike) && hitback == false) { xmove *= -1; hitback = true; } this._x += xmove; }; } frame 46 { this.removeMovieClip(); } } movieClip 519 wolfblast2 { frame 1 { xmove = 11; hitback = false; onEnterFrame = function () { if (hitbox.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 38; _root.player.gotoAndPlay(50); } if (this.hitTest(_root.player.weaponstrike) && hitback == false) { xmove *= -1; hitback = true; } this._x += xmove; }; } frame 46 { this.removeMovieClip(); } } movieClip 521 otherwolfblast1 { frame 1 { xmove = -11; hitback = false; onEnterFrame = function () { if (hitbox.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 98; _root.player.gotoAndPlay(50); } if (this.hitTest(_root.player.weaponstrike) && hitback == false) { xmove *= -1; hitback = true; } this._x += xmove; }; } frame 46 { this.removeMovieClip(); } } movieClip 522 wolfblast1 { frame 1 { xmove = -11; hitback = false; onEnterFrame = function () { if (hitbox.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 38; _root.player.gotoAndPlay(50); } if (this.hitTest(_root.player.weaponstrike) && hitback == false) { xmove *= -1; hitback = true; } this._x += xmove; }; } frame 46 { this.removeMovieClip(); } } movieClip 525 dynamite { } movieClip 530 hpup { frame 1 { stop(); onEnterFrame = function () { if (this.hitTest(_root.player.player1)) { play(); } }; } frame 2 { _global.playermaxhp += 3; onEnterFrame = function () {}; } frame 61 { this.unloadMovie(); } } movieClip 534 mpup { frame 1 { stop(); onEnterFrame = function () { if (this.hitTest(_root.player.player1)) { play(); } }; } frame 2 { _global.playermaxmp += 2; onEnterFrame = function () {}; } frame 61 { this.unloadMovie(); } } movieClip 538 { } movieClip 540 { } movieClip 541 { } movieClip 542 { } movieClip 543 { } movieClip 544 { } movieClip 545 { } movieClip 546 { } movieClip 547 icebeam { frame 13 { stop(); } } movieClip 549 { frame 1 { this._visible = false; stop(); } frame 45 { _root.player.gotoAndStop(1); _global.invincible = false; } } movieClip 551 { frame 1 { this._visible = false; stop(); onEnterFrame = function () { if (_global.canattack == false) { play(); } }; } frame 15 { _global.canattack = true; } } movieClip 553 { } movieClip 556 redmagewalk { } movieClip 559 { } movieClip 561 { } movieClip 565 { } movieClip 567 { } movieClip 568 { } movieClip 569 { } movieClip 570 { } movieClip 571 redmagestill { frame 1 { stop(); removeMovieClip(weaponstrike); _global.playerstopped = false; onEnterFrame = function () { if (Key.isDown(88) && _global.canattack == true && _global.cursed == false) { _global.playerstopped = true; gotoAndPlay(4); _global.canattack = false; } else { if (this.gravity < 0) { gotoAndStop(3); } else { if (Key.isDown(37) || Key.isDown(39)) { nextFrame(); } } } }; } frame 2 { removeMovieClip(weaponstrike); onEnterFrame = function () { if (Key.isDown(88) && _global.canattack == true && _global.cursed == false) { _global.playerstopped = true; gotoAndPlay(4); _global.canattack = false; } else { if (this.gravity < 0) { gotoAndStop(3); } else { if (!Key.isDown(37) && !Key.isDown(39)) { prevFrame(); } } } }; } frame 3 { removeMovieClip(weaponstrike); onEnterFrame = function () { if (Key.isDown(88) && _global.canattack == true && _global.cursed == false) { gotoAndPlay(4); _global.canattack = false; } else { if (this.gravity >= 0) { gotoAndStop(1); } } }; } frame 4 { if (_global.equippedweapon == 10) { this.attachMovie('weapon10strike', 'weaponstrike', 5); } else { if (_global.equippedweapon == 11) { this.attachMovie('weapon11strike', 'weaponstrike', 5); } else { if (_global.equippedweapon == 12) { this.attachMovie('weapon12strike', 'weaponstrike', 5); } else { if (_global.equippedweapon == 20) { this.attachMovie('weapon20strike', 'weaponstrike', 5); } else { if (_global.equippedweapon == 21) { this.attachMovie('weapon21strike', 'weaponstrike', 5); } else { if (_global.equippedweapon == 22) { this.attachMovie('weapon22strike', 'weaponstrike', 5); } else { if (_global.equippedweapon == 30) { this.attachMovie('weapon30strike', 'weaponstrike', 5); } } } } } } } onEnterFrame = function () {}; } frame 11 { removeMovieClip(weaponstrike); _global.playerstopped = false; gotoAndStop(1); } frame 12 { _global.playerstopped = true; onEnterFrame = function () {}; } frame 26 { _global.playerstopped = false; gotoAndStop(1); } frame 50 { damage = incomingdamage * 0.1 * random(3) + incomingdamage - _global.playerdefense; damage = Math.round(damage); if (damage < 1) { damage = 1; } _root.player.hitbox.play(); _root.attachMovie('damagetextp', 'damagetextp', 5); _root.damagetextp._x = this._x; _root.damagetextp._y = this._y; _root.damagetextp.damage = damage; _global.playerhp -= damage; _global.invincible = true; onEnterFrame = function () {}; } frame 51 { stop(); removeMovieClip(weaponstrike); _global.playerstopped = false; onEnterFrame = function () { if (_global.invincible == false) { gotoAndStop(1); } else { if (Key.isDown(88) && _global.canattack == true && _global.cursed == false) { _global.playerstopped = true; gotoAndPlay(54); _global.canattack = false; } else { if (this.gravity < 0) { gotoAndStop(53); } else { if (Key.isDown(37) || Key.isDown(39)) { nextFrame(); } } } } }; } frame 52 { removeMovieClip(weaponstrike); onEnterFrame = function () { if (_global.invincible == false) { gotoAndStop(1); } else { if (Key.isDown(88) && _global.canattack == true && _global.cursed == false) { _global.playerstopped = true; gotoAndPlay(54); _global.canattack = false; } else { if (this.gravity < 0) { gotoAndStop(53); } else { if (!Key.isDown(37) && !Key.isDown(39)) { prevFrame(); } } } } }; } frame 53 { removeMovieClip(weaponstrike); onEnterFrame = function () { if (_global.invincible == false) { gotoAndStop(1); } else { if (Key.isDown(88) && _global.canattack == true && _global.cursed == false) { gotoAndPlay(54); _global.canattack = false; } else { if (this.gravity >= 0) { gotoAndStop(51); } } } }; } frame 54 { if (_global.equippedweapon == 10) { this.attachMovie('weapon10strike', 'weaponstrike', 5); } else { if (_global.equippedweapon == 11) { this.attachMovie('weapon11strike', 'weaponstrike', 5); } else { if (_global.equippedweapon == 12) { this.attachMovie('weapon12strike', 'weaponstrike', 5); } else { if (_global.equippedweapon == 20) { this.attachMovie('weapon20strike', 'weaponstrike', 5); } else { if (_global.equippedweapon == 21) { this.attachMovie('weapon21strike', 'weaponstrike', 5); } else { if (_global.equippedweapon == 22) { this.attachMovie('weapon22strike', 'weaponstrike', 5); } else { if (_global.equippedweapon == 30) { this.attachMovie('weapon30strike', 'weaponstrike', 5); } } } } } } } onEnterFrame = function () {}; } frame 61 { removeMovieClip(weaponstrike); _global.playerstopped = false; gotoAndStop(51); } frame 62 { _global.playerstopped = true; onEnterFrame = function () {}; } frame 76 { _global.playerstopped = false; gotoAndStop(51); } } frame 1 { LOADED = Math.round(getBytesLoaded()); TOTAL = Math.round(getBytesTotal()); PERCENT = LOADED / TOTAL; BAR._width = PERCENT * 150; TEXT = Math.round(PERCENT * 100) + '%'; if (LOADED == TOTAL) { gotoAndPlay(4); } } movieClip 575 { } frame 2 { gotoAndPlay(1); } frame 4 { stopAllSounds(); } movieClip 592 { } frame 28 { function __com_mochibot__(swfid, mc, lv, trk) { var x; var g; var s; var fv; var sb; var u; var res; var mb; var mbc; var pv; mb = '__mochibot__'; mbc = 'mochibot.com'; g = _global ? _global : _level0._root; if (g[mb + swfid]) { return g[mb + swfid]; } s = System.security; x = mc._root.getSWFVersion; fv = x ? mc.getSWFVersion() : (_global ? 6 : 5); if (!s) { s = {}; } sb = s.sandboxType; if (sb == 'localWithFile') { return null; } x = s.allowDomain; if (x) { s.allowDomain(mbc); } x = s.allowInsecureDomain; if (x) { s.allowInsecureDomain(mbc); } pv = (fv == 5) ? /:$version : System.capabilities.version; u = 'http://' + mbc + '/my/core.swf?mv=8&fv=' + fv + '&v=' + escape(pv) + '&swfid=' + escape(swfid) + '&l=' + lv + '&f=' + mc + (sb ? '&sb=' + sb : '') + (trk ? '&t=1' : ''); lv = fv > 6 ? mc.getNextHighestDepth() : (g[mb + 'level'] ? g[mb + 'level'] + 1 : lv); g[mb + 'level'] = lv; if (fv == 5) { res = '_level' + lv; if (!eval(res)) { loadMovieNum(u, lv); } return res; } res = mc.createEmptyMovieClip(mb + swfid, lv); res.loadMovie(u); return res; } __com_mochibot__('3af008aa', this, 10301, true); } frame 43 { sowarning._visible = false; socontinue._visible = false; mySO = SharedObject.getLocal('test'); if (!mySO.flush(1)) { stop(); sowarning._visible = true; socontinue._visible = true; } } button 594 { on (release) { System.showSettings(1); } } button 596 { on (release) { play(); } } frame 44 { onEnterFrame = function () {}; } frame 65 { stop(); } movieClip 601 { } button 602 { on (release) { play(); } } button 603 { on (release) { gotoAndPlay(163); } } button 604 { on (release) { gotoAndPlay(103); } } button 605 { on (release) { gotoAndPlay(133); } } movieClip 612 { } button 615 { on (release) { getURL('http://www.mochibot.com', '_blank'); } } button 617 { on (release) { getURL('http://oembboe.org/', '_blank'); } } frame 84 { stopAllSounds(); } frame 93 { _global.equippedweapon = 10; _global.equippedarmor = 1; _global.playerlevel = 1; _global.playerexp = 0; _global.playernextlvl = 16; _global.playermaxhp = 24; _global.playerhp = 24; _global.playermaxmp = 10; _global.playermp = 10; _global.playerbasedefense = 4; _global.playerbaseattack = 6; _global.playerattack = 10; _global.playerdefense = 5; _global.coinage = 100; _global.fruitdrinks = 0; _global.greenteas = 0; _global.wards = 0; _global.gotexplosion = false; _global.goticebeam = false; _global.gotmegabolt = false; _global.gotheal = false; _global.gotanticurse = false; _global.gotpainwave = false; _global.gotweapon11 = false; _global.gotweapon12 = false; _global.gotweapon20 = false; _global.gotweapon21 = false; _global.gotweapon22 = false; _global.gotweapon30 = false; _global.selectedmagic = 1; _global.currentweaponattack = 4; _global.currentarmordefense = 1; _global.currentmpcost = 0; _global.cursed = false; _global.canleavetown = false; _global.rubbleclear = false; _global.cyclopsbeaten = false; _global.seenforestscene = false; _global.wolfbeaten = false; _global.seendesertscene = false; _global.teacherbeaten = false; _global.gotduckkey = false; _global.got1kitchen_fd = false; _global.got4porcoscastle_gt = false; _global.got3town_safe = false; _global.goteastplains3_fd = false; _global.gotcavedungeon2_fd = false; _global.gotcavedungeon2_gt = false; _global.gotepcavedungeon1_gt = false; _global.gotepcavedungeon1_fd = false; _global.gotepcavedungeon1_safe = false; _global.goteastplains7_fd = false; _global.goteastplains8_fd = false; _global.goteastplains8_safe = false; _global.gotvinetowncave3_fd = false; _global.gotforestcavedungeon2_gt = false; _global.gotforestcavedungeon1_fd = false; _global.gotforestcave1_gt = false; _global.gotforestcave2_fd = false; _global.gotforest5_safe = false; _global.gotfountain_mpup = false; _global.telep1open = false; _global.telep2open = false; _global.telep3open = false; _global.telep4open = false; _global.telep5open = false; _global.telep6open = false; _global.canattack = true; _global.statboxisup = false; _global.dialogisup = false; _global.ctrlpressed = false; _global.playerstopped = false; _global.invincible = false; _global.healing = false; _global.stopthesound = false; _global.armor1defense = 1; _global.armor2defense = 4; _global.armor3defense = 10; _global.armor4defense = 15; _global.armor5defense = 22; _global.armor6defense = 30; gotoAndStop(229); } button 621 { on (release) { gotoAndPlay(44); stopAllSounds(); } } frame 123 { stop(); } frame 153 { stop(); } frame 163 { mySO = SharedObject.getLocal('fxfw1'); if (mySO.data.luckynumber != 7) { gotoAndStop(223); } else { _global.equippedweapon = mySO.data.equippedweapon; _global.equippedarmor = mySO.data.equippedarmor; _global.playerlevel = mySO.data.playerlevel; _global.playerexp = mySO.data.playerexp; _global.playernextlvl = mySO.data.playernextlvl; _global.playermaxhp = mySO.data.playermaxhp; _global.playerhp = mySO.data.playerhp; _global.playermaxmp = mySO.data.playermaxmp; _global.playermp = mySO.data.playermp; _global.playerbasedefense = mySO.data.playerbasedefense; _global.playerbaseattack = mySO.data.playerbaseattack; _global.playerattack = mySO.data.playerattack; _global.playerdefense = mySO.data.playerdefense; _global.coinage = mySO.data.coinage; _global.fruitdrinks = mySO.data.fruitdrinks; _global.greenteas = mySO.data.greenteas; _global.wards = mySO.data.wards; _global.gotexplosion = mySO.data.gotexplosion; _global.goticebeam = mySO.data.goticebeam; _global.gotmegabolt = mySO.data.gotmegabolt; _global.gotheal = mySO.data.gotheal; _global.gotanticurse = mySO.data.gotanticurse; _global.gotpainwave = mySO.data.gotpainwave; _global.gotweapon11 = mySO.data.gotweapon11; _global.gotweapon12 = mySO.data.gotweapon12; _global.gotweapon20 = mySO.data.gotweapon20; _global.gotweapon21 = mySO.data.gotweapon21; _global.gotweapon22 = mySO.data.gotweapon22; _global.gotweapon30 = mySO.data.gotweapon30; _global.selectedmagic = mySO.data.selectedmagic; _global.currentweaponattack = mySO.data.currentweaponattack; _global.currentarmordefense = mySO.data.currentarmordefense; _global.currentmpcost = mySO.data.currentmpcost; _global.cursed = mySO.data.cursed; _global.canleavetown = mySO.data.canleavetown; _global.rubbleclear = mySO.data.rubbleclear; _global.cyclopsbeaten = mySO.data.cyclopsbeaten; _global.seenforestscene = mySO.data.seenforestscene; _global.wolfbeaten = mySO.data.wolfbeaten; _global.seendesertscene = mySO.data.seendesertscene; _global.teacherbeaten = mySO.data.teacherbeaten; _global.gotduckkey = mySO.data.gotduckkey; _global.got1kitchen_fd = mySO.data.got1kitchen_fd; _global.got4porcoscastle_gt = mySO.data.got4porcoscastle_gt; _global.got3town_safe = mySO.data.got3town_safe; _global.goteastplains3_fd = mySO.data.goteastplains3_fd; _global.gotcavedungeon2_fd = mySO.data.gotcavedungeon2_fd; _global.gotcavedungeon2_gt = mySO.data.gotcavedungeon2_gt; _global.gotepcavedungeon1_gt = mySO.data.gotepcavedungeon1_gt; _global.gotepcavedungeon1_fd = mySO.data.gotepcavedungeon1_fd; _global.gotepcavedungeon1_safe = mySO.data.gotepcavedungeon1_safe; _global.goteastplains7_fd = mySO.data.goteastplains7_fd; _global.goteastplains8_fd = mySO.data.goteastplains8_fd; _global.goteastplains8_safe = mySO.data.goteastplains8_safe; _global.gotvinetowncave3_fd = mySO.data.gotvinetowncave3_fd; _global.gotforestcavedungeon2_gt = mySO.data.gotforestcavedungeon2_gt; _global.gotforestcavedungeon1_fd = mySO.data.gotforestcavedungeon1_fd; _global.gotforestcave1_gt = mySO.data.gotforestcave1_gt; _global.gotforestcave2_fd = mySO.data.gotforestcave2_fd; _global.gotforest5_safe = mySO.data.gotforest5_safe; _global.gotfountain_mpup = mySO.data.gotfountain_mpup; _global.telep1open = mySO.data.telep1open; _global.telep2open = mySO.data.telep2open; _global.telep3open = mySO.data.telep3open; _global.telep4open = mySO.data.telep4open; _global.telep5open = mySO.data.telep5open; _global.telep6open = mySO.data.telep6open; _global.canattack = true; _global.statboxisup = false; _global.dialogisup = false; _global.ctrlpressed = false; _global.playerstopped = false; _global.invincible = false; _global.healing = false; _global.stopthesound = false; _global.armor1defense = 1; _global.armor2defense = 4; _global.armor3defense = 10; _global.armor4defense = 15; _global.armor5defense = 22; _global.armor6defense = 30; } } frame 188 { stopAllSounds(); } frame 203 { gotoAndStop(1225); } frame 229 { play(); } movieClip 631 { } movieClip 633 { } movieClip 636 { } movieClip 640 { } frame 404 { stop(); _global.dialogisup = true; _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 1; _root.dialog.line1 = 'Your highness, I have prepared the Royal Playing'; _root.dialog.line2 = 'Table for the Royal Father-Daughter Game of Uno.'; _root.dialog.line3 = ''; _root.dialog.line4 = ''; _root.dialog.line5 = ''; onEnterFrame = function () { if (_global.dialogisup == false) { play(); } }; } frame 442 { stop(); _global.dialogisup = true; _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 1; _root.dialog.line1 = ':King: Well, where is that daughter of mine?'; _root.dialog.line2 = ''; _root.dialog.line3 = ''; _root.dialog.line4 = ''; _root.dialog.line5 = ''; onEnterFrame = function () { if (_global.dialogisup == false) { play(); } }; } frame 512 { stop(); _global.dialogisup = true; _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 1; _root.dialog.line1 = ':Soldier: Sire! Princess Layla has run away'; _root.dialog.line2 = 'again!'; _root.dialog.line3 = ''; _root.dialog.line4 = ''; _root.dialog.line5 = ''; onEnterFrame = function () { if (_global.dialogisup == false) { play(); } }; } frame 573 { stop(); _global.dialogisup = true; _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 3; _root.dialog.line1 = ':King: Gods drat that delinquent child! What'; _root.dialog.line2 = 'dangerous shenanigans is she off pulling now?'; _root.dialog.line3 = ''; _root.dialog.line4 = ''; _root.dialog.line5 = ''; _root.dialog.line6 = ':King: Soldier! Off with thee to fetch my most'; _root.dialog.line7 = 'loyal and trusted knight, the Red Mage!'; _root.dialog.line8 = ''; _root.dialog.line9 = ''; _root.dialog.line10 = ''; _root.dialog.line11 = ':Soldier: Right away, your majesty!'; _root.dialog.line12 = ''; _root.dialog.line13 = ''; _root.dialog.line14 = ''; _root.dialog.line15 = ''; onEnterFrame = function () { if (_global.dialogisup == false) { play(); } }; } movieClip 652 { } movieClip 665 { frame 1 { stop(); onEnterFrame = function () { if (this.hitTest(_root.player.weaponstrike)) { lotto = random(7); if (lotto == 0) { _root.attachMovie('5coin', 'coin', 6); _root.coin._x = this._x; _root.coin._y = this._y; } else { if (lotto == 1 || lotto == 2) { _root.attachMovie('1coin', 'coin', 6); _root.coin._x = this._x; _root.coin._y = this._y; } else { if (lotto == 3 || lotto == 4) { _root.attachMovie('healthpoint', 'healthp', 6); _root.healthp._x = this._x; _root.healthp._y = this._y; } else { if (lotto == 5 || lotto == 6) { _root.attachMovie('magicpoint', 'magicp', 6); _root.magicp._x = this._x; _root.magicp._y = this._y; } } } } play(); } }; } frame 2 { onEnterFrame = function () {}; } frame 20 { stop(); this.unloadMovie(); } } movieClip 668 { frame 1 { stop(); } frame 2 { _global.fruitdrinks += 1; this.unloadMovie(); } frame 3 { this.unloadMovie(); } } frame 749 { stop(); _global.dialogisup = true; _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 2; _root.dialog.line1 = 'Holy damn, how am I ever supposed to finish'; _root.dialog.line2 = 'washing all of these?'; _root.dialog.line3 = ''; _root.dialog.line4 = ''; _root.dialog.line5 = ''; _root.dialog.line6 = 'I\'m not a friggin\' dishwasher anyway, I\'m a'; _root.dialog.line7 = 'knight!'; _root.dialog.line8 = ''; _root.dialog.line9 = ''; _root.dialog.line10 = ''; onEnterFrame = function () { if (_global.dialogisup == false) { play(); } }; } frame 838 { stop(); _global.dialogisup = true; _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 5; _root.dialog.line1 = 'You gotta be kidding me. She locked me in here!'; _root.dialog.line2 = ''; _root.dialog.line3 = ''; _root.dialog.line4 = ''; _root.dialog.line5 = ''; _root.dialog.line6 = ':Female Voice: Those dishes had best be done'; _root.dialog.line7 = 'soon, Reddie!'; _root.dialog.line8 = ''; _root.dialog.line9 = ''; _root.dialog.line10 = ''; _root.dialog.line11 = ':Red Mage: But Mom, I\'m the king\'s top knight!'; _root.dialog.line12 = 'I\'m supposed to be prepared to serve him in'; _root.dialog.line13 = 'battle at all times!'; _root.dialog.line14 = ''; _root.dialog.line15 = ''; _root.dialog.line16 = ':Female Voice: I don\'t care what you are,'; _root.dialog.line17 = 'Reddie! While you live with me, you\'ll abide'; _root.dialog.line18 = 'by my rules!'; _root.dialog.line19 = ''; _root.dialog.line20 = ''; _root.dialog.line21 = ':Red Mage: Bah!'; _root.dialog.line22 = ''; _root.dialog.line23 = ''; _root.dialog.line24 = ''; _root.dialog.line25 = ''; onEnterFrame = function () { if (_global.dialogisup == false) { play(); } }; } frame 1010 { stop(); _global.dialogisup = true; _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 5; _root.dialog.line1 = ':Soldier: Forgive my violent intrusion through'; _root.dialog.line2 = 'your window, Lord Red Mage, but your mother'; _root.dialog.line3 = 'wouldn\'t let me in through the front door.'; _root.dialog.line4 = ''; _root.dialog.line5 = ''; _root.dialog.line6 = ':Soldier: At any rate, His Majesty requests your'; _root.dialog.line7 = 'presence immediately, my Lord.'; _root.dialog.line8 = ''; _root.dialog.line9 = ''; _root.dialog.line10 = ''; _root.dialog.line11 = ':Red Mage: Great. Now how am I supposed to get'; _root.dialog.line12 = 'away from my mother and her incessant chore'; _root.dialog.line13 = 'assignments?'; _root.dialog.line14 = ''; _root.dialog.line15 = ''; _root.dialog.line16 = ':Soldier: Worry not, my Lord. I\'ll cover for you'; _root.dialog.line17 = 'here. Hurry and report to His Majesty.'; _root.dialog.line18 = ''; _root.dialog.line19 = ''; _root.dialog.line20 = ''; _root.dialog.line21 = ':Soldier: Use the Down Arrow Key to interact'; _root.dialog.line22 = 'with something in the environment. Use it while'; _root.dialog.line23 = 'standing in front of me to speak to me, and I\'ll'; _root.dialog.line24 = 'give you more hints.'; _root.dialog.line25 = ''; onEnterFrame = function () { if (_global.dialogisup == false) { play(); } }; } frame 1055 { stopAllSounds(); } frame 1081 { stop(); stopAllSounds(); var music = new Sound(); music.attachSound('music_town'); music.start(0, 99); hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 6; solids = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); if (_global.got1kitchen_fd == true) { fruitdrink.unloadMovie(); } onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } h = 1; while (h <= solids) { if (h == 1) { player.hitleft = 0; player.hitright = 0; } if (player.player1.hitTest(_root['hitboxs' + h]) && player._x > _root['hitboxs' + h]._x && player.xmove < 0) { player.hitleft = 1; player.hitright = 0; player.xmove = 0; player._x = _root['hitboxs' + h]._x + 30; } else { if (player.player1.hitTest(_root['hitboxs' + h]) && player._x < _root['hitboxs' + h]._x && player.xmove > 0) { player.hitleft = 0; player.hitright = 1; player.xmove = 0; player._x = _root['hitboxs' + h]._x - 30; } else { player.hitleft = 0; player.hitright = 0; } } ++h; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1095); } if (fruitdrink.hitTest(_root.player) && _global.fruitdrinks < 5) { _global.got1kitchen_fd = true; fruitdrink.nextFrame(); } }; hideHitboxes(); } movieClip 673 { frame 1 { onEnterFrame = function () { if (Key.isDown(40) && this.hitTest(_root.player) && _global.dialogisup == false) { _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 5; _root.dialog.line1 = 'The Up Arrow Key jumps. The X Key will'; _root.dialog.line2 = 'strike with your currently equipped weapon.'; _root.dialog.line3 = 'If you would like to check your equipment,'; _root.dialog.line4 = 'status, and known magic spells, press the Space'; _root.dialog.line5 = 'Bar. Use the Escape Key to close this window.'; _root.dialog.line6 = 'Be advised that the game will not be paused,'; _root.dialog.line7 = 'so don\'t stand in a dangerous location when'; _root.dialog.line8 = 'opening the Status Window.'; _root.dialog.line9 = ''; _root.dialog.line10 = ''; _root.dialog.line11 = 'Once you obtain a magic spell, you can select'; _root.dialog.line12 = 'a spell to equip with the Number Keys. The'; _root.dialog.line13 = 'Status Window will show you which number'; _root.dialog.line14 = 'corresponds to which spell. An icon at the lower'; _root.dialog.line15 = 'left of the screen will represent the spell you'; _root.dialog.line16 = 'currently have selected. The meter next to it'; _root.dialog.line17 = 'represents how much you need to Charge your'; _root.dialog.line18 = 'spell before it will cast. While you have a'; _root.dialog.line19 = 'spell selected, hold down the C Key until'; _root.dialog.line20 = 'this meter fills up and begins flashing, then'; _root.dialog.line21 = 'release the C Key to cast the spell.'; _root.dialog.line22 = 'Remember that you can change spells with the'; _root.dialog.line23 = 'Number Keys at any time, you don\'t need to have'; _root.dialog.line24 = 'the Status Window open to do so. You can only'; _root.dialog.line25 = 'change weapons in the Status Window, however.'; } }; } } movieClip 675 { } movieClip 677 { } movieClip 679 { } movieClip 681 { } movieClip 683 { frame 1 { this._visible = false; } } movieClip 685 { } movieClip 686 { } movieClip 688 { frame 1 { stop(); onEnterFrame = function () { this._x = _root.player._x; this._y = _root.player._y - 20; this._xscale = _root.player._xscale; }; } frame 30 { removeMovieClip(icebeam); removeMovieClip(explosion); removeMovieClip(megabolt); removeMovieClip(heal); removeMovieClip(anticurse); removeMovieClip(painwave); _root.player.gotoAndStop(1); } } movieClip 699 { frame 1 { onEnterFrame = function () { gotoAndStop(_global.selectedmagic); }; } frame 2 { onEnterFrame = function () { gotoAndStop(_global.selectedmagic); }; } frame 3 { onEnterFrame = function () { gotoAndStop(_global.selectedmagic); }; } frame 4 { onEnterFrame = function () { gotoAndStop(_global.selectedmagic); }; } frame 5 { onEnterFrame = function () { gotoAndStop(_global.selectedmagic); }; } frame 6 { onEnterFrame = function () { gotoAndStop(_global.selectedmagic); }; } frame 7 { onEnterFrame = function () { gotoAndStop(_global.selectedmagic); }; } } movieClip 712 { frame 1 { onEnterFrame = function () { if (this._width >= 80) { play(); } else { stop(); } }; } } movieClip 714 { frame 1 { onEnterFrame = function () { this._visible = _global.cursed; }; } } movieClip 715 { frame 1 { onEnterFrame = function () { if (Key.isDown(32) && _global.statboxisup == false) { this.attachMovie('bigstatsbox', 'bigstatsbox', 5); _global.statboxisup = true; } if (Key.isDown(27) && _global.statboxisup == true) { removeMovieClip(bigstatsbox); _global.statboxisup = false; } if (Key.isDown(49) && _global.goticebeam == true) { _global.selectedmagic = 2; _global.currentmpcost = 5; } else { if (Key.isDown(50) && _global.gotexplosion == true) { _global.selectedmagic = 3; _global.currentmpcost = 5; } else { if (Key.isDown(51) && _global.gotmegabolt == true) { _global.selectedmagic = 4; _global.currentmpcost = 6; } else { if (Key.isDown(52) && _global.gotheal == true) { _global.selectedmagic = 5; _global.currentmpcost = 6; } else { if (Key.isDown(53) && _global.gotanticurse == true) { _global.selectedmagic = 6; _global.currentmpcost = 7; } else { if (Key.isDown(54) && _global.gotpainwave == true) { _global.selectedmagic = 7; _global.currentmpcost = 12; } } } } } } if (Key.isDown(70) && _global.fruitdrinks > 0 && _global.healing == false) { _global.healing = true; _root.attachMovie('drinkheal', 'drinkheal', 11); _root.drinkheal._x = _root.player._x; _root.drinkheal._y = _root.player._y; recovery = _global.playermaxhp / 2; recovery = Math.round(recovery); _global.playerhp += recovery; if (_global.playerhp > _global.playermaxhp) { _global.playerhp = _global.playermaxhp; } _global.fruitdrinks -= 1; _root.attachMovie('healtextp', 'healtextp', 12); _root.healtextp._x = _root.player._x; _root.healtextp._y = _root.player._y; _root.healtextp.damage = recovery; } if (Key.isDown(71) && _global.greenteas > 0 && _global.healing == false) { _global.healing = true; _root.attachMovie('drinkmprecover', 'drinkmprecover', 11); _root.drinkmprecover._x = _root.player._x; _root.drinkmprecover._y = _root.player._y; recovery = _global.playermaxmp / 2; recovery = Math.round(recovery); _global.playermp += recovery; if (_global.playermp > _global.playermaxmp) { _global.playermp = _global.playermaxmp; } _global.greenteas -= 1; _root.attachMovie('healmptextp', 'healmptextp', 12); _root.healmptextp._x = _root.player._x; _root.healmptextp._y = _root.player._y; _root.healmptextp.damage = recovery; } if (Key.isDown(72) && _global.wards > 0 && _global.healing == false) { _global.healing = true; _root.attachMovie('wardheal', 'wardheal', 11); _root.wardheal._x = _root.player._x; _root.wardheal._y = _root.player._y; _global.cursed = false; _global.wards -= 1; } }; gainexp = function () { if (_global.playerexp >= _global.playernextlvl) { ++_global.playerlevel; if (_global.playerlevel < 11) { _global.playermaxhp += 3; _global.playermaxmp += 2; ++_global.playerbaseattack; if (_global.playerlevel % 2 == 0) { ++_global.playerbasedefense; } if (_global.playerlevel < 4) { _global.playernextlvl *= 2; } else { _global.playernextlvl *= 1.5; _global.playernextlvl = Math.round(_global.playernextlvl); } } else { if (_global.playerlevel > 18) { _global.playermaxhp += 10; _global.playermaxmp += 6; _global.playerbaseattack += 4; _global.playerbasedefense += 2; _global.playernextlvl *= 1.15; _global.playernextlvl = Math.round(_global.playernextlvl); } else { _global.playermaxhp += 6; _global.playermaxmp += 4; _global.playerbaseattack += 2; ++_global.playerbasedefense; _global.playernextlvl *= 1.2; _global.playernextlvl = Math.round(_global.playernextlvl); } } _global.playerattack = _global.playerbaseattack + _global.currentweaponattack; _global.playerdefense = _global.playerbasedefense + _global.currentarmordefense; _global.playerhp = _global.playermaxhp; _global.playermp = _global.playermaxmp; _root.attachMovie('lvluptext', 'lvluptext', 5); _root.lvluptext._x = _root.player._x; _root.lvluptext._y = _root.player._y; } }; } } movieClip 717 { frame 3 { mySO = SharedObject.getLocal('fxfw1'); mySO.data.luckynumber = 7; mySO.data.equippedweapon = _global.equippedweapon; mySO.data.equippedarmor = _global.equippedarmor; mySO.data.playerlevel = _global.playerlevel; mySO.data.playerexp = _global.playerexp; mySO.data.playernextlvl = _global.playernextlvl; mySO.data.playermaxhp = _global.playermaxhp; mySO.data.playerhp = _global.playerhp; if (_global.playerhp < 1) { mySO.data.playerhp = 1; } mySO.data.playermaxmp = _global.playermaxmp; mySO.data.playermp = _global.playermp; mySO.data.playerbasedefense = _global.playerbasedefense; mySO.data.playerbaseattack = _global.playerbaseattack; mySO.data.playerattack = _global.playerattack; mySO.data.playerdefense = _global.playerdefense; mySO.data.coinage = _global.coinage; mySO.data.fruitdrinks = _global.fruitdrinks; mySO.data.greenteas = _global.greenteas; mySO.data.wards = _global.wards; mySO.data.gotexplosion = _global.gotexplosion; mySO.data.goticebeam = _global.goticebeam; mySO.data.gotmegabolt = _global.gotmegabolt; mySO.data.gotheal = _global.gotheal; mySO.data.gotanticurse = _global.gotanticurse; mySO.data.gotpainwave = _global.gotpainwave; mySO.data.gotweapon11 = _global.gotweapon11; mySO.data.gotweapon12 = _global.gotweapon12; mySO.data.gotweapon20 = _global.gotweapon20; mySO.data.gotweapon21 = _global.gotweapon21; mySO.data.gotweapon22 = _global.gotweapon22; mySO.data.gotweapon30 = _global.gotweapon30; mySO.data.selectedmagic = _global.selectedmagic; mySO.data.currentweaponattack = _global.currentweaponattack; mySO.data.currentarmordefense = _global.currentarmordefense; mySO.data.currentmpcost = _global.currentmpcost; mySO.data.cursed = _global.cursed; mySO.data.canleavetown = _global.canleavetown; mySO.data.rubbleclear = _global.rubbleclear; mySO.data.cyclopsbeaten = _global.cyclopsbeaten; mySO.data.seenforestscene = _global.seenforestscene; mySO.data.wolfbeaten = _global.wolfbeaten; mySO.data.seendesertscene = _global.seendesertscene; mySO.data.teacherbeaten = _global.teacherbeaten; mySO.data.gotduckkey = _global.gotduckkey; mySO.data.got1kitchen_fd = _global.got1kitchen_fd; mySO.data.got4porcoscastle_gt = _global.got4porcoscastle_gt; mySO.data.got3town_safe = _global.got3town_safe; mySO.data.goteastplains3_fd = _global.goteastplains3_fd; mySO.data.gotcavedungeon2_fd = _global.gotcavedungeon2_fd; mySO.data.gotcavedungeon2_gt = _global.gotcavedungeon2_gt; mySO.data.gotepcavedungeon1_gt = _global.gotepcavedungeon1_gt; mySO.data.gotepcavedungeon1_fd = _global.gotepcavedungeon1_fd; mySO.data.gotepcavedungeon1_safe = _global.gotepcavedungeon1_safe; mySO.data.goteastplains7_fd = _global.goteastplains7_fd; mySO.data.goteastplains8_fd = _global.goteastplains8_fd; mySO.data.goteastplains8_safe = _global.goteastplains8_safe; mySO.data.gotvinetowncave3_fd = _global.gotvinetowncave3_fd; mySO.data.gotforestcavedungeon2_gt = _global.gotforestcavedungeon2_gt; mySO.data.gotforestcavedungeon1_fd = _global.gotforestcavedungeon1_fd; mySO.data.gotforestcave1_gt = _global.gotforestcave1_gt; mySO.data.gotforestcave2_fd = _global.gotforestcave2_fd; mySO.data.gotforest5_safe = _global.gotforest5_safe; mySO.data.gotfountain_mpup = _global.gotfountain_mpup; mySO.data.telep1open = _global.telep1open; mySO.data.telep2open = _global.telep2open; mySO.data.telep3open = _global.telep3open; mySO.data.telep4open = _global.telep4open; mySO.data.telep5open = _global.telep5open; mySO.data.telep6open = _global.telep6open; mySO.flush(); } frame 32 { stop(); this.unloadMovie(); } } movieClip 718 { frame 1 { _global.canattack = true; _global.statboxisup = false; _global.dialogisup = false; _global.ctrlpressed = false; _global.playerstopped = false; _global.invincible = false; _global.healing = false; _root.coin.removeMovieClip(); _root.healthpoint.removeMovieClip(); _root.magicpoint.removeMovieClip(); _root.icicle1.removeMovieClip(); _root.icicle2.removeMovieClip(); _root.icicle3.removeMovieClip(); _root.wormfireball.removeMovieClip(); _root.platform1.removeMovieClip(); _root.bigmouthfireball.removeMovieClip(); _root.orb.removeMovieClip(); _root.cultistblast.removeMovieClip(); this.unloadMovie(); } } movieClip 719 { frame 1 { function camControl() { parentColor.setTransform(camColor.getTransform()); var v4 = sX / this._width; var v3 = sY / this._height; _parent._x = cX - this._x * v4; _parent._y = cY - this._y * v3; _parent._xscale = 100 * v4; _parent._yscale = 100 * v3; } function resetStage() { var v2 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0}; parentColor.setTransform(v2); _parent._xscale = 100; _parent._yscale = 100; _parent._x = 0; _parent._y = 0; } var oldMode = Stage.scaleMode; Stage.scaleMode = 'exactFit'; var cX = Stage.width / 2; var cY = Stage.height / 2; var sX = Stage.width; var sY = Stage.height; Stage.scaleMode = oldMode; var camColor = new Color(this); var parentColor = new Color(_parent); this.onEnterFrame = camControl; camControl(); this.onUnload = resetStage; } } frame 1082 { hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 6; solids = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); if (_global.got1kitchen_fd == true) { fruitdrink.unloadMovie(); } onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } h = 1; while (h <= solids) { if (h == 1) { player.hitleft = 0; player.hitright = 0; } if (player.player1.hitTest(_root['hitboxs' + h]) && player._x > _root['hitboxs' + h]._x && player.xmove < 0) { player.hitleft = 1; player.hitright = 0; player.xmove = 0; player._x = _root['hitboxs' + h]._x + 30; } else { if (player.player1.hitTest(_root['hitboxs' + h]) && player._x < _root['hitboxs' + h]._x && player.xmove > 0) { player.hitleft = 0; player.hitright = 1; player.xmove = 0; player._x = _root['hitboxs' + h]._x - 30; } else { player.hitleft = 0; player.hitright = 0; } } ++h; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 12) { player.gravity = 12; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1095); } if (fruitdrink.hitTest(_root.player) && _global.fruitdrinks < 5) { _global.got1kitchen_fd = true; fruitdrink.nextFrame(); } }; hideHitboxes(); } frame 1095 { fade._x = vcam._x; fade._y = vcam._y; } movieClip 720 { frame 10 { stop(); } } frame 1110 { _global.statboxisup = false; _global.dialogisup = false; gotoAndStop(1221); } frame 1111 { stopAllSounds(); hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 1; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); if (_global.telep1open == false) { telep1.unloadMovie(); telesign1.unloadMovie(); } if (_global.telep2open == false) { telep2.unloadMovie(); telesign2.unloadMovie(); } if (_global.telep3open == false) { telep3.unloadMovie(); telesign3.unloadMovie(); } if (_global.telep4open == false) { telep4.unloadMovie(); telesign4.unloadMovie(); } if (_global.telep5open == false) { telep5.unloadMovie(); telesign5.unloadMovie(); } if (_global.telep6open == false) { telep6.unloadMovie(); telesign6.unloadMovie(); } onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (telep0.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1125); } else { if (telep1.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1145); } else { if (telep2.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1165); } else { if (telep3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1185); } else { if (telep4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1205); } else { if (telep5.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1225); } else { if (telep6.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1245); } } } } } } } bg1._x = vcam._x; bg1._y = vcam._y; }; hideHitboxes(); } movieClip 722 { } movieClip 725 { } movieClip 728 { } movieClip 730 { } movieClip 732 { frame 40 { this.unloadMovie(); } } movieClip 734 { } movieClip 736 { } movieClip 738 { frame 1 { this._visible = false; } } movieClip 739 { frame 1 { this._visible = false; onEnterFrame = function () { if (_root.player.player1.hitTest(this) && _root.player._x > this._x && _root.player.xmove < 0) { _root.player.hitleft = 1; _root.player.hitright = 0; _root.player.xmove = 0; _root.player._x = this._x + 30; } else { if (_root.player.player1.hitTest(this) && _root.player._x < this._x && _root.player.xmove > 0) { _root.player.hitleft = 0; _root.player.hitright = 1; _root.player.xmove = 0; _root.player._x = this._x - 30; } else { _root.player.hitleft = 0; _root.player.hitright = 0; } } }; } } frame 1112 { stopAllSounds(); hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 1; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); if (_global.telep1open == false) { telep1.unloadMovie(); telesign1.unloadMovie(); } if (_global.telep2open == false) { telep2.unloadMovie(); telesign2.unloadMovie(); } if (_global.telep3open == false) { telep3.unloadMovie(); telesign3.unloadMovie(); } if (_global.telep4open == false) { telep4.unloadMovie(); telesign4.unloadMovie(); } if (_global.telep5open == false) { telep5.unloadMovie(); telesign5.unloadMovie(); } if (_global.telep6open == false) { telep6.unloadMovie(); telesign6.unloadMovie(); } onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (telep0.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1125); } else { if (telep1.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1145); } else { if (telep2.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1165); } else { if (telep3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1185); } else { if (telep4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1205); } else { if (telep5.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1225); } else { if (telep6.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1245); } } } } } } } bg1._x = vcam._x; bg1._y = vcam._y; }; hideHitboxes(); } frame 1113 { stopAllSounds(); hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 1; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); if (_global.telep1open == false) { telep1.unloadMovie(); telesign1.unloadMovie(); } if (_global.telep2open == false) { telep2.unloadMovie(); telesign2.unloadMovie(); } if (_global.telep3open == false) { telep3.unloadMovie(); telesign3.unloadMovie(); } if (_global.telep4open == false) { telep4.unloadMovie(); telesign4.unloadMovie(); } onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (telep0.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1125); } else { if (telep1.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1145); } else { if (telep2.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1165); } else { if (telep3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1185); } else { if (telep4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1205); } else { if (telep5.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1225); } else { if (telep6.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1245); } } } } } } } bg1._x = vcam._x; bg1._y = vcam._y; }; hideHitboxes(); } frame 1114 { stopAllSounds(); hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 1; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); if (_global.telep1open == false) { telep1.unloadMovie(); telesign1.unloadMovie(); } if (_global.telep2open == false) { telep2.unloadMovie(); telesign2.unloadMovie(); } if (_global.telep3open == false) { telep3.unloadMovie(); telesign3.unloadMovie(); } if (_global.telep4open == false) { telep4.unloadMovie(); telesign4.unloadMovie(); } if (_global.telep5open == false) { telep5.unloadMovie(); telesign5.unloadMovie(); } if (_global.telep6open == false) { telep6.unloadMovie(); telesign6.unloadMovie(); } onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (telep0.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1125); } else { if (telep1.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1145); } else { if (telep2.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1165); } else { if (telep3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1185); } else { if (telep4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1205); } else { if (telep5.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1225); } else { if (telep6.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1245); } } } } } } } bg1._x = vcam._x; bg1._y = vcam._y; }; hideHitboxes(); } frame 1115 { stopAllSounds(); hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 1; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); if (_global.telep1open == false) { telep1.unloadMovie(); telesign1.unloadMovie(); } if (_global.telep2open == false) { telep2.unloadMovie(); telesign2.unloadMovie(); } if (_global.telep3open == false) { telep3.unloadMovie(); telesign3.unloadMovie(); } if (_global.telep4open == false) { telep4.unloadMovie(); telesign4.unloadMovie(); } if (_global.telep5open == false) { telep5.unloadMovie(); telesign5.unloadMovie(); } if (_global.telep6open == false) { telep6.unloadMovie(); telesign6.unloadMovie(); } onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (telep0.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1125); } else { if (telep1.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1145); } else { if (telep2.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1165); } else { if (telep3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1185); } else { if (telep4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1205); } else { if (telep5.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1225); } else { if (telep6.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1245); } } } } } } } bg1._x = vcam._x; bg1._y = vcam._y; }; hideHitboxes(); } frame 1125 { fade._x = vcam._x; fade._y = vcam._y; } frame 1140 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(1224); } frame 1145 { fade._x = vcam._x; fade._y = vcam._y; } frame 1160 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(2415); } frame 1165 { fade._x = vcam._x; fade._y = vcam._y; } frame 1180 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(4249); } frame 1185 { fade._x = vcam._x; fade._y = vcam._y; } frame 1200 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(6944); } frame 1205 { fade._x = vcam._x; fade._y = vcam._y; } frame 1220 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7668); } frame 1221 { hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 3; solids = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } h = 1; while (h <= solids) { if (h == 1) { player.hitleft = 0; player.hitright = 0; } if (player.player1.hitTest(_root['hitboxs' + h]) && player._x > _root['hitboxs' + h]._x && player.xmove < 0) { player.hitleft = 1; player.hitright = 0; player.xmove = 0; player._x = _root['hitboxs' + h]._x + 30; } else { if (player.player1.hitTest(_root['hitboxs' + h]) && player._x < _root['hitboxs' + h]._x && player.xmove > 0) { player.hitleft = 0; player.hitright = 1; player.xmove = 0; player._x = _root['hitboxs' + h]._x - 30; } else { player.hitleft = 0; player.hitright = 0; } } ++h; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1235); } else { if (exit2.hitTest(player)) { gotoAndPlay(1255); } else { if (exit3.hitTest(player)) { gotoAndPlay(1275); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1295); } } } } bg1._x = vcam._x; bg1._y = vcam._y; }; hideHitboxes(); } movieClip 741 { } movieClip 744 { } movieClip 746 { } movieClip 748 { } movieClip 750 { frame 1 { onEnterFrame = function () { if (_root.player._x > this._x) { this._xscale = -100; } else { this._xscale = 100; } if (Key.isDown(40) && this.hitTest(_root.player) && _global.dialogisup == false) { _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 1; _root.dialog.line1 = 'Hello, I am from Arabland. I came here to find'; _root.dialog.line2 = 'my kitty. Have you seen my kitty?'; _root.dialog.line3 = ''; _root.dialog.line4 = ''; _root.dialog.line5 = ''; } }; } } movieClip 752 { frame 1 { onEnterFrame = function () { if (_root.player._x > this._x) { this._xscale = -100; } else { this._xscale = 100; } if (Key.isDown(40) && this.hitTest(_root.player) && _global.dialogisup == false) { _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 2; _root.dialog.line1 = 'This is the Unholy Teleporter. It is blasphemy'; _root.dialog.line2 = 'to use the Unholy Teleporter.'; _root.dialog.line3 = '...'; _root.dialog.line4 = ''; _root.dialog.line5 = ''; _root.dialog.line6 = '...'; _root.dialog.line7 = '...But no one really cares if you do.'; _root.dialog.line8 = ''; _root.dialog.line9 = ''; _root.dialog.line10 = ''; } }; } } movieClip 754 { } movieClip 756 { } movieClip 757 { frame 1 { this._visible = false; } } movieClip 759 { frame 1 { this._visible = false; } } frame 1222 { hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 3; solids = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } h = 1; while (h <= solids) { if (h == 1) { player.hitleft = 0; player.hitright = 0; } if (player.player1.hitTest(_root['hitboxs' + h]) && player._x > _root['hitboxs' + h]._x && player.xmove < 0) { player.hitleft = 1; player.hitright = 0; player.xmove = 0; player._x = _root['hitboxs' + h]._x + 30; } else { if (player.player1.hitTest(_root['hitboxs' + h]) && player._x < _root['hitboxs' + h]._x && player.xmove > 0) { player.hitleft = 0; player.hitright = 1; player.xmove = 0; player._x = _root['hitboxs' + h]._x - 30; } else { player.hitleft = 0; player.hitright = 0; } } ++h; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1235); } else { if (exit2.hitTest(player)) { gotoAndPlay(1255); } else { if (exit3.hitTest(player)) { gotoAndPlay(1275); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1295); } } } } bg1._x = vcam._x; bg1._y = vcam._y; }; hideHitboxes(); } frame 1223 { hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 3; solids = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } h = 1; while (h <= solids) { if (h == 1) { player.hitleft = 0; player.hitright = 0; } if (player.player1.hitTest(_root['hitboxs' + h]) && player._x > _root['hitboxs' + h]._x && player.xmove < 0) { player.hitleft = 1; player.hitright = 0; player.xmove = 0; player._x = _root['hitboxs' + h]._x + 30; } else { if (player.player1.hitTest(_root['hitboxs' + h]) && player._x < _root['hitboxs' + h]._x && player.xmove > 0) { player.hitleft = 0; player.hitright = 1; player.xmove = 0; player._x = _root['hitboxs' + h]._x - 30; } else { player.hitleft = 0; player.hitright = 0; } } ++h; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1235); } else { if (exit2.hitTest(player)) { gotoAndPlay(1255); } else { if (exit3.hitTest(player)) { gotoAndPlay(1275); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1295); } } } } bg1._x = vcam._x; bg1._y = vcam._y; }; hideHitboxes(); } frame 1224 { stopAllSounds(); var music = new Sound(); music.attachSound('music_town'); music.start(0, 99); hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 3; solids = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } h = 1; while (h <= solids) { if (h == 1) { player.hitleft = 0; player.hitright = 0; } if (player.player1.hitTest(_root['hitboxs' + h]) && player._x > _root['hitboxs' + h]._x && player.xmove < 0) { player.hitleft = 1; player.hitright = 0; player.xmove = 0; player._x = _root['hitboxs' + h]._x + 30; } else { if (player.player1.hitTest(_root['hitboxs' + h]) && player._x < _root['hitboxs' + h]._x && player.xmove > 0) { player.hitleft = 0; player.hitright = 1; player.xmove = 0; player._x = _root['hitboxs' + h]._x - 30; } else { player.hitleft = 0; player.hitright = 0; } } ++h; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1235); } else { if (exit2.hitTest(player)) { gotoAndPlay(1255); } else { if (exit3.hitTest(player)) { gotoAndPlay(1275); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1295); } } } } bg1._x = vcam._x; bg1._y = vcam._y; }; hideHitboxes(); } frame 1225 { stopAllSounds(); var music = new Sound(); music.attachSound('music_town'); music.start(0, 99); hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 3; solids = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } h = 1; while (h <= solids) { if (h == 1) { player.hitleft = 0; player.hitright = 0; } if (player.player1.hitTest(_root['hitboxs' + h]) && player._x > _root['hitboxs' + h]._x && player.xmove < 0) { player.hitleft = 1; player.hitright = 0; player.xmove = 0; player._x = _root['hitboxs' + h]._x + 30; } else { if (player.player1.hitTest(_root['hitboxs' + h]) && player._x < _root['hitboxs' + h]._x && player.xmove > 0) { player.hitleft = 0; player.hitright = 1; player.xmove = 0; player._x = _root['hitboxs' + h]._x - 30; } else { player.hitleft = 0; player.hitright = 0; } } ++h; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1235); } else { if (exit2.hitTest(player)) { gotoAndPlay(1255); } else { if (exit3.hitTest(player)) { gotoAndPlay(1275); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1295); } } } } bg1._x = vcam._x; bg1._y = vcam._y; }; hideHitboxes(); } frame 1235 { fade._x = vcam._x; fade._y = vcam._y; } frame 1250 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(1082); } frame 1255 { fade._x = vcam._x; fade._y = vcam._y; } frame 1270 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(1311); } frame 1275 { fade._x = vcam._x; fade._y = vcam._y; } frame 1290 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(1401); } frame 1295 { fade._x = vcam._x; fade._y = vcam._y; } frame 1310 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(1111); } frame 1311 { hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 7; solids = 2; player.xmove = 0; xinc = 0.5; xmax = 6; if (_global.got3town_safe == true) { safe.unloadMovie(); } soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } h = 1; while (h <= solids) { if (h == 1) { player.hitleft = 0; player.hitright = 0; } if (player.player1.hitTest(_root['hitboxs' + h]) && player._x > _root['hitboxs' + h]._x && player.xmove < 0) { player.hitleft = 1; player.hitright = 0; player.xmove = 0; player._x = _root['hitboxs' + h]._x + 30; } else { if (player.player1.hitTest(_root['hitboxs' + h]) && player._x < _root['hitboxs' + h]._x && player.xmove > 0) { player.hitleft = 0; player.hitright = 1; player.xmove = 0; player._x = _root['hitboxs' + h]._x - 30; } else { player.hitleft = 0; player.hitright = 0; } } ++h; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(1325); } else { if (exit2.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1345); } else { if (exit3.hitTest(player) && _global.canleavetown == true) { gotoAndPlay(1365); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1385); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (safe.hitTest(_root.player.weaponstrike) && _global.wolfbeaten == true) { _root.attachMovie('hpup', 'hpup', 13); hpup._x = safe._x; hpup._y = safe._y; _global.got3town_safe = true; safe.play(); } }; hideHitboxes(); } movieClip 762 { } movieClip 773 { frame 1 { stop(); } frame 16 { this.unloadMovie(); } } movieClip 774 { frame 1 { onEnterFrame = function () { if (Key.isDown(40) && this.hitTest(_root.player) && _global.dialogisup == false) { _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 1; _root.dialog.line1 = 'Our kingdom\'s emblem sucks. We don\'t all'; _root.dialog.line2 = 'resemble fat pigs like our ugly king does.'; _root.dialog.line3 = ''; _root.dialog.line4 = ''; _root.dialog.line5 = ''; } }; } } movieClip 776 { frame 1 { onEnterFrame = function () { if (_root.player._x > this._x) { this._xscale = -100; } else { this._xscale = 100; } if (Key.isDown(40) && this.hitTest(_root.player) && _global.dialogisup == false) { _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 1; _root.dialog.line1 = 'If you ever find yourself in a fight with a big'; _root.dialog.line2 = 'ugly one-eyed dude, keep in mind that your'; _root.dialog.line3 = 'weapon will only hurt him if you whack him in'; _root.dialog.line4 = 'the head with it.'; _root.dialog.line5 = ''; } }; } } movieClip 777 { frame 1 { onEnterFrame = function () { if (Key.isDown(40) && this.hitTest(_root.player) && _global.dialogisup == false) { _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 1; if (_global.canleavetown == false) { _root.dialog.line1 = 'Lord Red Mage, I can\'t let you leave town until'; _root.dialog.line2 = 'you speak with His Majesty.'; _root.dialog.line3 = ''; _root.dialog.line4 = ''; _root.dialog.line5 = ''; } else { _root.dialog.line1 = 'There are lots of monsters out in the East'; _root.dialog.line2 = 'Plains, so be careful. Make sure you have some'; _root.dialog.line3 = 'Carbonated Fruit Drinks with you and press the'; _root.dialog.line4 = 'F Key to drink one and restore 50% of your max'; _root.dialog.line5 = 'HP when you need to.'; } } }; } } frame 1312 { stopAllSounds(); var music = new Sound(); music.attachSound('music_town'); music.start(0, 99); hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 7; solids = 2; player.xmove = 0; xinc = 0.5; xmax = 6; if (_global.got3town_safe == true) { safe.unloadMovie(); } soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } h = 1; while (h <= solids) { if (h == 1) { player.hitleft = 0; player.hitright = 0; } if (player.player1.hitTest(_root['hitboxs' + h]) && player._x > _root['hitboxs' + h]._x && player.xmove < 0) { player.hitleft = 1; player.hitright = 0; player.xmove = 0; player._x = _root['hitboxs' + h]._x + 30; } else { if (player.player1.hitTest(_root['hitboxs' + h]) && player._x < _root['hitboxs' + h]._x && player.xmove > 0) { player.hitleft = 0; player.hitright = 1; player.xmove = 0; player._x = _root['hitboxs' + h]._x - 30; } else { player.hitleft = 0; player.hitright = 0; } } ++h; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(1325); } else { if (exit2.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1345); } else { if (exit3.hitTest(player) && _global.canleavetown == true) { gotoAndPlay(1365); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1385); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (safe.hitTest(_root.player.weaponstrike) && _global.wolfbeaten == true) { _root.attachMovie('hpup', 'hpup', 13); hpup._x = safe._x; hpup._y = safe._y; _global.got3town_safe = true; safe.play(); } }; hideHitboxes(); } frame 1313 { stopAllSounds(); var music = new Sound(); music.attachSound('music_town'); music.start(0, 99); hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 7; solids = 2; player.xmove = 0; xinc = 0.5; xmax = 6; if (_global.got3town_safe == true) { safe.unloadMovie(); } soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } h = 1; while (h <= solids) { if (h == 1) { player.hitleft = 0; player.hitright = 0; } if (player.player1.hitTest(_root['hitboxs' + h]) && player._x > _root['hitboxs' + h]._x && player.xmove < 0) { player.hitleft = 1; player.hitright = 0; player.xmove = 0; player._x = _root['hitboxs' + h]._x + 30; } else { if (player.player1.hitTest(_root['hitboxs' + h]) && player._x < _root['hitboxs' + h]._x && player.xmove > 0) { player.hitleft = 0; player.hitright = 1; player.xmove = 0; player._x = _root['hitboxs' + h]._x - 30; } else { player.hitleft = 0; player.hitright = 0; } } ++h; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(1325); } else { if (exit2.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1345); } else { if (exit3.hitTest(player) && _global.canleavetown == true) { gotoAndPlay(1365); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1385); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (safe.hitTest(_root.player.weaponstrike) && _global.wolfbeaten == true) { _root.attachMovie('hpup', 'hpup', 13); hpup._x = safe._x; hpup._y = safe._y; _global.got3town_safe = true; safe.play(); } }; hideHitboxes(); } frame 1314 { stopAllSounds(); var music = new Sound(); music.attachSound('music_town'); music.start(0, 99); hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 7; solids = 2; player.xmove = 0; xinc = 0.5; xmax = 6; if (_global.got3town_safe == true) { safe.unloadMovie(); } soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } h = 1; while (h <= solids) { if (h == 1) { player.hitleft = 0; player.hitright = 0; } if (player.player1.hitTest(_root['hitboxs' + h]) && player._x > _root['hitboxs' + h]._x && player.xmove < 0) { player.hitleft = 1; player.hitright = 0; player.xmove = 0; player._x = _root['hitboxs' + h]._x + 30; } else { if (player.player1.hitTest(_root['hitboxs' + h]) && player._x < _root['hitboxs' + h]._x && player.xmove > 0) { player.hitleft = 0; player.hitright = 1; player.xmove = 0; player._x = _root['hitboxs' + h]._x - 30; } else { player.hitleft = 0; player.hitright = 0; } } ++h; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(1325); } else { if (exit2.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1345); } else { if (exit3.hitTest(player) && _global.canleavetown == true) { gotoAndPlay(1365); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1385); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (safe.hitTest(_root.player.weaponstrike) && _global.wolfbeaten == true) { _root.attachMovie('hpup', 'hpup', 13); hpup._x = safe._x; hpup._y = safe._y; _global.got3town_safe = true; safe.play(); } }; hideHitboxes(); } frame 1325 { fade._x = vcam._x; fade._y = vcam._y; } frame 1340 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(1222); } frame 1345 { fade._x = vcam._x; fade._y = vcam._y; } frame 1360 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(2008); } frame 1365 { fade._x = vcam._x; fade._y = vcam._y; } frame 1380 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(2162); } frame 1385 { fade._x = vcam._x; fade._y = vcam._y; } frame 1400 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndPlay(1622); } frame 1401 { if (_global.rubbleclear == true) { gotoAndStop(1403); } _global.savedat = 1; hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 1; solids = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } h = 1; while (h <= solids) { if (h == 1) { player.hitleft = 0; player.hitright = 0; } if (player.player1.hitTest(_root['hitboxs' + h]) && player._x > _root['hitboxs' + h]._x && player.xmove < 0) { player.hitleft = 1; player.hitright = 0; player.xmove = 0; player._x = _root['hitboxs' + h]._x + 30; } else { if (player.player1.hitTest(_root['hitboxs' + h]) && player._x < _root['hitboxs' + h]._x && player.xmove > 0) { player.hitleft = 0; player.hitright = 1; player.xmove = 0; player._x = _root['hitboxs' + h]._x - 30; } else { player.hitleft = 0; player.hitright = 0; } } ++h; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(1415); } else { if (exit2.hitTest(player)) { gotoAndPlay(1435); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1455); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1475); } } } } bg1._x = vcam._x; bg1._y = vcam._y; }; hideHitboxes(); } movieClip 781 { } movieClip 782 { frame 1 { stop(); onEnterFrame = function () { if (this.hitTest(_root.player) && Key.isDown(40)) { _global.cursed = false; play(); } }; } } movieClip 786 { } movieClip 790 { frame 1 { onEnterFrame = function () { if (Key.isDown(40) && this.hitTest(_root.player) && _global.dialogisup == false) { _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 2; _root.dialog.line1 = 'If you need armor, weapons, or recovery items,'; _root.dialog.line2 = 'you can purchase them from the shop over yonder.'; _root.dialog.line3 = 'If you\'re looking for magic spells, however,'; _root.dialog.line4 = 'you\'ll have to search for scrolls in caves and'; _root.dialog.line5 = 'dungeons.'; _root.dialog.line6 = 'For some reason, I can\'t stop staring at this'; _root.dialog.line7 = 'fountain. It\'s so... erotic.'; _root.dialog.line8 = ''; _root.dialog.line9 = ''; _root.dialog.line10 = ''; } }; } } movieClip 791 { frame 1 { onEnterFrame = function () { if (Key.isDown(40) && this.hitTest(_root.player) && _global.dialogisup == false) { if (_global.gotforest5_safe == false) { _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 1; _root.dialog.line1 = 'Some moron ignited our munitions storage and'; _root.dialog.line2 = 'blew the hell out of the tower. Since that was'; _root.dialog.line3 = 'all of our explosives, we can\'t clear this'; _root.dialog.line4 = 'rubble until we get more.'; _root.dialog.line5 = ''; } else { if (_global.gotforest5_safe == true && _global.rubbleclear == false) { _root.gotoAndPlay('rubblecutscene'); } else { _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 1; _root.dialog.line1 = 'The path\'s all clear! Now we just have to worry'; _root.dialog.line2 = 'about fixing the damn tower. (sigh)'; _root.dialog.line3 = ''; _root.dialog.line4 = ''; _root.dialog.line5 = ''; } } } }; } } movieClip 793 { frame 1 { onEnterFrame = function () { if (_root.player._x > this._x) { this._xscale = -100; } else { this._xscale = 100; } if (Key.isDown(40) && this.hitTest(_root.player) && _global.dialogisup == false) { _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 2; _root.dialog.line1 = 'Your game is automatically saved every time'; _root.dialog.line2 = 'you move to another scene. But remember, when'; _root.dialog.line3 = 'you load your saved game you\'ll start back at'; _root.dialog.line4 = 'this town. So don\'t freak out about it. That\'s'; _root.dialog.line5 = 'how it was in the NES days, so suck it up.'; _root.dialog.line6 = 'See that creepy-looking statue over there?'; _root.dialog.line7 = 'It\'s called a Zenu statue and rumor has it that'; _root.dialog.line8 = 'it has curse-dispelling powers.'; _root.dialog.line9 = ''; _root.dialog.line10 = ''; } }; } } movieClip 795 { frame 1 { if (_global.wolfbeaten == false) { this._visible = false; } } } movieClip 797 { frame 1 { if (_global.gotduckkey == false) { this._visible = false; } } } frame 1402 { stopAllSounds(); var music = new Sound(); music.attachSound('music_town'); music.start(0, 99); hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 1; solids = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } h = 1; while (h <= solids) { if (h == 1) { player.hitleft = 0; player.hitright = 0; } if (player.player1.hitTest(_root['hitboxs' + h]) && player._x > _root['hitboxs' + h]._x && player.xmove < 0) { player.hitleft = 1; player.hitright = 0; player.xmove = 0; player._x = _root['hitboxs' + h]._x + 30; } else { if (player.player1.hitTest(_root['hitboxs' + h]) && player._x < _root['hitboxs' + h]._x && player.xmove > 0) { player.hitleft = 0; player.hitright = 1; player.xmove = 0; player._x = _root['hitboxs' + h]._x - 30; } else { player.hitleft = 0; player.hitright = 0; } } ++h; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(1415); } else { if (exit2.hitTest(player)) { gotoAndPlay(1435); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1455); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1475); } } } } bg1._x = vcam._x; bg1._y = vcam._y; }; hideHitboxes(); } frame 1403 { hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 1; solids = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } h = 1; while (h <= solids) { if (h == 1) { player.hitleft = 0; player.hitright = 0; } if (player.player1.hitTest(_root['hitboxs' + h]) && player._x > _root['hitboxs' + h]._x && player.xmove < 0) { player.hitleft = 1; player.hitright = 0; player.xmove = 0; player._x = _root['hitboxs' + h]._x + 30; } else { if (player.player1.hitTest(_root['hitboxs' + h]) && player._x < _root['hitboxs' + h]._x && player.xmove > 0) { player.hitleft = 0; player.hitright = 1; player.xmove = 0; player._x = _root['hitboxs' + h]._x - 30; } else { player.hitleft = 0; player.hitright = 0; } } ++h; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(1415); } else { if (exit2.hitTest(player)) { gotoAndPlay(1435); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1455); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1475); } } } } bg1._x = vcam._x; bg1._y = vcam._y; }; hideHitboxes(); } frame 1405 { if (_global.rubbleclear == true) { gotoAndStop(1408); } _global.savedat = 1; stopAllSounds(); var music = new Sound(); music.attachSound('music_town'); music.start(0, 99); hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 1; solids = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } h = 1; while (h <= solids) { if (h == 1) { player.hitleft = 0; player.hitright = 0; } if (player.player1.hitTest(_root['hitboxs' + h]) && player._x > _root['hitboxs' + h]._x && player.xmove < 0) { player.hitleft = 1; player.hitright = 0; player.xmove = 0; player._x = _root['hitboxs' + h]._x + 30; } else { if (player.player1.hitTest(_root['hitboxs' + h]) && player._x < _root['hitboxs' + h]._x && player.xmove > 0) { player.hitleft = 0; player.hitright = 1; player.xmove = 0; player._x = _root['hitboxs' + h]._x - 30; } else { player.hitleft = 0; player.hitright = 0; } } ++h; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(1415); } else { if (exit2.hitTest(player)) { gotoAndPlay(1435); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1455); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1475); } } } } bg1._x = vcam._x; bg1._y = vcam._y; }; hideHitboxes(); } frame 1408 { stopAllSounds(); var music = new Sound(); music.attachSound('music_town'); music.start(0, 99); hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 1; solids = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } h = 1; while (h <= solids) { if (h == 1) { player.hitleft = 0; player.hitright = 0; } if (player.player1.hitTest(_root['hitboxs' + h]) && player._x > _root['hitboxs' + h]._x && player.xmove < 0) { player.hitleft = 1; player.hitright = 0; player.xmove = 0; player._x = _root['hitboxs' + h]._x + 30; } else { if (player.player1.hitTest(_root['hitboxs' + h]) && player._x < _root['hitboxs' + h]._x && player.xmove > 0) { player.hitleft = 0; player.hitright = 1; player.xmove = 0; player._x = _root['hitboxs' + h]._x - 30; } else { player.hitleft = 0; player.hitright = 0; } } ++h; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(1415); } else { if (exit2.hitTest(player)) { gotoAndPlay(1435); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1455); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1475); } } } } bg1._x = vcam._x; bg1._y = vcam._y; }; hideHitboxes(); } frame 1410 { stopAllSounds(); var music = new Sound(); music.attachSound('music_town'); music.start(0, 99); _global.savedat = 1; hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 1; solids = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } h = 1; while (h <= solids) { if (h == 1) { player.hitleft = 0; player.hitright = 0; } if (player.player1.hitTest(_root['hitboxs' + h]) && player._x > _root['hitboxs' + h]._x && player.xmove < 0) { player.hitleft = 1; player.hitright = 0; player.xmove = 0; player._x = _root['hitboxs' + h]._x + 30; } else { if (player.player1.hitTest(_root['hitboxs' + h]) && player._x < _root['hitboxs' + h]._x && player.xmove > 0) { player.hitleft = 0; player.hitright = 1; player.xmove = 0; player._x = _root['hitboxs' + h]._x - 30; } else { player.hitleft = 0; player.hitright = 0; } } ++h; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(1415); } else { if (exit2.hitTest(player)) { gotoAndPlay(1435); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1455); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(1475); } } } } bg1._x = vcam._x; bg1._y = vcam._y; }; hideHitboxes(); } frame 1415 { fade._x = vcam._x; fade._y = vcam._y; } frame 1430 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(5972); } frame 1435 { fade._x = vcam._x; fade._y = vcam._y; } frame 1450 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(1223); } frame 1455 { fade._x = vcam._x; fade._y = vcam._y; } frame 1470 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndPlay(1893); } frame 1475 { fade._x = vcam._x; fade._y = vcam._y; } frame 1491 { stopAllSounds(); onEnterFrame = function () {}; } movieClip 803 { frame 1 { function camControl() { parentColor.setTransform(camColor.getTransform()); var v4 = sX / this._width; var v3 = sY / this._height; _parent._x = cX - this._x * v4; _parent._y = cY - this._y * v3; _parent._xscale = 100 * v4; _parent._yscale = 100 * v3; } function resetStage() { var v2 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0}; parentColor.setTransform(v2); _parent._xscale = 100; _parent._yscale = 100; _parent._x = 0; _parent._y = 0; } var oldMode = Stage.scaleMode; Stage.scaleMode = 'exactFit'; var cX = Stage.width / 2; var cY = Stage.height / 2; var sX = Stage.width; var sY = Stage.height; Stage.scaleMode = oldMode; var camColor = new Color(this); var parentColor = new Color(_parent); this.onEnterFrame = camControl; camControl(); this.onUnload = resetStage; } } frame 1511 { stop(); _global.dialogisup = true; _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 1; _root.dialog.line1 = ':Guard: Excellent, this should be just enough'; _root.dialog.line2 = 'dynamite to blow this shit out of the way.'; _root.dialog.line3 = 'Thanks for your assistance, Sir Red Mage.'; _root.dialog.line4 = ''; _root.dialog.line5 = ''; onEnterFrame = function () { if (_global.dialogisup == false) { play(); } }; } frame 1621 { _global.rubbleclear = true; gotoAndStop(1410); } frame 1622 { stopAllSounds(); } movieClip 811 { } frame 1686 { stop(); } movieClip 842 { } movieClip 858 { frame 1 { _global.dialogisup = true; } frame 16 { stop(); no._visible = false; onEnterFrame = function () { if (Key.isDown(90)) { if (no._visible == true) { gotoAndPlay(50); } else { if (yes._visible == true && _global.coinage >= 20) { _global.coinage -= 15; gotoAndPlay(100); } else { play(); } } } if (Key.isDown(37)) { no._visible = false; yes._visible = true; } else { if (Key.isDown(39)) { no._visible = true; yes._visible = false; } } }; } frame 17 { onEnterFrame = function () {}; } frame 31 { stop(); onEnterFrame = function () { if (Key.isDown(90)) { gotoAndPlay(50); } }; } frame 51 { onEnterFrame = function () {}; } frame 55 { stop(); _root.yes = 0; _root.play(); } frame 101 { onEnterFrame = function () {}; } frame 123 { onEnterFrame = function () {}; } frame 127 { stop(); _root.yes = 1; _root.play(); } } frame 1687 { if (yes == 1) { gotoAndPlay(1771); } else { gotoAndPlay(1696); } } frame 1711 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(1314); } frame 1771 { _global.playerhp = _global.playermaxhp; _global.playermp = _global.playermaxmp; } frame 1786 { stopAllSounds(); } frame 1892 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(1314); } frame 1893 { _root.boxup = false; stopAllSounds(); } movieClip 862 { } frame 1957 { stop(); } movieClip 878 { frame 1 { _global.dialogisup = true; } frame 16 { stop(); onEnterFrame = function () { if (Key.isDown(90)) { play(); } }; } frame 17 { onEnterFrame = function () {}; } frame 21 { stop(); _root.play(); } } frame 1976 { stop(); if (_global.wolfbeaten == false) { shop2.unloadMovie(); shop3.unloadMovie(); } else { if (_global.gotduckkey == false) { shop1.unloadMovie(); shop3.unloadMovie(); } else { shop1.unloadMovie(); shop2.unloadMovie(); } } } button 891 { on (release) { _root.play(); } } button 893 { on (release) { if (_root.boxup == false) { if (_global.equippedarmor == 1 && _global.coinage >= 250) { _global.coinage -= 250; _global.equippedarmor = 2; _global.playerdefense = _global.playerbasedefense + 4; _global.currentarmordefense = 4; _root.attachMovie('sold', 'sold', 5); } else { if (_global.equippedarmor >= 2 && _global.coinage >= 250) { _root.attachMovie('alreadyhave', 'alreadyhave', 5); } else { _root.attachMovie('nomoney', 'nomoney', 5); } } } } } button 896 { on (release) { if (_root.boxup == false) { if (_global.equippedarmor < 3 && _global.coinage >= 600) { _global.coinage -= 600; _global.equippedarmor = 3; _global.playerdefense = _global.playerbasedefense + 7; _global.currentarmordefense = 7; _root.attachMovie('sold', 'sold', 5); } else { if (_global.equippedarmor >= 3 && _global.coinage >= 600) { _root.attachMovie('alreadyhave', 'alreadyhave', 5); } else { _root.attachMovie('nomoney', 'nomoney', 5); } } } } } button 899 { on (release) { if (_root.boxup == false) { if (_global.gotweapon11 == false && _global.coinage >= 220) { _global.coinage -= 220; _global.gotweapon11 = true; _root.attachMovie('sold', 'sold', 5); } else { if (_global.gotweapon11 == true && _global.coinage >= 220) { _root.attachMovie('alreadyhave', 'alreadyhave', 5); } else { _root.attachMovie('nomoney', 'nomoney', 5); } } } } } button 901 { on (release) { if (_root.boxup == false) { if (_global.gotweapon12 == false && _global.coinage >= 630) { _global.coinage -= 630; _global.gotweapon12 = true; _root.attachMovie('sold', 'sold', 5); } else { if (_global.gotweapon12 == true && _global.coinage >= 630) { _root.attachMovie('alreadyhave', 'alreadyhave', 5); } else { _root.attachMovie('nomoney', 'nomoney', 5); } } } } } button 907 { on (release) { if (_root.boxup == false) { if (_global.fruitdrinks < 5 && _global.coinage >= 25) { _global.coinage -= 25; _global.fruitdrinks += 1; _root.attachMovie('sold', 'sold', 5); } else { if (_global.fruitdrinks == 5 && _global.coinage >= 25) { _root.attachMovie('toomany', 'toomany', 5); } else { _root.attachMovie('nomoney', 'nomoney', 5); } } } } } button 909 { on (release) { if (_root.boxup == false) { if (_global.greenteas < 5 && _global.coinage >= 30) { _global.coinage -= 30; _global.greenteas += 1; _root.attachMovie('sold', 'sold', 5); } else { if (_global.greenteas == 5 && _global.coinage >= 30) { _root.attachMovie('toomany', 'toomany', 5); } else { _root.attachMovie('nomoney', 'nomoney', 5); } } } } } button 911 { on (release) { if (_root.boxup == false) { if (_global.wards < 5 && _global.coinage >= 30) { _global.coinage -= 30; _global.wards += 1; _root.attachMovie('sold', 'sold', 5); } else { if (_global.wards == 5 && _global.coinage >= 30) { _root.attachMovie('toomany', 'toomany', 5); } else { _root.attachMovie('nomoney', 'nomoney', 5); } } } } } movieClip 913 { } button 923 { on (release) { if (_root.boxup == false) { if (_global.equippedarmor < 5 && _global.coinage >= 2600) { _global.coinage -= 2600; _global.equippedarmor = 5; _global.playerdefense = _global.playerbasedefense + 21; _global.currentarmordefense = 21; _root.attachMovie('sold', 'sold', 5); } else { if (_global.equippedarmor >= 5 && _global.coinage >= 2600) { _root.attachMovie('alreadyhave', 'alreadyhave', 5); } else { _root.attachMovie('nomoney', 'nomoney', 5); } } } } } button 929 { on (release) { if (_root.boxup == false) { if (_global.equippedarmor < 6 && _global.coinage >= 4000) { _global.coinage -= 4000; _global.equippedarmor = 6; _global.playerdefense = _global.playerbasedefense + 28; _global.currentarmordefense = 28; _root.attachMovie('sold', 'sold', 5); } else { if (_global.equippedarmor >= 6 && _global.coinage >= 4000) { _root.attachMovie('alreadyhave', 'alreadyhave', 5); } else { _root.attachMovie('nomoney', 'nomoney', 5); } } } } } button 932 { on (release) { if (_root.boxup == false) { if (_global.gotweapon22 == false && _global.coinage >= 2900) { _global.coinage -= 2900; _global.gotweapon22 = true; _root.attachMovie('sold', 'sold', 5); } else { if (_global.gotweapon22 == true && _global.coinage >= 2900) { _root.attachMovie('alreadyhave', 'alreadyhave', 5); } else { _root.attachMovie('nomoney', 'nomoney', 5); } } } } } button 934 { on (release) { if (_root.boxup == false) { if (_global.gotweapon30 == false && _global.coinage >= 3800) { _global.coinage -= 3800; _global.gotweapon30 = true; _root.attachMovie('sold', 'sold', 5); } else { if (_global.gotweapon30 == true && _global.coinage >= 3800) { _root.attachMovie('alreadyhave', 'alreadyhave', 5); } else { _root.attachMovie('nomoney', 'nomoney', 5); } } } } } movieClip 936 { } button 943 { on (release) { if (_root.boxup == false) { if (_global.equippedarmor < 4 && _global.coinage >= 1200) { _global.coinage -= 1200; _global.equippedarmor = 4; _global.playerdefense = _global.playerbasedefense + 15; _global.currentarmordefense = 15; _root.attachMovie('sold', 'sold', 5); } else { if (_global.equippedarmor >= 4 && _global.coinage >= 1200) { _root.attachMovie('alreadyhave', 'alreadyhave', 5); } else { _root.attachMovie('nomoney', 'nomoney', 5); } } } } } button 950 { on (release) { if (_root.boxup == false) { if (_global.gotweapon20 == false && _global.coinage >= 1000) { _global.coinage -= 1000; _global.gotweapon20 = true; _root.attachMovie('sold', 'sold', 5); } else { if (_global.gotweapon20 == true && _global.coinage >= 1000) { _root.attachMovie('alreadyhave', 'alreadyhave', 5); } else { _root.attachMovie('nomoney', 'nomoney', 5); } } } } } button 952 { on (release) { if (_root.boxup == false) { if (_global.gotweapon21 == false && _global.coinage >= 2100) { _global.coinage -= 2100; _global.gotweapon21 = true; _root.attachMovie('sold', 'sold', 5); } else { if (_global.gotweapon21 == true && _global.coinage >= 2100) { _root.attachMovie('alreadyhave', 'alreadyhave', 5); } else { _root.attachMovie('nomoney', 'nomoney', 5); } } } } } movieClip 954 { } frame 2007 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(1405); } frame 2008 { stopAllSounds(); var music = new Sound(); music.attachSound('music_castle'); music.start(0, 99); hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 1; solids = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); if (_global.got4porcoscastle_gt == true) { greentea.unloadMovie(); } onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } h = 1; while (h <= solids) { if (h == 1) { player.hitleft = 0; player.hitright = 0; } if (player.player1.hitTest(_root['hitboxs' + h]) && player._x > _root['hitboxs' + h]._x && player.xmove < 0) { player.hitleft = 1; player.hitright = 0; player.xmove = 0; player._x = _root['hitboxs' + h]._x + 30; } else { if (player.player1.hitTest(_root['hitboxs' + h]) && player._x < _root['hitboxs' + h]._x && player.xmove > 0) { player.hitleft = 0; player.hitright = 1; player.xmove = 0; player._x = _root['hitboxs' + h]._x - 30; } else { player.hitleft = 0; player.hitright = 0; } } ++h; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2022); } else { if (exit2.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2042); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2062); } } } if (greentea.hitTest(_root.player) && _global.greenteas < 5) { _global.got4porcoscastle_gt = true; greentea.nextFrame(); } }; hideHitboxes(); } movieClip 962 { frame 1 { onEnterFrame = function () { if (Key.isDown(40) && this.hitTest(_root.player) && _global.dialogisup == false) { _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 1; _root.dialog.line1 = 'Greetings, Lord Red Mage. You can have my Green'; _root.dialog.line2 = 'Tea here if you want it. It\'ll restore 50% of'; _root.dialog.line3 = 'your MP if you press the G Key to drink it.'; _root.dialog.line4 = ''; _root.dialog.line5 = ''; } }; } } movieClip 965 { } movieClip 967 { frame 1 { stop(); } frame 2 { _global.greenteas += 1; this.unloadMovie(); } frame 3 { this.unloadMovie(); } } movieClip 970 { frame 1 { onEnterFrame = function () { if (_root.player._x > this._x) { this._xscale = -100; } else { this._xscale = 100; } if (Key.isDown(40) && this.hitTest(_root.player) && _global.dialogisup == false) { _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 1; _root.dialog.line1 = 'In case you can\'t figure it out, this way leads'; _root.dialog.line2 = 'to the king\'s throne room.'; _root.dialog.line3 = '...'; _root.dialog.line4 = ''; _root.dialog.line5 = ''; } }; } } movieClip 971 { frame 1 { onEnterFrame = function () { if (Key.isDown(40) && this.hitTest(_root.player) && _global.dialogisup == false) { _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 1; _root.dialog.line1 = 'Oh, Princess Layla... She\'s so cute and so...'; _root.dialog.line2 = 'rebellious...'; _root.dialog.line3 = ''; _root.dialog.line4 = ''; _root.dialog.line5 = ''; } }; } } frame 2009 { hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 1; solids = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); if (_global.got4porcoscastle_gt == true) { greentea.unloadMovie(); } onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } h = 1; while (h <= solids) { if (h == 1) { player.hitleft = 0; player.hitright = 0; } if (player.player1.hitTest(_root['hitboxs' + h]) && player._x > _root['hitboxs' + h]._x && player.xmove < 0) { player.hitleft = 1; player.hitright = 0; player.xmove = 0; player._x = _root['hitboxs' + h]._x + 30; } else { if (player.player1.hitTest(_root['hitboxs' + h]) && player._x < _root['hitboxs' + h]._x && player.xmove > 0) { player.hitleft = 0; player.hitright = 1; player.xmove = 0; player._x = _root['hitboxs' + h]._x - 30; } else { player.hitleft = 0; player.hitright = 0; } } ++h; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2022); } else { if (exit2.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2042); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2062); } } } if (greentea.hitTest(_root.player) && _global.greenteas < 5) { _global.got4porcoscastle_gt = true; greentea.nextFrame(); } }; hideHitboxes(); } frame 2010 { hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 1; solids = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); if (_global.got4porcoscastle_gt == true) { greentea.unloadMovie(); } onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } h = 1; while (h <= solids) { if (h == 1) { player.hitleft = 0; player.hitright = 0; } if (player.player1.hitTest(_root['hitboxs' + h]) && player._x > _root['hitboxs' + h]._x && player.xmove < 0) { player.hitleft = 1; player.hitright = 0; player.xmove = 0; player._x = _root['hitboxs' + h]._x + 30; } else { if (player.player1.hitTest(_root['hitboxs' + h]) && player._x < _root['hitboxs' + h]._x && player.xmove > 0) { player.hitleft = 0; player.hitright = 1; player.xmove = 0; player._x = _root['hitboxs' + h]._x - 30; } else { player.hitleft = 0; player.hitright = 0; } } ++h; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2022); } else { if (exit2.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2042); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2062); } } } if (greentea.hitTest(_root.player) && _global.greenteas < 5) { _global.got4porcoscastle_gt = true; greentea.nextFrame(); } }; hideHitboxes(); } frame 2022 { fade._x = vcam._x; fade._y = vcam._y; } frame 2037 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(1312); } frame 2042 { fade._x = vcam._x; fade._y = vcam._y; } frame 2057 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(2078); } frame 2062 { fade._x = vcam._x; fade._y = vcam._y; } frame 2077 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(2112); } frame 2078 { hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 3; solids = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } h = 1; while (h <= solids) { if (h == 1) { player.hitleft = 0; player.hitright = 0; } if (player.player1.hitTest(_root['hitboxs' + h]) && player._x > _root['hitboxs' + h]._x && player.xmove < 0) { player.hitleft = 1; player.hitright = 0; player.xmove = 0; player._x = _root['hitboxs' + h]._x + 30; } else { if (player.player1.hitTest(_root['hitboxs' + h]) && player._x < _root['hitboxs' + h]._x && player.xmove > 0) { player.hitleft = 0; player.hitright = 1; player.xmove = 0; player._x = _root['hitboxs' + h]._x - 30; } else { player.hitleft = 0; player.hitright = 0; } } ++h; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2092); } }; hideHitboxes(); } movieClip 973 { frame 1 { onEnterFrame = function () { if (Key.isDown(40) && this.hitTest(_root.player) && _global.dialogisup == false) { _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 1; _root.dialog.line1 = 'Yo, yo! I\'m the Royal Dee Jay!'; _root.dialog.line2 = 'Spinnin\' the royal discs all of thee day!'; _root.dialog.line3 = 'Ask me to play some Steppenwolf and I\'ll say no!'; _root.dialog.line4 = '\'Cuz His Highness only likes techno!'; _root.dialog.line5 = ''; } }; } } movieClip 976 { frame 1 { onEnterFrame = function () { if (Key.isDown(40) && this.hitTest(_root.player) && _global.dialogisup == false) { if (_global.canleavetown == false) { _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 5; _root.dialog.line1 = 'Ahh, Red Mage. My most loyal and trusted knight.'; _root.dialog.line2 = '...'; _root.dialog.line3 = 'What took you so damn long?!'; _root.dialog.line4 = ''; _root.dialog.line5 = ''; _root.dialog.line6 = ':Red Mage: Forgive me, Your Majesty, but I was'; _root.dialog.line7 = 'held up by a few chores.'; _root.dialog.line8 = ''; _root.dialog.line9 = ''; _root.dialog.line10 = ''; _root.dialog.line11 = ':King: Well, anyway, that confounded trouble-'; _root.dialog.line12 = 'making daughter of mine has run off again, no'; _root.dialog.line13 = 'doubt putting her own life in grave danger as'; _root.dialog.line14 = 'usual. Track her down and get her back ASAP. She'; _root.dialog.line15 = 'needs to practice her Uno skills. She won\'t be'; _root.dialog.line16 = 'able to succeed her old man as world champ if'; _root.dialog.line17 = 'she doesn\'t put more effort into it.'; _root.dialog.line18 = 'There may be a clue in her diary as to where she'; _root.dialog.line19 = 'ran off to, so stop by her room first for clues.'; _root.dialog.line20 = ''; _root.dialog.line21 = ':Red Mage: Consider it done, My Liege.'; _root.dialog.line22 = ''; _root.dialog.line23 = ''; _root.dialog.line24 = ''; _root.dialog.line25 = ''; _global.canleavetown = true; } else { _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 1; _root.dialog.line1 = 'Did you find that tomboy princess of mine yet?'; _root.dialog.line2 = ''; _root.dialog.line3 = ''; _root.dialog.line4 = ''; _root.dialog.line5 = ''; } } }; } } movieClip 977 { frame 1 { onEnterFrame = function () { if (Key.isDown(40) && this.hitTest(_root.player) && _global.dialogisup == false) { _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 1; _root.dialog.line1 = 'The king is obsessed with making Princess Layla'; _root.dialog.line2 = 'his successor as World Uno Champion, so he'; _root.dialog.line3 = 'forces her to play it with him everyday...'; _root.dialog.line4 = '... I feel sorry for her.'; _root.dialog.line5 = ''; } }; } } movieClip 978 { frame 1 { onEnterFrame = function () { if (_root.player._x > this._x) { this._xscale = -100; } else { this._xscale = 100; } if (Key.isDown(40) && this.hitTest(_root.player) && _global.dialogisup == false) { _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 1; _root.dialog.line1 = 'Lord Red Mage! I got a case of booze hidden in'; _root.dialog.line2 = 'a bush outside if you wanna skip guard duty and'; _root.dialog.line3 = 'get wasted!'; _root.dialog.line4 = ''; _root.dialog.line5 = ''; } }; } } frame 2092 { fade._x = vcam._x; fade._y = vcam._y; } frame 2107 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(2009); } frame 2112 { hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 7; solids = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } h = 1; while (h <= solids) { if (h == 1) { player.hitleft = 0; player.hitright = 0; } if (player.player1.hitTest(_root['hitboxs' + h]) && player._x > _root['hitboxs' + h]._x && player.xmove < 0) { player.hitleft = 1; player.hitright = 0; player.xmove = 0; player._x = _root['hitboxs' + h]._x + 30; } else { if (player.player1.hitTest(_root['hitboxs' + h]) && player._x < _root['hitboxs' + h]._x && player.xmove > 0) { player.hitleft = 0; player.hitright = 1; player.xmove = 0; player._x = _root['hitboxs' + h]._x - 30; } else { player.hitleft = 0; player.hitright = 0; } } ++h; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2126); } else { if (exit2.hitTest(player) && Key.isDown(40) && _global.gotduckkey == true) { gotoAndPlay(2146); } } }; hideHitboxes(); } movieClip 982 { frame 1 { onEnterFrame = function () { if (Key.isDown(40) && this.hitTest(_root.player) && _global.dialogisup == false) { _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 2; _root.dialog.line1 = 'September 12'; _root.dialog.line2 = 'I\'m sick and tired of my dumbass father not'; _root.dialog.line3 = 'letting me do what I want! I\'m gonna take my'; _root.dialog.line4 = '.45 calibre submachine gun and hunt down that'; _root.dialog.line5 = 'giant cyclops that lives in a cave in the East'; _root.dialog.line6 = 'Plains somewhere. I\'ll show everyone what I\'m'; _root.dialog.line7 = 'made of when I bring his corpse home as a'; _root.dialog.line8 = 'trophy!'; _root.dialog.line9 = ''; _root.dialog.line10 = 'P.S. I hate Uno!'; } }; } } frame 2113 { stopAllSounds(); var music = new Sound(); music.attachSound('music_castle'); music.start(0, 99); hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 7; solids = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } h = 1; while (h <= solids) { if (h == 1) { player.hitleft = 0; player.hitright = 0; } if (player.player1.hitTest(_root['hitboxs' + h]) && player._x > _root['hitboxs' + h]._x && player.xmove < 0) { player.hitleft = 1; player.hitright = 0; player.xmove = 0; player._x = _root['hitboxs' + h]._x + 30; } else { if (player.player1.hitTest(_root['hitboxs' + h]) && player._x < _root['hitboxs' + h]._x && player.xmove > 0) { player.hitleft = 0; player.hitright = 1; player.xmove = 0; player._x = _root['hitboxs' + h]._x - 30; } else { player.hitleft = 0; player.hitright = 0; } } ++h; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2126); } else { if (exit2.hitTest(player) && Key.isDown(40) && _global.gotduckkey == true) { gotoAndPlay(2146); } } }; hideHitboxes(); } frame 2126 { fade._x = vcam._x; fade._y = vcam._y; } frame 2141 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(2010); } frame 2146 { fade._x = vcam._x; fade._y = vcam._y; } frame 2161 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(9603); } frame 2162 { stopAllSounds(); var music = new Sound(); music.attachSound('music_plains'); music.start(0, 99); hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 2; solids = 4; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } h = 1; while (h <= solids) { if (h == 1) { player.hitleft = 0; player.hitright = 0; } if (player.player1.hitTest(_root['hitboxs' + h]) && player._x > _root['hitboxs' + h]._x && player.xmove < 0) { player.hitleft = 1; player.hitright = 0; player.xmove = 0; player._x = _root['hitboxs' + h]._x + 30; } else { if (player.player1.hitTest(_root['hitboxs' + h]) && player._x < _root['hitboxs' + h]._x && player.xmove > 0) { player.hitleft = 0; player.hitright = 1; player.xmove = 0; player._x = _root['hitboxs' + h]._x - 30; } else { player.hitleft = 0; player.hitright = 0; } } ++h; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(2176); } else { if (exit2.hitTest(player)) { gotoAndPlay(2196); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2216); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2236); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; hideHitboxes(); } movieClip 987 { } movieClip 988 { } movieClip 1004 { frame 1 { hp = 12; facing = 1; } frame 2 { stop(); xmove = -5; if (facing == -1) { xmove *= -1; sprite._xscale *= -1; } removeMovieClip(damagetext); onthisframe = true; onEnterFrame = function () { if (onthisframe == true) { i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { xmove *= -1; sprite._xscale *= -1; facing *= -1; this._x += xmove; } ++i; } if (this.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 10; _root.player.gotoAndPlay(50); } if (this.hitTest(_root.player.weaponstrike)) { damage = _global.playerattack * 0.1 * random(3) + _global.playerattack - 2; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.icebeam)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.explosion)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.megabolt)) { damage = _global.playerbaseattack * 2.5; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.painwave)) { damage = _global.playerbaseattack * 4; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } this._x += xmove; } }; } frame 3 { this._x += 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(41); facing *= -1; } ++i; } onEnterFrame = function () {}; } frame 4 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(42); facing *= -1; } ++i; } } frame 5 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(43); facing *= -1; } ++i; } } frame 6 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(44); facing *= -1; } ++i; } } frame 7 { this._x += 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(45); facing *= -1; } ++i; } } frame 8 { this._x += 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(46); facing *= -1; } ++i; } } frame 9 { this._x += 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(47); facing *= -1; } ++i; } } frame 10 { this._x += 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(48); facing *= -1; } ++i; } } frame 15 { if (hp <= 0) { gotoAndPlay(80); } } frame 16 { this._x -= 5; gotoAndStop(2); } frame 40 { this._x -= 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(4); facing *= -1; } ++i; } onEnterFrame = function () {}; } frame 41 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(5); facing *= -1; } ++i; } } frame 42 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(6); facing *= -1; } ++i; } } frame 43 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(7); facing *= -1; } ++i; } } frame 44 { this._x -= 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(8); facing *= -1; } ++i; } } frame 45 { this._x -= 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(9); facing *= -1; } ++i; } } frame 46 { this._x -= 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(10); facing *= -1; } ++i; } } frame 47 { this._x -= 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(11); facing *= -1; } ++i; } } frame 52 { if (hp <= 0) { gotoAndPlay(80); } } frame 53 { this._x += 5; gotoAndStop(2); } frame 80 { onthisframe = false; _global.playerexp += 2; _global.coinage += 3; _root.vcam.smallstatsbox.gainexp(); } frame 108 { stop(); this.unloadMovie(); } } movieClip 1006 { frame 1 { this._visible = false; } } frame 2163 { hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 2; solids = 4; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } h = 1; while (h <= solids) { if (h == 1) { player.hitleft = 0; player.hitright = 0; } if (player.player1.hitTest(_root['hitboxs' + h]) && player._x > _root['hitboxs' + h]._x && player.xmove < 0) { player.hitleft = 1; player.hitright = 0; player.xmove = 0; player._x = _root['hitboxs' + h]._x + 30; } else { if (player.player1.hitTest(_root['hitboxs' + h]) && player._x < _root['hitboxs' + h]._x && player.xmove > 0) { player.hitleft = 0; player.hitright = 1; player.xmove = 0; player._x = _root['hitboxs' + h]._x - 30; } else { player.hitleft = 0; player.hitright = 0; } } ++h; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(2176); } else { if (exit2.hitTest(player)) { gotoAndPlay(2196); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2216); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2236); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; hideHitboxes(); } frame 2176 { fade._x = vcam._x; fade._y = vcam._y; } frame 2191 { _global.statboxisup = false; _global.dialogisup = false; gotoAndStop(1313); } frame 2196 { fade._x = vcam._x; fade._y = vcam._y; } frame 2211 { _global.statboxisup = false; _global.dialogisup = false; gotoAndStop(2212); } frame 2212 { hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 6; solids = 8; stoppers = 4; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } h = 1; while (h <= solids) { if (h == 1) { player.hitleft = 0; player.hitright = 0; } if (player.player1.hitTest(_root['hitboxs' + h]) && player._x > _root['hitboxs' + h]._x && player.xmove < 0) { player.hitleft = 1; player.hitright = 0; player.xmove = 0; player._x = _root['hitboxs' + h]._x + 30; } else { if (player.player1.hitTest(_root['hitboxs' + h]) && player._x < _root['hitboxs' + h]._x && player.xmove > 0) { player.hitleft = 0; player.hitright = 1; player.xmove = 0; player._x = _root['hitboxs' + h]._x - 30; } else { player.hitleft = 0; player.hitright = 0; } } ++h; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(2226); } else { if (exit2.hitTest(player)) { gotoAndPlay(2246); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2266); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2286); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; hideHitboxes(); } movieClip 1018 { frame 1 { stop(); onEnterFrame = function () { if (this.hitTest(_root.player.weaponstrike)) { lotto = random(7); if (lotto == 0) { _root.attachMovie('5coin', 'coin', 6); _root.coin._x = this._x; _root.coin._y = this._y; } else { if (lotto == 1 || lotto == 2) { _root.attachMovie('1coin', 'coin', 6); _root.coin._x = this._x; _root.coin._y = this._y; } else { if (lotto == 3 || lotto == 4) { _root.attachMovie('healthpoint', 'healthp', 6); _root.healthp._x = this._x; _root.healthp._y = this._y; } else { if (lotto == 5 || lotto == 6) { _root.attachMovie('magicpoint', 'magicp', 6); _root.magicp._x = this._x; _root.magicp._y = this._y; } } } } play(); } }; } frame 2 { onEnterFrame = function () {}; } frame 20 { stop(); this.unloadMovie(); } } frame 2213 { hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 6; solids = 8; stoppers = 4; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } h = 1; while (h <= solids) { if (h == 1) { player.hitleft = 0; player.hitright = 0; } if (player.player1.hitTest(_root['hitboxs' + h]) && player._x > _root['hitboxs' + h]._x && player.xmove < 0) { player.hitleft = 1; player.hitright = 0; player.xmove = 0; player._x = _root['hitboxs' + h]._x + 30; } else { if (player.player1.hitTest(_root['hitboxs' + h]) && player._x < _root['hitboxs' + h]._x && player.xmove > 0) { player.hitleft = 0; player.hitright = 1; player.xmove = 0; player._x = _root['hitboxs' + h]._x - 30; } else { player.hitleft = 0; player.hitright = 0; } } ++h; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(2226); } else { if (exit2.hitTest(player)) { gotoAndPlay(2246); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2266); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2286); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; hideHitboxes(); } frame 2226 { fade._x = vcam._x; fade._y = vcam._y; } frame 2241 { gotoAndStop(2163); } frame 2246 { fade._x = vcam._x; fade._y = vcam._y; } frame 2261 { gotoAndStop(2262); } frame 2262 { hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 9; solids = 7; stoppers = 6; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); if (_global.goteastplains3_fd == true) { fruitdrink.unloadMovie(); } onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } h = 1; while (h <= solids) { if (h == 1) { player.hitleft = 0; player.hitright = 0; } if (player.player1.hitTest(_root['hitboxs' + h]) && player._x > _root['hitboxs' + h]._x && player.xmove < 0) { player.hitleft = 1; player.hitright = 0; player.xmove = 0; player._x = _root['hitboxs' + h]._x + 30; } else { if (player.player1.hitTest(_root['hitboxs' + h]) && player._x < _root['hitboxs' + h]._x && player.xmove > 0) { player.hitleft = 0; player.hitright = 1; player.xmove = 0; player._x = _root['hitboxs' + h]._x - 30; } else { player.hitleft = 0; player.hitright = 0; } } ++h; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(2276); } else { if (exit2.hitTest(player)) { gotoAndPlay(2296); } else { if (exit3.hitTest(player)) { gotoAndPlay(2316); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2336); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (fruitdrink.hitTest(_root.player) && _global.fruitdrinks < 5) { _global.goteastplains3_fd = true; fruitdrink.nextFrame(); } if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; hideHitboxes(); } movieClip 1021 { } movieClip 1023 { } movieClip 1026 { frame 1 { this._visible = false; onEnterFrame = function () { if (this.hitTest(_root.player)) { _root.player._y = this._y + 55; _root.player.gravity = 1; } }; } } movieClip 1028 { } movieClip 1030 { } movieClip 1032 { } movieClip 1034 { } movieClip 1036 { frame 1 { hp = 21; facing = 1; } frame 2 { xmove = -8; if (facing == -1) { xmove *= -1; sprite._xscale = -100; } removeMovieClip(damagetext); moving = false; onthisframe = true; onEnterFrame = function () { i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { xmove *= -1; facing *= -1; sprite._xscale *= -1; if (this._x > _root['stopper' + i]._x) { this._x += 2; } else { this._x -= 2; } } ++i; } if (this.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 14; _root.player.gotoAndPlay(50); } if (this.hitTest(_root.player.weaponstrike)) { damage = _global.playerattack * 0.1 * random(3) + _global.playerattack - 2; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.icebeam)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.explosion)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.megabolt)) { damage = _global.playerbaseattack * 2.5; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.painwave)) { damage = _global.playerbaseattack * 4; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (moving == true) { this._x += xmove; } }; } frame 10 { if (facing == -1) { sprite._xscale = -100; } else { if (facing == 1) { sprite._xscale = 100; } } } frame 20 { if (facing == -1) { sprite._xscale = -100; } else { if (facing == 1) { sprite._xscale = 100; } } } frame 33 { moving = true; if (facing == -1) { gotoAndPlay(50); } } frame 47 { moving = false; gotoAndPlay(2); } frame 65 { moving = false; gotoAndPlay(2); } frame 75 { onEnterFrame = function () {}; this._x += 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(111); facing *= -1; } ++i; } } frame 76 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(112); facing *= -1; } ++i; } } frame 77 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(113); facing *= -1; } ++i; } } frame 78 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(114); facing *= -1; } ++i; } } frame 79 { this._x += 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(115); facing *= -1; } ++i; } } frame 80 { this._x += 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(116); facing *= -1; } ++i; } } frame 81 { this._x += 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(117); facing *= -1; } ++i; } } frame 82 { this._x += 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(118); facing *= -1; } ++i; } } frame 87 { if (hp <= 0) { gotoAndPlay(145); } } frame 88 { this._x -= 5; gotoAndPlay(2); } frame 110 { onEnterFrame = function () {}; this._x -= 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(76); facing *= -1; } ++i; } } frame 111 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(77); facing *= -1; } ++i; } } frame 112 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(78); facing *= -1; } ++i; } } frame 113 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(79); facing *= -1; } ++i; } } frame 114 { this._x -= 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(80); facing *= -1; } ++i; } } frame 115 { this._x -= 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(81); facing *= -1; } ++i; } } frame 116 { this._x -= 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(82); facing *= -1; } ++i; } } frame 117 { this._x -= 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(83); facing *= -1; } ++i; } } frame 122 { if (hp <= 0) { gotoAndPlay(145); } } frame 123 { this._x += 5; gotoAndPlay(2); } frame 145 { onthisframe = false; _global.playerexp += 5; _global.coinage += 6; _root.vcam.smallstatsbox.gainexp(); } frame 173 { stop(); this.unloadMovie(); } } frame 2263 { hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 9; solids = 7; stoppers = 6; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); if (_global.goteastplains3_fd == true) { fruitdrink.unloadMovie(); } onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } h = 1; while (h <= solids) { if (h == 1) { player.hitleft = 0; player.hitright = 0; } if (player.player1.hitTest(_root['hitboxs' + h]) && player._x > _root['hitboxs' + h]._x && player.xmove < 0) { player.hitleft = 1; player.hitright = 0; player.xmove = 0; player._x = _root['hitboxs' + h]._x + 30; } else { if (player.player1.hitTest(_root['hitboxs' + h]) && player._x < _root['hitboxs' + h]._x && player.xmove > 0) { player.hitleft = 0; player.hitright = 1; player.xmove = 0; player._x = _root['hitboxs' + h]._x - 30; } else { player.hitleft = 0; player.hitright = 0; } } ++h; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(2276); } else { if (exit2.hitTest(player)) { gotoAndPlay(2296); } else { if (exit3.hitTest(player)) { gotoAndPlay(2316); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2336); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (fruitdrink.hitTest(_root.player) && _global.fruitdrinks < 5) { _global.goteastplains3_fd = true; fruitdrink.nextFrame(); } if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; hideHitboxes(); } frame 2264 { stopAllSounds(); var music = new Sound(); music.attachSound('music_plains'); music.start(0, 99); hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 9; solids = 7; stoppers = 6; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); if (_global.goteastplains3_fd == true) { fruitdrink.unloadMovie(); } onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } h = 1; while (h <= solids) { if (h == 1) { player.hitleft = 0; player.hitright = 0; } if (player.player1.hitTest(_root['hitboxs' + h]) && player._x > _root['hitboxs' + h]._x && player.xmove < 0) { player.hitleft = 1; player.hitright = 0; player.xmove = 0; player._x = _root['hitboxs' + h]._x + 30; } else { if (player.player1.hitTest(_root['hitboxs' + h]) && player._x < _root['hitboxs' + h]._x && player.xmove > 0) { player.hitleft = 0; player.hitright = 1; player.xmove = 0; player._x = _root['hitboxs' + h]._x - 30; } else { player.hitleft = 0; player.hitright = 0; } } ++h; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(2276); } else { if (exit2.hitTest(player)) { gotoAndPlay(2296); } else { if (exit3.hitTest(player)) { gotoAndPlay(2316); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2336); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (fruitdrink.hitTest(_root.player) && _global.fruitdrinks < 5) { _global.goteastplains3_fd = true; fruitdrink.nextFrame(); } if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; hideHitboxes(); } frame 2276 { fade._x = vcam._x; fade._y = vcam._y; } frame 2291 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(2213); } frame 2296 { fade._x = vcam._x; fade._y = vcam._y; } frame 2311 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(2362); } frame 2316 { fade._x = vcam._x; fade._y = vcam._y; } frame 2331 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(2332); } frame 2332 { stopAllSounds(); var music = new Sound(); music.attachSound('music_dungeon'); music.start(0, 99); if (_global.goticebeam == true) { spellscroll.unloadMovie(); } hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 13; stoppers = 10; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(2346); } else { if (exit2.hitTest(player)) { gotoAndPlay(2366); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2386); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2406); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; hideHitboxes(); } movieClip 1038 { } movieClip 1040 { frame 1 { this._visible = false; } } movieClip 1043 { } movieClip 1045 { } movieClip 1046 { frame 1 { hp = 30; facing = 1; xmove = -5; ymove = -10; } frame 2 { stop(); if (facing == -1) { xmove = 5; sprite._xscale = -100; } removeMovieClip(damagetext); onthisframe = true; onEnterFrame = function () { i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { xmove *= -1; facing *= -1; sprite._xscale *= -1; if (this._x > _root['stopper' + i]._x) { this._x += 2; } else { this._x -= 2; } } ++i; } if (hitbox.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 18; _root.player.gotoAndPlay(50); } if (this.hitTest(_root.player.weaponstrike)) { damage = _global.playerattack * 0.1 * random(3) + _global.playerattack - 3; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.icebeam)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.explosion)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.megabolt)) { damage = _global.playerbaseattack * 2.5; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.painwave)) { damage = _global.playerbaseattack * 4; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } ++ymove; if (ymove > 9) { ymove = -9; } this._x += xmove; this._y += ymove; }; } frame 75 { onEnterFrame = function () {}; this._x += 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(111); facing *= -1; } ++i; } } frame 76 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(112); facing *= -1; } ++i; } } frame 77 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(113); facing *= -1; } ++i; } } frame 78 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(114); facing *= -1; } ++i; } } frame 79 { this._x += 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(115); facing *= -1; } ++i; } } frame 80 { this._x += 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(116); facing *= -1; } ++i; } } frame 81 { this._x += 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(117); facing *= -1; } ++i; } } frame 82 { this._x += 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(118); facing *= -1; } ++i; } } frame 87 { if (hp <= 0) { gotoAndPlay(145); } } frame 88 { this._x -= 5; gotoAndPlay(2); } frame 110 { onEnterFrame = function () {}; this._x -= 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(76); facing *= -1; } ++i; } } frame 111 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(77); facing *= -1; } ++i; } } frame 112 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(78); facing *= -1; } ++i; } } frame 113 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(79); facing *= -1; } ++i; } } frame 114 { this._x -= 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(80); facing *= -1; } ++i; } } frame 115 { this._x -= 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(81); facing *= -1; } ++i; } } frame 116 { this._x -= 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(82); facing *= -1; } ++i; } } frame 117 { this._x -= 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(83); facing *= -1; } ++i; } } frame 122 { if (hp <= 0) { gotoAndPlay(145); } } frame 123 { this._x += 5; gotoAndPlay(2); } frame 145 { onthisframe = false; _global.playerexp += 8; _global.coinage += 11; _root.vcam.smallstatsbox.gainexp(); } frame 168 { stop(); this.unloadMovie(); } } movieClip 1051 { } movieClip 1053 { } movieClip 1060 { } movieClip 1064 { frame 1 { hp = 17; facing = 1; } frame 2 { xmove = -6; if (facing == -1) { xmove *= -1; sprite._xscale = -100; } removeMovieClip(damagetext); moving = false; onthisframe = true; onEnterFrame = function () { i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { xmove *= -1; facing *= -1; sprite._xscale *= -1; if (this._x > _root['stopper' + i]._x) { this._x += 2; } else { this._x -= 2; } } ++i; } if (hitbox.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 16; _root.player.gotoAndPlay(50); } if (this.hitTest(_root.player.weaponstrike)) { damage = _global.playerattack * 0.1 * random(3) + _global.playerattack - 2; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(120); } else { gotoAndPlay(160); } } if (this.hitTest(_root.magiccaster.icebeam)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(120); } else { gotoAndPlay(160); } } if (this.hitTest(_root.magiccaster.explosion)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(120); } else { gotoAndPlay(160); } } if (this.hitTest(_root.magiccaster.megabolt)) { damage = _global.playerbaseattack * 2.5; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(120); } else { gotoAndPlay(160); } } if (this.hitTest(_root.magiccaster.painwave)) { damage = _global.playerbaseattack * 4; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(120); } else { gotoAndPlay(160); } } if (moving == true) { this._x += xmove; } }; } frame 25 { moving = true; if (facing == 1) { gotoAndPlay(70); } } frame 26 { if (facing == 1) { gotoAndPlay(71); } } frame 27 { if (facing == 1) { gotoAndPlay(72); } } frame 28 { if (facing == 1) { gotoAndPlay(73); } } frame 29 { if (facing == 1) { gotoAndPlay(74); } } frame 30 { if (facing == 1) { gotoAndPlay(75); } } frame 31 { if (facing == 1) { gotoAndPlay(76); } } frame 32 { if (facing == 1) { gotoAndPlay(77); } } frame 33 { if (facing == 1) { gotoAndPlay(78); } } frame 34 { if (facing == 1) { gotoAndPlay(79); } } frame 35 { if (facing == 1) { gotoAndPlay(80); } } frame 36 { if (facing == 1) { gotoAndPlay(81); } } frame 37 { if (facing == 1) { gotoAndPlay(82); } } frame 38 { if (facing == 1) { gotoAndPlay(83); } } frame 39 { if (facing == 1) { gotoAndPlay(84); } } frame 40 { if (facing == 1) { gotoAndPlay(85); } } frame 41 { if (facing == 1) { gotoAndPlay(86); } } frame 42 { if (facing == 1) { gotoAndPlay(87); } } frame 43 { if (facing == 1) { gotoAndPlay(88); } } frame 44 { if (facing == 1) { gotoAndPlay(89); } } frame 45 { if (facing == 1) { gotoAndPlay(90); } } frame 46 { if (facing == 1) { gotoAndPlay(91); } } frame 47 { if (facing == 1) { gotoAndPlay(92); } } frame 48 { if (facing == 1) { gotoAndPlay(93); } } frame 49 { if (facing == 1) { gotoAndPlay(94); } } frame 50 { if (facing == 1) { gotoAndPlay(95); } } frame 51 { if (facing == 1) { gotoAndPlay(96); } } frame 52 { if (facing == 1) { gotoAndPlay(97); } } frame 53 { if (facing == 1) { gotoAndPlay(98); } } frame 54 { if (facing == 1) { gotoAndPlay(99); } } frame 55 { if (facing == 1) { gotoAndPlay(100); } } frame 56 { moving = false; gotoAndPlay(2); } frame 70 { moving = true; if (facing == -1) { gotoAndPlay(25); } } frame 71 { if (facing == -1) { gotoAndPlay(26); } } frame 72 { if (facing == -1) { gotoAndPlay(27); } } frame 73 { if (facing == -1) { gotoAndPlay(28); } } frame 74 { if (facing == -1) { gotoAndPlay(29); } } frame 75 { if (facing == -1) { gotoAndPlay(30); } } frame 76 { if (facing == -1) { gotoAndPlay(31); } } frame 77 { if (facing == -1) { gotoAndPlay(32); } } frame 78 { if (facing == -1) { gotoAndPlay(33); } } frame 79 { if (facing == -1) { gotoAndPlay(34); } } frame 80 { if (facing == -1) { gotoAndPlay(35); } } frame 81 { if (facing == -1) { gotoAndPlay(36); } } frame 82 { if (facing == -1) { gotoAndPlay(37); } } frame 83 { if (facing == -1) { gotoAndPlay(38); } } frame 84 { if (facing == -1) { gotoAndPlay(39); } } frame 85 { if (facing == -1) { gotoAndPlay(40); } } frame 86 { if (facing == -1) { gotoAndPlay(41); } } frame 87 { if (facing == -1) { gotoAndPlay(42); } } frame 88 { if (facing == -1) { gotoAndPlay(43); } } frame 89 { if (facing == -1) { gotoAndPlay(44); } } frame 90 { if (facing == -1) { gotoAndPlay(45); } } frame 91 { if (facing == -1) { gotoAndPlay(46); } } frame 92 { if (facing == -1) { gotoAndPlay(47); } } frame 93 { if (facing == -1) { gotoAndPlay(48); } } frame 94 { if (facing == -1) { gotoAndPlay(49); } } frame 95 { if (facing == -1) { gotoAndPlay(50); } } frame 96 { if (facing == -1) { gotoAndPlay(51); } } frame 97 { if (facing == -1) { gotoAndPlay(52); } } frame 98 { if (facing == -1) { gotoAndPlay(53); } } frame 99 { if (facing == -1) { gotoAndPlay(54); } } frame 100 { if (facing == -1) { gotoAndPlay(55); } } frame 101 { moving = false; gotoAndPlay(2); } frame 120 { onEnterFrame = function () {}; this._x += 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(161); facing *= -1; } ++i; } } frame 121 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(162); facing *= -1; } ++i; } } frame 122 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(163); facing *= -1; } ++i; } } frame 123 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(164); facing *= -1; } ++i; } } frame 124 { this._x += 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(165); facing *= -1; } ++i; } } frame 125 { this._x += 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(166); facing *= -1; } ++i; } } frame 126 { this._x += 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(167); facing *= -1; } ++i; } } frame 127 { this._x += 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(168); facing *= -1; } ++i; } } frame 132 { if (hp <= 0) { gotoAndPlay(200); } } frame 133 { this._x -= 5; gotoAndPlay(2); } frame 160 { onEnterFrame = function () {}; this._x -= 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(121); facing *= -1; } ++i; } } frame 161 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(122); facing *= -1; } ++i; } } frame 162 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(123); facing *= -1; } ++i; } } frame 163 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(124); facing *= -1; } ++i; } } frame 164 { this._x -= 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(125); facing *= -1; } ++i; } } frame 165 { this._x -= 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(126); facing *= -1; } ++i; } } frame 166 { this._x -= 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(127); facing *= -1; } ++i; } } frame 167 { this._x -= 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(128); facing *= -1; } ++i; } } frame 172 { if (hp <= 0) { gotoAndPlay(200); } } frame 173 { this._x += 5; gotoAndPlay(2); } frame 200 { onthisframe = false; _global.playerexp += 5; _global.coinage += 7; _root.vcam.smallstatsbox.gainexp(); onEnterFrame = function () {}; } frame 242 { stop(); this.unloadMovie(); } } movieClip 1076 { frame 1 { stop(); onEnterFrame = function () { if (this.hitTest(_root.player.weaponstrike)) { lotto = random(7); if (lotto == 0) { _root.attachMovie('5coin', 'coin', 6); _root.coin._x = this._x; _root.coin._y = this._y; } else { if (lotto == 1 || lotto == 2) { _root.attachMovie('1coin', 'coin', 6); _root.coin._x = this._x; _root.coin._y = this._y; } else { if (lotto == 3 || lotto == 4) { _root.attachMovie('healthpoint', 'healthp', 6); _root.healthp._x = this._x; _root.healthp._y = this._y; } else { if (lotto == 5 || lotto == 6) { _root.attachMovie('magicpoint', 'magicp', 6); _root.magicp._x = this._x; _root.magicp._y = this._y; } } } } play(); } }; } frame 2 { onEnterFrame = function () {}; } frame 20 { stop(); this.unloadMovie(); } } movieClip 1080 { frame 1 { stop(); onEnterFrame = function () { if (this.hitTest(_root.player.player1)) { _global.goticebeam = true; play(); } }; } frame 51 { this.unloadMovie(); } } frame 2346 { fade._x = vcam._x; fade._y = vcam._y; } frame 2361 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(2264); } frame 2362 { hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 2; solids = 4; stoppers = 4; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } h = 1; while (h <= solids) { if (h == 1) { player.hitleft = 0; player.hitright = 0; } if (player.player1.hitTest(_root['hitboxs' + h]) && player._x > _root['hitboxs' + h]._x && player.xmove < 0) { player.hitleft = 1; player.hitright = 0; player.xmove = 0; player._x = _root['hitboxs' + h]._x + 30; } else { if (player.player1.hitTest(_root['hitboxs' + h]) && player._x < _root['hitboxs' + h]._x && player.xmove > 0) { player.hitleft = 0; player.hitright = 1; player.xmove = 0; player._x = _root['hitboxs' + h]._x - 30; } else { player.hitleft = 0; player.hitright = 0; } } ++h; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(2376); } else { if (exit2.hitTest(player)) { gotoAndPlay(2396); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2416); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2436); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; hideHitboxes(); } movieClip 1083 { } movieClip 1085 { } movieClip 1087 { } frame 2363 { hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 2; solids = 4; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } h = 1; while (h <= solids) { if (h == 1) { player.hitleft = 0; player.hitright = 0; } if (player.player1.hitTest(_root['hitboxs' + h]) && player._x > _root['hitboxs' + h]._x && player.xmove < 0) { player.hitleft = 1; player.hitright = 0; player.xmove = 0; player._x = _root['hitboxs' + h]._x + 30; } else { if (player.player1.hitTest(_root['hitboxs' + h]) && player._x < _root['hitboxs' + h]._x && player.xmove > 0) { player.hitleft = 0; player.hitright = 1; player.xmove = 0; player._x = _root['hitboxs' + h]._x - 30; } else { player.hitleft = 0; player.hitright = 0; } } ++h; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(2376); } else { if (exit2.hitTest(player)) { gotoAndPlay(2396); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2416); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2436); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; hideHitboxes(); } frame 2376 { fade._x = vcam._x; fade._y = vcam._y; } frame 2391 { _global.statboxisup = false; _global.dialogisup = false; gotoAndStop(2263); } frame 2396 { fade._x = vcam._x; fade._y = vcam._y; } frame 2411 { _global.statboxisup = false; _global.dialogisup = false; gotoAndStop(2412); } frame 2412 { hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 8; stoppers = 6; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(2426); } else { if (exit2.hitTest(player)) { gotoAndPlay(2446); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2466); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2486); _global.telep1open = true; } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; hideHitboxes(); } movieClip 1092 { } movieClip 1093 { } movieClip 1113 { frame 1 { hp = 15; facing = 1; } frame 2 { stop(); xmove = -9; if (facing == -1) { xmove *= -1; sprite._xscale *= -1; } removeMovieClip(damagetext); onthisframe = true; onEnterFrame = function () { if (onthisframe == true) { i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { xmove *= -1; sprite._xscale *= -1; facing *= -1; if (this._x > _root['stopper' + i]._x) { this._x += 2; } else { this._x -= 2; } } ++i; } if (this.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 13; _root.player.gotoAndPlay(50); } if (this.hitTest(_root.player.weaponstrike)) { damage = _global.playerattack * 0.1 * random(3) + _global.playerattack - 2; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.icebeam)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.explosion)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.megabolt)) { damage = _global.playerbaseattack * 2.5; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.painwave)) { damage = _global.playerbaseattack * 4; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } this._x += xmove; } }; } frame 3 { this._x += 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(41); facing *= -1; } ++i; } onEnterFrame = function () {}; } frame 4 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(42); facing *= -1; } ++i; } } frame 5 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(43); facing *= -1; } ++i; } } frame 6 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(44); facing *= -1; } ++i; } } frame 7 { this._x += 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(45); facing *= -1; } ++i; } } frame 8 { this._x += 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(46); facing *= -1; } ++i; } } frame 9 { this._x += 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(47); facing *= -1; } ++i; } } frame 10 { this._x += 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(48); facing *= -1; } ++i; } } frame 15 { if (hp <= 0) { gotoAndPlay(80); } } frame 16 { this._x -= 5; gotoAndStop(2); } frame 40 { this._x -= 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(4); facing *= -1; } ++i; } onEnterFrame = function () {}; } frame 41 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(5); facing *= -1; } ++i; } } frame 42 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(6); facing *= -1; } ++i; } } frame 43 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(7); facing *= -1; } ++i; } } frame 44 { this._x -= 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(8); facing *= -1; } ++i; } } frame 45 { this._x -= 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(9); facing *= -1; } ++i; } } frame 46 { this._x -= 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(10); facing *= -1; } ++i; } } frame 47 { this._x -= 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(11); facing *= -1; } ++i; } } frame 52 { if (hp <= 0) { gotoAndPlay(80); } } frame 53 { this._x += 5; gotoAndStop(2); } frame 80 { onthisframe = false; _global.playerexp += 3; _global.coinage += 4; _root.vcam.smallstatsbox.gainexp(); } frame 108 { stop(); this.unloadMovie(); } } frame 2413 { hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 8; stoppers = 6; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(2426); } else { if (exit2.hitTest(player)) { gotoAndPlay(2446); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2466); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2486); _global.telep1open = true; } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; hideHitboxes(); } frame 2414 { stopAllSounds(); var music = new Sound(); music.attachSound('music_plains'); music.start(0, 99); hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 8; stoppers = 6; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(2426); } else { if (exit2.hitTest(player)) { gotoAndPlay(2446); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2466); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2486); _global.telep1open = true; } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; hideHitboxes(); } frame 2415 { stopAllSounds(); var music = new Sound(); music.attachSound('music_plains'); music.start(0, 99); hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 8; stoppers = 6; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(2426); } else { if (exit2.hitTest(player)) { gotoAndPlay(2446); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2466); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2486); _global.telep1open = true; } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; hideHitboxes(); } frame 2426 { fade._x = vcam._x; fade._y = vcam._y; } frame 2441 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(2363); } frame 2446 { fade._x = vcam._x; fade._y = vcam._y; } frame 2461 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(2502); } frame 2466 { fade._x = vcam._x; fade._y = vcam._y; } frame 2481 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(3797); } frame 2486 { fade._x = vcam._x; fade._y = vcam._y; } frame 2501 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(1112); } frame 2502 { hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 6; solids = 8; stoppers = 6; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } h = 1; while (h <= solids) { if (h == 1) { player.hitleft = 0; player.hitright = 0; } if (player.player1.hitTest(_root['hitboxs' + h]) && player._x > _root['hitboxs' + h]._x && player.xmove < 0) { player.hitleft = 1; player.hitright = 0; player.xmove = 0; player._x = _root['hitboxs' + h]._x + 30; } else { if (player.player1.hitTest(_root['hitboxs' + h]) && player._x < _root['hitboxs' + h]._x && player.xmove > 0) { player.hitleft = 0; player.hitright = 1; player.xmove = 0; player._x = _root['hitboxs' + h]._x - 30; } else { player.hitleft = 0; player.hitright = 0; } } ++h; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(2516); } else { if (exit2.hitTest(player)) { gotoAndPlay(2536); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2556); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2576); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; hideHitboxes(); } frame 2503 { hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 6; solids = 8; stoppers = 6; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } h = 1; while (h <= solids) { if (h == 1) { player.hitleft = 0; player.hitright = 0; } if (player.player1.hitTest(_root['hitboxs' + h]) && player._x > _root['hitboxs' + h]._x && player.xmove < 0) { player.hitleft = 1; player.hitright = 0; player.xmove = 0; player._x = _root['hitboxs' + h]._x + 30; } else { if (player.player1.hitTest(_root['hitboxs' + h]) && player._x < _root['hitboxs' + h]._x && player.xmove > 0) { player.hitleft = 0; player.hitright = 1; player.xmove = 0; player._x = _root['hitboxs' + h]._x - 30; } else { player.hitleft = 0; player.hitright = 0; } } ++h; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(2516); } else { if (exit2.hitTest(player)) { gotoAndPlay(2536); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2556); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2576); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; hideHitboxes(); } frame 2516 { fade._x = vcam._x; fade._y = vcam._y; } frame 2531 { gotoAndStop(2413); } frame 2536 { fade._x = vcam._x; fade._y = vcam._y; } frame 2551 { gotoAndStop(2552); } frame 2552 { hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 18; stoppers = 8; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); if (_global.goteastplains7_fd == true) { fruitdrink.unloadMovie(); } onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(2566); } else { if (exit2.hitTest(player)) { gotoAndPlay(2586); } else { if (exit3.hitTest(player)) { gotoAndPlay(2606); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2626); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } if (fruitdrink.hitTest(_root.player) && _global.fruitdrinks < 5) { _global.goteastplains7_fd = true; fruitdrink.nextFrame(); } }; hideHitboxes(); } movieClip 1116 { } movieClip 1119 { } movieClip 1121 { } movieClip 1122 { } movieClip 1124 { } movieClip 1125 { frame 1 { hp = 33; facing = 1; } frame 2 { xmove = -7; if (facing == -1) { xmove *= -1; sprite._xscale = -100; } removeMovieClip(damagetext); onthisframe = true; onEnterFrame = function () { i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { xmove *= -1; facing *= -1; sprite._xscale *= -1; if (this._x > _root['stopper' + i]._x) { this._x += 2; } else { this._x -= 2; } } ++i; } if (this.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 19; _root.player.gotoAndPlay(50); } if (this.hitTest(_root.player.weaponstrike)) { damage = _global.playerattack * 0.1 * random(3) + _global.playerattack - 3; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.icebeam)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.explosion)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.megabolt)) { damage = _global.playerbaseattack * 2.5; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.painwave)) { damage = _global.playerbaseattack * 4; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } this._x += xmove; }; } frame 25 { if (facing == -1) { gotoAndPlay(50); } } frame 39 { gotoAndPlay(2); } frame 64 { gotoAndPlay(2); } frame 75 { onEnterFrame = function () {}; this._x += 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(111); facing *= -1; } ++i; } } frame 76 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(112); facing *= -1; } ++i; } } frame 77 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(113); facing *= -1; } ++i; } } frame 78 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(114); facing *= -1; } ++i; } } frame 79 { this._x += 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(115); facing *= -1; } ++i; } } frame 80 { this._x += 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(116); facing *= -1; } ++i; } } frame 81 { this._x += 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(117); facing *= -1; } ++i; } } frame 82 { this._x += 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(118); facing *= -1; } ++i; } } frame 87 { if (hp <= 0) { gotoAndPlay(145); } } frame 88 { this._x -= 5; gotoAndPlay(2); } frame 110 { onEnterFrame = function () {}; this._x -= 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(76); facing *= -1; } ++i; } } frame 111 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(77); facing *= -1; } ++i; } } frame 112 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(78); facing *= -1; } ++i; } } frame 113 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(79); facing *= -1; } ++i; } } frame 114 { this._x -= 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(80); facing *= -1; } ++i; } } frame 115 { this._x -= 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(81); facing *= -1; } ++i; } } frame 116 { this._x -= 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(82); facing *= -1; } ++i; } } frame 117 { this._x -= 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(83); facing *= -1; } ++i; } } frame 122 { if (hp <= 0) { gotoAndPlay(145); } } frame 123 { this._x += 5; gotoAndPlay(2); } frame 145 { onthisframe = false; _global.playerexp += 9; _global.coinage += 10; _root.vcam.smallstatsbox.gainexp(); } frame 170 { stop(); this.unloadMovie(); } } frame 2553 { hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 18; stoppers = 8; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); if (_global.goteastplains7_fd == true) { fruitdrink.unloadMovie(); } onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(2566); } else { if (exit2.hitTest(player)) { gotoAndPlay(2586); } else { if (exit3.hitTest(player)) { gotoAndPlay(2606); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2626); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } if (fruitdrink.hitTest(_root.player) && _global.fruitdrinks < 5) { _global.goteastplains7_fd = true; fruitdrink.nextFrame(); } }; hideHitboxes(); } frame 2554 { stopAllSounds(); var music = new Sound(); music.attachSound('music_plains'); music.start(0, 99); hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 18; stoppers = 8; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); if (_global.goteastplains7_fd == true) { fruitdrink.unloadMovie(); } onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(2566); } else { if (exit2.hitTest(player)) { gotoAndPlay(2586); } else { if (exit3.hitTest(player)) { gotoAndPlay(2606); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2626); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } if (fruitdrink.hitTest(_root.player) && _global.fruitdrinks < 5) { _global.goteastplains7_fd = true; fruitdrink.nextFrame(); } }; hideHitboxes(); } frame 2566 { fade._x = vcam._x; fade._y = vcam._y; } frame 2581 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(2503); } frame 2586 { fade._x = vcam._x; fade._y = vcam._y; } frame 2601 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(3747); } frame 2606 { fade._x = vcam._x; fade._y = vcam._y; } frame 2621 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(2622); } frame 2622 { stopAllSounds(); var music = new Sound(); music.attachSound('music_dungeon'); music.start(0, 99); hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 12; stoppers = 10; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); if (_global.gotepcavedungeon1_fd == true) { fruitdrink.unloadMovie(); } if (_global.gotepcavedungeon1_gt == true) { greentea.unloadMovie(); } if (_global.gotepcavedungeon1_safe == true) { safe.unloadMovie(); } onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(2636); } else { if (exit2.hitTest(player)) { gotoAndPlay(2656); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2676); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2696); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } if (fruitdrink.hitTest(_root.player) && _global.fruitdrinks < 5) { _global.gotepcavedungeon1_fd = true; fruitdrink.nextFrame(); } if (greentea.hitTest(_root.player) && _global.greenteas < 5) { _global.gotepcavedungeon1_gt = true; greentea.nextFrame(); } if (safe.hitTest(_root.player.weaponstrike) && _global.wolfbeaten == true) { _root.attachMovie('mpup', 'mpup', 13); mpup._x = safe._x; mpup._y = safe._y; _global.gotepcavedungeon1_safe = true; safe.play(); } }; hideHitboxes(); } movieClip 1128 { } movieClip 1130 { } movieClip 1131 { } movieClip 1146 { frame 1 { hp = 32; facing = 1; } frame 2 { removeMovieClip(damagetext); onthisframe = true; onEnterFrame = function () { if (_root.player._x < this._x) { sprite._xscale = 100; facing = 1; } else { if (_root.player._x > this._x) { sprite._xscale = -100; facing = -1; } } if (this.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 17; _root.player.gotoAndPlay(50); } if (this.hitTest(_root.player.weaponstrike)) { damage = _global.playerattack * 0.1 * random(3) + _global.playerattack - 3; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.icebeam)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.explosion)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.megabolt)) { damage = _global.playerbaseattack * 2.5; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.painwave)) { damage = _global.playerbaseattack * 4; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } }; } frame 40 { removeMovieClip(damagetext); onthisframe = true; onEnterFrame = function () { if (_root.player._x < this._x) { sprite._xscale = 100; facing = 1; } else { if (_root.player._x > this._x) { sprite._xscale = -100; facing = -1; } } if (this.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 17; _root.player.gotoAndPlay(50); } if (this.hitTest(_root.player.weaponstrike)) { damage = _global.playerattack * 0.1 * random(3) + _global.playerattack - 3; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.icebeam)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.explosion)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.megabolt)) { damage = _global.playerbaseattack * 2.25; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.painwave)) { damage = _global.playerbaseattack * 4; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } }; } frame 49 { if (this.hitTest(_root.vcam)) { _root.attachMovie('wormfireball', 'wormfireball', 10); _root.wormfireball.going = facing; _root.wormfireball._x = this._x - 10; _root.wormfireball._y = this._y - 15; } } frame 59 { gotoAndPlay(2); } frame 75 { onEnterFrame = function () {}; } frame 87 { if (hp <= 0) { gotoAndPlay(145); } } frame 88 { gotoAndPlay(2); } frame 110 { onEnterFrame = function () {}; } frame 122 { if (hp <= 0) { gotoAndPlay(145); } } frame 123 { gotoAndPlay(2); } frame 145 { onthisframe = false; _global.playerexp += 7; _global.coinage += 8; _root.vcam.smallstatsbox.gainexp(); } frame 167 { stop(); this.unloadMovie(); } } frame 2623 { hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; removeMovieClip(wormfireball); player.gravity = 0; platforms = 12; stoppers = 10; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); if (_global.gotepcavedungeon1_fd == true) { fruitdrink.unloadMovie(); } if (_global.gotepcavedungeon1_gt == true) { greentea.unloadMovie(); } if (_global.gotepcavedungeon1_safe == true) { safe.unloadMovie(); } onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(2636); } else { if (exit2.hitTest(player)) { gotoAndPlay(2656); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2676); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2696); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } if (fruitdrink.hitTest(_root.player) && _global.fruitdrinks < 5) { _global.gotepcavedungeon1_fd = true; fruitdrink.nextFrame(); } if (greentea.hitTest(_root.player) && _global.greenteas < 5) { _global.gotepcavedungeon1_gt = true; greentea.nextFrame(); } if (safe.hitTest(_root.player.weaponstrike) && _global.wolfbeaten == true) { _root.attachMovie('mpup', 'mpup', 13); mpup._x = safe._x; mpup._y = safe._y; _global.gotepcavedungeon1_safe = true; safe.play(); } }; hideHitboxes(); } frame 2636 { fade._x = vcam._x; fade._y = vcam._y; } frame 2651 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(2554); } frame 2656 { fade._x = vcam._x; fade._y = vcam._y; } frame 2671 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(2672); } frame 2672 { _global.savedat = 3; removeMovieClip(wormfireball); hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 12; stoppers = 7; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); if (_global.gotcavedungeon2_fd == true) { fruitdrink.unloadMovie(); } if (_global.gotcavedungeon2_gt == true) { greentea.unloadMovie(); } onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(2686); } else { if (exit2.hitTest(player)) { gotoAndPlay(2706); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2726); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2746); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (fruitdrink.hitTest(_root.player) && _global.fruitdrinks < 5) { _global.gotcavedungeon2_fd = true; fruitdrink.nextFrame(); } if (greentea.hitTest(_root.player) && _global.greenteas < 5) { _global.gotcavedungeon2_gt = true; greentea.nextFrame(); } if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; hideHitboxes(); } frame 2673 { _global.savedat = 3; hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 12; stoppers = 7; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); if (_global.gotcavedungeon2_fd == true) { fruitdrink.unloadMovie(); } if (_global.gotcavedungeon2_gt == true) { greentea.unloadMovie(); } onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(2686); } else { if (exit2.hitTest(player)) { gotoAndPlay(2706); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2726); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2746); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (fruitdrink.hitTest(_root.player) && _global.fruitdrinks < 5) { _global.gotcavedungeon2_fd = true; fruitdrink.nextFrame(); } if (greentea.hitTest(_root.player) && _global.greenteas < 5) { _global.gotcavedungeon2_gt = true; greentea.nextFrame(); } if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; hideHitboxes(); } frame 2686 { fade._x = vcam._x; fade._y = vcam._y; } frame 2701 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(2623); } frame 2706 { fade._x = vcam._x; fade._y = vcam._y; } frame 2721 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(2722); } frame 2722 { if (_global.cyclopsbeaten == true) { eventhb.unloadMovie(); } removeMovieClip(wormfireball); hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 8; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(2736); } else { if (eventhb.hitTest(player)) { gotoAndPlay(2761); } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; hideHitboxes(); } movieClip 1158 { } movieClip 1160 { frame 1 { this._visible = false; } } frame 2723 { stopAllSounds(); var music = new Sound(); music.attachSound('music_boss'); music.start(0, 99); hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 8; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; bossdead = false; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(2736); } else { if (exit2.hitTest(player)) { gotoAndPlay(2756); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2776); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(2796); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } if (bossdead == true) { gotoAndPlay(3271); } }; hideHitboxes(); } movieClip 1163 { } movieClip 1166 { } movieClip 1168 { } movieClip 1169 { } movieClip 1171 { } movieClip 1173 { } movieClip 1175 { } movieClip 1176 { } movieClip 1177 { } movieClip 1185 { frame 1 { hp = 150; facing = 1; } frame 2 { xmove = -4; if (facing == -1) { xmove *= -1; sprite._xscale = -100; } removeMovieClip(damagetext); moving = true; onthisframe = true; onEnterFrame = function () { i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { xmove *= -1; facing *= -1; sprite._xscale *= -1; if (this._x > _root['stopper' + i]._x) { this._x += 2; } else { this._x -= 2; } } ++i; } if (this.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 20; _root.player.gotoAndPlay(50); } if (hitbox.hitTest(_root.player.weaponstrike)) { damage = _global.playerattack * 0.1 * random(3) + _global.playerattack - 4; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; gotoAndPlay(145); } if (this.hitTest(_root.magiccaster.icebeam)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; gotoAndPlay(145); } if (this.hitTest(_root.magiccaster.explosion)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; gotoAndPlay(145); } if (this.hitTest(_root.magiccaster.megabolt)) { damage = _global.playerbaseattack * 2.5; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; gotoAndPlay(145); } if (this.hitTest(_root.magiccaster.painwave)) { damage = _global.playerbaseattack * 4; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; gotoAndPlay(145); } if (moving == true) { this._x += xmove; } }; } frame 65 { moving = false; if (facing == -1) { sprite._xscale = -100; } else { if (facing == 1) { sprite._xscale = 100; } } } frame 102 { _root.attachMovie('fallingrock', 'rock1', 7); _root.attachMovie('fallingrock', 'rock2', 8); _root.attachMovie('fallingrock', 'rock3', 9); _root.rock1._y = _root.vcam._y - 200; _root.rock2._y = _root.vcam._y - 200; _root.rock3._y = _root.vcam._y - 200; lotto = random(2); if (lotto == 1) { _root.rock1._x = _root.vcam._x - 220; } else { _root.rock1._x = _root.vcam._x - 160; } lotto = random(2); if (lotto == 1) { _root.rock2._x = _root.vcam._x - 15; } else { _root.rock2._x = _root.vcam._x + 5; } lotto = random(2); if (lotto == 1) { _root.rock3._x = _root.vcam._x + 140; } else { _root.rock3._x = _root.vcam._x + 200; } } frame 141 { gotoAndPlay(2); } frame 145 { onEnterFrame = function () {}; if (hp <= 0) { gotoAndPlay(230); } } frame 182 { _root.attachMovie('fallingrock', 'rock1', 7); _root.attachMovie('fallingrock', 'rock2', 8); _root.attachMovie('fallingrock', 'rock3', 9); _root.rock1._y = _root.vcam._y - 200; _root.rock2._y = _root.vcam._y - 200; _root.rock3._y = _root.vcam._y - 200; lotto = random(2); if (lotto == 1) { _root.rock1._x = _root.vcam._x - 220; } else { _root.rock1._x = _root.vcam._x - 160; } lotto = random(2); if (lotto == 1) { _root.rock2._x = _root.vcam._x - 15; } else { _root.rock2._x = _root.vcam._x + 5; } lotto = random(2); if (lotto == 1) { _root.rock3._x = _root.vcam._x + 140; } else { _root.rock3._x = _root.vcam._x + 200; } } frame 221 { gotoAndPlay(2); } frame 230 { onthisframe = false; onEnterFrame = function () {}; _global.playerexp += 70; _global.coinage += 150; _root.vcam.smallstatsbox.gainexp(); } frame 330 { stop(); _root.bossdead = true; this.unloadMovie(); } } frame 2724 { _global.cyclopsbeaten = true; stopAllSounds(); var music = new Sound(); music.attachSound('music_dungeon'); music.start(0, 99); hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 8; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(2736); } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; hideHitboxes(); } frame 2736 { fade._x = vcam._x; fade._y = vcam._y; } frame 2751 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(2673); } frame 2761 { fade._x = vcam._x; fade._y = vcam._y; bg1._x = vcam._x; bg1._y = vcam._y; onEnterFrame = function () {}; } frame 2781 { stopAllSounds(); } frame 2797 { bg1._x = vcam._x; bg1._y = vcam._y; } frame 2908 { stop(); _global.dialogisup = true; _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 2; _root.dialog.line1 = ':Cyclops: Come here, little girl! I\'m gonna'; _root.dialog.line2 = 'grind your skin into delicious SkinMEAL using'; _root.dialog.line3 = 'my patented SkinMEAL machine!'; _root.dialog.line4 = ''; _root.dialog.line5 = ''; _root.dialog.line6 = ':Layla: That\'s not likely to happen after I'; _root.dialog.line7 = 'blow your head off, foul beast!'; _root.dialog.line8 = ''; _root.dialog.line9 = ''; _root.dialog.line10 = ''; onEnterFrame = function () { if (_global.dialogisup == false) { play(); } }; } frame 3016 { stop(); _global.dialogisup = true; _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 2; _root.dialog.line1 = ':Cyclops: Bwa ha ha! What a feeble attempt to'; _root.dialog.line2 = 'harm me! Prepare to be ground meat product,'; _root.dialog.line3 = 'weak child!'; _root.dialog.line4 = ''; _root.dialog.line5 = ''; _root.dialog.line6 = ':Layla: Shut up and die, asshole!'; _root.dialog.line7 = ''; _root.dialog.line8 = ''; _root.dialog.line9 = ''; _root.dialog.line10 = ''; onEnterFrame = function () { if (_global.dialogisup == false) { play(); } }; } frame 3202 { stop(); _global.dialogisup = true; _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 2; _root.dialog.line1 = ':Red Mage: Hey, ugly. Leave the girl alone or'; _root.dialog.line2 = 'you\'ll know a new meaning of the word ground'; _root.dialog.line3 = 'meat.'; _root.dialog.line4 = ''; _root.dialog.line5 = ''; _root.dialog.line6 = ':Cyclops: Oooh, goody! More skin to add to my'; _root.dialog.line7 = 'latest batch of nutritious SkinMEAL!'; _root.dialog.line8 = ''; _root.dialog.line9 = ''; _root.dialog.line10 = ''; onEnterFrame = function () { if (_global.dialogisup == false) { play(); } }; } frame 3254 { stopAllSounds(); } frame 3268 { gotoAndStop(2723); } frame 3271 { removeMovieClip(rock1); removeMovieClip(rock2); removeMovieClip(rock3); onEnterFrame = function () {}; } frame 3291 { stopAllSounds(); } frame 3409 { stop(); _global.dialogisup = true; _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 2; _root.dialog.line1 = ':Layla: Hey, I didn\'t ask for your help! I was'; _root.dialog.line2 = 'gonna take out that nasty and mount his'; _root.dialog.line3 = 'severed head on my bedroom wall!'; _root.dialog.line4 = ''; _root.dialog.line5 = ''; _root.dialog.line6 = ':Red Mage: Are you nuts? You were two seconds'; _root.dialog.line7 = 'away from being lunch meat for a one-eyed,'; _root.dialog.line8 = 'overgrown monstrosity.'; _root.dialog.line9 = ''; _root.dialog.line10 = ''; onEnterFrame = function () { if (_global.dialogisup == false) { play(); } }; } frame 3447 { stop(); _global.dialogisup = true; _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 3; _root.dialog.line1 = ':Layla: Hmmph! What do you know?'; _root.dialog.line2 = ''; _root.dialog.line3 = ''; _root.dialog.line4 = ''; _root.dialog.line5 = ''; _root.dialog.line6 = ':Red Mage: All I know is that if something had'; _root.dialog.line7 = 'happened to you, your father would have had my'; _root.dialog.line8 = 'ass on a silver platter. So come on, princess.'; _root.dialog.line9 = 'Let\'s get you back home.'; _root.dialog.line10 = ''; _root.dialog.line11 = ':Layla: Whatever.'; _root.dialog.line12 = ''; _root.dialog.line13 = ''; _root.dialog.line14 = ''; _root.dialog.line15 = ''; onEnterFrame = function () { if (_global.dialogisup == false) { play(); } }; } frame 3577 { stop(); _global.dialogisup = true; _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 1; _root.dialog.line1 = ':Layla: Yeah, right! See ya, sucker!'; _root.dialog.line2 = ''; _root.dialog.line3 = ''; _root.dialog.line4 = ''; _root.dialog.line5 = ''; onEnterFrame = function () { if (_global.dialogisup == false) { play(); } }; } frame 3627 { stop(); _global.dialogisup = true; _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 1; _root.dialog.line1 = ':Red Mage: What the hell?! Hey, wait!'; _root.dialog.line2 = ''; _root.dialog.line3 = ''; _root.dialog.line4 = ''; _root.dialog.line5 = ''; onEnterFrame = function () { if (_global.dialogisup == false) { play(); } }; } frame 3678 { stop(); _global.dialogisup = true; _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 1; _root.dialog.line1 = ':Red Mage: Damn it! I gotta hunt her down'; _root.dialog.line2 = 'again before I dare show my face to the king.'; _root.dialog.line3 = ''; _root.dialog.line4 = ''; _root.dialog.line5 = ''; onEnterFrame = function () { if (_global.dialogisup == false) { play(); } }; } frame 3731 { stopAllSounds(); } frame 3746 { gotoAndStop(2724); } frame 3747 { hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 12; stoppers = 10; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); if (_global.goteastplains8_fd == true) { fruitdrink.unloadMovie(); } if (_global.goteastplains8_safe == true) { safe.unloadMovie(); } onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(3761); } else { if (exit2.hitTest(player.player1)) { gotoAndPlay(3781); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(3801); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(3821); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } if (fruitdrink.hitTest(_root.player) && _global.fruitdrinks < 5) { _global.goteastplains8_fd = true; fruitdrink.nextFrame(); } if (safe.hitTest(_root.player.weaponstrike) && _global.wolfbeaten == true) { _root.attachMovie('hpup', 'hpup', 13); hpup._x = safe._x; hpup._y = safe._y; _global.goteastplains8_safe = true; safe.play(); } }; hideHitboxes(); } movieClip 1202 { frame 1 { onEnterFrame = function () { if (_root.player._x > this._x) { this._xscale = -100; } else { this._xscale = 100; } if (Key.isDown(40) && this.hitTest(_root.player) && _global.dialogisup == false) { _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 1; _root.dialog.line1 = 'The path ahead is impassable until someone'; _root.dialog.line2 = 'BURNS the orange vine with FIRE. Or until the'; _root.dialog.line3 = 'nukes start falling.'; _root.dialog.line4 = ''; _root.dialog.line5 = ''; } }; } } movieClip 1223 { frame 1 { stop(); onEnterFrame = function () { if (this.hitTest(_root.magiccaster.explosion)) { play(); } }; } frame 21 { _root.vinewall.unloadMovie(); this.unloadMovie(); } } frame 3748 { stopAllSounds(); var music = new Sound(); music.attachSound('music_plains'); music.start(0, 99); hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 12; stoppers = 10; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); if (_global.goteastplains8_fd == true) { fruitdrink.unloadMovie(); } if (_global.goteastplains8_safe == true) { safe.unloadMovie(); } onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(3761); } else { if (exit2.hitTest(player.player1)) { gotoAndPlay(3781); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(3801); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(3821); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } if (fruitdrink.hitTest(_root.player) && _global.fruitdrinks < 5) { _global.goteastplains8_fd = true; fruitdrink.nextFrame(); } if (safe.hitTest(_root.player.weaponstrike) && _global.wolfbeaten == true) { _root.attachMovie('hpup', 'hpup', 13); hpup._x = safe._x; hpup._y = safe._y; _global.goteastplains8_safe = true; safe.play(); } }; hideHitboxes(); } frame 3761 { fade._x = vcam._x; fade._y = vcam._y; } frame 3776 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(2553); } frame 3781 { fade._x = vcam._x; fade._y = vcam._y; } frame 3796 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(4067); } frame 3797 { stopAllSounds(); var music = new Sound(); music.attachSound('music_town'); music.start(0, 99); if (_global.cyclopsbeaten == true) { gotoAndStop(3798); } hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 1; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(3811); } else { if (exit2.hitTest(player)) { gotoAndPlay(3831); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(3851); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(3871); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; hideHitboxes(); } movieClip 1237 { } movieClip 1239 { frame 1 { onEnterFrame = function () { if (Key.isDown(40) && this.hitTest(_root.player) && _global.dialogisup == false) { _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 1; if (_global.cyclopsbeaten == false) { _root.dialog.line1 = 'These crates of SkinMEAL keep pouring in at such'; _root.dialog.line2 = 'a quick rate that I can\'t put them away fast'; _root.dialog.line3 = 'enough!'; _root.dialog.line4 = 'Where the hell do they all come from, anyway?'; _root.dialog.line5 = ''; } else { _root.dialog.line1 = 'Wow, those SkinMEAL shipments have stopped long'; _root.dialog.line2 = 'enough that I actually managed to clear the'; _root.dialog.line3 = 'path! Hopefully it\'ll stay this way a while so'; _root.dialog.line4 = 'I don\'t get swamped again.'; _root.dialog.line5 = ''; } } }; } } movieClip 1241 { frame 1 { onEnterFrame = function () { if (_root.player._x > this._x) { this._xscale = -100; } else { this._xscale = 100; } if (Key.isDown(40) && this.hitTest(_root.player) && _global.dialogisup == false) { _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 1; _root.dialog.line1 = 'This is the Giant Flying Bug Transit Port.'; _root.dialog.line2 = 'We receive and ship cargo on our giant insects'; _root.dialog.line3 = 'here. It\'s pretty cool.'; _root.dialog.line4 = ''; _root.dialog.line5 = ''; } }; } } movieClip 1244 { frame 1 { onEnterFrame = function () { if (Key.isDown(40) && this.hitTest(_root.player) && _global.dialogisup == false) { _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 1; _root.dialog.line1 = 'There\'s some weird cave to the west of here.'; _root.dialog.line2 = 'We tried to use it as an extra storage shed'; _root.dialog.line3 = 'before, but some mysterious explosions kept'; _root.dialog.line4 = 'damaging the cargo we kept in there.'; _root.dialog.line5 = ''; } }; } } frame 3798 { _global.savedat = 2; hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 1; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(3811); } else { if (exit2.hitTest(player)) { gotoAndPlay(3831); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(3851); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(3871); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; hideHitboxes(); } frame 3799 { _global.savedat = 2; hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 1; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(3811); } else { if (exit2.hitTest(player)) { gotoAndPlay(3831); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(3851); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(3871); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; hideHitboxes(); } frame 3811 { fade._x = vcam._x; fade._y = vcam._y; } frame 3826 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(3868); } frame 3831 { fade._x = vcam._x; fade._y = vcam._y; } frame 3846 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(3797); } frame 3851 { fade._x = vcam._x; fade._y = vcam._y; } frame 3866 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(2414); } frame 3867 { stopAllSounds(); var music = new Sound(); music.attachSound('music_town'); music.start(0, 99); hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 2; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(3881); } else { if (exit2.hitTest(player)) { gotoAndPlay(3901); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(3921); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(3941); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; hideHitboxes(); } frame 3868 { hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 2; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(3881); } else { if (exit2.hitTest(player)) { gotoAndPlay(3901); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(3921); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(3941); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; hideHitboxes(); } frame 3881 { fade._x = vcam._x; fade._y = vcam._y; } frame 3896 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(3917); } frame 3901 { fade._x = vcam._x; fade._y = vcam._y; } frame 3916 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(3799); } frame 3917 { stopAllSounds(); var music = new Sound(); music.attachSound('music_dungeon'); music.start(0, 99); hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 15; stoppers = 8; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(3931); } else { if (exit2.hitTest(player)) { gotoAndPlay(3951); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(3971); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(3991); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; hideHitboxes(); } movieClip 1248 { } movieClip 1260 { } movieClip 1261 { } movieClip 1262 { frame 1 { hp = 55; facing = 1; } frame 2 { xmove = -8; if (facing == -1) { xmove *= -1; sprite._xscale = -100; } removeMovieClip(damagetext); moving = false; onthisframe = true; onEnterFrame = function () { i = 1; while (i <= _root.stoppers) { if (sprite.hitTest(_root['stopper' + i])) { xmove *= -1; facing *= -1; sprite._xscale *= -1; if (this._x > _root['stopper' + i]._x) { this._x += 2; } else { this._x -= 2; } } ++i; } if (this.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 27; _root.player.gotoAndPlay(50); } if (this.sprite.hitTest(_root.player.weaponstrike)) { damage = _global.playerattack * 0.1 * random(3) + _global.playerattack - 4; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.sprite.hitTest(_root.magiccaster.icebeam)) { damage = _global.playerbaseattack * 3; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.sprite.hitTest(_root.magiccaster.explosion)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.sprite.hitTest(_root.magiccaster.megabolt)) { damage = _global.playerbaseattack * 2.5; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.sprite.hitTest(_root.magiccaster.painwave)) { damage = _global.playerbaseattack * 4; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (moving == true) { this._x += xmove; } }; } frame 35 { moving = true; if (facing == -1) { gotoAndPlay(55); } } frame 36 { if (facing == -1) { gotoAndPlay(56); } } frame 37 { if (facing == -1) { gotoAndPlay(57); } } frame 38 { if (facing == -1) { gotoAndPlay(58); } } frame 39 { if (facing == -1) { gotoAndPlay(59); } } frame 40 { if (facing == -1) { gotoAndPlay(60); } } frame 41 { if (facing == -1) { gotoAndPlay(61); } } frame 42 { if (facing == -1) { gotoAndPlay(62); } } frame 43 { if (facing == -1) { gotoAndPlay(63); } } frame 44 { if (facing == -1) { gotoAndPlay(64); } } frame 45 { if (facing == -1) { gotoAndPlay(65); } } frame 46 { if (facing == -1) { gotoAndPlay(66); } } frame 47 { if (facing == -1) { gotoAndPlay(67); } } frame 48 { if (facing == -1) { gotoAndPlay(68); } } frame 49 { moving = false; gotoAndPlay(2); } frame 55 { if (facing == 1) { gotoAndPlay(35); } } frame 56 { if (facing == 1) { gotoAndPlay(36); } } frame 57 { if (facing == 1) { gotoAndPlay(37); } } frame 58 { if (facing == 1) { gotoAndPlay(38); } } frame 59 { if (facing == 1) { gotoAndPlay(39); } } frame 60 { if (facing == 1) { gotoAndPlay(40); } } frame 61 { if (facing == 1) { gotoAndPlay(41); } } frame 62 { if (facing == 1) { gotoAndPlay(42); } } frame 63 { if (facing == 1) { gotoAndPlay(43); } } frame 64 { if (facing == 1) { gotoAndPlay(44); } } frame 65 { if (facing == 1) { gotoAndPlay(45); } } frame 66 { if (facing == 1) { gotoAndPlay(46); } } frame 67 { if (facing == 1) { gotoAndPlay(47); } } frame 68 { if (facing == 1) { gotoAndPlay(48); } } frame 70 { moving = false; gotoAndPlay(2); } frame 75 { onEnterFrame = function () {}; this._x += 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(111); facing *= -1; } ++i; } } frame 76 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(112); facing *= -1; } ++i; } } frame 77 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(113); facing *= -1; } ++i; } } frame 78 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(114); facing *= -1; } ++i; } } frame 79 { this._x += 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(115); facing *= -1; } ++i; } } frame 80 { this._x += 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(116); facing *= -1; } ++i; } } frame 81 { this._x += 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(117); facing *= -1; } ++i; } } frame 82 { this._x += 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(118); facing *= -1; } ++i; } } frame 87 { if (hp <= 0) { gotoAndPlay(145); } } frame 88 { this._x -= 5; gotoAndPlay(2); } frame 110 { onEnterFrame = function () {}; this._x -= 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(76); facing *= -1; } ++i; } } frame 111 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(77); facing *= -1; } ++i; } } frame 112 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(78); facing *= -1; } ++i; } } frame 113 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(79); facing *= -1; } ++i; } } frame 114 { this._x -= 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(80); facing *= -1; } ++i; } } frame 115 { this._x -= 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(81); facing *= -1; } ++i; } } frame 116 { this._x -= 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(82); facing *= -1; } ++i; } } frame 117 { this._x -= 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(83); facing *= -1; } ++i; } } frame 122 { if (hp <= 0) { gotoAndPlay(145); } } frame 123 { this._x += 5; gotoAndPlay(2); } frame 145 { onthisframe = false; _global.playerexp += 16; _global.coinage += 18; _root.vcam.smallstatsbox.gainexp(); } frame 173 { stop(); this.unloadMovie(); } } frame 3918 { hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 15; stoppers = 8; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(3931); } else { if (exit2.hitTest(player)) { gotoAndPlay(3951); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(3971); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(3991); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; hideHitboxes(); } frame 3931 { fade._x = vcam._x; fade._y = vcam._y; } frame 3946 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(3967); } frame 3951 { fade._x = vcam._x; fade._y = vcam._y; } frame 3966 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(3867); } frame 3967 { hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 7; stoppers = 4; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(3981); } else { if (exit2.hitTest(player)) { gotoAndPlay(4001); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(4021); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(4041); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; hideHitboxes(); } movieClip 1267 { frame 1 { stop(); onEnterFrame = function () { if (this.hitTest(_root.player.weaponstrike)) { loadMovie('', _root.barrier); loadMovie('', _root.barrierhb); nextFrame(); } }; } frame 2 { onEnterFrame = function () {}; } } movieClip 1271 { } frame 3968 { hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 7; stoppers = 4; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(3981); } else { if (exit2.hitTest(player)) { gotoAndPlay(4001); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(4021); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(4041); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; hideHitboxes(); } frame 3981 { fade._x = vcam._x; fade._y = vcam._y; } frame 3996 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(4017); } frame 4001 { fade._x = vcam._x; fade._y = vcam._y; } frame 4016 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(3918); } frame 4017 { hideHitboxes = function () { player.hitbox._visible = false; j = 0; while (j <= platforms) { _root['hitboxp' + j]._visible = false; ++j; } k = 0; while (k <= solids) { _root['hitboxs' + k]._visible = false; ++k; } }; player.gravity = 0; platforms = 13; stoppers = 4; player.xmove = 0; xinc = 0.5; xmax = 6; if (_global.gotvinetowncave3_fd == true) { fruitdrink.unloadMovie(); } if (_global.gotexplosion == true) { spellscroll.unloadMovie(); } soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { i = 1; while (i <= platforms) { if (i == 1) { player.hits = 0; } if (player.hitbox.hitTest(_root['hitboxp' + i]) && player.gravity >= 0) { ++player.hits; player._y = _root['hitboxp' + i]._y; } ++i; } if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(4031); } else { if (exit2.hitTest(player)) { gotoAndPlay(4051); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(4071); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(4091); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } if (fruitdrink.hitTest(_root.player) && _global.fruitdrinks < 5) { _global.gotvinetowncave3_fd = true; fruitdrink.nextFrame(); } }; hideHitboxes(); } movieClip 1274 { frame 1 { stop(); onEnterFrame = function () { if (_root.player.hitbox.hitTest(_root.hitboxp2)) { play(); } }; } frame 2 { onEnterFrame = function () {}; } frame 32 { loadMovie('', _root.hitboxp2); stop(); } } movieClip 1275 { frame 1 { stop(); onEnterFrame = function () { if (_root.player.hitbox.hitTest(_root.hitboxp3)) { play(); } }; } frame 2 { onEnterFrame = function () {}; } frame 32 { loadMovie('', _root.hitboxp3); stop(); } } movieClip 1276 { frame 1 { stop(); onEnterFrame = function () { if (_root.player.hitbox.hitTest(_root.hitboxp4)) { play(); } }; } frame 2 { onEnterFrame = function () {}; } frame 32 { loadMovie('', _root.hitboxp4); stop(); } } movieClip 1277 { frame 1 { stop(); onEnterFrame = function () { if (_root.player.hitbox.hitTest(_root.hitboxp5)) { play(); } }; } frame 2 { onEnterFrame = function () {}; } frame 32 { loadMovie('', _root.hitboxp5); stop(); } } movieClip 1279 { frame 1 { stop(); onEnterFrame = function () { if (this.hitTest(_root.player.player1)) { _global.gotexplosion = true; play(); } }; } frame 51 { this.unloadMovie(); } } frame 4031 { fade._x = vcam._x; fade._y = vcam._y; } frame 4046 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(4018); } frame 4051 { fade._x = vcam._x; fade._y = vcam._y; } frame 4066 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(3968); } frame 4067 { stopAllSounds(); var music = new Sound(); music.attachSound('music_forest'); music.start(0, 99); player.gravity = 0; player.hits = 0; stoppers = 4; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(4081); } else { if (exit2.hitTest(player)) { gotoAndPlay(4101); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(4121); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(4141); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } movieClip 1281 { } movieClip 1283 { frame 1 { this._visible = false; standinghere = false; onEnterFrame = function () { if (_root.player.hitbox.hitTest(this)) { if (_root.player.gravity >= 0) { if (standinghere == false) { standinghere = true; ++_root.player.hits; } _root.player._y = this._y; } } else { if (standinghere == true) { --_root.player.hits; standinghere = false; } } }; } } movieClip 1285 { frame 1 { this._visible = false; onEnterFrame = function () { if (_root.player.player1.hitTest(this) && _root.player._x > this._x && _root.player.xmove < 0) { _root.player.hitleft = 1; _root.player.hitright = 0; _root.player.xmove = 0; _root.player._x = this._x + 30; } else { if (_root.player.player1.hitTest(this) && _root.player._x < this._x && _root.player.xmove > 0) { _root.player.hitleft = 0; _root.player.hitright = 1; _root.player.xmove = 0; _root.player._x = this._x - 30; } else { _root.player.hitleft = 0; _root.player.hitright = 0; } } }; } } movieClip 1287 { frame 1 { this._visible = false; standinghere = false; onEnterFrame = function () { if (_root.player.hitbox.hitTest(this)) { if (_root.player.gravity >= 0) { if (standinghere == false) { standinghere = true; ++_root.player.hits; } _root.player._y = this._y; } } else { if (standinghere == true) { --_root.player.hits; standinghere = false; } } }; } } movieClip 1293 { } movieClip 1303 { } movieClip 1304 { } movieClip 1305 { } movieClip 1306 { frame 1 { hp = 67; facing = 1; } frame 2 { stop(); xmove = -5; if (facing == -1) { xmove *= -1; sprite._xscale *= -1; spitfire._xscale *= -1; } removeMovieClip(damagetext); onthisframe = true; onEnterFrame = function () { if (onthisframe == true) { i = 1; while (i <= _root.stoppers) { if (sprite.hitTest(_root['stopper' + i])) { xmove *= -1; sprite._xscale *= -1; spitfire._xscale *= -1; facing *= -1; this._x += xmove * 2; } ++i; } if (this.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 32; _root.player.gotoAndPlay(50); } if (sprite.hitTest(_root.player.weaponstrike)) { damage = _global.playerattack * 0.1 * random(3) + _global.playerattack - 4; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.icebeam)) { damage = _global.playerbaseattack * 3; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.explosion)) { damage = _global.playerbaseattack * 1.5; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.megabolt)) { damage = _global.playerbaseattack * 2.5; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.painwave)) { damage = _global.playerbaseattack * 4; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } this._x += xmove; } }; } frame 3 { this._x += 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(41); facing *= -1; } ++i; } onEnterFrame = function () {}; } frame 4 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(42); facing *= -1; } ++i; } } frame 5 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(43); facing *= -1; } ++i; } } frame 6 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(44); facing *= -1; } ++i; } } frame 7 { this._x += 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(45); facing *= -1; } ++i; } } frame 8 { this._x += 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(46); facing *= -1; } ++i; } } frame 9 { this._x += 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(47); facing *= -1; } ++i; } } frame 10 { this._x += 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(48); facing *= -1; } ++i; } } frame 15 { if (hp <= 0) { gotoAndPlay(80); } } frame 16 { this._x -= 5; gotoAndStop(2); } frame 40 { this._x -= 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(4); facing *= -1; } ++i; } onEnterFrame = function () {}; } frame 41 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(5); facing *= -1; } ++i; } } frame 42 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(6); facing *= -1; } ++i; } } frame 43 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(7); facing *= -1; } ++i; } } frame 44 { this._x -= 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(8); facing *= -1; } ++i; } } frame 45 { this._x -= 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(9); facing *= -1; } ++i; } } frame 46 { this._x -= 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(10); facing *= -1; } ++i; } } frame 47 { this._x -= 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(11); facing *= -1; } ++i; } } frame 52 { if (hp <= 0) { gotoAndPlay(80); } } frame 53 { this._x += 5; gotoAndStop(2); } frame 80 { onthisframe = false; _global.playerexp += 19; _global.coinage += 20; _root.vcam.smallstatsbox.gainexp(); } frame 108 { stop(); this.unloadMovie(); } } frame 4068 { player.gravity = 0; player.hits = 0; stoppers = 4; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(4081); } else { if (exit2.hitTest(player)) { gotoAndPlay(4101); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(4121); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(4141); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 4081 { fade._x = vcam._x; fade._y = vcam._y; } frame 4096 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(3748); } frame 4101 { fade._x = vcam._x; fade._y = vcam._y; } frame 4116 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(4157); } frame 4121 { fade._x = vcam._x; fade._y = vcam._y; } frame 4136 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(4068); } frame 4141 { fade._x = vcam._x; fade._y = vcam._y; } frame 4156 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(4067); } frame 4157 { player.gravity = 0; player.hits = 0; stoppers = 7; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(4171); } else { if (exit2.hitTest(player)) { gotoAndPlay(4191); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(4211); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(4231); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } movieClip 1309 { frame 1 { this._visible = false; onEnterFrame = function () { if (this.hitTest(_root.player)) { _root.player._y = this._y + 56; _root.player.gravity = 1; } }; } } movieClip 1313 { } movieClip 1314 { } movieClip 1334 { frame 1 { hp = 60; facing = 1; } frame 2 { stop(); xmove = -9; if (facing == -1) { xmove *= -1; sprite._xscale *= -1; } removeMovieClip(damagetext); onthisframe = true; onEnterFrame = function () { if (onthisframe == true) { i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { xmove *= -1; sprite._xscale *= -1; facing *= -1; if (this._x > _root['stopper' + i]._x) { this._x += 2; } else { this._x -= 2; } } ++i; } if (this.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 28; _root.player.gotoAndPlay(50); } if (this.hitTest(_root.player.weaponstrike)) { damage = _global.playerattack * 0.1 * random(3) + _global.playerattack - 3; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.icebeam)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.explosion)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.megabolt)) { damage = _global.playerbaseattack * 2.5; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.painwave)) { damage = _global.playerbaseattack * 4; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } this._x += xmove; } }; } frame 3 { this._x += 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(41); facing *= -1; } ++i; } onEnterFrame = function () {}; } frame 4 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(42); facing *= -1; } ++i; } } frame 5 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(43); facing *= -1; } ++i; } } frame 6 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(44); facing *= -1; } ++i; } } frame 7 { this._x += 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(45); facing *= -1; } ++i; } } frame 8 { this._x += 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(46); facing *= -1; } ++i; } } frame 9 { this._x += 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(47); facing *= -1; } ++i; } } frame 10 { this._x += 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(48); facing *= -1; } ++i; } } frame 15 { if (hp <= 0) { gotoAndPlay(80); } } frame 16 { this._x -= 5; gotoAndStop(2); } frame 40 { this._x -= 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(4); facing *= -1; } ++i; } onEnterFrame = function () {}; } frame 41 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(5); facing *= -1; } ++i; } } frame 42 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(6); facing *= -1; } ++i; } } frame 43 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(7); facing *= -1; } ++i; } } frame 44 { this._x -= 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(8); facing *= -1; } ++i; } } frame 45 { this._x -= 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(9); facing *= -1; } ++i; } } frame 46 { this._x -= 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(10); facing *= -1; } ++i; } } frame 47 { this._x -= 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(11); facing *= -1; } ++i; } } frame 52 { if (hp <= 0) { gotoAndPlay(80); } } frame 53 { this._x += 5; gotoAndStop(2); } frame 80 { onthisframe = false; _global.playerexp += 17; _global.coinage += 16; _root.vcam.smallstatsbox.gainexp(); } frame 108 { stop(); this.unloadMovie(); } } frame 4158 { player.gravity = 0; player.hits = 0; stoppers = 7; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(4171); } else { if (exit2.hitTest(player)) { gotoAndPlay(4191); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(4211); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(4231); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 4171 { fade._x = vcam._x; fade._y = vcam._y; } frame 4186 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(4068); } frame 4191 { fade._x = vcam._x; fade._y = vcam._y; } frame 4206 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(4247); } frame 4211 { fade._x = vcam._x; fade._y = vcam._y; } frame 4226 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(4158); } frame 4231 { fade._x = vcam._x; fade._y = vcam._y; } frame 4246 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(4157); } frame 4247 { player.gravity = 0; player.hits = 0; stoppers = 5; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(4261); } else { if (exit2.hitTest(player)) { gotoAndPlay(4281); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(4301); _global.telep2open = true; } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(4321); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 4248 { player.gravity = 0; player.hits = 0; stoppers = 5; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(4261); } else { if (exit2.hitTest(player)) { gotoAndPlay(4281); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(4301); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(4321); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 4249 { var music = new Sound(); music.attachSound('music_forest'); music.start(0, 99); player.gravity = 0; player.hits = 0; stoppers = 5; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(4261); } else { if (exit2.hitTest(player)) { gotoAndPlay(4281); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(4301); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(4321); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 4261 { fade._x = vcam._x; fade._y = vcam._y; } frame 4276 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(4158); } frame 4281 { fade._x = vcam._x; fade._y = vcam._y; } frame 4296 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(4337); } frame 4301 { fade._x = vcam._x; fade._y = vcam._y; } frame 4316 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(1113); } frame 4321 { fade._x = vcam._x; fade._y = vcam._y; } frame 4336 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(4247); } frame 4337 { player.gravity = 0; player.hits = 0; stoppers = 5; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(4351); } else { if (exit2.hitTest(player)) { gotoAndPlay(4371); } else { if (exit3.hitTest(player)) { gotoAndPlay(4391); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(4411); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 4338 { stopAllSounds(); var music = new Sound(); music.attachSound('music_forest'); music.start(0, 99); player.gravity = 0; player.hits = 0; stoppers = 5; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(4351); } else { if (exit2.hitTest(player)) { gotoAndPlay(4371); } else { if (exit3.hitTest(player)) { gotoAndPlay(4391); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(4411); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 4339 { player.gravity = 0; player.hits = 0; stoppers = 5; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(4351); } else { if (exit2.hitTest(player)) { gotoAndPlay(4371); } else { if (exit3.hitTest(player)) { gotoAndPlay(4391); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(4411); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 4351 { fade._x = vcam._x; fade._y = vcam._y; } frame 4366 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(4248); } frame 4371 { fade._x = vcam._x; fade._y = vcam._y; } frame 4386 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(4607); } frame 4391 { fade._x = vcam._x; fade._y = vcam._y; } frame 4406 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(4427); } frame 4411 { fade._x = vcam._x; fade._y = vcam._y; } frame 4426 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(4337); } frame 4427 { stopAllSounds(); var music = new Sound(); music.attachSound('music_dungeon'); music.start(0, 99); player.gravity = 0; player.hits = 0; stoppers = 4; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); if (_global.gotforestcave1_gt == true) { greentea.unloadMovie(); } onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(4441); } else { if (exit2.hitTest(player)) { gotoAndPlay(4461); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(4481); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(4501); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } if (greentea.hitTest(_root.player) && _global.greenteas < 5) { _global.gotforestcave1_gt = true; greentea.nextFrame(); } }; } movieClip 1339 { } movieClip 1341 { } movieClip 1342 { } movieClip 1343 { frame 1 { hp = 72; facing = 1; xmove = -5; ymove = -10; } frame 2 { stop(); if (facing == -1) { xmove = 5; sprite._xscale = -100; } removeMovieClip(damagetext); onthisframe = true; onEnterFrame = function () { i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { xmove *= -1; facing *= -1; sprite._xscale *= -1; if (this._x > _root['stopper' + i]._x) { this._x += 2; } else { this._x -= 2; } } ++i; } if (hitbox.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 34; _root.player.gotoAndPlay(50); } if (this.hitTest(_root.player.weaponstrike)) { damage = _global.playerattack * 0.1 * random(3) + _global.playerattack - 4; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.icebeam)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.explosion)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.megabolt)) { damage = _global.playerbaseattack * 2.5; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.painwave)) { damage = _global.playerbaseattack * 4; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } ++ymove; if (ymove > 9) { ymove = -9; } this._x += xmove; this._y += ymove; }; } frame 75 { onEnterFrame = function () {}; this._x += 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(111); facing *= -1; } ++i; } } frame 76 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(112); facing *= -1; } ++i; } } frame 77 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(113); facing *= -1; } ++i; } } frame 78 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(114); facing *= -1; } ++i; } } frame 79 { this._x += 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(115); facing *= -1; } ++i; } } frame 80 { this._x += 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(116); facing *= -1; } ++i; } } frame 81 { this._x += 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(117); facing *= -1; } ++i; } } frame 82 { this._x += 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(118); facing *= -1; } ++i; } } frame 87 { if (hp <= 0) { gotoAndPlay(145); } } frame 88 { this._x -= 5; gotoAndPlay(2); } frame 110 { onEnterFrame = function () {}; this._x -= 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(76); facing *= -1; } ++i; } } frame 111 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(77); facing *= -1; } ++i; } } frame 112 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(78); facing *= -1; } ++i; } } frame 113 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(79); facing *= -1; } ++i; } } frame 114 { this._x -= 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(80); facing *= -1; } ++i; } } frame 115 { this._x -= 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(81); facing *= -1; } ++i; } } frame 116 { this._x -= 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(82); facing *= -1; } ++i; } } frame 117 { this._x -= 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(83); facing *= -1; } ++i; } } frame 122 { if (hp <= 0) { gotoAndPlay(145); } } frame 123 { this._x += 5; gotoAndPlay(2); } frame 145 { onthisframe = false; _global.playerexp += 20; _global.coinage += 22; _root.vcam.smallstatsbox.gainexp(); } frame 168 { stop(); this.unloadMovie(); } } movieClip 1347 { } movieClip 1360 { frame 1 { hp = 60; facing = 1; } frame 2 { xmove = -6; if (facing == -1) { xmove *= -1; } removeMovieClip(damagetext); moving = false; onthisframe = true; onEnterFrame = function () { i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { xmove *= -1; facing *= -1; if (this._x > _root['stopper' + i]._x) { this._x += 2; } else { this._x -= 2; } } ++i; } if (this.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 30; _root.player.gotoAndPlay(50); } if (this.hitTest(_root.player.weaponstrike)) { damage = _global.playerattack * 0.1 * random(3) + _global.playerattack - 3; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(120); } else { gotoAndPlay(160); } } if (this.hitTest(_root.magiccaster.icebeam)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(120); } else { gotoAndPlay(160); } } if (this.hitTest(_root.magiccaster.explosion)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(120); } else { gotoAndPlay(160); } } if (this.hitTest(_root.magiccaster.megabolt)) { damage = _global.playerbaseattack * 2.5; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(120); } else { gotoAndPlay(160); } } if (this.hitTest(_root.magiccaster.painwave)) { damage = _global.playerbaseattack * 4; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(120); } else { gotoAndPlay(160); } } if (moving == true) { this._x += xmove; } }; } frame 25 { moving = true; } frame 56 { moving = false; gotoAndPlay(2); } frame 120 { onEnterFrame = function () {}; this._x += 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(161); facing *= -1; } ++i; } } frame 121 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(162); facing *= -1; } ++i; } } frame 122 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(163); facing *= -1; } ++i; } } frame 123 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(164); facing *= -1; } ++i; } } frame 124 { this._x += 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(165); facing *= -1; } ++i; } } frame 125 { this._x += 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(166); facing *= -1; } ++i; } } frame 126 { this._x += 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(167); facing *= -1; } ++i; } } frame 127 { this._x += 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(168); facing *= -1; } ++i; } } frame 132 { if (hp <= 0) { gotoAndPlay(200); } } frame 133 { this._x -= 5; gotoAndPlay(2); } frame 160 { onEnterFrame = function () {}; this._x -= 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(121); facing *= -1; } ++i; } } frame 161 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(122); facing *= -1; } ++i; } } frame 162 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(123); facing *= -1; } ++i; } } frame 163 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(124); facing *= -1; } ++i; } } frame 164 { this._x -= 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(125); facing *= -1; } ++i; } } frame 165 { this._x -= 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(126); facing *= -1; } ++i; } } frame 166 { this._x -= 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(127); facing *= -1; } ++i; } } frame 167 { this._x -= 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(128); facing *= -1; } ++i; } } frame 172 { if (hp <= 0) { gotoAndPlay(200); } } frame 173 { this._x += 5; gotoAndPlay(2); } frame 200 { onthisframe = false; _global.playerexp += 20; _global.coinage += 21; _root.vcam.smallstatsbox.gainexp(); onEnterFrame = function () {}; } frame 222 { stop(); this.unloadMovie(); } } frame 4428 { player.gravity = 0; player.hits = 0; stoppers = 4; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); if (_global.gotforestcave1_gt == true) { greentea.unloadMovie(); } onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(4441); } else { if (exit2.hitTest(player)) { gotoAndPlay(4461); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(4481); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(4501); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } if (greentea.hitTest(_root.player) && _global.greenteas < 5) { _global.gotforestcave1_gt = true; greentea.nextFrame(); } }; } frame 4441 { fade._x = vcam._x; fade._y = vcam._y; } frame 4456 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(4338); } frame 4461 { fade._x = vcam._x; fade._y = vcam._y; } frame 4476 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(4517); } frame 4481 { fade._x = vcam._x; fade._y = vcam._y; } frame 4496 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(4428); } frame 4501 { fade._x = vcam._x; fade._y = vcam._y; } frame 4516 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(4427); } frame 4517 { player.gravity = 0; player.hits = 0; stoppers = 9; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); if (_global.gotforestcave2_fd == true) { fruitdrink.unloadMovie(); } if (_global.gotheal == true) { spellscroll.unloadMovie(); } onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(4531); } else { if (exit2.hitTest(player)) { gotoAndPlay(4551); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(4571); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(4591); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } if (fruitdrink.hitTest(_root.player) && _global.fruitdrinks < 5) { _global.gotforestcave2_fd = true; fruitdrink.nextFrame(); } }; } movieClip 1363 { frame 1 { stop(); onEnterFrame = function () { if (this.hitTest(_root.player.player1)) { _global.gotheal = true; play(); } }; } frame 51 { this.unloadMovie(); } } frame 4531 { fade._x = vcam._x; fade._y = vcam._y; } frame 4546 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(4428); } frame 4551 { fade._x = vcam._x; fade._y = vcam._y; } frame 4566 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(4517); } frame 4571 { fade._x = vcam._x; fade._y = vcam._y; } frame 4586 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(4518); } frame 4591 { fade._x = vcam._x; fade._y = vcam._y; } frame 4606 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(4517); } frame 4607 { player.gravity = 0; player.hits = 0; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); if (_global.gotforest5_safe == true) { safe.unloadMovie(); } if (_global.seenforestscene == false) { gotoAndPlay(4666); } onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(4621); } else { if (exit2.hitTest(player)) { gotoAndPlay(4641); } else { if (eventhb.hitTest(player)) { gotoAndPlay(4666); } } } bg1._x = vcam._x; bg1._y = vcam._y; if (safe.hitTest(_root.player.weaponstrike) && _global.wolfbeaten == true) { _root.attachMovie('dynamite', 'dynamite', 13); dynamite._x = safe._x; dynamite._y = safe._y; safe.play(); } if (dynamite.hitTest(_root.player.player1)) { _global.gotforest5_safe = true; dynamite.removeMovieClip(); _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 1; _root.dialog.line1 = ':Red Mage: This dynamite may come in handy'; _root.dialog.line2 = 'for something. Even if it doesn\'t, it\'s always'; _root.dialog.line3 = 'fun to blow shit up for no reason.'; _root.dialog.line4 = ''; _root.dialog.line5 = ''; } if (_global.playerhp <= 0) { stopAllSounds(); gotoAndPlay(11880); } }; } frame 4608 { player.gravity = 0; player.hits = 0; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); if (_global.gotforest5_safe == true) { safe.unloadMovie(); } onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(4621); } else { if (exit2.hitTest(player)) { gotoAndPlay(4641); } else { if (eventhb.hitTest(player)) { gotoAndPlay(4666); } } } bg1._x = vcam._x; bg1._y = vcam._y; if (safe.hitTest(_root.player.weaponstrike) && _global.wolfbeaten == true) { _root.attachMovie('dynamite', 'dynamite', 13); dynamite._x = safe._x; dynamite._y = safe._y; safe.play(); } if (dynamite.hitTest(_root.player.player1)) { _global.gotforest5_safe = true; dynamite.removeMovieClip(); _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 1; _root.dialog.line1 = ':Red Mage: This dynamite may come in handy'; _root.dialog.line2 = 'for something. Even if it doesn\'t, it\'s always'; _root.dialog.line3 = 'fun to blow shit up for no reason.'; _root.dialog.line4 = ''; _root.dialog.line5 = ''; } if (_global.playerhp <= 0) { stopAllSounds(); gotoAndPlay(11880); } }; } frame 4609 { stopAllSounds(); var music = new Sound(); music.attachSound('music_forest'); music.start(0, 99); player.gravity = 0; player.hits = 0; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(4621); } else { if (exit2.hitTest(player)) { gotoAndPlay(4641); } else { if (eventhb.hitTest(player)) { gotoAndPlay(4666); } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { stopAllSounds(); gotoAndPlay(11880); } }; } frame 4621 { fade._x = vcam._x; fade._y = vcam._y; } frame 4636 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(4339); } frame 4641 { fade._x = vcam._x; fade._y = vcam._y; } frame 4656 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(5007); } frame 4666 { bg1._x = vcam._x; bg1._y = vcam._y; stopAllSounds(); } frame 4716 { stop(); _global.dialogisup = true; _root.attachMovie('dialog', 'dialog', 155); _root.dialog.pages = 1; _root.dialog.line1 = ':Layla: There! This should be a safe enough'; _root.dialog.line2 = 'place for the dynamite until I need it.'; _root.dialog.line3 = ''; _root.dialog.line4 = ''; _root.dialog.line5 = ''; onEnterFrame = function () { if (_global.dialogisup == false) { play(); } }; } frame 4786 { stop(); _global.dialogisup = true; _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 1; _root.dialog.line1 = ':Red Mage: There you are, you damn brat! Now'; _root.dialog.line2 = 'come back to the castle with me and don\'t give'; _root.dialog.line3 = 'me any more of a hard time, or you\'ll see what'; _root.dialog.line4 = 'happens when I\'m extremely pissed!'; _root.dialog.line5 = ''; onEnterFrame = function () { if (_global.dialogisup == false) { play(); } }; } frame 4817 { stop(); _global.dialogisup = true; _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 4; _root.dialog.line1 = ':Layla: Well, if it isn\'t my dad\'s persistent'; _root.dialog.line2 = 'minion. You know, there are much more pressing'; _root.dialog.line3 = 'matters going on that you should be worrying'; _root.dialog.line4 = 'about right now.'; _root.dialog.line5 = ''; _root.dialog.line6 = ':Red Mage: Yeah, sitting at home relaxing and'; _root.dialog.line7 = 'watching the A-Team marathon I\'m missing instead'; _root.dialog.line8 = 'of tracking your scrawny little ass down!'; _root.dialog.line9 = ''; _root.dialog.line10 = ''; _root.dialog.line11 = ':Layla: Wow, my dad and his whole dumb kingdom'; _root.dialog.line12 = 'really is clueless. It takes a single teenage'; _root.dialog.line13 = 'girl to find out about a major danger growing'; _root.dialog.line14 = 'right under their noses.'; _root.dialog.line15 = ''; _root.dialog.line16 = ':Red Mage: Okay kid, if you\'re looking for'; _root.dialog.line17 = 'attention then save your little stories for'; _root.dialog.line18 = 'your father because I don\'t care. All I wanna'; _root.dialog.line19 = 'do is finish my job and get home.'; _root.dialog.line20 = ''; onEnterFrame = function () { if (_global.dialogisup == false) { play(); } }; } frame 4851 { stop(); _global.dialogisup = true; _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 1; _root.dialog.line1 = ':Layla: Whatever, you lazy hardheaded numbskull.'; _root.dialog.line2 = 'I guess I gotta save my dad\'s kingdom myself.'; _root.dialog.line3 = 'As if I don\'t have enough stress at this stage'; _root.dialog.line4 = 'in life.'; _root.dialog.line5 = ''; onEnterFrame = function () { if (_global.dialogisup == false) { play(); } }; } frame 4942 { stop(); _global.dialogisup = true; _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 2; _root.dialog.line1 = ':Red Mage: Damn. I should have figured this'; _root.dialog.line2 = 'would happen again.'; _root.dialog.line3 = ''; _root.dialog.line4 = ''; _root.dialog.line5 = ''; _root.dialog.line6 = 'Sigh... I need to get a little quicker on my'; _root.dialog.line7 = 'feet.'; _root.dialog.line8 = ''; _root.dialog.line9 = ''; _root.dialog.line10 = ''; onEnterFrame = function () { if (_global.dialogisup == false) { play(); } }; } frame 5006 { stopAllSounds(); _global.seenforestscene = true; gotoAndStop(4609); } frame 5007 { player.gravity = 0; player.hits = 0; stoppers = 6; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(5021); } else { if (exit2.hitTest(player)) { gotoAndPlay(5041); } else { if (exit3.hitTest(player)) { gotoAndPlay(5061); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(5081); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 5008 { player.gravity = 0; player.hits = 0; stoppers = 6; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(5021); } else { if (exit2.hitTest(player)) { gotoAndPlay(5041); } else { if (exit3.hitTest(player)) { gotoAndPlay(5061); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(5081); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 5009 { stopAllSounds(); var music = new Sound(); music.attachSound('music_forest'); music.start(0, 99); player.gravity = 0; player.hits = 0; stoppers = 6; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(5021); } else { if (exit2.hitTest(player)) { gotoAndPlay(5041); } else { if (exit3.hitTest(player)) { gotoAndPlay(5061); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(5081); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 5021 { fade._x = vcam._x; fade._y = vcam._y; } frame 5036 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(4608); } frame 5041 { fade._x = vcam._x; fade._y = vcam._y; } frame 5056 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(5922); } frame 5061 { fade._x = vcam._x; fade._y = vcam._y; } frame 5076 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(5097); } frame 5081 { fade._x = vcam._x; fade._y = vcam._y; } frame 5096 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(5007); } frame 5097 { stopAllSounds(); var music = new Sound(); music.attachSound('music_dungeon'); music.start(0, 99); player.gravity = 0; player.hits = 0; stoppers = 5; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); if (_global.gotforestcavedungeon1_fd == true) { fruitdrink.unloadMovie(); } onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(5111); } else { if (exit2.hitTest(player)) { gotoAndPlay(5131); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(5151); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(5171); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } if (fruitdrink.hitTest(_root.player) && _global.fruitdrinks < 5) { _global.gotforestcavedungeon1_fd = true; fruitdrink.nextFrame(); } }; } movieClip 1368 { } movieClip 1370 { } movieClip 1371 { } movieClip 1372 { } movieClip 1387 { frame 1 { hp = 78; facing = 1; } frame 2 { stop(); xmove = -6; if (facing == -1) { xmove *= -1; } removeMovieClip(damagetext); onthisframe = true; currentice = 1; counter = 31; onEnterFrame = function () { if (onthisframe == true) { i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { xmove *= -1; facing *= -1; this._x += xmove; } ++i; } if (this.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 33; _root.player.gotoAndPlay(50); } if (this.hitTest(_root.player.weaponstrike)) { damage = _global.playerattack * 0.1 * random(3) + _global.playerattack - 4; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.icebeam)) { damage = _global.playerbaseattack * 1.5; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.explosion)) { damage = _global.playerbaseattack * 3; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.megabolt)) { damage = _global.playerbaseattack * 2.5; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.painwave)) { damage = _global.playerbaseattack * 4; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } this._x += xmove; --counter; if (counter < 1) { counter = 30; if (currentice > 3) { currentice = 1; } if (currentice == 1) { _root.attachMovie('icicle', 'icicle1', 16); _root.icicle1._x = this._x; _root.icicle1._y = this._y; } else { if (currentice == 2) { _root.attachMovie('icicle', 'icicle2', 17); _root.icicle2._x = this._x; _root.icicle2._y = this._y; } else { if (currentice == 3) { _root.attachMovie('icicle', 'icicle3', 18); _root.icicle3._x = this._x; _root.icicle3._y = this._y; } } } ++currentice; } } }; } frame 3 { this._x += 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(41); facing *= -1; } ++i; } onEnterFrame = function () {}; } frame 4 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(42); facing *= -1; } ++i; } } frame 5 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(43); facing *= -1; } ++i; } } frame 6 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(44); facing *= -1; } ++i; } } frame 7 { this._x += 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(45); facing *= -1; } ++i; } } frame 8 { this._x += 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(46); facing *= -1; } ++i; } } frame 9 { this._x += 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(47); facing *= -1; } ++i; } } frame 10 { this._x += 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(48); facing *= -1; } ++i; } } frame 15 { if (hp <= 0) { gotoAndPlay(80); } } frame 16 { this._x -= 5; gotoAndStop(2); } frame 40 { this._x -= 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(4); facing *= -1; } ++i; } onEnterFrame = function () {}; } frame 41 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(5); facing *= -1; } ++i; } } frame 42 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(6); facing *= -1; } ++i; } } frame 43 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(7); facing *= -1; } ++i; } } frame 44 { this._x -= 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(8); facing *= -1; } ++i; } } frame 45 { this._x -= 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(9); facing *= -1; } ++i; } } frame 46 { this._x -= 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(10); facing *= -1; } ++i; } } frame 47 { this._x -= 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(11); facing *= -1; } ++i; } } frame 52 { if (hp <= 0) { gotoAndPlay(80); } } frame 53 { this._x += 5; gotoAndStop(2); } frame 80 { onthisframe = false; _global.playerexp += 21; _global.coinage += 22; _root.vcam.smallstatsbox.gainexp(); } frame 102 { stop(); this.unloadMovie(); } } frame 5098 { player.gravity = 0; player.hits = 0; stoppers = 5; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); if (_global.gotforestcavedungeon1_fd == true) { fruitdrink.unloadMovie(); } onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(5111); } else { if (exit2.hitTest(player)) { gotoAndPlay(5131); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(5151); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(5171); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } if (fruitdrink.hitTest(_root.player) && _global.fruitdrinks < 5) { _global.gotforestcavedungeon1_fd = true; fruitdrink.nextFrame(); } }; } frame 5111 { fade._x = vcam._x; fade._y = vcam._y; } frame 5126 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(5009); } frame 5131 { fade._x = vcam._x; fade._y = vcam._y; } frame 5146 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(5187); } frame 5151 { fade._x = vcam._x; fade._y = vcam._y; } frame 5166 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(5098); } frame 5171 { fade._x = vcam._x; fade._y = vcam._y; } frame 5186 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(5097); } frame 5187 { player.gravity = 0; player.hits = 0; stoppers = 5; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); if (_global.gotforestcavedungeon2_gt == true) { greentea.unloadMovie(); } onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(5201); } else { if (exit2.hitTest(player)) { gotoAndPlay(5221); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(5241); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(5261); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } if (greentea.hitTest(_root.player) && _global.greenteas < 5) { _global.gotforestcavedungeon2_gt = true; greentea.nextFrame(); } }; } movieClip 1389 { frame 1 { stop(); onEnterFrame = function () { if (_root.player.hitbox.hitTest(_root.hitboxp2)) { play(); } }; } frame 2 { onEnterFrame = function () {}; } frame 32 { if (_root.player.hitbox.hitTest(_root.hitboxp2)) { --_root.player.hits; } loadMovie('', _root.hitboxp2); stop(); } } movieClip 1390 { frame 1 { stop(); onEnterFrame = function () { if (_root.player.hitbox.hitTest(_root.hitboxp3)) { play(); } }; } frame 2 { onEnterFrame = function () {}; } frame 32 { if (_root.player.hitbox.hitTest(_root.hitboxp3)) { --_root.player.hits; } loadMovie('', _root.hitboxp3); stop(); } } frame 5188 { player.gravity = 0; player.hits = 0; stoppers = 5; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); if (_global.gotforestcavedungeon2_gt == true) { greentea.unloadMovie(); } onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(5201); } else { if (exit2.hitTest(player)) { gotoAndPlay(5221); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(5241); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(5261); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } if (greentea.hitTest(_root.player) && _global.greenteas < 5) { _global.gotforestcavedungeon2_gt = true; greentea.nextFrame(); } }; } frame 5201 { fade._x = vcam._x; fade._y = vcam._y; } frame 5216 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(5098); } frame 5221 { fade._x = vcam._x; fade._y = vcam._y; } frame 5236 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(5277); } frame 5241 { fade._x = vcam._x; fade._y = vcam._y; } frame 5256 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(5188); } frame 5261 { fade._x = vcam._x; fade._y = vcam._y; } frame 5276 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(5187); } frame 5277 { player.gravity = 0; player.hits = 0; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(5291); } else { if (exit2.hitTest(player)) { gotoAndPlay(5311); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(5331); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(5351); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } movieClip 1393 { frame 1 { onEnterFrame = function () { if (_root.player._x > this._x) { this._xscale = -100; } else { this._xscale = 100; } if (Key.isDown(40) && this.hitTest(_root.player) && _global.dialogisup == false) { _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 1; _root.dialog.line1 = 'The path ahead is impassable due to waterfall,'; _root.dialog.line2 = 'except during winter when the waterfall is'; _root.dialog.line3 = 'FROZEN.'; _root.dialog.line4 = ''; _root.dialog.line5 = ''; } }; } } movieClip 1394 { frame 1 { onEnterFrame = function () { if (_root.player._x > this._x) { this._xscale = -100; } else { this._xscale = 100; } if (Key.isDown(40) && this.hitTest(_root.player) && _global.dialogisup == false) { _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 2; _root.dialog.line1 = 'I\'m a werewolf hunter. I heard this cave was'; _root.dialog.line2 = 'the home of a werewolf, so I\'m trying to find'; _root.dialog.line3 = 'the dog.'; _root.dialog.line4 = ''; _root.dialog.line5 = 'Here\'s a tip in case you run into it first:'; _root.dialog.line6 = 'Werewolves have an extremely tough hide and are'; _root.dialog.line7 = 'very resistant to damage. However, the energy'; _root.dialog.line8 = 'waves they release are capable of stunning them'; _root.dialog.line9 = 'and temporarily softening their hides if you'; _root.dialog.line10 = 'deflect one back to them by hitting it.'; } }; } } movieClip 1398 { } movieClip 1412 { frame 1 { stop(); onEnterFrame = function () { if (this.hitTest(_root.magiccaster.icebeam)) { play(); } }; } frame 2 { onEnterFrame = function () {}; } frame 13 { stop(); _root.attachMovie('platform1', 'platform1', 14); _root.platform1._x = this._x; _root.platform1._y = this._y; } } frame 5278 { player.gravity = 0; player.hits = 0; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(5291); } else { if (exit2.hitTest(player)) { gotoAndPlay(5311); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(5331); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(5351); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 5291 { fade._x = vcam._x; fade._y = vcam._y; } frame 5306 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(5188); } frame 5311 { fade._x = vcam._x; fade._y = vcam._y; } frame 5326 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(5367); } frame 5331 { fade._x = vcam._x; fade._y = vcam._y; } frame 5346 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(5278); } frame 5351 { fade._x = vcam._x; fade._y = vcam._y; } frame 5366 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(5277); } frame 5367 { player.gravity = 0; player.hits = 0; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(5381); } else { if (eventhb.hitTest(player) && _global.wolfbeaten == false) { gotoAndPlay(5401); } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } movieClip 1415 { frame 1 { onEnterFrame = function () { if (Key.isDown(40) && this.hitTest(_root.player) && _global.dialogisup == false) { _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 1; _root.dialog.line1 = 'How\'s it hangin\', dude? We totally need to have'; _root.dialog.line2 = 'a couple brewskies together sometime, man.'; _root.dialog.line3 = ''; _root.dialog.line4 = ''; _root.dialog.line5 = ''; } }; } } frame 5368 { stopAllSounds(); var music = new Sound(); music.attachSound('music_boss'); music.start(0, 99); player.gravity = 0; player.hits = 0; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; bossdead = false; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (bossdead == true) { gotoAndPlay(5666); } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } movieClip 1420 { } movieClip 1421 { } movieClip 1423 { } movieClip 1425 { } movieClip 1427 { } movieClip 1428 { } movieClip 1429 { frame 1 { hp = 275; facing = 1; xmove = -5; ymove = -15; vulnerable = false; } frame 2 { if (facing == -1) { xmove = 5; sprite._xscale = -100; } removeMovieClip(damagetext); onthisframe = true; onEnterFrame = function () { if (hitbox.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 38; _root.player.gotoAndPlay(50); } if (this.hitTest(_root.wolfblast1) && _root.wolfblast1.hitback == true || this.hitTest(_root.wolfblast2) && _root.wolfblast2.hitback == true) { gotoAndPlay(100); } }; } frame 95 { stop(); if (facing == -1) { xmove = 5; sprite._xscale = -100; } removeMovieClip(damagetext); onthisframe = true; onEnterFrame = function () { i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { xmove *= -1; facing *= -1; sprite._xscale *= -1; if (this._x > _root['stopper' + i]._x) { this._x += 2; } else { this._x -= 2; } } ++i; } if (hitbox.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 38; _root.player.gotoAndPlay(50); } ++ymove; if (ymove > 14) { _root.attachMovie('wolfblast1', 'wolfblast1', 19); _root.wolfblast1._x = this._x; _root.wolfblast1._y = this._y; _root.attachMovie('wolfblast2', 'wolfblast2', 21); _root.wolfblast2._x = this._x; _root.wolfblast2._y = this._y; ymove = -15; gotoAndPlay(2); } else { this._x += xmove; this._y += ymove; } }; } frame 100 { if (facing == -1) { xmove = 5; sprite._xscale = -100; } removeMovieClip(damagetext); onthisframe = true; onEnterFrame = function () { i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { xmove *= -1; facing *= -1; sprite._xscale *= -1; if (this._x > _root['stopper' + i]._x) { this._x += 2; } else { this._x -= 2; } } ++i; } if (this.hitTest(_root.player.weaponstrike)) { damage = _global.playerattack * 0.1 * random(3) + _global.playerattack - 4; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(205); } else { gotoAndPlay(240); } } if (this.hitTest(_root.magiccaster.icebeam)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(205); } else { gotoAndPlay(240); } } if (this.hitTest(_root.magiccaster.explosion)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(205); } else { gotoAndPlay(240); } } if (this.hitTest(_root.magiccaster.megabolt)) { damage = _global.playerbaseattack * 2.5; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(205); } else { gotoAndPlay(240); } } if (this.hitTest(_root.magiccaster.painwave)) { damage = _global.playerbaseattack * 4; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(205); } else { gotoAndPlay(240); } } }; } frame 194 { gotoAndPlay(2); } frame 205 { onEnterFrame = function () {}; this._x += 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(241); facing *= -1; } ++i; } } frame 206 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(242); facing *= -1; } ++i; } } frame 207 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(243); facing *= -1; } ++i; } } frame 208 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(244); facing *= -1; } ++i; } } frame 209 { this._x += 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(245); facing *= -1; } ++i; } } frame 210 { this._x += 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(246); facing *= -1; } ++i; } } frame 211 { this._x += 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(247); facing *= -1; } ++i; } } frame 212 { this._x += 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(248); facing *= -1; } ++i; } } frame 217 { if (hp <= 0) { gotoAndPlay(275); } } frame 218 { this._x -= 5; gotoAndPlay(2); } frame 240 { onEnterFrame = function () {}; this._x -= 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(206); facing *= -1; } ++i; } } frame 241 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(207); facing *= -1; } ++i; } } frame 242 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(208); facing *= -1; } ++i; } } frame 243 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(209); facing *= -1; } ++i; } } frame 244 { this._x -= 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(210); facing *= -1; } ++i; } } frame 245 { this._x -= 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(211); facing *= -1; } ++i; } } frame 246 { this._x -= 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(212); facing *= -1; } ++i; } } frame 247 { this._x -= 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(213); facing *= -1; } ++i; } } frame 252 { if (hp <= 0) { gotoAndPlay(275); } } frame 253 { this._x += 5; gotoAndPlay(2); } frame 275 { onthisframe = false; _global.playerexp += 170; _global.coinage += 220; _root.vcam.smallstatsbox.gainexp(); } frame 375 { _root.bossdead = true; stop(); this.unloadMovie(); } } frame 5381 { fade._x = vcam._x; fade._y = vcam._y; } frame 5396 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(5278); } frame 5401 { fade._x = vcam._x; fade._y = vcam._y; } frame 5416 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); } frame 5436 { bg1._x = vcam._x; bg1._y = vcam._y; stopAllSounds(); } frame 5488 { stop(); _global.dialogisup = true; _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 1; _root.dialog.line1 = ':Werewolf: Auuuugh! The math! The math!'; _root.dialog.line2 = 'It brings such pain!'; _root.dialog.line3 = ''; _root.dialog.line4 = ''; _root.dialog.line5 = ''; onEnterFrame = function () { if (_global.dialogisup == false) { play(); } }; } frame 5572 { stop(); _global.dialogisup = true; _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 2; _root.dialog.line1 = ':Red Mage: Oh, great. A werewolf.'; _root.dialog.line2 = 'I wonder what this guy\'s problem is.'; _root.dialog.line3 = ''; _root.dialog.line4 = ''; _root.dialog.line5 = ''; _root.dialog.line6 = ':Werewolf: The math... confusing me... making'; _root.dialog.line7 = 'me want... to attack video game protagonists...'; _root.dialog.line8 = 'Raaaaaaaawwrr!!'; _root.dialog.line9 = ''; _root.dialog.line10 = ''; onEnterFrame = function () { if (_global.dialogisup == false) { play(); } }; } movieClip 1433 { } frame 5636 { stopAllSounds(); gotoAndStop(5368); } frame 5666 { stopAllSounds(); onEnterFrame = function () {}; } frame 5703 { stop(); _global.dialogisup = true; _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 4; _root.dialog.line1 = ':Werewolf: Man, that sucked. Hey dude, thanks'; _root.dialog.line2 = 'for knocking me back to my senses. And sorry'; _root.dialog.line3 = 'for attacking you and stuff.'; _root.dialog.line4 = ''; _root.dialog.line5 = ''; _root.dialog.line6 = ':Red Mage: S\'alright... but what the hell'; _root.dialog.line7 = 'was wrong you?'; _root.dialog.line8 = ''; _root.dialog.line9 = ''; _root.dialog.line10 = ''; _root.dialog.line11 = ':Werewolf: Some dude in a cloak came by here'; _root.dialog.line12 = 'and started chanting a bunch of mathematical'; _root.dialog.line13 = 'formulas and crap. It cast some kinda spell on'; _root.dialog.line14 = 'me that put me in a daze. The math was'; _root.dialog.line15 = 'surrounding me! I couldn\'t think straight!'; _root.dialog.line16 = ':Werewolf: Oh, dude. Here. Let me give you this'; _root.dialog.line17 = 'to make up for trying to kill you and stuff.'; _root.dialog.line18 = ''; _root.dialog.line19 = ''; _root.dialog.line20 = ''; onEnterFrame = function () { if (_global.dialogisup == false) { play(); } }; } frame 5786 { stop(); _global.dialogisup = true; _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 3; _root.dialog.line1 = ':Red Mage: What is it?'; _root.dialog.line2 = ''; _root.dialog.line3 = ''; _root.dialog.line4 = ''; _root.dialog.line5 = ''; _root.dialog.line6 = ':Werewolf: It\'s a safe-smasher mallet. You can'; _root.dialog.line7 = 'break any safe with one hit from your weapon'; _root.dialog.line8 = 'with this thing. Just attach it to your weapon'; _root.dialog.line9 = 'and nobody\'s stash will be safe from you!'; _root.dialog.line10 = ''; _root.dialog.line11 = ':Red Mage: Badass. Alright, I\'ll see you around'; _root.dialog.line12 = 'wolfman.'; _root.dialog.line13 = ''; _root.dialog.line14 = ''; _root.dialog.line15 = ''; onEnterFrame = function () { if (_global.dialogisup == false) { play(); } }; } frame 5921 { _global.wolfbeaten = true; stopAllSounds(); var music = new Sound(); music.attachSound('music_dungeon'); music.start(0, 99); gotoAndStop(5367); } frame 5922 { player.gravity = 0; player.hits = 0; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(5936); } else { if (exit2.hitTest(player) && Key.isDown(40) && _global.gotduckkey == true) { gotoAndPlay(5956); } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 5923 { player.gravity = 0; player.hits = 0; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(5936); } else { if (exit2.hitTest(player) && Key.isDown(40) && _global.gotduckkey == true) { gotoAndPlay(5956); } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 5936 { fade._x = vcam._x; fade._y = vcam._y; } frame 5951 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(5008); } frame 5956 { fade._x = vcam._x; fade._y = vcam._y; } frame 5971 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(10033); } frame 5972 { if (_global.seendesertscene == false) { gotoAndPlay(6051); } stopAllSounds(); var music = new Sound(); music.attachSound('music_desert'); music.start(0, 99); player.gravity = 0; player.hits = 0; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(5986); } else { if (exit2.hitTest(player)) { gotoAndPlay(6006); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(6026); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(6046); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } movieClip 1440 { } frame 5973 { player.gravity = 0; player.hits = 0; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(5986); } else { if (exit2.hitTest(player)) { gotoAndPlay(6006); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(6026); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(6046); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 5986 { fade._x = vcam._x; fade._y = vcam._y; } frame 6001 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(6402); } frame 6006 { fade._x = vcam._x; fade._y = vcam._y; } frame 6021 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(1402); } frame 6051 { stopAllSounds(); } movieClip 1445 { } movieClip 1446 { } frame 6162 { stop(); _global.dialogisup = true; _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 4; _root.dialog.line1 = ':Layla: Hey there Mr. Royal Errand Boy.'; _root.dialog.line2 = 'Check out this cock I\'m riding.'; _root.dialog.line3 = ''; _root.dialog.line4 = ''; _root.dialog.line5 = ''; _root.dialog.line6 = ':Red Mage: ...................................'; _root.dialog.line7 = '... Oh my god, you did not just say that.'; _root.dialog.line8 = ''; _root.dialog.line9 = ''; _root.dialog.line10 = ''; _root.dialog.line11 = ':Layla: Well anyway, it was nice chatting again'; _root.dialog.line12 = 'but I\'m off to save the kingdom. See you around.'; _root.dialog.line13 = ''; _root.dialog.line14 = ''; _root.dialog.line15 = ''; _root.dialog.line16 = ':Red Mage: No, you aren\'t getting away this'; _root.dialog.line17 = 'time!'; _root.dialog.line18 = ''; _root.dialog.line19 = ''; _root.dialog.line20 = ''; onEnterFrame = function () { if (_global.dialogisup == false) { play(); } }; } frame 6242 { stop(); _global.dialogisup = true; _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 1; _root.dialog.line1 = ':Layla: You killed my cock! You asshole!'; _root.dialog.line2 = ''; _root.dialog.line3 = ''; _root.dialog.line4 = ''; _root.dialog.line5 = ''; onEnterFrame = function () { if (_global.dialogisup == false) { play(); } }; } frame 6342 { stop(); _global.dialogisup = true; _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 1; _root.dialog.line1 = ':Red Mage: I hate my life...'; _root.dialog.line2 = ''; _root.dialog.line3 = ''; _root.dialog.line4 = ''; _root.dialog.line5 = ''; onEnterFrame = function () { if (_global.dialogisup == false) { play(); } }; } frame 6401 { stopAllSounds(); _global.seendesertscene = true; gotoAndStop(5972); } frame 6402 { player.gravity = 0; player.hits = 0; stoppers = 4; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(6416); } else { if (exit2.hitTest(player)) { gotoAndPlay(6436); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(6456); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(6476); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } movieClip 1454 { } movieClip 1456 { } movieClip 1458 { } movieClip 1459 { } movieClip 1460 { } movieClip 1462 { frame 1 { hp = 95; facing = 1; } frame 2 { xmove = -7; if (facing == -1) { xmove *= -1; sprite._xscale = -100; } removeMovieClip(damagetext); onthisframe = true; onEnterFrame = function () { i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { xmove *= -1; facing *= -1; sprite._xscale *= -1; if (this._x > _root['stopper' + i]._x) { this._x += 2; } else { this._x -= 2; } } ++i; } if (hitbox1.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 55; _root.player.gotoAndPlay(50); } if (hitbox1.hitTest(_root.player.weaponstrike)) { damage = _global.playerattack * 0.1 * random(3) + _global.playerattack - 5; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.icebeam)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.explosion)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.megabolt)) { damage = _global.playerbaseattack * 2.5; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.painwave)) { damage = _global.playerbaseattack * 4; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } this._x += xmove; }; } frame 34 { if (facing == -1) { xmove *= -1; sprite._xscale = -100; } removeMovieClip(damagetext); onthisframe = true; onEnterFrame = function () { if (hitbox1.hitTest(_root.player.player1) && _global.invincible == false || hitbox2.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 50; _root.player.gotoAndPlay(50); } if (hitbox1.hitTest(_root.player.weaponstrike)) { damage = _global.playerattack * 0.1 * random(3) + _global.playerattack - 5; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.icebeam)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.explosion)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.megabolt)) { damage = _global.playerbaseattack * 2.5; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.painwave)) { damage = _global.playerbaseattack * 4; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } }; } frame 39 { if (facing == -1) { xmove *= -1; sprite._xscale = -100; } removeMovieClip(damagetext); onthisframe = true; onEnterFrame = function () { if (hitbox1.hitTest(_root.player.player1) && _global.invincible == false || hitbox2.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 50; _root.player.gotoAndPlay(50); } if (hitbox1.hitTest(_root.player.weaponstrike)) { damage = _global.playerattack * 0.1 * random(3) + _global.playerattack - 5; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.icebeam)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.explosion)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.megabolt)) { damage = _global.playerbaseattack * 2.5; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.painwave)) { damage = _global.playerbaseattack * 4; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } }; } frame 55 { gotoAndPlay(2); } frame 75 { onEnterFrame = function () {}; this._x += 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(111); facing *= -1; } ++i; } } frame 76 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(112); facing *= -1; } ++i; } } frame 77 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(113); facing *= -1; } ++i; } } frame 78 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(114); facing *= -1; } ++i; } } frame 79 { this._x += 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(115); facing *= -1; } ++i; } } frame 80 { this._x += 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(116); facing *= -1; } ++i; } } frame 81 { this._x += 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(117); facing *= -1; } ++i; } } frame 82 { this._x += 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(118); facing *= -1; } ++i; } } frame 87 { if (hp <= 0) { gotoAndPlay(145); } } frame 88 { this._x -= 5; gotoAndPlay(2); } frame 110 { onEnterFrame = function () {}; this._x -= 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(76); facing *= -1; } ++i; } } frame 111 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(77); facing *= -1; } ++i; } } frame 112 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(78); facing *= -1; } ++i; } } frame 113 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(79); facing *= -1; } ++i; } } frame 114 { this._x -= 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(80); facing *= -1; } ++i; } } frame 115 { this._x -= 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(81); facing *= -1; } ++i; } } frame 116 { this._x -= 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(82); facing *= -1; } ++i; } } frame 117 { this._x -= 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(83); facing *= -1; } ++i; } } frame 122 { if (hp <= 0) { gotoAndPlay(145); } } frame 123 { this._x += 5; gotoAndPlay(2); } frame 145 { onthisframe = false; _global.playerexp += 32; _global.coinage += 40; _root.vcam.smallstatsbox.gainexp(); } frame 167 { stop(); this.unloadMovie(); } } movieClip 1464 { } movieClip 1466 { } movieClip 1468 { } movieClip 1469 { } movieClip 1470 { } movieClip 1471 { } movieClip 1473 { frame 1 { hp = 15; facing = 1; } frame 2 { stop(); xmove = -8; if (facing == -1) { xmove *= -1; sprite._xscale *= -1; } removeMovieClip(damagetext); onthisframe = true; onEnterFrame = function () { if (onthisframe == true) { i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { xmove *= -1; sprite._xscale *= -1; facing *= -1; if (this._x > _root['stopper' + i]._x) { this._x += 2; } else { this._x -= 2; } } ++i; } if (this.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 50; _root.player.gotoAndPlay(50); } if (this.hitTest(_root.player.weaponstrike)) { damage = 1; this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.icebeam)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.explosion)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.megabolt)) { damage = _global.playerbaseattack * 2.5; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.painwave)) { damage = _global.playerbaseattack * 4; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } this._x += xmove; } }; } frame 3 { this._x += 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(41); facing *= -1; } ++i; } onEnterFrame = function () {}; } frame 4 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(42); facing *= -1; } ++i; } } frame 5 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(43); facing *= -1; } ++i; } } frame 6 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(44); facing *= -1; } ++i; } } frame 7 { this._x += 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(45); facing *= -1; } ++i; } } frame 8 { this._x += 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(46); facing *= -1; } ++i; } } frame 9 { this._x += 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(47); facing *= -1; } ++i; } } frame 10 { this._x += 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(48); facing *= -1; } ++i; } } frame 15 { if (hp <= 0) { gotoAndPlay(80); } } frame 16 { this._x -= 5; gotoAndStop(2); } frame 40 { this._x -= 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(4); facing *= -1; } ++i; } onEnterFrame = function () {}; } frame 41 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(5); facing *= -1; } ++i; } } frame 42 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(6); facing *= -1; } ++i; } } frame 43 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(7); facing *= -1; } ++i; } } frame 44 { this._x -= 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(8); facing *= -1; } ++i; } } frame 45 { this._x -= 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(9); facing *= -1; } ++i; } } frame 46 { this._x -= 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(10); facing *= -1; } ++i; } } frame 47 { this._x -= 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(11); facing *= -1; } ++i; } } frame 52 { if (hp <= 0) { gotoAndPlay(80); } } frame 53 { this._x += 5; gotoAndStop(2); } frame 80 { onthisframe = false; _global.playerexp += 40; _global.coinage += 30; _root.vcam.smallstatsbox.gainexp(); } frame 108 { stop(); this.unloadMovie(); } } frame 6403 { player.gravity = 0; player.hits = 0; stoppers = 4; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(6416); } else { if (exit2.hitTest(player)) { gotoAndPlay(6436); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(6456); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(6476); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 6416 { fade._x = vcam._x; fade._y = vcam._y; } frame 6431 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(6492); } frame 6436 { fade._x = vcam._x; fade._y = vcam._y; } frame 6451 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(5973); } frame 6456 { fade._x = vcam._x; fade._y = vcam._y; } frame 6471 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(6403); } frame 6476 { fade._x = vcam._x; fade._y = vcam._y; } frame 6491 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(6402); } frame 6492 { player.gravity = 0; player.hits = 0; stoppers = 4; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(6506); } else { if (exit2.hitTest(player)) { gotoAndPlay(6526); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(6546); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(6566); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 6493 { player.gravity = 0; player.hits = 0; stoppers = 4; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(6506); } else { if (exit2.hitTest(player)) { gotoAndPlay(6526); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(6546); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(6566); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 6506 { fade._x = vcam._x; fade._y = vcam._y; } frame 6521 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(6582); } frame 6526 { fade._x = vcam._x; fade._y = vcam._y; } frame 6541 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(6403); } frame 6546 { fade._x = vcam._x; fade._y = vcam._y; } frame 6561 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(6493); } frame 6566 { fade._x = vcam._x; fade._y = vcam._y; } frame 6581 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(6492); } frame 6582 { player.gravity = 0; player.hits = 0; stoppers = 4; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(6596); } else { if (exit2.hitTest(player)) { gotoAndPlay(6616); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(6636); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(6656); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 6583 { player.gravity = 0; player.hits = 0; stoppers = 4; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(6596); } else { if (exit2.hitTest(player)) { gotoAndPlay(6616); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(6636); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(6656); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 6596 { fade._x = vcam._x; fade._y = vcam._y; } frame 6611 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(6672); } frame 6616 { fade._x = vcam._x; fade._y = vcam._y; } frame 6631 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(6493); } frame 6636 { fade._x = vcam._x; fade._y = vcam._y; } frame 6651 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(6583); } frame 6656 { fade._x = vcam._x; fade._y = vcam._y; } frame 6671 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(6582); } frame 6672 { player.gravity = 0; player.hits = 0; stoppers = 4; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(6686); } else { if (exit2.hitTest(player)) { gotoAndPlay(6706); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(6726); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(6746); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 6673 { player.gravity = 0; player.hits = 0; stoppers = 4; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(6686); } else { if (exit2.hitTest(player)) { gotoAndPlay(6706); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(6726); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(6746); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 6686 { fade._x = vcam._x; fade._y = vcam._y; } frame 6701 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(6762); } frame 6706 { fade._x = vcam._x; fade._y = vcam._y; } frame 6721 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(6583); } frame 6726 { fade._x = vcam._x; fade._y = vcam._y; } frame 6741 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(6673); } frame 6746 { fade._x = vcam._x; fade._y = vcam._y; } frame 6761 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(6672); } frame 6762 { player.gravity = 0; player.hits = 0; stoppers = 4; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(6776); } else { if (exit2.hitTest(player)) { gotoAndPlay(6796); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(6816); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(6836); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 6763 { player.gravity = 0; player.hits = 0; stoppers = 4; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(6776); } else { if (exit2.hitTest(player)) { gotoAndPlay(6796); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(6816); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(6836); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 6776 { fade._x = vcam._x; fade._y = vcam._y; } frame 6791 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(6852); } frame 6796 { fade._x = vcam._x; fade._y = vcam._y; } frame 6811 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(6673); } frame 6816 { fade._x = vcam._x; fade._y = vcam._y; } frame 6831 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(6763); } frame 6836 { fade._x = vcam._x; fade._y = vcam._y; } frame 6851 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(6762); } frame 6852 { player.gravity = 0; player.hits = 0; stoppers = 4; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(6866); } else { if (exit2.hitTest(player)) { gotoAndPlay(6886); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(6906); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(6926); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 6853 { player.gravity = 0; player.hits = 0; stoppers = 4; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(6866); } else { if (exit2.hitTest(player)) { gotoAndPlay(6886); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(6906); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(6926); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 6866 { fade._x = vcam._x; fade._y = vcam._y; } frame 6881 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(6942); } frame 6886 { fade._x = vcam._x; fade._y = vcam._y; } frame 6901 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(6763); } frame 6906 { fade._x = vcam._x; fade._y = vcam._y; } frame 6921 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(6853); } frame 6926 { fade._x = vcam._x; fade._y = vcam._y; } frame 6941 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(6852); } frame 6942 { player.gravity = 0; player.hits = 0; stoppers = 3; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(6956); } else { if (exit2.hitTest(player)) { gotoAndPlay(6976); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(6996); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7016); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } movieClip 1483 { } movieClip 1486 { } movieClip 1488 { } movieClip 1490 { } movieClip 1491 { } movieClip 1492 { frame 1 { hp = 130; facing = 1; } frame 2 { xmove = -7; if (facing == -1) { xmove *= -1; sprite._xscale = -100; } removeMovieClip(damagetext); onthisframe = true; onEnterFrame = function () { i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { xmove *= -1; facing *= -1; sprite._xscale *= -1; if (this._x > _root['stopper' + i]._x) { this._x += 2; } else { this._x -= 2; } } ++i; } if (this.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 64; _root.player.gotoAndPlay(50); } if (this.hitTest(_root.player.weaponstrike)) { damage = _global.playerattack * 0.1 * random(3) + _global.playerattack - 5; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.icebeam)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.explosion)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.megabolt)) { damage = _global.playerbaseattack * 2.5; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.painwave)) { damage = _global.playerbaseattack * 4; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } this._x += xmove; }; } frame 25 { if (facing == -1) { sprite._xscale = -100; } } frame 26 { if (facing == -1) { sprite._xscale = -100; } } frame 27 { if (facing == -1) { sprite._xscale = -100; } } frame 30 { if (facing == -1) { sprite._xscale = -100; } } frame 49 { if (facing == -1) { sprite._xscale = -100; } } frame 50 { if (facing == -1) { sprite._xscale = -100; } gotoAndPlay(2); } frame 75 { onEnterFrame = function () {}; this._x += 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(111); facing *= -1; } ++i; } } frame 76 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(112); facing *= -1; } ++i; } } frame 77 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(113); facing *= -1; } ++i; } } frame 78 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(114); facing *= -1; } ++i; } } frame 79 { this._x += 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(115); facing *= -1; } ++i; } } frame 80 { this._x += 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(116); facing *= -1; } ++i; } } frame 81 { this._x += 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(117); facing *= -1; } ++i; } } frame 82 { this._x += 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(118); facing *= -1; } ++i; } } frame 87 { if (hp <= 0) { gotoAndPlay(145); } } frame 88 { this._x -= 5; gotoAndPlay(2); } frame 110 { onEnterFrame = function () {}; this._x -= 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(76); facing *= -1; } ++i; } } frame 111 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(77); facing *= -1; } ++i; } } frame 112 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(78); facing *= -1; } ++i; } } frame 113 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(79); facing *= -1; } ++i; } } frame 114 { this._x -= 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(80); facing *= -1; } ++i; } } frame 115 { this._x -= 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(81); facing *= -1; } ++i; } } frame 116 { this._x -= 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(82); facing *= -1; } ++i; } } frame 117 { this._x -= 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(83); facing *= -1; } ++i; } } frame 122 { if (hp <= 0) { gotoAndPlay(145); } } frame 123 { this._x += 5; gotoAndPlay(2); } frame 145 { onthisframe = false; _global.playerexp += 42; _global.coinage += 38; _root.vcam.smallstatsbox.gainexp(); } frame 170 { stop(); this.unloadMovie(); } } frame 6943 { player.gravity = 0; player.hits = 0; stoppers = 3; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(6956); } else { if (exit2.hitTest(player)) { gotoAndPlay(6976); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(6996); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7016); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 6944 { stopAllSounds(); var music = new Sound(); music.attachSound('music_desert'); music.start(0, 99); player.gravity = 0; player.hits = 0; stoppers = 3; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(6956); } else { if (exit2.hitTest(player)) { gotoAndPlay(6976); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(6996); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7016); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 6945 { stopAllSounds(); var music = new Sound(); music.attachSound('music_desert'); music.start(0, 99); player.gravity = 0; player.hits = 0; stoppers = 3; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(6956); } else { if (exit2.hitTest(player)) { gotoAndPlay(6976); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(6996); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7016); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 6956 { fade._x = vcam._x; fade._y = vcam._y; } frame 6971 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7212); } frame 6976 { fade._x = vcam._x; fade._y = vcam._y; } frame 6991 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(6853); } frame 6996 { fade._x = vcam._x; fade._y = vcam._y; } frame 7011 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); _global.telep3open = true; gotoAndStop(1114); } frame 7016 { fade._x = vcam._x; fade._y = vcam._y; } frame 7031 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7032); } frame 7032 { stopAllSounds(); var music = new Sound(); music.attachSound('music_dungeon'); music.start(0, 99); player.gravity = 0; player.hits = 0; stoppers = 6; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { player.gravity += 0.5; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 7) { player.gravity = 7; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(7046); } else { if (exit2.hitTest(player)) { gotoAndPlay(7066); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7086); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7106); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } movieClip 1494 { } movieClip 1498 { frame 1 { onEnterFrame = function () { if (this.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 57; _root.player.gotoAndPlay(50); } }; } } movieClip 1500 { } movieClip 1502 { } movieClip 1503 { } movieClip 1505 { } movieClip 1506 { } movieClip 1507 { frame 1 { hp = 80; facing = 1; } frame 2 { stop(); xmove = -7; if (facing == -1) { xmove *= -1; sprite._xscale *= -1; } removeMovieClip(damagetext); onthisframe = true; onEnterFrame = function () { if (onthisframe == true) { i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { xmove *= -1; sprite._xscale *= -1; facing *= -1; if (this._x > _root['stopper' + i]._x) { this._x += 2; } else { this._x -= 2; } } ++i; } if (this.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 61; _root.player.gotoAndPlay(50); } if (sprite.hitTest(_root.player.weaponstrike)) { damage = _global.playerattack * 0.1 * random(3) + _global.playerattack - 5; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.icebeam)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.explosion)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.megabolt)) { damage = _global.playerbaseattack * 2.5; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.painwave)) { damage = _global.playerbaseattack * 4; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } this._x += xmove; } }; } frame 3 { this._x += 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(41); facing *= -1; } ++i; } onEnterFrame = function () {}; } frame 4 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(42); facing *= -1; } ++i; } } frame 5 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(43); facing *= -1; } ++i; } } frame 6 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(44); facing *= -1; } ++i; } } frame 7 { this._x += 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(45); facing *= -1; } ++i; } } frame 8 { this._x += 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(46); facing *= -1; } ++i; } } frame 9 { this._x += 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(47); facing *= -1; } ++i; } } frame 10 { this._x += 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(48); facing *= -1; } ++i; } } frame 15 { if (hp <= 0) { gotoAndPlay(80); } } frame 16 { this._x -= 5; gotoAndStop(2); } frame 40 { this._x -= 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(4); facing *= -1; } ++i; } onEnterFrame = function () {}; } frame 41 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(5); facing *= -1; } ++i; } } frame 42 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(6); facing *= -1; } ++i; } } frame 43 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(7); facing *= -1; } ++i; } } frame 44 { this._x -= 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(8); facing *= -1; } ++i; } } frame 45 { this._x -= 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(9); facing *= -1; } ++i; } } frame 46 { this._x -= 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(10); facing *= -1; } ++i; } } frame 47 { this._x -= 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(11); facing *= -1; } ++i; } } frame 52 { if (hp <= 0) { gotoAndPlay(80); } } frame 53 { this._x += 5; gotoAndStop(2); } frame 80 { onthisframe = false; _global.playerexp += 34; _global.coinage += 34; _root.vcam.smallstatsbox.gainexp(); } frame 108 { stop(); this.unloadMovie(); } } frame 7033 { player.gravity = 0; player.hits = 0; stoppers = 6; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { player.gravity += 0.5; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 7) { player.gravity = 7; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(7046); } else { if (exit2.hitTest(player)) { gotoAndPlay(7066); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7086); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7106); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 7046 { fade._x = vcam._x; fade._y = vcam._y; } frame 7061 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(6945); } frame 7066 { fade._x = vcam._x; fade._y = vcam._y; } frame 7081 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7122); } frame 7086 { fade._x = vcam._x; fade._y = vcam._y; } frame 7101 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7033); } frame 7106 { fade._x = vcam._x; fade._y = vcam._y; } frame 7121 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7032); } frame 7122 { player.gravity = 0; player.hits = 0; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; if (_global.gotfountain_mpup == true) { mpup.unloadMovie(); } if (_global.gotmegabolt == true) { spellscroll.unloadMovie(); } soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { player.gravity += 0.5; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 7) { player.gravity = 7; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(7136); } else { if (exit2.hitTest(player)) { gotoAndPlay(7156); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7176); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7196); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } if (mpup.hitTest(_root.player)) { _global.gotfountain_mpup = true; } }; } movieClip 1510 { frame 1 { stop(); onEnterFrame = function () { if (this.hitTest(_root.player.player1)) { _global.gotmegabolt = true; play(); } }; } frame 51 { this.unloadMovie(); } } frame 7136 { fade._x = vcam._x; fade._y = vcam._y; } frame 7151 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7033); } frame 7156 { fade._x = vcam._x; fade._y = vcam._y; } frame 7171 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7122); } frame 7176 { fade._x = vcam._x; fade._y = vcam._y; } frame 7191 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7123); } frame 7196 { fade._x = vcam._x; fade._y = vcam._y; } frame 7211 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7122); } frame 7212 { player.gravity = 0; player.hits = 0; stoppers = 3; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(7226); } else { if (exit2.hitTest(player)) { gotoAndPlay(7246); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7266); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7286); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } movieClip 1515 { } movieClip 1516 { } movieClip 1517 { } movieClip 1519 { } movieClip 1520 { } movieClip 1521 { frame 1 { hp = 110; facing = 1; } frame 2 { stop(); xmove = -5; counter = 0; if (facing == -1) { xmove *= -1; sprite._xscale *= -1; } removeMovieClip(damagetext); onthisframe = true; onEnterFrame = function () { if (onthisframe == true) { i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { xmove *= -1; sprite._xscale *= -1; facing *= -1; this._x += xmove; } ++i; } if (this.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 60; _root.player.gotoAndPlay(50); } if (this.hitTest(_root.player.weaponstrike)) { damage = _global.playerattack * 0.1 * random(3) + _global.playerattack - 5; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.icebeam)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.explosion)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.megabolt)) { damage = _global.playerbaseattack * 2.5; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.painwave)) { damage = _global.playerbaseattack * 4; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } this._x += xmove; ++counter; if (counter >= 46) { _root.attachMovie('bigmouthfireball', 'bigmouthfireball', 10); _root.bigmouthfireball.going = facing; _root.bigmouthfireball._x = this._x; _root.bigmouthfireball._y = this._y - 22; counter = 0; } } }; } frame 3 { this._x += 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(41); facing *= -1; } ++i; } onEnterFrame = function () {}; } frame 4 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(42); facing *= -1; } ++i; } } frame 5 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(43); facing *= -1; } ++i; } } frame 6 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(44); facing *= -1; } ++i; } } frame 7 { this._x += 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(45); facing *= -1; } ++i; } } frame 8 { this._x += 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(46); facing *= -1; } ++i; } } frame 9 { this._x += 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(47); facing *= -1; } ++i; } } frame 10 { this._x += 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(48); facing *= -1; } ++i; } } frame 15 { if (hp <= 0) { gotoAndPlay(80); } } frame 16 { this._x -= 5; gotoAndStop(2); } frame 40 { this._x -= 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(4); facing *= -1; } ++i; } onEnterFrame = function () {}; } frame 41 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(5); facing *= -1; } ++i; } } frame 42 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(6); facing *= -1; } ++i; } } frame 43 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(7); facing *= -1; } ++i; } } frame 44 { this._x -= 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(8); facing *= -1; } ++i; } } frame 45 { this._x -= 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(9); facing *= -1; } ++i; } } frame 46 { this._x -= 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(10); facing *= -1; } ++i; } } frame 47 { this._x -= 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(11); facing *= -1; } ++i; } } frame 52 { if (hp <= 0) { gotoAndPlay(80); } } frame 53 { this._x += 5; gotoAndStop(2); } frame 80 { onthisframe = false; _global.playerexp += 36; _global.coinage += 39; _root.vcam.smallstatsbox.gainexp(); } frame 108 { stop(); this.unloadMovie(); } } frame 7213 { player.gravity = 0; player.hits = 0; stoppers = 3; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(7226); } else { if (exit2.hitTest(player)) { gotoAndPlay(7246); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7266); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7286); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 7226 { fade._x = vcam._x; fade._y = vcam._y; } frame 7241 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7302); } frame 7246 { fade._x = vcam._x; fade._y = vcam._y; } frame 7261 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(6943); } frame 7266 { fade._x = vcam._x; fade._y = vcam._y; } frame 7281 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7213); } frame 7286 { fade._x = vcam._x; fade._y = vcam._y; } frame 7301 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7212); } frame 7302 { player.gravity = 0; player.hits = 0; stoppers = 3; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(7316); } else { if (exit2.hitTest(player)) { gotoAndPlay(7336); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7356); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7376); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 7303 { player.gravity = 0; player.hits = 0; stoppers = 3; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(7316); } else { if (exit2.hitTest(player)) { gotoAndPlay(7336); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7356); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7376); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 7316 { fade._x = vcam._x; fade._y = vcam._y; } frame 7331 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7392); } frame 7336 { fade._x = vcam._x; fade._y = vcam._y; } frame 7351 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7213); } frame 7356 { fade._x = vcam._x; fade._y = vcam._y; } frame 7371 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7303); } frame 7376 { fade._x = vcam._x; fade._y = vcam._y; } frame 7391 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7302); } frame 7392 { player.gravity = 0; player.hits = 0; stoppers = 3; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(7406); } else { if (exit2.hitTest(player)) { gotoAndPlay(7426); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7446); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7466); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 7393 { player.gravity = 0; player.hits = 0; stoppers = 3; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(7406); } else { if (exit2.hitTest(player)) { gotoAndPlay(7426); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7446); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7466); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 7406 { fade._x = vcam._x; fade._y = vcam._y; } frame 7421 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7482); } frame 7426 { fade._x = vcam._x; fade._y = vcam._y; } frame 7441 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7303); } frame 7446 { fade._x = vcam._x; fade._y = vcam._y; } frame 7461 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7393); } frame 7466 { fade._x = vcam._x; fade._y = vcam._y; } frame 7481 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7392); } frame 7482 { player.gravity = 0; player.hits = 0; stoppers = 3; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(7496); } else { if (exit2.hitTest(player)) { gotoAndPlay(7516); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7536); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7556); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 7483 { player.gravity = 0; player.hits = 0; stoppers = 3; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(7496); } else { if (exit2.hitTest(player)) { gotoAndPlay(7516); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7536); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7556); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 7496 { fade._x = vcam._x; fade._y = vcam._y; } frame 7511 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7572); } frame 7516 { fade._x = vcam._x; fade._y = vcam._y; } frame 7531 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7393); } frame 7536 { fade._x = vcam._x; fade._y = vcam._y; } frame 7551 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7483); } frame 7556 { fade._x = vcam._x; fade._y = vcam._y; } frame 7571 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7482); } frame 7572 { player.gravity = 0; player.hits = 0; stoppers = 3; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(7586); } else { if (exit2.hitTest(player)) { gotoAndPlay(7606); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7626); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7646); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 7573 { player.gravity = 0; player.hits = 0; stoppers = 3; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(7586); } else { if (exit2.hitTest(player)) { gotoAndPlay(7606); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7626); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7646); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 7586 { fade._x = vcam._x; fade._y = vcam._y; } frame 7601 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7662); } frame 7606 { fade._x = vcam._x; fade._y = vcam._y; } frame 7621 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7483); } frame 7626 { fade._x = vcam._x; fade._y = vcam._y; } frame 7641 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7573); } frame 7646 { fade._x = vcam._x; fade._y = vcam._y; } frame 7661 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7572); } frame 7662 { if (_global.teacherbeaten == true) { gotoAndStop(7666); } player.gravity = 0; player.hits = 0; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(7676); } else { if (exit2.hitTest(player)) { gotoAndPlay(7696); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7716); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7736); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 7663 { stopAllSounds(); var music = new Sound(); music.attachSound('music_desert'); music.start(0, 99); if (_global.teacherbeaten == true) { gotoAndStop(7665); } player.gravity = 0; player.hits = 0; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(7676); } else { if (exit2.hitTest(player)) { gotoAndPlay(7696); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7716); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7736); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 7664 { stopAllSounds(); var music = new Sound(); music.attachSound('music_desert'); music.start(0, 99); player.gravity = 0; player.hits = 0; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(7676); } else { if (exit2.hitTest(player)) { gotoAndPlay(7696); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7716); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7736); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 7665 { player.gravity = 0; player.hits = 0; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(7676); } else { if (exit2.hitTest(player)) { gotoAndPlay(7696); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7716); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7736); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 7666 { player.gravity = 0; player.hits = 0; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(7676); } else { if (exit2.hitTest(player)) { gotoAndPlay(7696); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7716); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7736); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 7667 { player.gravity = 0; player.hits = 0; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(7676); } else { if (exit2.hitTest(player)) { gotoAndPlay(7696); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7716); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7736); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 7668 { stopAllSounds(); var music = new Sound(); music.attachSound('music_desert'); music.start(0, 99); if (_global.teacherbeaten == true) { gotoAndStop(7667); } player.gravity = 0; player.hits = 0; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(7676); } else { if (exit2.hitTest(player)) { gotoAndPlay(7696); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7716); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7736); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 7676 { fade._x = vcam._x; fade._y = vcam._y; } frame 7691 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(8273); } frame 7696 { fade._x = vcam._x; fade._y = vcam._y; } frame 7711 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7573); } frame 7716 { fade._x = vcam._x; fade._y = vcam._y; } frame 7731 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7752); } frame 7736 { fade._x = vcam._x; fade._y = vcam._y; } frame 7751 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); _global.telep4open = true; gotoAndStop(1115); } frame 7752 { stopAllSounds(); var music = new Sound(); music.attachSound('music_dungeon'); music.start(0, 99); player.gravity = 0; player.hits = 0; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7766); } else { if (exit2.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7786); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7806); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7826); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } movieClip 1534 { } movieClip 1536 { } movieClip 1538 { } movieClip 1539 { } movieClip 1540 { } movieClip 1541 { } movieClip 1542 { frame 1 { hp = 120; facing = 1; } frame 2 { stop(); xmove = -8; if (facing == -1) { xmove *= -1; sprite._xscale *= -1; } removeMovieClip(damagetext); onthisframe = true; onEnterFrame = function () { if (onthisframe == true) { i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { xmove *= -1; sprite._xscale *= -1; facing *= -1; this._x += xmove; } ++i; } if (hitbox.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 70; _root.player.gotoAndPlay(50); } if (this.hitTest(_root.player.weaponstrike)) { damage = _global.playerattack * 0.1 * random(3) + _global.playerattack - 6; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.icebeam)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.explosion)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.megabolt)) { damage = _global.playerbaseattack * 3; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.painwave)) { damage = _global.playerbaseattack * 4; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } this._x += xmove; } }; } frame 3 { this._x += 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(41); facing *= -1; } ++i; } onEnterFrame = function () {}; } frame 4 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(42); facing *= -1; } ++i; } } frame 5 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(43); facing *= -1; } ++i; } } frame 6 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(44); facing *= -1; } ++i; } } frame 7 { this._x += 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(45); facing *= -1; } ++i; } } frame 8 { this._x += 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(46); facing *= -1; } ++i; } } frame 9 { this._x += 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(47); facing *= -1; } ++i; } } frame 10 { this._x += 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(48); facing *= -1; } ++i; } } frame 15 { if (hp <= 0) { gotoAndPlay(80); } } frame 16 { this._x -= 5; gotoAndStop(2); } frame 40 { this._x -= 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(4); facing *= -1; } ++i; } onEnterFrame = function () {}; } frame 41 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(5); facing *= -1; } ++i; } } frame 42 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(6); facing *= -1; } ++i; } } frame 43 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(7); facing *= -1; } ++i; } } frame 44 { this._x -= 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(8); facing *= -1; } ++i; } } frame 45 { this._x -= 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(9); facing *= -1; } ++i; } } frame 46 { this._x -= 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(10); facing *= -1; } ++i; } } frame 47 { this._x -= 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(11); facing *= -1; } ++i; } } frame 52 { if (hp <= 0) { gotoAndPlay(80); } } frame 53 { this._x += 5; gotoAndStop(2); } frame 80 { onthisframe = false; _global.playerexp += 40; _global.coinage += 43; _root.vcam.smallstatsbox.gainexp(); } frame 108 { stop(); this.unloadMovie(); } } frame 7753 { player.gravity = 0; player.hits = 0; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7766); } else { if (exit2.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7786); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7806); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7826); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 7766 { fade._x = vcam._x; fade._y = vcam._y; } frame 7781 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7663); } frame 7786 { fade._x = vcam._x; fade._y = vcam._y; } frame 7801 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7842); } frame 7806 { fade._x = vcam._x; fade._y = vcam._y; } frame 7821 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7753); } frame 7826 { fade._x = vcam._x; fade._y = vcam._y; } frame 7841 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7752); } frame 7842 { player.gravity = 0; player.hits = 0; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7856); } else { if (exit2.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7876); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7896); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7916); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 7843 { player.gravity = 0; player.hits = 0; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7856); } else { if (exit2.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7876); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7896); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7916); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 7856 { fade._x = vcam._x; fade._y = vcam._y; } frame 7871 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7753); } frame 7876 { fade._x = vcam._x; fade._y = vcam._y; } frame 7891 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7932); } frame 7896 { fade._x = vcam._x; fade._y = vcam._y; } frame 7911 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7843); } frame 7916 { fade._x = vcam._x; fade._y = vcam._y; } frame 7931 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7842); } frame 7932 { player.gravity = 0; player.hits = 0; stoppers = 4; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7946); } else { if (exit2.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7966); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7986); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8006); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 7933 { stopAllSounds(); var music = new Sound(); music.attachSound('music_dungeon'); music.start(0, 99); player.gravity = 0; player.hits = 0; stoppers = 4; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7946); } else { if (exit2.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7966); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(7986); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8006); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 7946 { fade._x = vcam._x; fade._y = vcam._y; } frame 7961 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7843); } frame 7966 { fade._x = vcam._x; fade._y = vcam._y; } frame 7981 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(8022); } frame 7986 { fade._x = vcam._x; fade._y = vcam._y; } frame 8001 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7933); } frame 8006 { fade._x = vcam._x; fade._y = vcam._y; } frame 8021 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7932); } frame 8022 { stopAllSounds(); if (_global.teacherbeaten == false) { gotoAndPlay(8121); } player.gravity = 0; player.hits = 0; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8036); } else { if (exit2.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8056); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8076); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8096); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 8023 { stopAllSounds(); var music = new Sound(); music.attachSound('music_boss'); music.start(0, 99); player.gravity = 0; player.hits = 0; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; bossdead = false; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8036); } else { if (exit2.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8056); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8076); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8096); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } if (bossdead == true) { gotoAndPlay(8096); } }; } movieClip 1557 { } movieClip 1559 { } movieClip 1560 { } movieClip 1562 { } movieClip 1564 { } movieClip 1565 { } movieClip 1566 { } movieClip 1567 { } movieClip 1568 { frame 1 { hp = 600; facing = 1; } frame 2 { xmove = -4; if (facing == -1) { xmove *= -1; sprite._xscale = -100; } removeMovieClip(damagetext); moving = true; onthisframe = true; onEnterFrame = function () { i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { xmove *= -1; facing *= -1; sprite._xscale *= -1; if (this._x > _root['stopper' + i]._x) { this._x += 2; } else { this._x -= 2; } } ++i; } if (this.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 77; _root.player.gotoAndPlay(50); } if (hitbox.hitTest(_root.player.weaponstrike)) { damage = _global.playerattack * 0.1 * random(3) + _global.playerattack - 7; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; gotoAndPlay(145); } if (this.hitTest(_root.magiccaster.icebeam)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; gotoAndPlay(145); } if (this.hitTest(_root.magiccaster.explosion)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; gotoAndPlay(145); } if (this.hitTest(_root.magiccaster.megabolt)) { damage = _global.playerbaseattack * 2.5; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; gotoAndPlay(145); } if (this.hitTest(_root.magiccaster.painwave)) { damage = _global.playerbaseattack * 4; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; gotoAndPlay(145); } if (moving == true) { this._x += xmove; } }; } frame 65 { moving = false; if (facing == -1) { sprite._xscale = -100; } else { if (facing == 1) { sprite._xscale = 100; } } } frame 102 { _root.attachMovie('fallingpencil', 'rock1', 7); _root.attachMovie('fallingpencil', 'rock2', 8); _root.attachMovie('fallingpencil', 'rock3', 9); _root.rock1._y = _root.vcam._y - 200; _root.rock2._y = _root.vcam._y - 200; _root.rock3._y = _root.vcam._y - 200; lotto = random(2); if (lotto == 1) { _root.rock1._x = _root.vcam._x - 220; } else { _root.rock1._x = _root.vcam._x - 160; } lotto = random(2); if (lotto == 1) { _root.rock2._x = _root.vcam._x - 15; } else { _root.rock2._x = _root.vcam._x + 5; } lotto = random(2); if (lotto == 1) { _root.rock3._x = _root.vcam._x + 140; } else { _root.rock3._x = _root.vcam._x + 200; } } frame 141 { gotoAndPlay(2); } frame 145 { onEnterFrame = function () {}; if (hp <= 0) { gotoAndPlay(230); } } frame 182 { _root.attachMovie('fallingpencil', 'rock1', 7); _root.attachMovie('fallingpencil', 'rock2', 8); _root.attachMovie('fallingpencil', 'rock3', 9); _root.rock1._y = _root.vcam._y - 200; _root.rock2._y = _root.vcam._y - 200; _root.rock3._y = _root.vcam._y - 200; lotto = random(2); if (lotto == 1) { _root.rock1._x = _root.vcam._x - 220; } else { _root.rock1._x = _root.vcam._x - 160; } lotto = random(2); if (lotto == 1) { _root.rock2._x = _root.vcam._x - 15; } else { _root.rock2._x = _root.vcam._x + 5; } lotto = random(2); if (lotto == 1) { _root.rock3._x = _root.vcam._x + 140; } else { _root.rock3._x = _root.vcam._x + 200; } } frame 221 { gotoAndPlay(2); } frame 230 { onthisframe = false; onEnterFrame = function () {}; _global.playerexp += 320; _global.coinage += 270; _root.vcam.smallstatsbox.gainexp(); } frame 330 { stop(); _root.bossdead = true; this.unloadMovie(); } } frame 8036 { fade._x = vcam._x; fade._y = vcam._y; onEnterFrame = function () {}; } frame 8051 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7933); } frame 8056 { fade._x = vcam._x; fade._y = vcam._y; } frame 8071 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7932); } frame 8076 { fade._x = vcam._x; fade._y = vcam._y; } frame 8091 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(8023); } frame 8096 { fade._x = vcam._x; fade._y = vcam._y; onEnterFrame = function () {}; } frame 8111 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); removeMovieClip(rock1); removeMovieClip(rock2); removeMovieClip(rock3); _global.teacherbeaten = true; gotoAndStop(8022); } frame 8121 { onEnterFrame = function () {}; } frame 8157 { stop(); _global.dialogisup = true; _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 1; _root.dialog.line1 = ':Cyclops: And so, children, my brother was a'; _root.dialog.line2 = 'fine example for all of us monsters to follow,'; _root.dialog.line3 = 'grinding the delicious flesh of weakling humans'; _root.dialog.line4 = 'into yummy SkinMEAL(TM) for us all to enjoy.'; _root.dialog.line5 = 'We should follow in his footsteps and...'; onEnterFrame = function () { if (_global.dialogisup == false) { play(); } }; } frame 8226 { stop(); _global.dialogisup = true; _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 2; _root.dialog.line1 = ':Cyclops: WHOA, hold on a second! You\'re the'; _root.dialog.line2 = 'little bastard who killed my brother! You just'; _root.dialog.line3 = 'made a huge mistake coming here, human! Prepare'; _root.dialog.line4 = 'to be devoured as I obtain revenge for the death'; _root.dialog.line5 = 'of my loving brother!'; _root.dialog.line6 = ':Red Mage: Crap. I should know better than to go'; _root.dialog.line7 = 'wandering through classrooms at schools that'; _root.dialog.line8 = 'teach monsters about eating humans.'; _root.dialog.line9 = ''; _root.dialog.line10 = ''; onEnterFrame = function () { if (_global.dialogisup == false) { play(); } }; } frame 8272 { gotoAndStop(8023); } frame 8273 { stopAllSounds(); var music = new Sound(); music.attachSound('music_junkyard'); music.start(0, 99); player.gravity = 0; player.hits = 0; stoppers = 4; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(8287); } else { if (exit2.hitTest(player)) { gotoAndPlay(8307); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8327); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8347); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } movieClip 1570 { } movieClip 1575 { } movieClip 1577 { } movieClip 1578 { } movieClip 1579 { } movieClip 1595 { frame 1 { hp = 115; facing = 1; } frame 2 { stop(); xmove = -6; if (facing == -1) { xmove *= -1; } removeMovieClip(damagetext); onthisframe = true; currentice = 1; counter = 31; onEnterFrame = function () { if (onthisframe == true) { i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { xmove *= -1; facing *= -1; this._x += xmove; } ++i; } if (this.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 63; _root.player.gotoAndPlay(50); } if (this.hitTest(_root.player.weaponstrike)) { damage = _global.playerattack * 0.1 * random(3) + _global.playerattack - 6; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.icebeam)) { damage = _global.playerbaseattack * 3; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.explosion)) { damage = _global.playerbaseattack * 1.5; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.megabolt)) { damage = _global.playerbaseattack * 2.5; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.painwave)) { damage = _global.playerbaseattack * 4; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } this._x += xmove; --counter; if (counter < 1) { counter = 30; if (currentice > 3) { currentice = 1; } if (currentice == 1) { _root.attachMovie('flame', 'icicle1', 16); _root.icicle1._x = this._x; _root.icicle1._y = this._y; } else { if (currentice == 2) { _root.attachMovie('flame', 'icicle2', 17); _root.icicle2._x = this._x; _root.icicle2._y = this._y; } else { if (currentice == 3) { _root.attachMovie('flame', 'icicle3', 18); _root.icicle3._x = this._x; _root.icicle3._y = this._y; } } } ++currentice; } } }; } frame 3 { this._x += 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(41); facing *= -1; } ++i; } onEnterFrame = function () {}; } frame 4 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(42); facing *= -1; } ++i; } } frame 5 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(43); facing *= -1; } ++i; } } frame 6 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(44); facing *= -1; } ++i; } } frame 7 { this._x += 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(45); facing *= -1; } ++i; } } frame 8 { this._x += 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(46); facing *= -1; } ++i; } } frame 9 { this._x += 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(47); facing *= -1; } ++i; } } frame 10 { this._x += 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(48); facing *= -1; } ++i; } } frame 15 { if (hp <= 0) { gotoAndPlay(80); } } frame 16 { this._x -= 5; gotoAndStop(2); } frame 40 { this._x -= 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(4); facing *= -1; } ++i; } onEnterFrame = function () {}; } frame 41 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(5); facing *= -1; } ++i; } } frame 42 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(6); facing *= -1; } ++i; } } frame 43 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(7); facing *= -1; } ++i; } } frame 44 { this._x -= 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(8); facing *= -1; } ++i; } } frame 45 { this._x -= 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(9); facing *= -1; } ++i; } } frame 46 { this._x -= 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(10); facing *= -1; } ++i; } } frame 47 { this._x -= 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(11); facing *= -1; } ++i; } } frame 52 { if (hp <= 0) { gotoAndPlay(80); } } frame 53 { this._x += 5; gotoAndStop(2); } frame 80 { onthisframe = false; _global.playerexp += 40; _global.coinage += 44; _root.vcam.smallstatsbox.gainexp(); } frame 102 { stop(); this.unloadMovie(); } } movieClip 1597 { frame 1 { onEnterFrame = function () { if (hitbox.hitTest(_root.player.player1) && _global.invincible == false && _global.cursed == false) { _root.attachMovie('cursing', 'cursing', 34); _root.cursing._x = _root.player._x; _root.cursing._y = _root.player._y - 25; _global.cursed = true; } }; } } movieClip 1602 { } movieClip 1603 { } movieClip 1604 { } movieClip 1612 { frame 1 { hp = 133; facing = 1; } frame 2 { stop(); xmove = -5; counter = 0; if (facing == -1) { xmove *= -1; sprite._xscale *= -1; } removeMovieClip(damagetext); onthisframe = true; onEnterFrame = function () { if (onthisframe == true) { i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { xmove *= -1; sprite._xscale *= -1; facing *= -1; this._x += xmove; } ++i; } if (this.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 72; _root.player.gotoAndPlay(50); } if (this.hitTest(_root.player.weaponstrike)) { damage = _global.playerattack * 0.1 * random(3) + _global.playerattack - 6; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.icebeam)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.explosion)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.megabolt)) { damage = _global.playerbaseattack * 2.5; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.painwave)) { damage = _global.playerbaseattack * 4; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } this._x += xmove; ++counter; if (counter >= 46) { _root.attachMovie('orb', 'orb', 10); _root.orb._x = this._x; _root.orb._y = this._y; counter = 0; } } }; } frame 3 { this._x += 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(41); facing *= -1; } ++i; } onEnterFrame = function () {}; } frame 4 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(42); facing *= -1; } ++i; } } frame 5 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(43); facing *= -1; } ++i; } } frame 6 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(44); facing *= -1; } ++i; } } frame 7 { this._x += 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(45); facing *= -1; } ++i; } } frame 8 { this._x += 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(46); facing *= -1; } ++i; } } frame 9 { this._x += 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(47); facing *= -1; } ++i; } } frame 10 { this._x += 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(48); facing *= -1; } ++i; } } frame 15 { if (hp <= 0) { gotoAndPlay(80); } } frame 16 { this._x -= 5; gotoAndStop(2); } frame 40 { this._x -= 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(4); facing *= -1; } ++i; } onEnterFrame = function () {}; } frame 41 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(5); facing *= -1; } ++i; } } frame 42 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(6); facing *= -1; } ++i; } } frame 43 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(7); facing *= -1; } ++i; } } frame 44 { this._x -= 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(8); facing *= -1; } ++i; } } frame 45 { this._x -= 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(9); facing *= -1; } ++i; } } frame 46 { this._x -= 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(10); facing *= -1; } ++i; } } frame 47 { this._x -= 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(11); facing *= -1; } ++i; } } frame 52 { if (hp <= 0) { gotoAndPlay(80); } } frame 53 { this._x += 5; gotoAndStop(2); } frame 80 { onthisframe = false; _global.playerexp += 48; _global.coinage += 51; _root.vcam.smallstatsbox.gainexp(); } frame 108 { stop(); this.unloadMovie(); } } frame 8274 { stopAllSounds(); var music = new Sound(); music.attachSound('music_junkyard'); music.start(0, 99); player.gravity = 0; player.hits = 0; stoppers = 4; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(8287); } else { if (exit2.hitTest(player)) { gotoAndPlay(8307); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8327); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8347); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 8287 { fade._x = vcam._x; fade._y = vcam._y; } frame 8302 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(8363); } frame 8307 { fade._x = vcam._x; fade._y = vcam._y; } frame 8322 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(7664); } frame 8327 { fade._x = vcam._x; fade._y = vcam._y; } frame 8342 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(8274); } frame 8347 { fade._x = vcam._x; fade._y = vcam._y; } frame 8362 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(8273); } frame 8363 { player.gravity = 0; player.hits = 0; stoppers = 4; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(8377); } else { if (exit2.hitTest(player)) { gotoAndPlay(8397); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8417); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8437); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 8364 { player.gravity = 0; player.hits = 0; stoppers = 4; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(8377); } else { if (exit2.hitTest(player)) { gotoAndPlay(8397); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8417); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8437); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 8365 { player.gravity = 0; player.hits = 0; stoppers = 4; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(8377); } else { if (exit2.hitTest(player)) { gotoAndPlay(8397); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8417); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8437); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 8377 { fade._x = vcam._x; fade._y = vcam._y; } frame 8392 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(8483); } frame 8397 { fade._x = vcam._x; fade._y = vcam._y; } frame 8412 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(8274); } frame 8417 { fade._x = vcam._x; fade._y = vcam._y; } frame 8432 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(8453); } frame 8437 { fade._x = vcam._x; fade._y = vcam._y; } frame 8452 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(8363); } frame 8453 { player.gravity = 0; player.hits = 0; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; if (_global.gotanticurse == true) { hpup.unloadMovie(); spellscroll.unloadMovie(); } soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8467); } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } movieClip 1617 { frame 1 { stop(); onEnterFrame = function () { if (this.hitTest(_root.player.player1)) { _global.gotanticurse = true; play(); } }; } frame 51 { this.unloadMovie(); } } movieClip 1619 { } movieClip 1620 { } movieClip 1621 { frame 1 { hp = 155; facing = 1; xmove = -7; ymove = -10; } frame 2 { stop(); if (facing == -1) { xmove = 7; } removeMovieClip(damagetext); onthisframe = true; onEnterFrame = function () { i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { xmove *= -1; facing *= -1; if (this._x > _root['stopper' + i]._x) { this._x += 2; } else { this._x -= 2; } } ++i; } if (this.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 82; _root.player.gotoAndPlay(50); } if (this.hitTest(_root.player.weaponstrike)) { damage = _global.playerattack * 0.1 * random(3) + _global.playerattack - 7; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.icebeam)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.explosion)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.megabolt)) { damage = _global.playerbaseattack * 2.5; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.painwave)) { damage = _global.playerbaseattack * 4; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } ++ymove; if (ymove > 9) { ymove = -9; } this._x += xmove; this._y += ymove; }; } frame 75 { onEnterFrame = function () {}; this._x += 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(111); facing *= -1; } ++i; } } frame 76 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(112); facing *= -1; } ++i; } } frame 77 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(113); facing *= -1; } ++i; } } frame 78 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(114); facing *= -1; } ++i; } } frame 79 { this._x += 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(115); facing *= -1; } ++i; } } frame 80 { this._x += 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(116); facing *= -1; } ++i; } } frame 81 { this._x += 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(117); facing *= -1; } ++i; } } frame 82 { this._x += 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(118); facing *= -1; } ++i; } } frame 87 { if (hp <= 0) { gotoAndPlay(145); } } frame 88 { this._x -= 5; gotoAndPlay(2); } frame 110 { onEnterFrame = function () {}; this._x -= 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(76); facing *= -1; } ++i; } } frame 111 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(77); facing *= -1; } ++i; } } frame 112 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(78); facing *= -1; } ++i; } } frame 113 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(79); facing *= -1; } ++i; } } frame 114 { this._x -= 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(80); facing *= -1; } ++i; } } frame 115 { this._x -= 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(81); facing *= -1; } ++i; } } frame 116 { this._x -= 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(82); facing *= -1; } ++i; } } frame 117 { this._x -= 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(83); facing *= -1; } ++i; } } frame 122 { if (hp <= 0) { gotoAndPlay(145); } } frame 123 { this._x += 5; gotoAndPlay(2); } frame 145 { onthisframe = false; _global.playerexp += 52; _global.coinage += 48; _root.vcam.smallstatsbox.gainexp(); } frame 168 { stop(); this.unloadMovie(); } } frame 8467 { fade._x = vcam._x; fade._y = vcam._y; } frame 8482 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(8365); } frame 8483 { player.gravity = 0; player.hits = 0; stoppers = 3; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(8497); } else { if (exit2.hitTest(player)) { gotoAndPlay(8517); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8537); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8557); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 8484 { player.gravity = 0; player.hits = 0; stoppers = 3; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(8497); } else { if (exit2.hitTest(player)) { gotoAndPlay(8517); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8537); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8557); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 8497 { fade._x = vcam._x; fade._y = vcam._y; } frame 8512 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(8573); } frame 8517 { fade._x = vcam._x; fade._y = vcam._y; } frame 8532 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(8364); } frame 8537 { fade._x = vcam._x; fade._y = vcam._y; } frame 8552 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(8484); } frame 8557 { fade._x = vcam._x; fade._y = vcam._y; } frame 8572 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(8483); } frame 8573 { player.gravity = 0; player.hits = 0; stoppers = 4; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(8587); } else { if (exit2.hitTest(player)) { gotoAndPlay(8607); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8627); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8647); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } movieClip 1626 { } frame 8574 { stopAllSounds(); var music = new Sound(); music.attachSound('music_junkyard'); music.start(0, 99); player.gravity = 0; player.hits = 0; stoppers = 4; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(8587); } else { if (exit2.hitTest(player)) { gotoAndPlay(8607); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8627); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8647); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 8587 { fade._x = vcam._x; fade._y = vcam._y; } frame 8602 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(8663); } frame 8607 { fade._x = vcam._x; fade._y = vcam._y; } frame 8622 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(8484); } frame 8627 { fade._x = vcam._x; fade._y = vcam._y; } frame 8642 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(8663); } frame 8647 { fade._x = vcam._x; fade._y = vcam._y; } frame 8662 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(8573); } frame 8663 { stopAllSounds(); var music = new Sound(); music.attachSound('music_dungeon'); music.start(0, 99); player.gravity = 0; player.hits = 0; stoppers = 3; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8677); } else { if (exit2.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8697); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8717); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8737); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } movieClip 1633 { } movieClip 1643 { frame 1 { stop(); onEnterFrame = function () { if (this.hitTest(_root.magiccaster.megabolt)) { play(); } }; } frame 2 { onEnterFrame = function () {}; } frame 10 { stop(); _root.barrierhb.unloadMovie(); _root.barrier.unloadMovie(); } } movieClip 1645 { frame 1 { onEnterFrame = function () { if (Key.isDown(40) && this.hitTest(_root.player) && _global.dialogisup == false) { _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 1; _root.dialog.line1 = 'NOTE: Do not overload generator with extra'; _root.dialog.line2 = 'current.'; _root.dialog.line3 = ''; _root.dialog.line4 = 'That means YOU, Steve.'; _root.dialog.line5 = '-Management'; } }; } } movieClip 1650 { } movieClip 1653 { } movieClip 1656 { } movieClip 1657 { } movieClip 1658 { frame 1 { hp = 142; facing = 1; } frame 2 { xmove = -6; if (facing == -1) { xmove *= -1; sprite._xscale = -100; } removeMovieClip(damagetext); onthisframe = true; onEnterFrame = function () { i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { xmove *= -1; facing *= -1; sprite._xscale *= -1; if (this._x > _root['stopper' + i]._x) { this._x += 2; } else { this._x -= 2; } } ++i; } if (this.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 80; _root.player.gotoAndPlay(50); } if (this.hitTest(_root.player.weaponstrike)) { damage = _global.playerattack * 0.1 * random(3) + _global.playerattack - 7; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.icebeam)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.explosion)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.megabolt)) { damage = _global.playerbaseattack * 2.5; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } if (this.hitTest(_root.magiccaster.painwave)) { damage = _global.playerbaseattack * 4; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(75); } else { gotoAndPlay(110); } } this._x += xmove; }; } frame 40 { _root.attachMovie('cultistblast', 'cultistblast', 10); _root.cultistblast.going = facing; _root.cultistblast._x = this._x; _root.cultistblast._y = this._y - 44; } frame 54 { gotoAndPlay(2); } frame 75 { onEnterFrame = function () {}; this._x += 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(111); facing *= -1; } ++i; } } frame 76 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(112); facing *= -1; } ++i; } } frame 77 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(113); facing *= -1; } ++i; } } frame 78 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(114); facing *= -1; } ++i; } } frame 79 { this._x += 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(115); facing *= -1; } ++i; } } frame 80 { this._x += 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(116); facing *= -1; } ++i; } } frame 81 { this._x += 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(117); facing *= -1; } ++i; } } frame 82 { this._x += 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(118); facing *= -1; } ++i; } } frame 87 { if (hp <= 0) { gotoAndPlay(145); } } frame 88 { this._x -= 5; gotoAndPlay(2); } frame 110 { onEnterFrame = function () {}; this._x -= 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(76); facing *= -1; } ++i; } } frame 111 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(77); facing *= -1; } ++i; } } frame 112 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(78); facing *= -1; } ++i; } } frame 113 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(79); facing *= -1; } ++i; } } frame 114 { this._x -= 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(80); facing *= -1; } ++i; } } frame 115 { this._x -= 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(81); facing *= -1; } ++i; } } frame 116 { this._x -= 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(82); facing *= -1; } ++i; } } frame 117 { this._x -= 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(83); facing *= -1; } ++i; } } frame 122 { if (hp <= 0) { gotoAndPlay(145); } } frame 123 { this._x += 5; gotoAndPlay(2); } frame 145 { onthisframe = false; _global.playerexp += 50; _global.coinage += 54; _root.vcam.smallstatsbox.gainexp(); } frame 170 { stop(); this.unloadMovie(); } } frame 8664 { player.gravity = 0; player.hits = 0; stoppers = 3; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8677); } else { if (exit2.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8697); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8717); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8737); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } movieClip 1662 { } frame 8677 { fade._x = vcam._x; fade._y = vcam._y; } frame 8692 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(8574); } frame 8697 { fade._x = vcam._x; fade._y = vcam._y; } frame 8712 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(8753); } frame 8717 { fade._x = vcam._x; fade._y = vcam._y; } frame 8732 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(8664); } frame 8737 { fade._x = vcam._x; fade._y = vcam._y; } frame 8752 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(8663); } frame 8753 { player.gravity = 0; player.hits = 0; stoppers = 6; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8767); } else { if (exit2.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8787); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8807); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8827); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } movieClip 1668 { } frame 8754 { player.gravity = 0; player.hits = 0; stoppers = 6; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8767); } else { if (exit2.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8787); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8807); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8827); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 8767 { fade._x = vcam._x; fade._y = vcam._y; } frame 8782 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(8664); } frame 8787 { fade._x = vcam._x; fade._y = vcam._y; } frame 8802 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(8843); } frame 8807 { fade._x = vcam._x; fade._y = vcam._y; } frame 8822 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(8663); } frame 8827 { fade._x = vcam._x; fade._y = vcam._y; } frame 8842 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(8663); } frame 8843 { player.gravity = 0; player.hits = 0; stoppers = 7; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8857); } else { if (exit2.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8877); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8897); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8917); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 8844 { player.gravity = 0; player.hits = 0; stoppers = 7; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8857); } else { if (exit2.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8877); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8897); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8917); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 8857 { fade._x = vcam._x; fade._y = vcam._y; } frame 8872 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(8754); } frame 8877 { fade._x = vcam._x; fade._y = vcam._y; } frame 8892 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(8933); } frame 8897 { fade._x = vcam._x; fade._y = vcam._y; } frame 8912 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(8663); } frame 8917 { fade._x = vcam._x; fade._y = vcam._y; } frame 8932 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(8663); } frame 8933 { stopAllSounds(); if (_global.gotduckkey == false) { gotoAndPlay(8992); } player.gravity = 0; player.hits = 0; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8947); } else { if (exit2.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8967); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8987); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(9007); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 8934 { stopAllSounds(); var music = new Sound(); music.attachSound('music_dungeon'); music.start(0, 99); player.gravity = 0; player.hits = 0; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); _global.dialogisup = true; _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 1; _root.dialog.line1 = 'You found a Duck Key!'; _root.dialog.line2 = ''; _root.dialog.line3 = ''; _root.dialog.line4 = ''; _root.dialog.line5 = ''; _global.gotduckkey = true; onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8947); } else { if (exit2.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8967); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8987); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(9007); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 8935 { stopAllSounds(); var music = new Sound(); music.attachSound('music_boss'); music.start(0, 99); player.gravity = 0; player.hits = 0; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; bossdead = false; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8947); } else { if (exit2.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8967); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(8987); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(9007); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } if (bossdead == true) { gotoAndPlay(8967); } }; } movieClip 1678 { } movieClip 1680 { } movieClip 1682 { } movieClip 1684 { } movieClip 1685 { } movieClip 1686 { frame 1 { hp = 900; facing = 1; xmove = -5; ymove = -15; vulnerable = false; } frame 2 { if (facing == -1) { xmove = 5; sprite._xscale = -100; } removeMovieClip(damagetext); onthisframe = true; onEnterFrame = function () { if (hitbox.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 98; _root.player.gotoAndPlay(50); } if (this.hitTest(_root.wolfblast1) && _root.wolfblast1.hitback == true || this.hitTest(_root.wolfblast2) && _root.wolfblast2.hitback == true) { gotoAndPlay(100); } }; } frame 95 { stop(); if (facing == -1) { xmove = 5; sprite._xscale = -100; } removeMovieClip(damagetext); onthisframe = true; onEnterFrame = function () { i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { xmove *= -1; facing *= -1; sprite._xscale *= -1; if (this._x > _root['stopper' + i]._x) { this._x += 2; } else { this._x -= 2; } } ++i; } if (hitbox.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 98; _root.player.gotoAndPlay(50); } ++ymove; if (ymove > 14) { _root.attachMovie('otherwolfblast1', 'wolfblast1', 19); _root.wolfblast1._x = this._x; _root.wolfblast1._y = this._y; _root.attachMovie('otherwolfblast2', 'wolfblast2', 21); _root.wolfblast2._x = this._x; _root.wolfblast2._y = this._y; ymove = -15; gotoAndPlay(2); } else { this._x += xmove; this._y += ymove; } }; } frame 100 { if (facing == -1) { xmove = 5; sprite._xscale = -100; } removeMovieClip(damagetext); onthisframe = true; onEnterFrame = function () { i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { xmove *= -1; facing *= -1; sprite._xscale *= -1; if (this._x > _root['stopper' + i]._x) { this._x += 2; } else { this._x -= 2; } } ++i; } if (this.hitTest(_root.player.weaponstrike)) { damage = _global.playerattack * 0.1 * random(3) + _global.playerattack - 8; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(205); } else { gotoAndPlay(240); } } if (this.hitTest(_root.magiccaster.icebeam)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(205); } else { gotoAndPlay(240); } } if (this.hitTest(_root.magiccaster.explosion)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(205); } else { gotoAndPlay(240); } } if (this.hitTest(_root.magiccaster.megabolt)) { damage = _global.playerbaseattack * 2.5; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(205); } else { gotoAndPlay(240); } } if (this.hitTest(_root.magiccaster.painwave)) { damage = _global.playerbaseattack * 4; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(205); } else { gotoAndPlay(240); } } }; } frame 194 { gotoAndPlay(2); } frame 205 { onEnterFrame = function () {}; this._x += 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(241); facing *= -1; } ++i; } } frame 206 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(242); facing *= -1; } ++i; } } frame 207 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(243); facing *= -1; } ++i; } } frame 208 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(244); facing *= -1; } ++i; } } frame 209 { this._x += 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(245); facing *= -1; } ++i; } } frame 210 { this._x += 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(246); facing *= -1; } ++i; } } frame 211 { this._x += 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(247); facing *= -1; } ++i; } } frame 212 { this._x += 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(248); facing *= -1; } ++i; } } frame 217 { if (hp <= 0) { gotoAndPlay(275); } } frame 218 { this._x -= 5; gotoAndPlay(2); } frame 240 { onEnterFrame = function () {}; this._x -= 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(206); facing *= -1; } ++i; } } frame 241 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(207); facing *= -1; } ++i; } } frame 242 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(208); facing *= -1; } ++i; } } frame 243 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(209); facing *= -1; } ++i; } } frame 244 { this._x -= 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(210); facing *= -1; } ++i; } } frame 245 { this._x -= 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(211); facing *= -1; } ++i; } } frame 246 { this._x -= 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(212); facing *= -1; } ++i; } } frame 247 { this._x -= 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(213); facing *= -1; } ++i; } } frame 252 { if (hp <= 0) { gotoAndPlay(275); } } frame 253 { this._x += 5; gotoAndPlay(2); } frame 275 { onthisframe = false; _global.playerexp += 500; _global.coinage += 600; _root.vcam.smallstatsbox.gainexp(); } frame 345 { _root.bossdead = true; stop(); this.unloadMovie(); } } frame 8947 { fade._x = vcam._x; fade._y = vcam._y; onEnterFrame = function () {}; } frame 8962 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(8844); } frame 8967 { fade._x = vcam._x; fade._y = vcam._y; onEnterFrame = function () {}; } frame 8982 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); removeMovieClip(wolfblast1); removeMovieClip(wolfblast2); gotoAndStop(8934); } frame 9081 { stop(); _global.dialogisup = true; _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 1; _root.dialog.line1 = ':Pink-hooded one: Let us praise the almighty'; _root.dialog.line2 = 'mathematics, for we Mathematologists shall soon'; _root.dialog.line3 = 'strike back at the kingdom of fools that have'; _root.dialog.line4 = 'rejected us, and we shall have our revenge!'; _root.dialog.line5 = ''; onEnterFrame = function () { if (_global.dialogisup == false) { play(); } }; } frame 9162 { stop(); _global.dialogisup = true; _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 3; _root.dialog.line1 = ':Layla: So you\'re the ones who are plotting to'; _root.dialog.line2 = 'destroy Porcos! Well I\'ve found you and now'; _root.dialog.line3 = 'you\'re going to be stopped!'; _root.dialog.line4 = ''; _root.dialog.line5 = ''; _root.dialog.line6 = ':Pink-hooded one: What the fudge? How did you'; _root.dialog.line7 = 'get past our brilliant math puzzles? You\'re a'; _root.dialog.line8 = 'girl, and everyone knows girls suck at math!'; _root.dialog.line9 = 'That\'s why we Mathematologists hate girls and'; _root.dialog.line10 = 'shun them and choose to live alternative...'; _root.dialog.line11 = '...lifestyles with one another and...and...'; _root.dialog.line12 = '...'; _root.dialog.line13 = 'AUUGGGHH! ALL I EVER WANTED WAS TO TOUCH A BOOB!'; _root.dialog.line14 = ''; _root.dialog.line15 = ''; onEnterFrame = function () { if (_global.dialogisup == false) { play(); } }; } frame 9213 { stop(); _global.dialogisup = true; _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 5; _root.dialog.line1 = ':Red Mage: Alright, I am completely fed up with'; _root.dialog.line2 = 'your bullshit now, you little bitch, and I\'m'; _root.dialog.line3 = 'seriously considering knocking your ass out cold'; _root.dialog.line4 = 'and dragging you back to your dad unconscious.'; _root.dialog.line5 = 'And who are these weirdos you\'re picking a...'; _root.dialog.line6 = '...fight with now?'; _root.dialog.line7 = ''; _root.dialog.line8 = ''; _root.dialog.line9 = ''; _root.dialog.line10 = ''; _root.dialog.line11 = ':Pink-hooded one: Your kingdom has wronged us,'; _root.dialog.line12 = 'idiotic knight, and we shall soon have our'; _root.dialog.line13 = 'revenge! A year and a half ago, we opened our'; _root.dialog.line14 = 'mathematics shop to spread the joy of math to'; _root.dialog.line15 = 'all. But the ignorant, thick-headed people of'; _root.dialog.line16 = 'the kingdom of Porcos barely bought any of our'; _root.dialog.line17 = 'fine merchandise, and we went bankrupt in a few'; _root.dialog.line18 = 'weeks! And to add insult to injury, they dumped'; _root.dialog.line19 = 'our whole store into this junkyard after we'; _root.dialog.line20 = 'went out of business! Now they all shall pay!'; _root.dialog.line21 = 'Bow before Lord Pythagorea and the mighty'; _root.dialog.line22 = 'Mathematologists!'; _root.dialog.line23 = ''; _root.dialog.line24 = ''; _root.dialog.line25 = ''; onEnterFrame = function () { if (_global.dialogisup == false) { play(); } }; } movieClip 1699 { } movieClip 1703 { } frame 9328 { stop(); _global.dialogisup = true; _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 2; _root.dialog.line1 = ':Lord Pythagorea: I\'ll just be kidnapping the'; _root.dialog.line2 = 'princess and heading off to my secret duck'; _root.dialog.line3 = 'headquarters now to prepare for the destruction'; _root.dialog.line4 = 'of Porcos. You\'ll get to see the true power of'; _root.dialog.line5 = 'mathematics soon, white-haired one.'; _root.dialog.line6 = 'Oh, I guess I\'d better leave you with a boss to'; _root.dialog.line7 = 'slow you down and cover my escape and all that.'; _root.dialog.line8 = 'Hmm... how about a palette swap of that werewolf'; _root.dialog.line9 = 'you fought earlier? I\'m sure you enjoy fighting'; _root.dialog.line10 = 'the same boss twice, don\'t you?'; onEnterFrame = function () { if (_global.dialogisup == false) { play(); } }; } frame 9387 { stop(); _global.dialogisup = true; _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 1; _root.dialog.line1 = ':Lord Pythagorea: Well, see you around!'; _root.dialog.line2 = ''; _root.dialog.line3 = ''; _root.dialog.line4 = ''; _root.dialog.line5 = ''; onEnterFrame = function () { if (_global.dialogisup == false) { play(); } }; } frame 9448 { stop(); _global.dialogisup = true; _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 1; _root.dialog.line1 = ':Red Mage: It never ends, this shit...'; _root.dialog.line2 = ''; _root.dialog.line3 = ''; _root.dialog.line4 = ''; _root.dialog.line5 = ''; onEnterFrame = function () { if (_global.dialogisup == false) { play(); } }; } frame 9482 { gotoAndStop(8935); } frame 9603 { stopAllSounds(); var music = new Sound(); music.attachSound('music_secret'); music.start(0, 99); player.gravity = 0; player.hits = 0; stoppers = 6; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player) && Key.isDown(40)) { gotoAndPlay(9617); } else { if (exit2.hitTest(player)) { gotoAndPlay(9637); } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } movieClip 1707 { frame 1 { onEnterFrame = function () { if (Key.isDown(40) && this.hitTest(_root.player) && _global.dialogisup == false) { _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 1; _root.dialog.line1 = 'Welcome to the (somewhat) secret dungeon! If you'; _root.dialog.line2 = 'stick it out to the end, there will be a nice'; _root.dialog.line3 = 'reward waiting for you! If you get in over your'; _root.dialog.line4 = 'head, though, heading back a scene will take you'; _root.dialog.line5 = 'straight back to the beginning.'; } }; } } frame 9617 { fade._x = vcam._x; fade._y = vcam._y; } frame 9632 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(2113); } frame 9637 { fade._x = vcam._x; fade._y = vcam._y; } frame 9652 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(9653); } frame 9653 { player.gravity = 0; player.hits = 0; stoppers = 6; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(9667); } else { if (exit2.hitTest(player)) { gotoAndPlay(9687); } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 9667 { fade._x = vcam._x; fade._y = vcam._y; } frame 9682 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(9603); } frame 9687 { fade._x = vcam._x; fade._y = vcam._y; } frame 9702 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(9703); } frame 9703 { player.gravity = 0; player.hits = 0; stoppers = 6; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(9717); } else { if (exit2.hitTest(player)) { gotoAndPlay(9737); } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 9717 { fade._x = vcam._x; fade._y = vcam._y; } frame 9732 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(9603); } frame 9737 { fade._x = vcam._x; fade._y = vcam._y; } frame 9752 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(9753); } frame 9753 { player.gravity = 0; player.hits = 0; stoppers = 6; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(9767); } else { if (exit2.hitTest(player)) { gotoAndPlay(9787); } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 9767 { fade._x = vcam._x; fade._y = vcam._y; } frame 9782 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(9603); } frame 9787 { fade._x = vcam._x; fade._y = vcam._y; } frame 9802 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(9803); } frame 9803 { player.gravity = 0; player.hits = 0; stoppers = 6; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(9817); } else { if (exit2.hitTest(player)) { gotoAndPlay(9837); } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 9817 { fade._x = vcam._x; fade._y = vcam._y; } frame 9832 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(9603); } frame 9837 { fade._x = vcam._x; fade._y = vcam._y; } frame 9852 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(9853); } frame 9853 { player.gravity = 0; player.hits = 0; stoppers = 6; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(9867); } else { if (exit2.hitTest(player)) { gotoAndPlay(9887); } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 9867 { fade._x = vcam._x; fade._y = vcam._y; } frame 9882 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(9603); } frame 9887 { fade._x = vcam._x; fade._y = vcam._y; } frame 9902 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(9903); } frame 9903 { player.gravity = 0; player.hits = 0; stoppers = 6; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(9917); } else { if (exit2.hitTest(player)) { gotoAndPlay(9937); } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 9917 { fade._x = vcam._x; fade._y = vcam._y; } frame 9932 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(9603); } frame 9937 { fade._x = vcam._x; fade._y = vcam._y; } frame 9952 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(9953); } frame 9953 { player.gravity = 0; player.hits = 0; stoppers = 6; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(9967); } else { if (exit2.hitTest(player)) { gotoAndPlay(9987); } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 9967 { fade._x = vcam._x; fade._y = vcam._y; } frame 9982 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(9603); } frame 9987 { fade._x = vcam._x; fade._y = vcam._y; } frame 10002 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(10003); } frame 10003 { player.gravity = 0; player.hits = 0; stoppers = 6; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); if (_global.gotpainwave == true) { spellscroll.unloadMovie(); } onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(10017); } else { if (exit2.hitTest(player)) { gotoAndPlay(10037); } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } movieClip 1719 { frame 1 { stop(); onEnterFrame = function () { if (this.hitTest(_root.player.player1)) { _global.gotpainwave = true; play(); } }; } frame 51 { this.unloadMovie(); } } frame 10017 { fade._x = vcam._x; fade._y = vcam._y; } frame 10032 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(9603); } frame 10033 { stopAllSounds(); var music = new Sound(); music.attachSound('music_ascii'); music.start(0, 99); player.gravity = 0; player.hits = 0; stoppers = 6; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player) && Key.isDown(40)) { gotoAndPlay(10047); } else { if (exit2.hitTest(player)) { gotoAndPlay(10067); } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } movieClip 1728 { } movieClip 1731 { frame 1 { onEnterFrame = function () {}; } frame 49 { onEnterFrame = function () { if (this.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 104; _root.player.gotoAndPlay(50); } }; } frame 75 { onEnterFrame = function () {}; } } movieClip 1734 { } movieClip 1735 { frame 1 { hp = 230; facing = 1; } frame 2 { stop(); xmove = -4; if (facing == -1) { xmove *= -1; sprite._xscale *= -1; laser._x *= -1; } removeMovieClip(damagetext); onthisframe = true; onEnterFrame = function () { if (onthisframe == true) { i = 1; while (i <= _root.stoppers) { if (sprite.hitTest(_root['stopper' + i])) { xmove *= -1; sprite._xscale *= -1; facing *= -1; laser._x *= -1; if (this._x > _root['stopper' + i]._x) { this._x += 2; } else { this._x -= 2; } } ++i; } if (hitbox.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 106; _root.player.gotoAndPlay(50); } if (this.hitTest(_root.player.weaponstrike)) { damage = _global.playerattack * 0.1 * random(3) + _global.playerattack - 9; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.icebeam)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.explosion)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.megabolt)) { damage = _global.playerbaseattack * 3; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.painwave)) { damage = _global.playerbaseattack * 4; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } this._x += xmove; } }; } frame 3 { this._x += 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(41); facing *= -1; } ++i; } onEnterFrame = function () {}; } frame 4 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(42); facing *= -1; } ++i; } } frame 5 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(43); facing *= -1; } ++i; } } frame 6 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(44); facing *= -1; } ++i; } } frame 7 { this._x += 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(45); facing *= -1; } ++i; } } frame 8 { this._x += 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(46); facing *= -1; } ++i; } } frame 9 { this._x += 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(47); facing *= -1; } ++i; } } frame 10 { this._x += 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(48); facing *= -1; } ++i; } } frame 15 { if (hp <= 0) { gotoAndPlay(80); } } frame 16 { this._x -= 5; gotoAndStop(2); } frame 40 { this._x -= 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(4); facing *= -1; } ++i; } onEnterFrame = function () {}; } frame 41 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(5); facing *= -1; } ++i; } } frame 42 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(6); facing *= -1; } ++i; } } frame 43 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(7); facing *= -1; } ++i; } } frame 44 { this._x -= 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(8); facing *= -1; } ++i; } } frame 45 { this._x -= 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(9); facing *= -1; } ++i; } } frame 46 { this._x -= 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(10); facing *= -1; } ++i; } } frame 47 { this._x -= 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(11); facing *= -1; } ++i; } } frame 52 { if (hp <= 0) { gotoAndPlay(80); } } frame 53 { this._x += 5; gotoAndStop(2); } frame 80 { onthisframe = false; _global.playerexp += 81; _global.coinage += 88; _root.vcam.smallstatsbox.gainexp(); } frame 86 { stop(); this.unloadMovie(); } } movieClip 1738 { } movieClip 1741 { } movieClip 1744 { } movieClip 1745 { } movieClip 1746 { frame 1 { hp = 210; facing = 1; } frame 2 { xmove = 6; if (facing == -1) { xmove *= -1; sprite._xscale = -100; } removeMovieClip(damagetext); moving = false; onthisframe = true; onEnterFrame = function () { i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { xmove *= -1; facing *= -1; if (this._x > _root['stopper' + i]._x) { this._x += 2; } else { this._x -= 2; } } ++i; } if (hitbox.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 97; _root.player.gotoAndPlay(50); } if (this.hitTest(_root.player.weaponstrike)) { damage = _global.playerattack * 0.1 * random(3) + _global.playerattack - 9; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(120); } else { gotoAndPlay(160); } } if (this.hitTest(_root.magiccaster.icebeam)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(120); } else { gotoAndPlay(160); } } if (this.hitTest(_root.magiccaster.explosion)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(120); } else { gotoAndPlay(160); } } if (this.hitTest(_root.magiccaster.megabolt)) { damage = _global.playerbaseattack * 2.5; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(120); } else { gotoAndPlay(160); } } if (this.hitTest(_root.magiccaster.painwave)) { damage = _global.playerbaseattack * 4; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(120); } else { gotoAndPlay(160); } } if (moving == true) { this._x += xmove; } }; } frame 25 { moving = true; if (facing == 1) { gotoAndPlay(70); } } frame 26 { if (facing == 1) { gotoAndPlay(71); } } frame 27 { if (facing == 1) { gotoAndPlay(72); } } frame 28 { if (facing == 1) { gotoAndPlay(73); } } frame 29 { if (facing == 1) { gotoAndPlay(74); } } frame 30 { if (facing == 1) { gotoAndPlay(75); } } frame 31 { if (facing == 1) { gotoAndPlay(76); } } frame 32 { if (facing == 1) { gotoAndPlay(77); } } frame 33 { if (facing == 1) { gotoAndPlay(78); } } frame 34 { if (facing == 1) { gotoAndPlay(79); } } frame 35 { if (facing == 1) { gotoAndPlay(80); } } frame 36 { if (facing == 1) { gotoAndPlay(81); } } frame 37 { if (facing == 1) { gotoAndPlay(82); } } frame 38 { if (facing == 1) { gotoAndPlay(83); } } frame 39 { if (facing == 1) { gotoAndPlay(84); } } frame 40 { if (facing == 1) { gotoAndPlay(85); } } frame 41 { if (facing == 1) { gotoAndPlay(86); } } frame 42 { if (facing == 1) { gotoAndPlay(87); } } frame 43 { if (facing == 1) { gotoAndPlay(88); } } frame 44 { if (facing == 1) { gotoAndPlay(89); } } frame 45 { if (facing == 1) { gotoAndPlay(90); } } frame 46 { if (facing == 1) { gotoAndPlay(91); } } frame 47 { if (facing == 1) { gotoAndPlay(92); } } frame 48 { if (facing == 1) { gotoAndPlay(93); } } frame 49 { if (facing == 1) { gotoAndPlay(94); } } frame 50 { if (facing == 1) { gotoAndPlay(95); } } frame 51 { if (facing == 1) { gotoAndPlay(96); } } frame 52 { if (facing == 1) { gotoAndPlay(97); } } frame 53 { if (facing == 1) { gotoAndPlay(98); } } frame 54 { if (facing == 1) { gotoAndPlay(99); } } frame 55 { if (facing == 1) { gotoAndPlay(100); } } frame 56 { if (facing == 1) { gotoAndPlay(101); } } frame 57 { if (facing == 1) { gotoAndPlay(102); } } frame 58 { if (facing == 1) { gotoAndPlay(103); } } frame 59 { if (facing == 1) { gotoAndPlay(104); } } frame 60 { if (facing == 1) { gotoAndPlay(105); } } frame 61 { if (facing == 1) { gotoAndPlay(106); } } frame 62 { if (facing == 1) { gotoAndPlay(107); } } frame 63 { if (facing == 1) { gotoAndPlay(108); } } frame 64 { if (facing == 1) { gotoAndPlay(109); } } frame 65 { if (facing == 1) { gotoAndPlay(110); } } frame 66 { moving = false; gotoAndPlay(2); } frame 70 { moving = true; if (facing == -1) { gotoAndPlay(25); } } frame 71 { if (facing == -1) { gotoAndPlay(26); } } frame 72 { if (facing == -1) { gotoAndPlay(27); } } frame 73 { if (facing == -1) { gotoAndPlay(28); } } frame 74 { if (facing == -1) { gotoAndPlay(29); } } frame 75 { if (facing == -1) { gotoAndPlay(30); } } frame 76 { if (facing == -1) { gotoAndPlay(31); } } frame 77 { if (facing == -1) { gotoAndPlay(32); } } frame 78 { if (facing == -1) { gotoAndPlay(33); } } frame 79 { if (facing == -1) { gotoAndPlay(34); } } frame 80 { if (facing == -1) { gotoAndPlay(35); } } frame 81 { if (facing == -1) { gotoAndPlay(36); } } frame 82 { if (facing == -1) { gotoAndPlay(37); } } frame 83 { if (facing == -1) { gotoAndPlay(38); } } frame 84 { if (facing == -1) { gotoAndPlay(39); } } frame 85 { if (facing == -1) { gotoAndPlay(40); } } frame 86 { if (facing == -1) { gotoAndPlay(41); } } frame 87 { if (facing == -1) { gotoAndPlay(42); } } frame 88 { if (facing == -1) { gotoAndPlay(43); } } frame 89 { if (facing == -1) { gotoAndPlay(44); } } frame 90 { if (facing == -1) { gotoAndPlay(45); } } frame 91 { if (facing == -1) { gotoAndPlay(46); } } frame 92 { if (facing == -1) { gotoAndPlay(47); } } frame 93 { if (facing == -1) { gotoAndPlay(48); } } frame 94 { if (facing == -1) { gotoAndPlay(49); } } frame 95 { if (facing == -1) { gotoAndPlay(50); } } frame 96 { if (facing == -1) { gotoAndPlay(51); } } frame 97 { if (facing == -1) { gotoAndPlay(52); } } frame 98 { if (facing == -1) { gotoAndPlay(53); } } frame 99 { if (facing == -1) { gotoAndPlay(54); } } frame 100 { if (facing == -1) { gotoAndPlay(55); } } frame 101 { if (facing == -1) { gotoAndPlay(56); } } frame 102 { if (facing == -1) { gotoAndPlay(57); } } frame 103 { if (facing == -1) { gotoAndPlay(58); } } frame 104 { if (facing == -1) { gotoAndPlay(59); } } frame 105 { if (facing == -1) { gotoAndPlay(60); } } frame 106 { if (facing == -1) { gotoAndPlay(61); } } frame 107 { if (facing == -1) { gotoAndPlay(62); } } frame 108 { if (facing == -1) { gotoAndPlay(63); } } frame 109 { if (facing == -1) { gotoAndPlay(64); } } frame 110 { if (facing == -1) { gotoAndPlay(65); } } frame 111 { moving = false; gotoAndPlay(2); } frame 120 { onEnterFrame = function () {}; this._x += 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(161); facing *= -1; } ++i; } } frame 121 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(162); facing *= -1; } ++i; } } frame 122 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(163); facing *= -1; } ++i; } } frame 123 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(164); facing *= -1; } ++i; } } frame 124 { this._x += 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(165); facing *= -1; } ++i; } } frame 125 { this._x += 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(166); facing *= -1; } ++i; } } frame 126 { this._x += 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(167); facing *= -1; } ++i; } } frame 127 { this._x += 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(168); facing *= -1; } ++i; } } frame 132 { if (hp <= 0) { gotoAndPlay(200); } } frame 133 { this._x -= 5; gotoAndPlay(2); } frame 160 { onEnterFrame = function () {}; this._x -= 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(121); facing *= -1; } ++i; } } frame 161 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(122); facing *= -1; } ++i; } } frame 162 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(123); facing *= -1; } ++i; } } frame 163 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(124); facing *= -1; } ++i; } } frame 164 { this._x -= 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(125); facing *= -1; } ++i; } } frame 165 { this._x -= 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(126); facing *= -1; } ++i; } } frame 166 { this._x -= 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(127); facing *= -1; } ++i; } } frame 167 { this._x -= 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(128); facing *= -1; } ++i; } } frame 172 { if (hp <= 0) { gotoAndPlay(200); } } frame 173 { this._x += 5; gotoAndPlay(2); } frame 200 { onthisframe = false; _global.playerexp += 78; _global.coinage += 84; _root.vcam.smallstatsbox.gainexp(); onEnterFrame = function () {}; } frame 227 { stop(); this.unloadMovie(); } } movieClip 1753 { } movieClip 1756 { } movieClip 1761 { frame 1 { hp = 80; facing = 1; } frame 2 { stop(); xmove = -6; if (facing == -1) { xmove *= -1; sprite._xscale *= -1; } removeMovieClip(damagetext); onthisframe = true; onEnterFrame = function () { if (onthisframe == true) { i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { xmove *= -1; sprite._xscale *= -1; facing *= -1; if (this._x > _root['stopper' + i]._x) { this._x += 2; } else { this._x -= 2; } } ++i; } if (hitbox.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 112; _root.player.gotoAndPlay(50); } if (this.hitTest(_root.player.weaponstrike)) { damage = 1; this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.icebeam)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.explosion)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.megabolt)) { damage = _global.playerbaseattack * 2.5; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.painwave)) { damage = _global.playerbaseattack * 4; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } this._x += xmove; } }; } frame 3 { this._x += 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(41); facing *= -1; } ++i; } onEnterFrame = function () {}; } frame 4 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(42); facing *= -1; } ++i; } } frame 5 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(43); facing *= -1; } ++i; } } frame 6 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(44); facing *= -1; } ++i; } } frame 7 { this._x += 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(45); facing *= -1; } ++i; } } frame 8 { this._x += 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(46); facing *= -1; } ++i; } } frame 9 { this._x += 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(47); facing *= -1; } ++i; } } frame 10 { this._x += 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(48); facing *= -1; } ++i; } } frame 15 { if (hp <= 0) { gotoAndPlay(80); } } frame 16 { this._x -= 5; gotoAndStop(2); } frame 40 { this._x -= 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(4); facing *= -1; } ++i; } onEnterFrame = function () {}; } frame 41 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(5); facing *= -1; } ++i; } } frame 42 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(6); facing *= -1; } ++i; } } frame 43 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(7); facing *= -1; } ++i; } } frame 44 { this._x -= 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(8); facing *= -1; } ++i; } } frame 45 { this._x -= 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(9); facing *= -1; } ++i; } } frame 46 { this._x -= 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(10); facing *= -1; } ++i; } } frame 47 { this._x -= 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(11); facing *= -1; } ++i; } } frame 52 { if (hp <= 0) { gotoAndPlay(80); } } frame 53 { this._x += 5; gotoAndStop(2); } frame 80 { onthisframe = false; _global.playerexp += 80; _global.coinage += 70; _root.vcam.smallstatsbox.gainexp(); } frame 115 { stop(); this.unloadMovie(); } } frame 10034 { player.gravity = 0; player.hits = 0; stoppers = 6; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player) && Key.isDown(40)) { gotoAndPlay(10047); } else { if (exit2.hitTest(player)) { gotoAndPlay(10067); } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 10047 { fade._x = vcam._x; fade._y = vcam._y; } frame 10062 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(5923); } frame 10067 { fade._x = vcam._x; fade._y = vcam._y; } frame 10082 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(10083); } frame 10083 { player.gravity = 0; player.hits = 0; stoppers = 9; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(10097); } else { if (exit2.hitTest(player)) { gotoAndPlay(10117); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(10137); } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 10084 { player.gravity = 0; player.hits = 0; stoppers = 9; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(10097); } else { if (exit2.hitTest(player)) { gotoAndPlay(10117); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(10137); } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 10097 { fade._x = vcam._x; fade._y = vcam._y; } frame 10112 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(10034); } frame 10117 { fade._x = vcam._x; fade._y = vcam._y; } frame 10132 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(10133); } frame 10133 { player.gravity = 0; player.hits = 0; stoppers = 6; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(10147); } else { if (exit2.hitTest(player)) { gotoAndPlay(10167); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(10187); } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 10134 { player.gravity = 0; player.hits = 0; stoppers = 6; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(10147); } else { if (exit2.hitTest(player)) { gotoAndPlay(10167); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(10187); } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } frame 10147 { fade._x = vcam._x; fade._y = vcam._y; } frame 10162 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(10084); } frame 10167 { fade._x = vcam._x; fade._y = vcam._y; } frame 10182 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(10183); } frame 10183 { player.gravity = 0; player.hits = 0; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(10197); } else { if (exit2.hitTest(player) && Key.isDown(40)) { gotoAndPlay(10217); } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } }; } movieClip 1772 { } movieClip 1776 { } movieClip 1782 { } movieClip 1783 { frame 1 { stop(); onEnterFrame = function () { if (this.hitTest(_root.player) && Key.isDown(40)) { _global.playerhp = _global.playermaxhp; _global.playermp = _global.playermaxmp; _root.attachMovie('fountain heal', 'fountainheal', 14); _root.fountainheal._x = _root.player._x; _root.fountainheal._y = _root.player._y; play(); } }; } frame 2 { onEnterFrame = function () {}; } } movieClip 1784 { frame 1 { onEnterFrame = function () { if (_root.player._x > this._x) { this._xscale = -100; } else { this._xscale = 100; } if (Key.isDown(40) && this.hitTest(_root.player) && _global.dialogisup == false) { _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 3; _root.dialog.line1 = 'Hey, fancy meeting you again here. That werewolf'; _root.dialog.line2 = 'gave me a cool mallet in exchange for not'; _root.dialog.line3 = 'killing him. It happens to be the same kind all'; _root.dialog.line4 = 'my werewolf-hunter buddies showed off to me, so'; _root.dialog.line5 = 'now they can go shove it \'cuz I have one too!'; _root.dialog.line6 = 'Anyway, I take it you\'re going after that psycho'; _root.dialog.line7 = 'math cult leader? Well here\'s another tip for'; _root.dialog.line8 = 'you: He\'ll probably protect himself with an'; _root.dialog.line9 = 'indestructible shield, but if you take it down'; _root.dialog.line10 = 'he should be easy to finish. The shield is'; _root.dialog.line11 = 'generated by two artifacts, so if you destroy'; _root.dialog.line12 = 'them it should bring down the shield. However,'; _root.dialog.line13 = 'only one of them is active at a time so you\'ll'; _root.dialog.line14 = 'probably have to take turns hitting each one.'; _root.dialog.line15 = 'How do I know all this? Fuck you, that\'s how.'; } }; } } frame 10197 { fade._x = vcam._x; fade._y = vcam._y; } frame 10212 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndStop(10134); } frame 10217 { fade._x = vcam._x; fade._y = vcam._y; } frame 10232 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); gotoAndPlay(10237); } frame 10233 { stopAllSounds(); var music = new Sound(); music.attachSound('music_finalboss'); music.start(0, 99); player.gravity = 0; player.hits = 0; stoppers = 2; player.xmove = 0; xinc = 0.5; xmax = 6; bossdead = false; soundplaying = false; var chargesnd = new Sound(); chargesnd.attachSound('snd_charge'); onEnterFrame = function () { if (player.hits > 0) { if (Key.isDown(38)) { player.gravity = -15; } else { player.gravity = 0; } } else { ++player.gravity; } player._y += player.gravity; if (Key.isDown(37) && player.hitleft == 0 && _global.playerstopped == false) { if (player.xmove > -xmax) { player.xmove -= xinc; } player._xscale = 100; } else { if (Key.isDown(39) && player.hitright == 0 && _global.playerstopped == false) { if (player.xmove < xmax) { player.xmove += xinc; } player._xscale = -100; } else { player.xmove *= 0.75; } } player._x += player.xmove; if (player.gravity > 10) { player.gravity = 10; } vcam._x = player._x; vcam._y = player._y - 20; if (Key.isDown(67) && _global.selectedmagic > 1) { _global.ctrlpressed = true; if (vcam.smallstatsbox.chargebar._width < 80) { vcam.smallstatsbox.chargebar._width += 3; } if (soundplaying == false) { chargesnd.start(0, 0); soundplaying = true; } } else { if (!Key.isDown(67) && _global.ctrlpressed == true) { _global.ctrlpressed = false; soundplaying = false; if (vcam.smallstatsbox.chargebar._width >= 80 && _global.playermp >= _global.currentmpcost) { vcam.smallstatsbox.chargebar._width = 1; player.gotoAndPlay(12); if (_global.selectedmagic == 2) { magiccaster.attachMovie('icebeam', 'icebeam', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 3) { magiccaster.attachMovie('explosion', 'explosion', 5); magiccaster.play(); _global.playermp -= 5; } else { if (_global.selectedmagic == 4) { magiccaster.attachMovie('megabolt', 'megabolt', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 5) { magiccaster.attachMovie('heal', 'heal', 5); magiccaster.play(); _global.playermp -= 6; } else { if (_global.selectedmagic == 6) { magiccaster.attachMovie('anticurse', 'anticurse', 5); magiccaster.play(); _global.playermp -= 7; } else { if (_global.selectedmagic == 7) { magiccaster.attachMovie('painwave', 'painwave', 5); magiccaster.play(); _global.playermp -= 12; } } } } } } } else { vcam.smallstatsbox.chargebar._width = 1; } } } if (exit1.hitTest(player)) { gotoAndPlay(10247); } else { if (exit2.hitTest(player)) { gotoAndPlay(10267); } else { if (exit3.hitTest(player) && Key.isDown(40)) { gotoAndPlay(10287); } else { if (exit4.hitTest(player) && Key.isDown(40)) { gotoAndPlay(10307); } } } } bg1._x = vcam._x; bg1._y = vcam._y; if (_global.playerhp <= 0) { gotoAndPlay(11880); } if (bossdead == true) { gotoAndPlay(10672); } }; } movieClip 1789 { } movieClip 1794 { } movieClip 1798 { } movieClip 1800 { } movieClip 1808 { } movieClip 1810 { } movieClip 1811 { frame 1 { hp = 400; facing = 1; shieldup = true; } frame 2 { stop(); xmove = -6; if (facing == -1) { xmove *= -1; } removeMovieClip(damagetext); onthisframe = true; onEnterFrame = function () { if (onthisframe == true) { i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { xmove *= -1; facing *= -1; if (this._x > _root['stopper' + i]._x) { this._x += 2; } else { this._x -= 2; } } ++i; } if (this.hitTest(_root.player.player1) && _global.invincible == false) { _root.player.incomingdamage = 115; _root.player.gotoAndPlay(50); } if (shieldup == false) { shield._visible = false; if (this.hitTest(_root.player.weaponstrike)) { damage = _global.playerattack * 0.1 * random(3) + _global.playerattack - 10; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.icebeam)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.explosion)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.megabolt)) { damage = _global.playerbaseattack * 2.5; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } if (this.hitTest(_root.magiccaster.painwave)) { damage = _global.playerbaseattack * 4; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; if (_root.player._x < this._x) { gotoAndPlay(3); } else { gotoAndPlay(40); } } } this._x += xmove; } }; } frame 3 { this._x += 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(41); facing *= -1; } ++i; } onEnterFrame = function () {}; } frame 4 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(42); facing *= -1; } ++i; } } frame 5 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(43); facing *= -1; } ++i; } } frame 6 { this._x += 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(44); facing *= -1; } ++i; } } frame 7 { this._x += 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(45); facing *= -1; } ++i; } } frame 8 { this._x += 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(46); facing *= -1; } ++i; } } frame 9 { this._x += 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(47); facing *= -1; } ++i; } } frame 10 { this._x += 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(48); facing *= -1; } ++i; } } frame 15 { if (hp <= 0) { gotoAndPlay(80); } } frame 16 { this._x -= 5; gotoAndStop(2); } frame 40 { this._x -= 9; onthisframe = false; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(4); facing *= -1; } ++i; } onEnterFrame = function () {}; } frame 41 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(5); facing *= -1; } ++i; } } frame 42 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(6); facing *= -1; } ++i; } } frame 43 { this._x -= 9; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(7); facing *= -1; } ++i; } } frame 44 { this._x -= 8; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(8); facing *= -1; } ++i; } } frame 45 { this._x -= 7; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(9); facing *= -1; } ++i; } } frame 46 { this._x -= 6; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(10); facing *= -1; } ++i; } } frame 47 { this._x -= 5; i = 1; while (i <= _root.stoppers) { if (this.hitTest(_root['stopper' + i])) { gotoAndPlay(11); facing *= -1; } ++i; } } frame 52 { if (hp <= 0) { gotoAndPlay(80); } } frame 53 { this._x += 5; gotoAndStop(2); } frame 80 { onEnterFrame = function () {}; } frame 140 { stop(); _root.bossdead = true; } } movieClip 1820 { } movieClip 1825 { } movieClip 1826 { frame 1 { hp = 720; active = true; alone = false; } frame 2 { removeMovieClip(damagetext); onEnterFrame = function () { if (this.hitTest(_root.player.weaponstrike)) { damage = _global.playerattack * 0.1 * random(3) + _global.playerattack - 10; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; gotoAndPlay(75); } if (this.hitTest(_root.magiccaster.icebeam)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; gotoAndPlay(75); } if (this.hitTest(_root.magiccaster.explosion)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; gotoAndPlay(75); } if (this.hitTest(_root.magiccaster.megabolt)) { damage = _global.playerbaseattack * 3; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; gotoAndPlay(75); } if (this.hitTest(_root.magiccaster.painwave)) { damage = _global.playerbaseattack * 4; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; gotoAndPlay(75); } }; } frame 10 { removeMovieClip(damagetext); onEnterFrame = function () { if (this.hitTest(_root.player.weaponstrike)) { damage = _global.playerattack * 0.1 * random(3) + _global.playerattack - 10; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; gotoAndPlay(75); } if (this.hitTest(_root.magiccaster.icebeam)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; gotoAndPlay(75); } if (this.hitTest(_root.magiccaster.explosion)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; gotoAndPlay(75); } if (this.hitTest(_root.magiccaster.megabolt)) { damage = _global.playerbaseattack * 3.5; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; gotoAndPlay(75); } if (this.hitTest(_root.magiccaster.painwave)) { damage = _global.playerbaseattack * 4; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; gotoAndPlay(75); } }; } frame 21 { if (this.hitTest(_root.vcam)) { _root.attachMovie('eye blast left', 'eyeblastleft', 10); _root.eyeblastleft._x = this._x; _root.eyeblastleft._y = this._y; } } frame 59 { gotoAndPlay(2); } frame 70 { onEnterFrame = function () { if (active == true) { gotoAndPlay(2); } }; } frame 75 { _root.eye2.active = true; onEnterFrame = function () {}; } frame 103 { if (hp <= 0) { if (alone == true) { _root.boss.shieldup = false; } else { _root.eye2.alone = true; } gotoAndPlay(145); } } frame 104 { if (alone == false) { active = false; gotoAndStop(70); } else { gotoAndPlay(2); } } frame 152 { stop(); this.unloadMovie(); } } movieClip 1835 { } movieClip 1840 { } movieClip 1841 { frame 1 { hp = 720; active = false; alone = false; gotoAndStop(70); } frame 2 { removeMovieClip(damagetext); onEnterFrame = function () { if (this.hitTest(_root.player.weaponstrike)) { damage = _global.playerattack * 0.1 * random(3) + _global.playerattack - 10; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; gotoAndPlay(75); } if (this.hitTest(_root.magiccaster.icebeam)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; gotoAndPlay(75); } if (this.hitTest(_root.magiccaster.explosion)) { damage = _global.playerbaseattack * 3; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; gotoAndPlay(75); } if (this.hitTest(_root.magiccaster.megabolt)) { damage = _global.playerbaseattack * 2.5; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; gotoAndPlay(75); } if (this.hitTest(_root.magiccaster.painwave)) { damage = _global.playerbaseattack * 4; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; gotoAndPlay(75); } }; } frame 10 { removeMovieClip(damagetext); onEnterFrame = function () { if (this.hitTest(_root.player.weaponstrike)) { damage = _global.playerattack * 0.1 * random(3) + _global.playerattack - 10; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; gotoAndPlay(75); } if (this.hitTest(_root.magiccaster.icebeam)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; gotoAndPlay(75); } if (this.hitTest(_root.magiccaster.explosion)) { damage = _global.playerbaseattack * 2; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; gotoAndPlay(75); } if (this.hitTest(_root.magiccaster.megabolt)) { damage = _global.playerbaseattack * 3.5; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; gotoAndPlay(75); } if (this.hitTest(_root.magiccaster.painwave)) { damage = _global.playerbaseattack * 4; damage = damage * 0.1 * random(3) + damage; damage = Math.round(damage); this.attachMovie('damagetext', 'damagetext', 5); hp -= damage; gotoAndPlay(75); } }; } frame 21 { if (this.hitTest(_root.vcam)) { _root.attachMovie('eye blast down', 'eyeblastdown', 10); _root.eyeblastdown._x = this._x; _root.eyeblastdown._y = this._y; } } frame 59 { gotoAndPlay(2); } frame 70 { onEnterFrame = function () { if (active == true) { gotoAndPlay(2); } }; } frame 75 { _root.eye1.active = true; onEnterFrame = function () {}; } frame 103 { if (hp <= 0) { if (alone == true) { _root.boss.shieldup = false; } else { _root.eye1.alone = true; } gotoAndPlay(145); } } frame 104 { if (alone == false) { active = false; gotoAndStop(70); } else { gotoAndPlay(2); } } frame 145 { onEnterFrame = function () {}; } frame 152 { stop(); this.unloadMovie(); } } frame 10237 { stopAllSounds(); onEnterFrame = function () {}; } frame 10278 { stop(); _global.dialogisup = true; _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 3; _root.dialog.line1 = ':Pythagorea: He\'s going to be here any minute!'; _root.dialog.line2 = 'Do I look sinister enough? Do I look like I\'m'; _root.dialog.line3 = 'about to conquer the world?'; _root.dialog.line4 = ''; _root.dialog.line5 = ''; _root.dialog.line6 = ':Cultist: (sigh) Yes of course, Lord Pythagorea.'; _root.dialog.line7 = ''; _root.dialog.line8 = ''; _root.dialog.line9 = ''; _root.dialog.line10 = ''; _root.dialog.line11 = ':Pythagorea: Oh I hope so! You have to be able'; _root.dialog.line12 = 'to strike fear into would-be heroes to make it'; _root.dialog.line13 = 'as an evil villain, and appearance is very'; _root.dialog.line14 = 'important, you know.'; _root.dialog.line15 = ''; onEnterFrame = function () { if (_global.dialogisup == false) { play(); } }; } frame 10383 { stop(); _global.dialogisup = true; _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 2; _root.dialog.line1 = ':Pythagorea: He\'s here! He\'s here! Do you got my'; _root.dialog.line2 = 'speech I wrote?'; _root.dialog.line3 = ''; _root.dialog.line4 = ''; _root.dialog.line5 = ''; _root.dialog.line6 = ':Cultist: Yes, Lord Pythagorea. Here you go.'; _root.dialog.line7 = ''; _root.dialog.line8 = ''; _root.dialog.line9 = ''; _root.dialog.line10 = ''; onEnterFrame = function () { if (_global.dialogisup == false) { play(); } }; } movieClip 1846 { } frame 10494 { stop(); _global.dialogisup = true; _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 1; _root.dialog.line1 = ':Pythagorea: *A-hem* Ah, I see you\'ve finally'; _root.dialog.line2 = 'arrived just in time to see my evil... ah shit!'; _root.dialog.line3 = ''; _root.dialog.line4 = ''; _root.dialog.line5 = ''; onEnterFrame = function () { if (_global.dialogisup == false) { play(); } }; } frame 10567 { stop(); _global.dialogisup = true; _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 3; _root.dialog.line1 = ':Pythagorea: ...uh...'; _root.dialog.line2 = ''; _root.dialog.line3 = ''; _root.dialog.line4 = ''; _root.dialog.line5 = ''; _root.dialog.line6 = ':Red Mage: ...'; _root.dialog.line7 = ''; _root.dialog.line8 = ''; _root.dialog.line9 = ''; _root.dialog.line10 = ''; _root.dialog.line11 = ':Pythagorea: ...'; _root.dialog.line12 = '...You know what? Just die you asshole!'; _root.dialog.line13 = ''; _root.dialog.line14 = ''; _root.dialog.line15 = ''; onEnterFrame = function () { if (_global.dialogisup == false) { play(); } }; } frame 10657 { gotoAndStop(10233); } frame 10672 { onEnterFrame = function () {}; } frame 10687 { _global.statboxisup = false; _global.dialogisup = false; removeMovieClip(dialog); removeMovieClip(eyeblastdown); removeMovieClip(eyeblastleft); gotoAndPlay(10688); } frame 10688 { stopAllSounds(); } movieClip 1863 { } frame 10850 { stop(); _global.dialogisup = true; _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 3; _root.dialog.line1 = ':King: Well it\'s about time you got back home,'; _root.dialog.line2 = 'oh delinquent daughter of mine! What antisocial'; _root.dialog.line3 = 'shenanigans have you got involved in this time?'; _root.dialog.line4 = ''; _root.dialog.line5 = ''; _root.dialog.line6 = ':Layla: Ugh! None of your business, dad! You'; _root.dialog.line7 = 'wouldn\'t ever believe I saved your stupid'; _root.dialog.line8 = 'kingdom anyway!'; _root.dialog.line9 = ''; _root.dialog.line10 = ''; _root.dialog.line11 = ':King: To your bedroom, young lady! You are now'; _root.dialog.line12 = 'under the shackles of punishment for your'; _root.dialog.line13 = 'mischief! And thanks to you for apprehending my'; _root.dialog.line14 = 'troublesome daughter, Red Mage, though you'; _root.dialog.line15 = 'could have been a bit...'; onEnterFrame = function () { if (_global.dialogisup == false) { play(); } }; } frame 10928 { stop(); _global.dialogisup = true; _root.attachMovie('dialog', 'dialog', 5); _root.dialog.pages = 4; _root.dialog.line1 = ':Soldier: Hmm, it appears that the king has'; _root.dialog.line2 = 'exploded. Well then, congratulations Queen'; _root.dialog.line3 = 'Layla. You are now ruler of Porcos.'; _root.dialog.line4 = ''; _root.dialog.line5 = ''; _root.dialog.line6 = ':Layla: Really? Yay!'; _root.dialog.line7 = ''; _root.dialog.line8 = ''; _root.dialog.line9 = ''; _root.dialog.line10 = ''; _root.dialog.line11 = ':Red Mage: What.'; _root.dialog.line12 = ''; _root.dialog.line13 = ''; _root.dialog.line14 = ''; _root.dialog.line15 = ''; _root.dialog.line16 = 'And they all lived happily ever after.'; _root.dialog.line17 = 'Except for the Red Mage and all the other royal'; _root.dialog.line18 = 'subjects as they now had to serve under a bratty'; _root.dialog.line19 = 'teenage bitch queen.'; _root.dialog.line20 = ''; onEnterFrame = function () { if (_global.dialogisup == false) { play(); } }; } movieClip 1864 { } frame 11879 { stopAllSounds(); gotoAndPlay(44); } frame 11880 { stopAllSounds(); removeMovieClip(dialog); onEnterFrame = function () {}; } frame 12084 { gotoAndPlay(44); }




http://swfchan.com/18/89447/info.shtml
Created: 28/3 -2019 23:16:26 Last modified: 28/3 -2019 23:16:26 Server time: 26/04 -2024 21:49:52