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

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

Shadowreign.swf

This is the info page for
Flash #100109

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


ActionScript [AS1/AS2]
Combined Code
// unknown tag 88 length 147 movieClip 2 fireweaveRobe { } frame 1 { urlStart = _url.indexOf('://') + 3; urlEnd = _url.indexOf('/', urlStart); domain = _url.substring(urlStart, urlEnd); LastDot = domain.lastIndexOf('.') - 1; pfixEnd = domain.lastIndexOf('.', LastDot) + 1; domain = domain.substring(pfixEnd, domain.length); _root.testing.text = domain; if (domain != '' && domain != 'armorgames.com') { var CPMStarContentSpotID = '1197Q8F8BB196'; System.security.allowDomain('server.cpmstar.com'); adBox.loadMovie('http://server.cpmstar.com/adviewas2.swf?contentspotid=' + CPMStarContentSpotID); } else { _root.adFree.gotoAndStop(2); } stop(); } // unknown tag 88 length 87 movieClip 8 { frame 55 { stop(); } } movieClip 13 { } instance of movieClip 13 { onClipEvent (load) { stopAdTime = 15000; this._xscale = 0; startAdTime = getTimer(); } onClipEvent (enterFrame) { elapsedAdTime = getTimer() - startAdTime; amountloaded = elapsedAdTime / stopAdTime; percentloaded = 100 * amountloaded; this._xscale = percentloaded; if (percentloaded >= 100) { _root.gotoAndStop('armorIntro'); } else { gotoAndStop(1); } } } button 19 { on (release) { getURL('http://www.armorgames.com', '_blank'); } } movieClip 21 { frame 1 { stop(); } } button 24 { on (release) { getURL('http://www.axis-games.com', '_blank'); } } // unknown tag 88 length 69 button 28 { on (release) { getURL('http://www.axis-games.com', '_blank'); } } frame 2 { stop(); } movieClip 33 { } button 38 { on (press) { getURL('http://www.armorgames.com', '_blank'); } } movieClip 41 { frame 1 { _root.stop(); gotoAndPlay(2); } frame 218 { _root.gotoAndStop('axisIntro'); } } frame 9 { stop(); } movieClip 61 { frame 39 { stop(); } } movieClip 81 { frame 39 { stop(); } } movieClip 83 { } // unknown tag 88 length 81 movieClip 88 { } movieClip 109 { frame 35 { this.gotoAndPlay(1); } } movieClip 111 { } movieClip 112 { frame 144 { stopAllSounds(); } frame 145 { _root.gotoAndPlay('export'); } } movieClip 120 { frame 1 { stop(); } } movieClip 121 txtBackground { } movieClip 123 textFieldLine { } movieClip 126 { } movieClip 130 { } movieClip 159 { frame 1 { stop(); } } // unknown tag 88 length 62 movieClip 166 { frame 1 { stop(); } } movieClip 221 iconList { frame 1 { stop(); } } instance slot0 of movieClip 221 iconList { onClipEvent (rollOver) { _root.getAbilityText(0); } onClipEvent (press) { _root.beginIconDrag(0); } onClipEvent (rollOut) { _root.removeTalentText(); } } // unknown tag 88 length 67 movieClip 252 { } movieClip 254 { } movieClip 256 { } movieClip 258 { } movieClip 260 { } movieClip 261 buffIcons { frame 1 { stop(); } } // unknown tag 88 length 137 movieClip 264 { } movieClip 265 redSCT { frame 20 { this.removeMovieClip(); } } movieClip 274 { } movieClip 293 { } movieClip 294 { frame 1 { stop(); } } movieClip 295 projectiles { frame 1 { inside._visible = false; } instance inside of movieClip 294 { onClipEvent (enterFrame) { if (this.cameFrom == 'hero') { _root.checkForHit(this._parent, _root[this.target], this.ability); var xSlope = _root.getXSlope(this._parent); var ySlope = _root.getYSlope(this._parent); var xLoc = this._parent._x + xSlope * 32.1 * this._parent._currentframe; var yLoc = this._parent._y + ySlope * 32.1 * this._parent._currentframe; var i = 0; while (i < 11) { if (_root.ground['stop' + i].hitTest(xLoc, yLoc)) { this._parent.removeMovieClip(); } ++i; } } else { _root.checkHitHero(this._parent, this.cameFrom); } } } frame 4 { inside._visible = true; } frame 21 { this.removeMovieClip(); } } movieClip 304 scorchHit { frame 8 { this.removeMovieClip(); } } movieClip 313 arcanePulseHit { frame 8 { this.removeMovieClip(); } } movieClip 322 dazzleHit { frame 8 { this.removeMovieClip(); } } movieClip 331 energyNovaHit { frame 8 { this.removeMovieClip(); } } movieClip 340 blinkStrikeUse { frame 8 { this.removeMovieClip(); } } movieClip 347 bossHit { frame 6 { this.removeMovieClip(); } } movieClip 360 scorpionBiteHit { frame 12 { this.removeMovieClip(); } } movieClip 369 shadowShotHit { frame 8 { this.removeMovieClip(); } } movieClip 382 { frame 12 { this._parent.gotoAndStop(1); } } movieClip 389 siphonEnergyHit { frame 6 { this.removeMovieClip(); } } movieClip 396 backstabHit { frame 6 { this.removeMovieClip(); } } movieClip 403 shadowStrikeHit { frame 6 { this.removeMovieClip(); } } movieClip 410 bashHit { frame 6 { this.removeMovieClip(); } } movieClip 417 terrifyingShoutHit { frame 6 { this.removeMovieClip(); } } movieClip 424 titanSwingHit { frame 6 { this.removeMovieClip(); } } movieClip 431 whirlwindHit { frame 6 { this.removeMovieClip(); } } movieClip 440 explosiveShotHit { frame 8 { this.removeMovieClip(); } } movieClip 447 steadyShotHit { frame 6 { this.removeMovieClip(); } } movieClip 449 behindTarget { } movieClip 455 { frame 1 { stop(); } } movieClip 512 { frame 1 { stop(); } } movieClip 522 { frame 1 { stop(); } } movieClip 530 { frame 1 { stop(); } } movieClip 597 { frame 1 { stop(); } } movieClip 642 { frame 1 { stop(); } } movieClip 643 { } movieClip 644 { } movieClip 645 { frame 1 { _root.playSound('humanDie'); } frame 7 { _root.deadEnemy(this._parent._parent); } } movieClip 647 { } movieClip 648 { frame 7 { _root.playSound('humanMeleeAttack'); } frame 10 { if (this._parent._parent == _root.hero) { _root.checkForHit(weapon2, _root[_root.target], 'shadowStrike'); } else { _root.checkHitHero(weapon2, this._parent._parent); } } frame 17 { _root.attackFinished(this._parent._parent); } } movieClip 649 { frame 2 { _root.playSound('shadowStrikeUse'); } frame 4 { _root.checkHitHero(weapon2, this._parent._parent); } frame 10 { _root.attackFinished(this._parent._parent); } } movieClip 652 { frame 1 { stop(); } } movieClip 655 { instance of movieClip 652 { onClipEvent (enterFrame) { if (this._parent._parent._parent == _root.hero) { this.gotoAndStop(_root.savedAbility); } else { this.gotoAndStop(3); } } } frame 40 { if (this._parent._parent != _root.hero) { _root.playSound('steadyShotUse'); _root.attachEnemyProj(this._parent._parent); } } } movieClip 656 { frame 35 { if (this._parent._parent != _root.hero) { _root.playSound('wandAutoAttack'); _root.checkHitHero('noHit', this._parent._parent); } } } movieClip 657 { frame 1 { _root.setEnemyArmor(this.attack, this._parent.inside); stop(); } } movieClip 658 humanEnemy { frame 1 { mouseFX.useHandCursor = false; } instance mouseFX of movieClip 647 { onClipEvent (release) { _root.playSound('click'); _root.makeTarget(this._parent.inside); } onClipEvent (rollOver) { _root.playSound('rollOver'); _root.applyMouseOver(this._parent.inside); } onClipEvent (rollOut) { _root.removeMouseOver(this._parent.inside); } } } movieClip 660 { } movieClip 661 yellowSCT { frame 20 { this.removeMovieClip(); } } movieClip 663 { } movieClip 664 greenSCT { frame 20 { this.removeMovieClip(); } } movieClip 666 { } movieClip 667 orangeSCT { frame 20 { this.removeMovieClip(); } } movieClip 668 areaSquare { } movieClip 670 { } movieClip 671 whiteSCT { frame 20 { this.removeMovieClip(); } } movieClip 672 naturesGraspHit { frame 6 { this.removeMovieClip(); } } movieClip 674 { } movieClip 675 blueSCT { frame 20 { this.removeMovieClip(); } } movieClip 870 { frame 1 { stop(); } } movieClip 873 invPieces { frame 1 { mouseHit.onRollOver = function () { _root.createItemText(this._parent, this._parent.gearName); }; mouseHit.onRollOut = function () { _root.removeItemText(); }; } } movieClip 881 { frame 1 { stop(); } } movieClip 889 { frame 1 { stop(); } } movieClip 897 { frame 1 { stop(); } } movieClip 902 { frame 1 { stop(); } } movieClip 910 { frame 1 { stop(); } } movieClip 911 { frame 1 { stop(); } } movieClip 919 { frame 1 { stop(); } } movieClip 920 { } movieClip 921 { } movieClip 922 { frame 1 { _root.playSound('skeletonDie'); } frame 10 { _root.deadEnemy(this._parent._parent); } } movieClip 926 { frame 1 { stop(); } } movieClip 927 { frame 1 { stop(); } } movieClip 931 { frame 1 { stop(); } } movieClip 936 { frame 1 { stop(); } } movieClip 937 { frame 10 { _root.playSound('skeletonAttack'); } frame 11 { _root.checkHitHero(weapon2, this._parent._parent); } frame 18 { _root.attackFinished(this._parent._parent); } } movieClip 938 { frame 10 { _root.playSound('skeletonAttack'); } frame 11 { _root.checkHitHero(weapon2, this._parent._parent); } frame 18 { _root.attackFinished(this._parent._parent); } } movieClip 939 { frame 1 { stop(); } } movieClip 940 skeleton { frame 1 { mouseFX.useHandCursor = false; } instance mouseFX of movieClip 647 { onClipEvent (release) { _root.playSound('click'); _root.makeTarget(this._parent.inside); } onClipEvent (rollOver) { _root.playSound('rollOver'); _root.applyMouseOver(this._parent.inside); } onClipEvent (rollOut) { _root.removeMouseOver(this._parent.inside); } } } movieClip 946 { frame 1 { stop(); } } movieClip 952 { frame 1 { stop(); } } movieClip 958 { frame 1 { stop(); } } movieClip 964 { frame 1 { stop(); } } movieClip 970 { frame 1 { stop(); } } movieClip 976 { frame 1 { stop(); } } movieClip 982 { frame 1 { stop(); } } movieClip 983 { } movieClip 984 { } movieClip 985 { frame 1 { _root.playSound('voidAttack'); } frame 8 { _root.checkHitHero(weapon2, this._parent._parent); } frame 10 { _root.attackFinished(this._parent._parent); } } movieClip 986 { frame 1 { _root.playSound('voidDie'); } frame 8 { _root.deadEnemy(this._parent._parent); } } movieClip 987 { frame 1 { stop(); } } movieClip 988 void { frame 1 { mouseFX.useHandCursor = false; } instance mouseFX of movieClip 647 { onClipEvent (release) { _root.playSound('click'); _root.makeTarget(this._parent.inside); } onClipEvent (rollOver) { _root.playSound('rollOver'); _root.applyMouseOver(this._parent.inside); } onClipEvent (rollOut) { _root.removeMouseOver(this._parent.inside); } } } movieClip 991 { } movieClip 994 { frame 1 { stop(); } } movieClip 995 groundPieces { frame 1 { textMC.textBG.useHandCursor = false; textMC.textBG.tabEnabled = false; } frame 12 { textMC.textBG.useHandCursor = false; } frame 13 { textMC.textBG._width = _root[this.gearName][12].length * 5 + 26; textMC.textBG.useHandCursor = false; textMC.textBG.tabEnabled = false; textMC.textBG.onRelease = function () { _root.showTutorial(5); _root.addItemToInventory(this._parent._parent, this._parent._parent.gearName); }; textMC.textBG.onRollOut = function () { this._parent._parent.allItems._xscale = 9.388; this._parent._parent.allItems._yscale = 9.388; }; textMC.textBG.onRollOver = function () { this._parent._parent.allItems._xscale = 11; this._parent._parent.allItems._yscale = 11; }; stop(); } } movieClip 996 autoAttackHit { frame 6 { this.removeMovieClip(); } } movieClip 999 fadeToBlack { frame 12 { if (this.goal != null) { if (this.goal == 'transition') { _root.attachMovie('fadeToWhite', 'fadeToWhite', _root.fadeToWhiteDepth); } else { if (this.goal == 'die') { _root.showTutorial(13); } else { _root.gotoAndStop(this.goal); } } } this.removeMovieClip(); } } movieClip 1001 fadeToWhite { frame 13 { this.removeMovieClip(); } } movieClip 1003 { } button 1005 { on (release) { _root.playSound('pickUpItem'); if (_root.level > 7) { _root.gold += Math.ceil(this.amount * 0.4); } else { _root.gold += this.amount; } _root.removeItemFromGround(this); this.removeMovieClip(); } } // unknown tag 88 length 147 movieClip 1008 gold { frame 1 { btn.useHandCursor = false; btn.tabEnabled = false; } frame 20 { btn.useHandCursor = false; btn.tabEnabled = false; } frame 21 { btn.useHandCursor = false; btn.tabEnabled = false; if (_root.level > 7) { gold_txt.text = Math.ceil(this.amount * 0.4) + ' gold'; } else { gold_txt.text = this.amount + ' gold'; } stop(); } } button 1014 { on (release) { _root.playSound('pickUpItem'); ++_root.energyPots; _root.removeItemFromGround(this); this.removeMovieClip(); } } movieClip 1016 ePotion { frame 1 { btn.useHandCursor = false; btn.tabEnabled = false; } frame 20 { btn.useHandCursor = false; btn.tabEnabled = false; } frame 21 { btn.useHandCursor = false; btn.tabEnabled = false; stop(); } } button 1022 { on (release) { _root.playSound('pickUpItem'); ++_root.healthPots; _root.removeItemFromGround(this); this.removeMovieClip(); } } movieClip 1024 hPotion { frame 1 { btn.useHandCursor = false; btn.tabEnabled = false; } frame 20 { btn.useHandCursor = false; btn.tabEnabled = false; } frame 21 { btn.useHandCursor = false; btn.tabEnabled = false; stop(); } } movieClip 1027 { } movieClip 1028 { } movieClip 1036 { frame 1 { _root.playSound('deathGateDie'); } frame 10 { _root.deadEnemy(this._parent._parent); } } movieClip 1037 { frame 1 { stop(); } } movieClip 1038 deathGate { frame 1 { stop(); mouseFX.useHandCursor = false; } instance mouseFX of movieClip 647 { onClipEvent (release) { _root.playSound('click'); _root.makeTarget(this._parent.inside); } onClipEvent (rollOver) { _root.playSound('rollOver'); _root.applyMouseOver(this._parent.inside); } onClipEvent (rollOut) { _root.removeMouseOver(this._parent.inside); } } } movieClip 1041 { frame 1 { stop(); } } movieClip 1044 { frame 1 { stop(); } } movieClip 1047 { frame 1 { stop(); } } movieClip 1049 { frame 1 { stop(); } } movieClip 1054 { } movieClip 1059 { frame 1 { stop(); } } movieClip 1064 { frame 1 { stop(); } } movieClip 1069 { frame 1 { stop(); } } movieClip 1072 { } movieClip 1078 { frame 1 { stop(); } } movieClip 1079 { } movieClip 1080 { } movieClip 1081 { frame 18 { _root.playSound('bruteAttack1'); _root.checkHitHero(weapon2, this._parent._parent); } frame 23 { _root.attackFinished(this._parent._parent); } } movieClip 1083 { } movieClip 1085 { } movieClip 1086 { frame 1 { _root.playSound('bruteAttack2'); } frame 12 { _root.checkHitHero(weapon2, this._parent._parent); } frame 25 { _root.attackFinished(this._parent._parent); } } movieClip 1087 { frame 1 { _root.playSound('bruteDie'); } frame 8 { _root.deadEnemy(this._parent._parent); } } movieClip 1088 { frame 1 { stop(); } } movieClip 1089 brute { frame 1 { mouseFX.useHandCursor = false; } instance mouseFX of movieClip 647 { onClipEvent (release) { _root.playSound('click'); _root.makeTarget(this._parent.inside); } onClipEvent (rollOver) { _root.playSound('rollOver'); _root.applyMouseOver(this._parent.inside); } onClipEvent (rollOut) { _root.removeMouseOver(this._parent.inside); } } } frame 16 { function myFirstItemHandler() { getURL('http://www.axis-games.com/shadowreign.php', ''); } _root.attachMovie('fadeToWhite', 'fadeToWhite', _root.getNextHighestDepth()); if (_root.login) { login_status = 'You are logged in'; } else { login_status = 'You are NOT logged in.'; } var my_cm; my_cm = new ContextMenu(); my_cm.hideBuiltInItems(); var myFirstItem_cmi; myFirstItem_cmi = new ContextMenuItem('(c)2009 - axis-games.com', myFirstItemHandler); my_cm.customItems.push(myFirstItem_cmi); _root.menu = my_cm; copyrightBtn.useHandCursor = false; logoBtn.useHandCursor = false; newGameBtn.useHandCursor = false; loadGameBtn.useHandCursor = false; armorBtn.useHandCursor = false; handsOfWarBtn.useHandCursor = false; twitterBtn.useHandCursor = false; moreGamesBtn.useHandCursor = false; _root.loadGame = true; _root.newGame = true; hotBar.removeMovieClip(); stopAllSounds(); soundFX.gotoAndPlay('theme'); stop(); } button 1099 { on (release) { _root.attachMovie('fadeToBlack', 'fadeToBlack', _root.getNextHighestDepth()); _root.fadeToBlack.goal = 'charSelect'; } } button 1105 { on (release) { _root.newGame = false; _root.attachMovie('fadeToBlack', 'fadeToBlack', _root.getNextHighestDepth()); _root.fadeToBlack.goal = 'loadSelect'; } } movieClip 1108 { frame 1 { stop(); } frame 2 { this.gotoAndStop(1); } } button 1113 { on (release) { getURL('http://armorgames.com/play/2802/hands-of-war-rpg', '_blank'); } } button 1116 { on (release) { getURL('http://twitter.com/armorgames', '_blank'); } } button 1121 { on (release) { getURL('http://armorgames.com/play/2802/hands-of-war-rpg', '_blank'); } } frame 22 { function myFirstItemHandler() { getURL('http://www.axis-games.com/shadowreign.php', ''); } var my_cm; my_cm = new ContextMenu(); my_cm.hideBuiltInItems(); var myFirstItem_cmi; myFirstItem_cmi = new ContextMenuItem('(c)2009 - axis-games.com', myFirstItemHandler); my_cm.customItems.push(myFirstItem_cmi); _root.menu = my_cm; _root.attachMovie('fadeToWhite', 'fadeToWhite', _root.getNextHighestDepth()); maleBtn.useHandCursor = false; femaleBtn.useHandCursor = false; mainMenuBtn.useHandCursor = false; } movieClip 1127 { } button 1130 { on (release) { if (_root.charNameTxt.text != '') { _root.charName = _root.charNameTxt.text; _root.sex = 'f'; _root.loadGame = false; _root.attachMovie('fadeToBlack', 'fadeToBlack', _root.getNextHighestDepth()); _root.fadeToBlack.goal = 'loadSelect'; } else { _root.arrows.gotoAndPlay(2); } } } movieClip 1132 { } button 1135 { on (release) { if (_root.charNameTxt.text != '') { _root.charName = _root.charNameTxt.text; _root.sex = 'm'; _root.loadGame = false; _root.attachMovie('fadeToBlack', 'fadeToBlack', _root.getNextHighestDepth()); _root.fadeToBlack.goal = 'loadSelect'; } else { _root.arrows.gotoAndPlay(2); } } } movieClip 1138 { frame 1 { stop(); } } button 1142 { on (release) { _root.attachMovie('fadeToBlack', 'fadeToBlack', _root.getNextHighestDepth()); _root.fadeToBlack.goal = 'title'; } } frame 32 { function myFirstItemHandler() { getURL('http://www.axis-games.com/shadowreign.php', ''); } var my_cm; my_cm = new ContextMenu(); my_cm.hideBuiltInItems(); var myFirstItem_cmi; myFirstItem_cmi = new ContextMenuItem('(c)2009 - axis-games.com', myFirstItemHandler); my_cm.customItems.push(myFirstItem_cmi); _root.menu = my_cm; _root.attachMovie('fadeToWhite', 'fadeToWhite', _root.getNextHighestDepth()); btn0.useHandCursor = false; btn1.useHandCursor = false; btn2.useHandCursor = false; mainMenuBtn.useHandCursor = false; info0._visible = false; info1._visible = false; info2._visible = false; arrow0._visible = false; arrow1._visible = false; arrow2._visible = false; var mySharedObject = SharedObject.getLocal('game0'); if (mySharedObject.data.charName == null) { slot0Txt.text = '1. Open Slot'; } else { slot0Txt.text = '1. ' + mySharedObject.data.charName + ' - Level ' + mySharedObject.data.level; info0.slot0.text = mySharedObject.data.pointsPerTree[0]; info0.slot1.text = mySharedObject.data.pointsPerTree[1]; info0.slot2.text = mySharedObject.data.pointsPerTree[2]; info0.slot3.text = mySharedObject.data.pointsPerTree[3]; if (mySharedObject.data.sex == 'f') { info0.male._visible = false; } else { info0.female._visible = false; } info0._visible = true; } mySharedObject = SharedObject.getLocal('game1'); if (mySharedObject.data.charName == null) { slot1Txt.text = '2. Open Slot'; } else { slot1Txt.text = '2. ' + mySharedObject.data.charName + ' - Level ' + mySharedObject.data.level; info1.slot0.text = mySharedObject.data.pointsPerTree[0]; info1.slot1.text = mySharedObject.data.pointsPerTree[1]; info1.slot2.text = mySharedObject.data.pointsPerTree[2]; info1.slot3.text = mySharedObject.data.pointsPerTree[3]; if (mySharedObject.data.sex == 'f') { info1.male._visible = false; } else { info1.female._visible = false; } info1._visible = true; } mySharedObject = SharedObject.getLocal('game2'); if (mySharedObject.data.charName == null) { slot2Txt.text = '3. Open Slot'; } else { slot2Txt.text = '3. ' + mySharedObject.data.charName + ' - Level ' + mySharedObject.data.level; info2.slot0.text = mySharedObject.data.pointsPerTree[0]; info2.slot1.text = mySharedObject.data.pointsPerTree[1]; info2.slot2.text = mySharedObject.data.pointsPerTree[2]; info2.slot3.text = mySharedObject.data.pointsPerTree[3]; if (mySharedObject.data.sex == 'f') { info2.male._visible = false; } else { info2.female._visible = false; } info2._visible = true; } } button 1147 { on (release) { if (_root.newGame == false && _root.info1._visible) { _root.saveSlot = 1; _root.attachMovie('fadeToBlack', 'fadeToBlack', _root.getNextHighestDepth()); _root.fadeToBlack.goal = 'game'; } else { if (_root.newGame) { _root.saveSlot = 1; _root.attachMovie('fadeToBlack', 'fadeToBlack', _root.getNextHighestDepth()); _root.fadeToBlack.goal = 'intro'; stopAllSounds(); } else { _root.errorMessage.gotoAndPlay(2); } } } on (rollOver) { _root.arrow1._visible = true; } on (rollOut) { _root.arrow1._visible = false; } } button 1148 { on (release) { if (_root.newGame == false && _root.info2._visible) { _root.saveSlot = 2; _root.attachMovie('fadeToBlack', 'fadeToBlack', _root.getNextHighestDepth()); _root.fadeToBlack.goal = 'game'; } else { if (_root.newGame) { _root.saveSlot = 2; _root.attachMovie('fadeToBlack', 'fadeToBlack', _root.getNextHighestDepth()); _root.fadeToBlack.goal = 'intro'; stopAllSounds(); } else { _root.errorMessage.gotoAndPlay(2); } } } on (rollOver) { _root.arrow2._visible = true; } on (rollOut) { _root.arrow2._visible = false; } } button 1149 { on (release) { if (_root.newGame == false && _root.info0._visible) { _root.saveSlot = 0; _root.attachMovie('fadeToBlack', 'fadeToBlack', _root.getNextHighestDepth()); _root.fadeToBlack.goal = 'game'; } else { if (_root.newGame) { _root.saveSlot = 0; _root.attachMovie('fadeToBlack', 'fadeToBlack', _root.getNextHighestDepth()); _root.fadeToBlack.goal = 'intro'; stopAllSounds(); } else { _root.errorMessage.gotoAndPlay(2); } } } on (rollOver) { _root.arrow0._visible = true; } on (rollOut) { _root.arrow0._visible = false; } } movieClip 1163 { } movieClip 1165 { } movieClip 1167 { frame 1 { stop(); } } frame 42 { function myFirstItemHandler() { getURL('http://www.axis-games.com/shadowreign.php', ''); } var my_cm; my_cm = new ContextMenu(); my_cm.hideBuiltInItems(); var myFirstItem_cmi; myFirstItem_cmi = new ContextMenuItem('(c)2009 - axis-games.com', myFirstItemHandler); my_cm.customItems.push(myFirstItem_cmi); _root.menu = my_cm; skipBtn.useHandCursor = false; _root.maskMC.cacheAsBitmap = true; _root.introVideo.cacheAsBitmap = true; _root.introVideo.setMask('maskMC'); _root.attachMovie('fadeToWhite', 'fadeToWhite', _root.getNextHighestDepth()); } movieClip 1171 { } movieClip 1172 { frame 1491 { _root.attachMovie('fadeToBlack', 'fadeToBlack', _root.getNextHighestDepth()); _root.fadeToBlack.goal = 'game'; } } button 1176 { on (release) { _root.attachMovie('fadeToBlack', 'fadeToBlack', _root.getNextHighestDepth()); _root.fadeToBlack.goal = 'game'; } } movieClip 1178 { } frame 48 { function myFirstItemHandler() { getURL('http://www.axis-games.com/shadowreign.php', ''); } function setMoveSpeed() { var v1 = baseMoveSpeed; v1 += agi * 0.005; var v2 = 0; v2 += battleAuraT[7][battleAuraT[4]] * v1; v2 += huntersPursuitT[7][huntersPursuitT[4]] * v1; v2 += blessingOfTheWindT[7][blessingOfTheWindT[4]] * v1; if (buffActive('mongoose') != -1) { v2 += 0.5 * v1; } moveSpeed = v1 + v2; if (isStealth) { moveSpeed *= 0.6; } if (isSnared) { moveSpeed *= 0.5; } } function setCrit() { var v4 = baseCrit; v4 += agi * 0.4; if (buffActive('killingSpree') != -1) { v4 += killingSpreeT[7][killingSpreeT[4]]; } if (buffActive('stalkersFury') != -1) { v4 += 10; } if (deadEyeT[4] > 0) { v4 += deadEyeT[4]; } var v2 = 0; while (v2 < equipmentList.length) { var v3 = equipmentList[v2]; if (v3 != null) { v4 += _root[v3][10]; } ++v2; } crit = int(v4); if (crit > 100) { crit = 100; } } function setHealthRegen() { var v2 = baseHealthRegen; var v1 = 0; v1 += str * 0.035; v1 += recoveryT[7][recoveryT[4]] * (v2 + v1); v1 += battleAuraT[7][battleAuraT[4]] * (v2 + v1); var v3 = Math.round((v2 + v1) * 100); if (buffActive('soulLink') != -1) { v3 *= 1.5; } healthRegen = Math.round(v3) / 100; } function setEnergyRegen() { var v2 = baseEnergyRegen; var v1 = 0; v1 += foc * 0.1; v1 += focusedMindT[7][focusedMindT[4]] * (v2 + v1); v1 += blessingOfTheWindT[7][blessingOfTheWindT[4]] * (v2 + v1); var v3 = Math.round((v2 + v1) * 100); energyRegen = v3 / 100; } function setArmor() { var v4 = baseArmor; var v2 = 0; while (v2 < 6) { var v3 = equipmentList[v2]; if (v3 != null) { v4 += _root[v3][4]; } ++v2; } if (fortifyT[4] > 0) { v4 *= fortifyT[7][fortifyT[4]]; } armor = Math.round(v4); setMitigation(); } function setMaxHealth() { var v4 = level * baseHealth + 20; var v2 = 0; while (v2 < equipmentList.length) { var v3 = equipmentList[v2]; if (v3 != null) { v4 += _root[v3][8]; } ++v2; } v4 += str * 2; maxHealth = v4; } function setMaxEnergy() { var v4 = level * baseEnergy + 20; var v2 = 0; while (v2 < equipmentList.length) { var v3 = equipmentList[v2]; if (v3 != null) { v4 += _root[v3][9]; } ++v2; } v4 += foc * 4; maxEnergy = v4; } function setAttackSpeed() { var v2 = weaponDelay; var v1 = 0; v1 += battleAuraT[7][battleAuraT[4]] * v2; v1 += blessingOfTheWindT[7][blessingOfTheWindT[4]] * v2; attackSpeed = Math.round(v2 - v1); } function setMitigation() { var v1 = level * 1.2 * 4; if (level > 50) { v1 = 200; } mit = int((armor / v1 - 1) * 100); if (mit > 65) { mit = 65; } else { if (mit < 5) { mit = 5; } } } function setAllAttributes() { setMoveSpeed(); setCrit(); setDodge(); setHealthRegen(); setEnergyRegen(); setArmor(); setMaxHealth(); setMaxEnergy(); setAttackSpeed(); } function changeHealth(amt) { if (_root.tutorialWindow._currentframe == 1) { curHealth += amt; if (curHealth > maxHealth) { curHealth = maxHealth; } else { if (curHealth <= 0) { heroDie(); } } _root.charBar.healthBar._xscale = (curHealth / maxHealth) * 100; _root.charBar.healthNum.txt.text = int(curHealth) + '/' + maxHealth; if (charMenu._visible) { _root.charMenu.healthTxt.text = 'Health - ' + int(curHealth) + '/' + maxHealth; } } } function setDodge() { var v1 = baseDodge; v1 += agi * 0.25; dodge = int(v1); if (dodge > 100) { dodge = 100; } } function changeExp(amt) { curExp += amt; if (curExp >= nextLevel) { var v2 = curExp - nextLevel; curExp = v2; ++level; if (level <= 50) { ++currentTalentPoints; } else { showMessage('Max Talent Points Reached'); } _root.hotBar.talentPointsTxt.text = currentTalentPoints; setMaxHealth(); setMaxEnergy(); changeEnergy(1000); changeHealth(1000); playSound('levelUp'); showMessage('You Gained a New Level \n and 1 Talent Point!'); if (level > expSplits.length - 1) { nextLevel = 5000; } else { nextLevel = expSplits[level]; } if (curExp >= nextLevel) { changeExp(0); } _root.showTutorial(8); } _root.charBar.expBar._xscale = (curExp / nextLevel) * 100; _root.charBar.expNum.txt.text = int(curExp) + '/' + nextLevel; if (charMenu._visible) { _root.charMenu.expTxt.text = 'Exp - ' + int(curExp) + '/' + nextLevel; } } function changeEnergy(amt) { if (_root.tutorialWindow._currentframe == 1) { curEnergy += amt; if (curEnergy > maxEnergy) { curEnergy = maxEnergy; } _root.charBar.energyBar._xscale = (curEnergy / maxEnergy) * 100; _root.charBar.energyNum.txt.text = int(curEnergy) + '/' + maxEnergy; if (charMenu._visible) { _root.charMenu.energyTxt.text = 'Energy - ' + int(curEnergy) + '/' + maxEnergy; } } } function healthTick() { if (inCombat) { changeHealth(healthRegen / 5); } else { changeHealth(healthRegen / 2.5); } } function energyTick() { if (inCombat) { changeEnergy(energyRegen / 5); } else { changeEnergy(energyRegen / 2.5); } } function mapTransition(newRow, newCol) { inTransition = true; _root.hero._visible = false; _root.hero.inside.gotoAndStop('stunned'); isCasting = false; isMoving = false; isAttacking = false; _root.castBar._visible = false; _root.hero.castEffects.gotoAndStop(1); setHeroGear(); isStunned = true; stunTimer = 0; row = newRow; col = newCol; _root.mapWindow.heroMarker._x = 150 + col * 35; _root.mapWindow.heroMarker._y = 135 + row * 35; if (_root.hero._x > 640) { _root.hero._x = 15; } else { if (_root.hero._x < 10) { _root.hero._x = 635; } else { if (_root.hero._y < 10) { _root.hero._y = 485; } else { if (_root.hero._y > 490) { _root.hero._y = 15; } } } } if (_root.hero._x > 640) { _root.hero._x = 630; } if (_root.hero._x < 10) { _root.hero._x = 20; } if (_root.hero._y < 10) { _root.hero._y = 20; } if (_root.hero._y > 490) { _root.hero._y = 480; } _root.attachMovie('fadeToBlack', 'fadeToBlack', fadeToBlackDepth); _root.fadeToBlack.goal = 'transition'; transitionInterval = setInterval(setNewArea, 480); } function setNewArea() { targetTimer = 0; inTransition = false; clearInterval(transitionInterval); var v3 = 0; while (v3 < itemsOnGround.length) { var v5 = itemsOnGround[v3]; v5.removeMovieClip(); ++v3; } itemsOnGround = []; if (currentTile == '0_9' && mainStoryline[30]) { tile0_9[0][5] = false; } v3 = 0; while (v3 < enemyArray.length) { var v4 = enemyArray[v3]; var v6 = _root[v4].inside.patDepth; (_root.getInstanceAtDepth(v6)).removeMovieClip(); _root[v4].removeMovieClip(); ++v3; } enemyArray = []; currentTile = row + '_' + col; if (currentTile == '3_6' || currentTile == '3_7' || currentTile == '4_6' || currentTile == '4_7') { playLoop('city2'); } else { if ((currentTile == '1_1' || currentTile == '1_2' || currentTile == '1_3') && mainStoryline[0]) { playLoop('city1'); } else { if (currentTile == '5_1' || currentTile == '5_2' || currentTile == '5_3') { if (mainStoryline[5] && mainStoryline[7] == false) { playLoop('city1'); } else { if (mainStoryline[7] && mainStoryline[24] == false) { playLoop('sadCity'); } else { playLoop('mainTheme'); } } } else { if (currentTile == '4_0' || currentTile == '0_7' || currentTile == '0_4' || currentTile == '7_9') { playLoop('riddleTheme'); } else { playLoop('mainTheme'); } } } } _root.ground.gotoAndStop(currentTile); _root.mapWindow['cover' + currentTile]._visible = false; exploration[row][col] = true; var v2 = 'tile' + currentTile; v3 = 0; while (v3 < _root[v2].length) { if (_root[v2][v3][5] == false) { spawnEnemy(_root[v2][v3][1], _root[v2][v3][2], _root[v2][v3][3], _root[v2][v3][0], false); } ++v3; } if (mainStoryline[20] && mainStoryline[21] == false && currentTile == '0_5') { v3 = 0; while (v3 < 20) { spawnEnemy('nightmareVoid', 150 + random(350), 150 + random(250), v3, false); ++v3; } } _root.hero._visible = true; isStunned = false; _root.hero.gotoAndStop('stand'); setHeroGear(); clearTarget(); deactivateAA(); _root.targetCircle._x = -200; if (currentTile == '1_1') { showTutorial(6); } else { if (currentTile == '0_1' || currentTile == '1_3' || currentTile == '2_0') { showTutorial(12); } } } function addEnemyToRespawn(respawnTimer, tileArr, arrIndex) { if (respawnTimer != null) { var v1 = [respawnTimer, tileArr, arrIndex]; respawnArray[respawnArray.length] = v1; sortRespawnArray(); } } function sortRespawnArray() { var v4; var v7 = []; var v3 = 0; while (v3 < respawnArray.length) { v4 = v3; var v2 = v3; while (v2 < respawnArray.length - 1) { var v6 = _root.respawnArray[v2 + 1][0]; var v5 = _root.respawnArray[v4][0]; if (v6 < v5) { v4 = v2 + 1; } ++v2; } v7 = respawnArray[v3]; respawnArray[v3] = respawnArray[v4]; respawnArray[v4] = v7; ++v3; } } function heroDie() { if (isDead == false) { _root.attachMovie('fadeToBlack', 'fadeToBlack', fadeToBlackDepth); _root.fadeToBlack.goal = 'die'; isDead = true; ++deaths; snareTimer = 125; stunTimer = 25; if (equipOnMouse != null) { addItemToInventory(null, _root.charMenu[equipOnMouse].gearName); var v3 = mouseItemInfo[0]; _root.charMenu[v3].removeMovieClip(); mouseItemInfo[0] = null; mouseItemInfo[1] = null; itemOnMouse = false; equipOnMouse = null; } clearMouseIcon(); var v2 = 0; while (v2 <= activeBuffs) { buffList[v2][0] = null; buffList[v2][1] = null; buffList[v2][2] = null; _root.charBar['slot' + v2].gotoAndStop(1); ++v2; } stopAllSounds(); playSound('death'); _root.charBar.debuff0.gotoAndStop(1); activeBuffs = 0; _root.hero._visible = false; _root.mapWindow._visible = false; _root.talentWindow._visible = false; _root.charMenu._visible = false; _root.abilities._visible = false; _root.options._visible = false; } } function respawnHero() { if (_root.mainStoryline[9]) { row = 4; col = 6; _root.hero._x = 310; _root.hero._y = 250; } else { if (_root.mainStoryline[5]) { row = 5; col = 2; _root.hero._x = 315; _root.hero._y = 230; } else { if (_root.mainStoryline[2]) { row = 4; col = 2; _root.hero._x = 315; _root.hero._y = 245; } else { row = 1; col = 2; _root.hero._x = 330; _root.hero._y = 260; } } } _root.tutorialWindow.gotoAndStop(1); changeHealth(10000); changeEnergy(10000); isDead = false; inTransition = true; isCasting = false; isMoving = false; isAttacking = false; _root.castBar._visible = false; _root.hero.castEffects.gotoAndStop(1); isStunned = true; snareTimer = 125; stunTimer = 0; _root.charBar.debuff0.gotoAndStop(1); _root.charBar.debuff0.iconTime.text = ''; _root.mapWindow.heroMarker._x = 150 + col * 35; _root.mapWindow.heroMarker._y = 135 + row * 35; _root.attachMovie('fadeToWhite', 'fadeToWhite', fadeToBlackDepth); _root.fadeToWhite.goal = null; setNewArea(); } function processTalent(talent) { if (currentTalentPoints > 0 && pointsPerTree[_root[talent][2]] >= _root[talent][3]) { if (_root[talent][4] < _root[talent][5] || _root[talent][1] == 'maxStat') { playSound('talentPointUse'); var v4 = visibleTree; var v6 = treeNameByNum[_root[talent][2]]; --currentTalentPoints; if (currentTalentPoints > 0) { _root.hotBar.talentPointsTxt.text = currentTalentPoints; } else { _root.hotBar.talentPointsTxt.text = ''; } ++pointsPerTree[_root[talent][2]]; _root.talentWindow['tal' + _root[talent][2]].text = pointsPerTree[_root[talent][2]]; ++_root[talent][4]; _root.talentText.gotoAndStop(talent + _root[talent][4]); if (_root[talent][1] == 'maxStat') { v4[talent + 'Txt'].text = _root[talent][4]; _root.talentWindow.talentText.gotoAndStop(talent); var v3 = _root[talent][6]; if (v3 == 'baseDamage') { _root[v3] += 1; } else { _root[v3] += 2; } } else { v4[talent + 'Txt'].text = _root[talent][4] + '/' + _root[talent][5]; } if (_root[talent][1] == 'ability') { if (!itemInList(talent, 'abilityList')) { showTutorial(10); _root.abilities['slot' + abilityList.length].gotoAndStop(talent); _root.abilities['slot' + abilityList.length].abilityName.gotoAndStop(_root.abilities['slot' + abilityList.length]._currentframe); abilityList[abilityList.length] = talent; } if (talent == 'bladeFlurryT' || talent == 'stalkersFuryT' || talent == 'incapacitateT') { var v5 = _root[talent][6]; _root[v5][6] = _root[talent][7][_root[talent][4]]; } } else { if (_root[talent][1] == 'passive') { _root[_root[talent][6]] += _root[talent][7][_root[talent][4]]; } else { if (_root[talent][1] == 'aura') { addIcon(_root[talent][6]); } } } setAllAttributes(); } else { playSound('error'); showMessage('Already Maxxed'); } } else { if (currentTalentPoints <= 0) { playSound('error'); showMessage('No Talent Points'); } else { playSound('error'); showMessage('You need more points in this tree'); } } } function switchTalentMenu(mnu) { talentWindow.assassinTree._visible = false; talentWindow.warderTree._visible = false; talentWindow.arcaneTree._visible = false; talentWindow.gladiatorTree._visible = false; talentWindow[mnu + 'Tree']._visible = true; visibleTree = _root.talentWindow[mnu + 'Tree']; } function getTalentText(tal) { playSound('rollOver'); var v4 = treeNameByNum[_root[tal][2]]; if (pointsPerTree[_root[tal][2]] < _root[tal][3]) { var v3 = tal + 'H'; } else { if (_root[tal][1] == 'maxStat') { var v3 = tal; } else { var v3 = tal + _root[tal][4]; } } _root.talentText._x = visibleTree[tal + 'Btn']._x + 35; _root.talentText._y = visibleTree[tal + 'Btn']._y - 20; _root.talentText.gotoAndStop(v3); } function removeTalentText() { _root.talentText.gotoAndStop(1); } function setTalentText() { var v5 = 0; while (v5 < 4) { var v4 = 0; while (v4 < 12) { var v3 = treeNameByNum[v5]; var v6 = 'list' + v5; var v2 = _root[v6][v4]; _root.talentWindow[v3][v2 + 'Btn'].useHandCursor = false; _root.talentWindow[v3][v2 + 'Btn'].tabEnabled = false; _root.talentWindow[v3][v2 + 'Txt'].text = _root[v2][4] + '/' + _root[v2][5]; if (_root[v2][1] == 'maxStat') { _root.talentWindow[v3][v2 + 'Txt'].text = _root[v2][4]; } ++v4; } ++v5; } } function resetTalents() { ++talentResets; currentTalentPoints += pointsPerTree[0] + pointsPerTree[1] + pointsPerTree[2] + pointsPerTree[3]; _root.hotBar.talentPointsTxt.text = currentTalentPoints; if (warriorsSpiritT[4] > 0) { str -= warriorsSpiritT[4] * 2; } if (stalkersSpiritT[4] > 0) { baseDamage -= stalkersSpiritT[4] * 1; } if (wizardsSpiritT[4] > 0) { foc -= wizardsSpiritT[4] * 2; } if (spiritOfTheGroveT[4] > 0) { agi -= spiritOfTheGroveT[4] * 2; } pointsPerTree = [0, 0, 0, 0]; _root.talentWindow.tal0.text = 0; _root.talentWindow.tal1.text = 0; _root.talentWindow.tal2.text = 0; _root.talentWindow.tal3.text = 0; abilityList = ['autoAttackT']; hotBarList = ['autoAttack', null, null, null, null, null, null, null, null, null]; var v2 = 0; while (v2 < 11) { _root.hotBar['slot' + v2].gotoAndStop(1); _root.hotBar['slot' + v2].cdCover._visible = false; _root.hotBar['slot' + v2].cdTimer.text = ''; ++v2; } _root.hotBar.slot0.gotoAndStop('autoAttackT'); v2 = 1; while (v2 < 25) { _root.abilities['slot' + v2].gotoAndStop(1); _root.abilities['slot' + v2].abilityName.gotoAndStop(1); ++v2; } var v3 = 0; while (v3 < 4) { v2 = 0; while (v2 < 12) { var v6 = treeNameByNum[v3]; var v4 = 'list' + v3; var v5 = _root[v4][v2]; _root[v5][4] = 0; ++v2; } ++v3; } setTalentText(); setAllAttributes(); } function useAbility(ability) { if (_root.tutorialWindow._currentframe == 1 && _root.chatWindow._currentframe == 1) { if (ability == 'autoAttack') { if (weaponType == 'noWeapon') { showMessage('Requires a Weapon'); } else { if ((inCombat == false || autoAttackOn == false) && isCasting == false) { performAutoAttack(); } activateAA(); inCombat = true; restoreAlpha(); } } else { if (ability == null || isCasting || isAttacking) { } else { if (isStunned) { showMessage('Can\'t Attack While Stunned'); } else { if (globalCD > 0 || _root[ability][9] > 0) { showMessage('Not Ready Yet'); } else { if (_root[ability][16] && !isStealth) { playSound('error'); showMessage('Requires Stealth'); } else { if (_root[ability][3] == 'melee' && weaponType != 'Sword' && weaponType != 'Dagger') { playSound('error'); showMessage('Requires Melee Weapon'); } else { if ((ability == 'steadyShot' || ability == 'explosiveShot' || ability == 'shadowShot') && weaponType != 'Bow') { playSound('error'); showMessage('Requires a Bow'); } else { if (target == null && _root[ability][5]) { playSound('error'); showMessage('Requires a Target'); } else { if (ability == 'backstab' && !behindTarget(target)) { showMessage('Must Be Behind Target'); } else { if (curEnergy < _root[ability][1] + level * _root[ability][17]) { showMessage('Not Enough Energy'); } else { if (getLoS(_root.hero, _root[target]) == false && _root[abilit][0] == 'harm') { showMessage('Can\'t See Target'); } else { if (_root[ability][3] == 'melee' && (_root[target].inside.enemyKind != 'deathGate' && getDist(_root.hero, _root[target]) > meleeRange || _root[target].inside.enemyKind == 'deathGate' && getDist(_root.hero, _root[target]) > 100)) { playSound('error'); showMessage('Out of Range'); } else { if (isMoving && _root[ability][4] != 0) { showMessage('Can\'t Do While Moving'); } else { if (_root[ability][7] != true && _root[ability][0] == 'attack' && (target == companion || target == hero)) { playSound('error'); showMessage('Target An Enemy First'); } else { if ((ability == 'stealth' || ability == 'recall') && inCombat) { playSound('error'); showMessage('Can\'t Use in Combat'); } else { isMoving = false; globalCD = 15; if (target != null && ability != 'blinkStep') { _root.hero._rotation = getAng(_root.hero, _root[target]); } if (_root[ability][4] == 0) { isAttacking = true; executeAbility(ability); } else { _root.castBar.spellName.text = _root[ability][10]; _root.castBar.castMeter._xscale = 0; savedTarget = target; savedAbility = ability; _root.hero.inside.gotoAndStop(ability + 'Charge'); playSound(ability + 'Cast'); _root.hero.castEffects.gotoAndStop(ability); setHeroGear(); isCasting = true; curCast = 0; endCast = _root[ability][4]; if (blessingOfTheWindT[4] > 0) { var v3 = endCast * blessingOfTheWindT[7][blessingOfTheWindT[4]]; endCast = Math.round(endCast - v3); } if (dispellT[4] > 0) { v3 = endCast * dispellT[7][dispellT[4]]; endCast = Math.round(endCast - v3); } _root.castBar._visible = true; _root.hero.attachMovie(ability + 'Cast', 'castEffect', 100); } } } } } } } } } } } } } } } } } } function executeAbility(ability) { playSound(ability + 'Use'); _root.hero.castEffects.gotoAndStop(1); if (isStealth && ability != 'incapacitate' && ability != 'stealth') { removeStealth(); } _root.castBar._visible = false; isCasting = false; _root.hero.inside.gotoAndStop(ability + 'Use'); setHeroGear(); if (ability == 'sylvanTouch' || ability == 'bladeFlurry' || ability == 'stalkersFury') { _root.hero.castEffects.gotoAndStop(ability); } changeEnergy((_root[ability][1] + level * _root[ability][17]) * -1); if (_root[ability][8] > 0) { _root[ability][9] = _root[ability][8]; _root.hotBar['slot' + slot].cdCover._visible = true; _root.hotBar['slot' + slot].cdTimer.text = Math.ceil(root[ability][9] / 25); } if (_root[ability][12] && _root[savedTarget].inside.dead == false) { _root.attachMovie('projectiles', 'spell' + spellDepth, spellDepth); _root['spell' + spellDepth]._x = _root.hero._x; _root['spell' + spellDepth]._y = _root.hero._y; _root['spell' + spellDepth]._rotation = _root.hero._rotation; _root['spell' + spellDepth].inside.gotoAndStop(ability); _root['spell' + spellDepth].inside.target = savedTarget; _root['spell' + spellDepth].inside.cameFrom = 'hero'; _root['spell' + spellDepth].inside.ability = ability; getSpellDepth(); } if (ability == 'scorpionBite') { _root[target].inside.aggroed = true; _root[target]._visible = true; addEnemyDebuff(_root[target], ability + 'T', _root[ability][6], (_root[ability][15] + baseDamage) / 5 + _root[ability][11] * level); _root.attachMovie(ability + 'Hit', 'hit' + spellDepth, spellDepth); _root['hit' + spellDepth]._x = _root[target]._x; _root['hit' + spellDepth]._y = _root[target]._y; getSpellDepth(); } if (_root[ability][13] && _root[ability][3] != 'melee' && ability != 'scorpionBite') { checkForHit(null, _root[savedTarget], ability); } if (_root[ability][0] == 'attack' && ability != 'incapacitate' && ability != 'dazzle') { activateAA(); if (inCombat == false) { autoAttackTimer = 0; performAutoAttack(); } } if (ability == 'recall') { _root.mapWindow._visible = true; _root.talentWindow._visible = false; _root.charMenu._visible = false; _root.abilities._visible = false; _root.options._visible = false; if (exploration[1][2]) { _root.mapWindow.town1._visible = true; } if (exploration[5][2]) { _root.mapWindow.town2._visible = true; } if (exploration[4][6] || exploration[4][7]) { _root.mapWindow.town3._visible = true; } showTutorial(14); } } function attackFinished(char) { if (char == _root.hero) { _root.hero.inside.gotoAndStop('stand'); setHeroGear(); isAttacking = false; isMoving = false; } else { char.inside.attacking = false; char.inside.gotoAndStop('stand'); setEnemyArmor(char.inside.attack, char.inside); } } function finishAA() { _root.hero.inside.gotoAndStop('stand'); setHeroGear(); } function checkForHit(weapon, trgt, ability) { var v16 = false; var v21 = false; var v9 = []; if (_root[ability][0] == 'heal') { var v20 = _root[ability][2] + level * _root[ability][11]; if (naturesRecoveryT[4] > 0) { v20 *= 1 + naturesRecoveryT[7][naturesRecoveryT[4]]; } if (ability != 'sylvanTouch') { setCrit(); if (random(100) < crit) { v16 = true; v20 *= 2; if (maliciousIntentT[4] > 0) { addHeroBuff('maliciousIntent'); } } v20 = Math.round(v20); changeHealth(v20); _root.attachMovie('greenSCT', 'sct' + sctDepth, sctDepth); _root['sct' + sctDepth].inside.sctText.text = '+' + v20; if (v16) { _root['sct' + sctDepth].inside.sctText.text += ' Crit'; } _root['sct' + sctDepth]._x = _root.hero._x; _root['sct' + sctDepth]._y = _root.hero._y; getSCTDepth(); } if (_root[ability][18]) { addHeroBuff(ability); } } else { if (_root[ability][0] == 'buff') { addHeroBuff(ability); } } _root.areaSquare.removeMovieClip(); if (_root[ability][0] == 'attack' && (weapon == null || weapon.hitTest(trgt))) { if (_root[ability][7] || buffActive('bladeFlurry') != -1) { _root.attachMovie('areaSquare', 'areaSquare', areaSquareDepth); _root.areaSquare._x = trgt._x; _root.areaSquare._y = trgt._y; _root.areaSquare._width = _root[ability][14]; _root.areaSquare._height = _root[ability][14]; if (ability == 'energyNova') { _root.areaSquare._x = _root.hero._x; _root.areaSquare._y = _root.hero._y; } } var v17 = false; var v8 = 0; while (v8 < enemyArray.length) { var v2 = enemyArray[v8]; if ((trgt == _root[v2] && _root[ability][7] == false || _root.areaSquare.hitTest(_root[v2])) && _root[v2].inside.dead == false) { var v5 = _root[ability][2] + _root[ability][11] * level + random(3) + baseDamage; if (ability == 'autoAttack') { v5 = getAADamage(); v5 += random(3); } if (debuffActive(_root[v2], 'terrifyingShoutT') != -1) { v5 *= terrifyingShoutT[7][terrifyingShoutT[4]]; } if (_root[ability][3] == 'melee' || ability == 'autoAttack' && (weaponType == 'Sword' || weaponType == 'Dagger')) { if (ability == 'bash') { stunEnemy(_root[v2], bash[6], 'bashT'); } else { if (ability == 'incapacitate') { stunEnemy(_root[v2], incapacitate[6], 'incapacitateT'); } } if (buffActive('fireFists') != -1) { v5 += fireFists[2] + level * fireFists[11]; } if (paralyzingSwingT[4] > 0 && ability != 'bash' && ability != 'incapacitate') { if (random(100) < paralyzingSwingT[7][paralyzingSwingT[4]]) { stunEnemy(_root[v2], paralyzingSwingT[8], 'paralyzingSwingT'); } } } if (ability == 'terrifyingShout' || ability == 'naturesGrasp') { addEnemyDebuff(_root[v2], ability + 'T', _root[ability][6], 0); if (ability == 'naturesGrasp') { _root[v2].inside.moveSpeed = _root[_root[v2].inside.type][4] * 0.4; } } if (ability == 'scorch') { addEnemyDebuff(_root[v2], ability + 'T', _root[ability][6], Math.round(v5 / 7)); } else { if (ability == 'dazzle') { stunEnemy(_root[v2], dazzle[6], 'dazzleT'); } } setCrit(); if (ability == 'backstab') { crit += maliceT[7][maliceT[4]]; } if (ability == 'terrifyingShout') { v5 = 0; } if (buffActive('maliciousIntent') != -1) { v5 *= 1 + maliciousIntentT[7][maliciousIntentT[4]]; } if (random(100) < crit) { v16 = true; v5 *= 2; if (aftermathT[4] > 0) { var v15 = Math.round(v5 * aftermathT[7][aftermathT[4]] / 2); addEnemyDebuff(_root[v2], 'aftermathT', aftermathT[8], v15); } if (maliciousIntentT[4] > 0) { addHeroBuff('maliciousIntent'); } } if (battleAuraT[4] > 0) { v5 *= 1.1; } if (lifeStealT[4] > 0) { var v13 = Math.round(v5 * lifeStealT[7][lifeStealT[4]]); if (naturesRecoveryT[4] > 0) { v13 *= 1 + naturesRecoveryT[7][naturesRecoveryT[4]]; } changeHealth(Math.round(v13)); } v5 = Math.round(v5); if ((ability == 'shadowShot' || ability == 'arcanePulse') && v17 == false) { v17 = true; var v7 = 0; while (v7 < enemyArray.length) { var v3 = enemyArray[v7]; if (ability == 'arcanePulse') { stunEnemy(_root[v3], 50, 'arcanePulseT'); } if (v2 != v3 && _root[v3].inside.enemyKind != 'deathGate') { _root.attachMovie(ability + 'Hit', 'hit' + spellDepth, spellDepth); _root['hit' + spellDepth]._x = _root[v3]._x; _root['hit' + spellDepth]._y = _root[v3]._y; getSpellDepth(); _root[v3].inside.attacking = false; _root[v3].inside.attackTimer = 0; _root[v3].inside.gotoAndStop('stand'); setEnemyArmor(_root[v3].inside.attack, _root[v3].inside); _root[v3]._x = _root[v2]._x; _root[v3]._y = _root[v2]._y; _root[v3]._x -= 30 * getXSlope(_root[v3]); _root[v3]._y -= 30 * getYSlope(_root[v3]); if (v3 == target) { _root.targetCircle._x = _root[v3]._x; _root.targetCircle._y = _root[v3]._y; } } ++v7; } } if (isStealth == false) { v7 = 0; while (v7 < enemyArray.length) { var v6 = enemyArray[v7]; if (getDist(_root[v2], _root[v6]) < _root[v6].inside.aggroRange) { _root[v6].inside.aggroed = true; _root[v6]._visible = true; inCombat = true; playLoop('combat'); restoreAlpha(); } ++v7; } } if (ability != 'terrifyingShout' && ability != 'incapacitate' && ability != 'naturesGrasp' && ability != 'dazzle') { _root[v2].inside.curHealth -= v5; if (v5 > highestHit) { highestHit = v5; } var v12 = debuffActive(_root[v2], 'dazzleT'); if (v12 != -1) { if (_root[v2].inside.enemyKind != 'deathGate') { _root[v2].inside.stunned = false; } _root[v2].inside.debuffList[v12][1] = 2; } var v11 = debuffActive(_root[v2], 'incapacitateT'); if (v11 != -1) { if (_root[v2].inside.enemyKind != 'deathGate') { _root[v2].inside.stunned = false; } _root[v2].inside.debuffList[v11][1] = 2; } if (_root[v2].inside.curHealth <= 0) { v9[v9.length] = _root[v2]; } else { if (v2 == target) { _root.targetMenu.hpBar._xscale = (_root[v2].inside.curHealth / _root[v2].inside.maxHealth) * 100; _root.targetMenu.healthTxt.text = int(_root[v2].inside.curHealth); } } if (ability == 'autoAttack') { _root.attachMovie('whiteSCT', 'sct' + sctDepth, sctDepth); } else { _root.attachMovie('yellowSCT', 'sct' + sctDepth, sctDepth); } _root['sct' + sctDepth].inside.sctText.text = v5; if (v16) { _root['sct' + sctDepth].inside.sctText.text += ' Crit'; } _root['sct' + sctDepth]._x = _root[v2]._x; _root['sct' + sctDepth]._y = _root[v2]._y; getSCTDepth(); if (ability == 'siphonEnergy') { var v10 = Math.round(v5 * siphonEnergyT[7][siphonEnergyT[4]]); changeEnergy(v10); _root.attachMovie('blueSCT', 'sct' + sctDepth, sctDepth); _root['sct' + sctDepth].inside.sctText.text = '+' + v10; _root['sct' + sctDepth]._x = _root.hero._x; _root['sct' + sctDepth]._y = _root.hero._y; getSCTDepth(); } } if (_root[ability][12]) { weapon.removeMovieClip(); playSound(ability + 'Hit'); } _root.attachMovie(ability + 'Hit', 'hit' + spellDepth, spellDepth); _root['hit' + spellDepth]._x = _root[v2]._x; _root['hit' + spellDepth]._y = _root[v2]._y; getSpellDepth(); if (_root[ability][7] == false && buffActive('bladeFlurry') == -1) { break; } } ++v8; } if (ability == 'dazzle') { deactivateAA(); } v8 = 0; while (v8 < v9.length) { var v14 = v9[v8]; killEnemy(v14); ++v8; } } } function addHeroBuff(ability) { clearBuffInfo(); var v4 = buffActive(ability); var v7 = findBuffSlot(buffList, _root[ability][6]); if (ability == 'stealth') { v7 = 0; } if (v4 == -1) { ++activeBuffs; if (v7 <= activeBuffs - 2) { var v8 = activeBuffs - (v7 + 1); var v2 = activeBuffs - 1; while (v2 >= activeBuffs - v8) { buffList[v2][0] = buffList[v2 - 1][0]; buffList[v2][1] = buffList[v2 - 1][1]; _root.charBar['slot' + v2].gotoAndStop(buffList[v2][0] + 'T'); if (buffList[v2][1] != 'noTime') { _root.charBar['slot' + v2].iconTime.text = Math.ceil(buffList[v2][1] / 25); } else { _root.charBar['slot' + v2].iconTime.text = ''; } --v2; } } buffList[v7][0] = ability; buffList[v7][1] = _root[ability][6]; _root.charBar['slot' + v7].gotoAndStop(ability + 'T'); if (buffList[v7][1] != 'noTime') { _root.charBar['slot' + v7].iconTime.text = Math.ceil(_root[ability][6] / 25); } else { _root.charBar['slot' + v7].iconTime.text = ''; } } else { var v6 = v4; var v3 = 0; while (v3 < v4) { if (buffList[v3][1] < _root[ability][6]) { v6 = v3; break; } ++v3; } if (v6 == v4) { buffList[v4][1] = _root[ability][6]; _root.charBar['slot' + v7].iconTime.text = Math.ceil(_root[ability][6] / 25); } else { var v8 = v4 - v6; var v2 = v4; while (v2 > v4 - v8) { buffList[v2][0] = buffList[v2 - 1][0]; buffList[v2][1] = buffList[v2 - 1][1]; _root.charBar['slot' + v2].gotoAndStop(buffList[v2][0] + 'T'); if (buffList[v2][1] != 'noTime') { _root.charBar['slot' + v2].iconTime.text = Math.ceil(buffList[v2][1] / 25); } else { _root.charBar['slot' + v2].iconTime.text = ''; } --v2; } buffList[v6][0] = ability; buffList[v6][1] = _root[ability][6]; _root.charBar['slot' + v6].gotoAndStop(ability + 'T'); } } } function findBuffSlot(list, dur) { var v1 = 0; while (v1 < list.length) { if (list[v1][0] == null || list[v1][1] < dur) { return v1; } ++v1; } return -1; } function buffActive(ability) { var v1 = 0; while (v1 < activeBuffs) { if (buffList[v1][0] == ability) { return v1; } ++v1; } return -1; } function getAbilityText(slot) { var v2 = abilityList[slot]; if (v2 != undefined) { playSound('rollOver'); } var v3 = v2 + _root[v2][4]; if (v2 == 'autoAttackT') { v3 = v2; } _root.talentText._x = _root.abilities['slot' + slot]._x + 35; _root.talentText._y = _root.abilities['slot' + slot]._y - 20; _root.talentText.gotoAndStop(v3); if (_root.talentText._y + _root.talentText._height > 550) { _root.talentText._y = 550 - _root.talentText._height; } } function beginIconDrag(slot) { playSound('click'); iconOnMouse = true; mouseItemInfo = [abilityList[slot], 'ability']; _root.attachMovie('iconList', 'mouseItem', mouseIconDepth); _root.mouseItem._x = _xmouse; _root.mouseItem._y = _ymouse; _root.mouseItem._width = 30; _root.mouseItem._height = 30; _root.mouseItem.gotoAndStop(abilityList[slot]); if (slot == 0) { _root.mouseItem.aaIcon.gotoAndStop(weaponType); } removeTalentText(); } function showBuffInfo(slot) { playSound('rollOver'); var v3 = buffList[slot][0] + 'T'; _root.buffText._x = _root.charBar['slot' + slot]._x + 12; _root.buffText._y = _root.charBar['slot' + slot]._y; _root.buffText.gotoAndStop(v3); } function clearBuffInfo() { _root.buffText.gotoAndStop(1); } function showDebuffInfo(slot) { playSound('rollOver'); var v3 = _root[target].inside.debuffList[slot][0]; _root.buffText._x = _root.targetMenu['slot' + slot]._x - 12; _root.buffText._y = _root.targetMenu['slot' + slot]._y + 12; _root.buffText.gotoAndStop(v3); } function useBlinkStrike() { _root.attachMovie('blinkStrikeUse', 'blinkStrikeUse', areaSquareDepth + 1); _root.blinkStrikeUse._x = _root.hero._x; _root.blinkStrikeUse._y = _root.hero._y; _root.blinkStrikeUse._rotation = _root.hero._rotation; _root.hero._x = _root[target]._x; _root.hero._y = _root[target]._y; _root.hero._x -= 25 * getXSlope(_root[target]); _root.hero._y -= 25 * getYSlope(_root[target]); _root.hero._rotation = _root[target]._rotation; playSound('titanSwingUse'); stunEnemy(_root[target], blinkStrike[6], 'blinkStrikeT'); } function applyStealth() { if (isStealth) { removeStealth(); } else { isStealth = true; var v2 = new flash.geom.Transform(_root.hero.inside); var v3 = new flash.geom.ColorTransform(0.4, 0.4, 0.4, 1, 0, 0, 0, 0); v2.colorTransform = v3; setMoveSpeed(); } } function removeStealth() { var v2 = 0; while (v2 < activeBuffs) { buffList[v2][0] = buffList[v2 + 1][0]; buffList[v2][1] = buffList[v2 + 1][1]; _root.charBar['slot' + v2].gotoAndStop(buffList[v2][0] + 'T'); ++v2; } --activeBuffs; buffList[activeBuffs][0] = null; buffList[activeBuffs][1] = null; _root.charBar['slot' + activeBuffs].gotoAndStop(1); _root.hero._alpha = 100; isStealth = false; var v3 = new flash.geom.Transform(_root.hero.inside); v3.colorTransform = new flash.geom.ColorTransform(); clearBuffInfo(); setMoveSpeed(); } function useBlinkStep() { _root.attachMovie('blinkStrikeUse', 'blinkStrikeUse', areaSquareDepth + 1); _root.blinkStrikeUse._x = _root.hero._x; _root.blinkStrikeUse._y = _root.hero._y; _root.blinkStrikeUse._rotation = _root.hero._rotation; var v5 = getXSlope(_root.hero); var v4 = getYSlope(_root.hero); if (v5 == 1 || v5 == -1 || v4 == 1 || v4 == -1) { v5 *= 0.8; v4 *= 0.8; } var v6 = false; var v3 = 0; while (v3 < blinkStepT[7][blinkStepT[4]]) { var v2 = 0; while (v2 < 11) { if (_root.ground['stop' + v2].hitTest(hero._x + 5 * v5 * 3, hero._y + 5 * v4 * 3, true)) { v6 = true; break; } ++v2; } if (v6 == false) { hero._x += 5 * v5 * 3; hero._y += 5 * v4 * 3; } else { break; } ++v3; } } function activateAA() { autoAttackOn = true; combatStateTimer = 0; var v2 = 0; while (v2 < hotBarList.length) { if (hotBarList[v2] == 'autoAttack') { _root.hotBar['slot' + v2].autoAttackCover.gotoAndPlay(2); } ++v2; } } function deactivateAA() { autoAttackOn = false; var v2 = 0; while (v2 < hotBarList.length) { if (hotBarList[v2] == 'autoAttack') { _root.hotBar['slot' + v2].autoAttackCover.gotoAndStop(1); } ++v2; } } function performAutoAttack() { if (!isStunned && weaponType != 'noWeapon') { if (target == null) { showMessage('Requires a Target'); } else { if ((weaponType == 'Sword' || weaponType == 'Dagger') && (_root[target].inside.enemyKind != 'deathGate' && getDist(_root.hero, _root[target]) > meleeRange || _root[target].inside.enemyKind == 'deathGate' && getDist(_root.hero, _root[target]) > 100)) { showMessage('Out of Range'); } else { if ((weaponType == 'Bow' || weaponType == 'Wand') && isMoving) { showMessage('Can\'t Attack While Moving'); } else { inCombat = true; playLoop('combat'); restoreAlpha(); _root.hero._rotation = getAng(_root.hero, _root[target]); if (isStealth) { removeStealth(); } if (weaponType == 'Bow') { _root.attachMovie('projectiles', 'spell' + spellDepth, spellDepth); _root['spell' + spellDepth]._x = _root.hero._x; _root['spell' + spellDepth]._y = _root.hero._y; _root['spell' + spellDepth]._rotation = _root.hero._rotation; _root['spell' + spellDepth].inside.gotoAndStop('autoAttack'); _root['spell' + spellDepth].inside.target = target; _root['spell' + spellDepth].inside.cameFrom = 'hero'; _root['spell' + spellDepth].inside.ability = 'autoAttack'; getSpellDepth(); } else { checkForHit(null, _root[target], 'autoAttack'); } if (_root.hero.inside._currentframe == 1) { if (weaponType == 'Bow') { _root.hero.inside.gotoAndStop('autoAttackBow'); setHeroGear(); } else { _root.hero.inside.gotoAndStop('autoAttackElse'); setHeroGear(); } } } } } } } function spawnEnemy(type, xLoc, yLoc, arrayP, autoAggro) { var v2 = 'enemy' + enemyDepth; _root.attachMovie(_root[type][0], v2, enemyDepth); _root[v2]._x = xLoc; _root[v2]._y = yLoc; enemyArray[enemyArray.length] = v2; _root[v2].inside.instName = v2; _root[v2].inside.tileArray = 'tile' + currentTile; _root[v2].inside.arrayPos = arrayP; _root[v2].inside.type = type; _root[v2].inside.enemyKind = _root[type][0]; _root[v2].inside.dispName = _root[type][1]; var v6; if (_root[type][0] == 'deathGate' || _root[type][0] == 'brute') { v6 = 1; } else { v6 = random(2); } _root[v2].inside.level = _root[type][2] + v6; _root[v2].inside.maxHealth = Math.round(_root[type][3] + v6 * 5 * (_root[type][2] / 3)); _root[v2].inside.curHealth = _root[v2].inside.maxHealth; _root[v2].inside.moveSpeed = _root[type][4]; _root[v2].inside.attackRange = _root[type][5]; _root[v2].inside.head = _root[type][6]; _root[v2].inside.chest = _root[type][7]; _root[v2].inside.arms = _root[type][8]; _root[v2].inside.legs = _root[type][9]; _root[v2].inside.weapon = _root[type][10]; _root[v2].inside.atkDelay = _root[type][11]; _root[v2].inside.attacks = _root[type][12]; _root[v2].inside.debuffList = [[null, null, null], [null, null, null], [null, null, null], [null, null, null], [null, null, null]]; _root[v2].inside.atkTimer = 0; _root[v2].inside.dead = false; _root[v2].inside.aggroed = false; _root[v2].inside.aggroRange = 100; _root[v2].inside.attacking = false; _root[v2].inside.stunned = false; _root[v2].inside.stunDur = 0; _root[v2].inside.atkNum; _root[v2].inside.isPatrolling = false; _root[v2].inside.patDepth = patrolDepth; _root[v2].inside.patTimer = 0; _root[v2].inside.startX = xLoc; _root[v2].inside.startY = yLoc; _root[v2].inside.patrolPoint = 0; _root[v2].inside.fDir = null; _root[v2]._rotation = random(8) * 45; _root[v2].mouseFX.tabEnabled = false; targetTimer = 0; if (currentTile == '3_1') { _root[v2]._visible = false; _root[v2].inside.dead = true; } if (type == 'shadowStalker') { _root[v2]._visible = false; } if (autoAggro && !isStealth) { _root[v2].inside.aggroed = true; _root[v2]._visible = true; } getPatrolDepth(); setEnemyArmor(_root[v2].inside.attack, _root[v2].inside); getEnemyDepth(); checkForAggro(); if (_root[type][0] == 'deathGate') { if (type == 'deathGate5') { _root[v2]._width *= 1.2; _root[v2]._height *= 1.1; } _root[v2].inside.stunned = true; _root[v2].inside.spawnArray = _root[type][6]; _root[v2].inside.spawnInterval = []; var v5 = _root[type][5]; var v3 = 0; while (v3 < v5.length) { _root[v2].inside.spawnInterval[v3] = v5[v3]; ++v3; } _root[v2]._rotation = 0; } } function attachEnemyProj(source) { _root.attachMovie('projectiles', 'spell' + spellDepth, spellDepth); _root['spell' + spellDepth]._x = source._x; _root['spell' + spellDepth]._y = source._y; _root['spell' + spellDepth]._rotation = source._rotation; _root['spell' + spellDepth].inside.gotoAndStop(source.inside.weapon); _root['spell' + spellDepth].inside.cameFrom = source; attackFinished(source); getSpellDepth(); } function checkHitHero(weapon, source) { if (weapon.hitTest(_root.hero) || weapon == 'noHit') { var v3 = source.inside.attacks[source.inside.atkNum][1] + random(2); var v6 = source.inside.attacks[source.inside.atkNum][2]; if (mongooseT[4] > 0) { if (random(100) < mongooseT[7][mongooseT[4]]) { addHeroBuff('mongoose'); setMoveSpeed(); } } if (weapon.inside.cameFrom != undefined) { weapon.removeMovieClip(); } var v5 = false; setDodge(); if (random(100) < dodge) { v5 = true; } var v7 = v3 * (mit / 100); v3 -= int(v7); v3 = Math.round(v3); if (v3 <= 0) { v3 = 0; } if (v5 == false) { _root.attachMovie(v6, 'hit' + spellDepth, spellDepth); _root['hit' + spellDepth]._x = _root.hero._x; _root['hit' + spellDepth]._y = _root.hero._y; getSpellDepth(); _root.attachMovie('redSCT', 'sct' + sctDepth, sctDepth); _root['sct' + sctDepth].inside.sctText.text = v3; _root['sct' + sctDepth]._x = _root.hero._x; _root['sct' + sctDepth]._y = _root.hero._y; getSCTDepth(); changeHealth(v3 * -1); if (source.inside.attacks[source.inside.atkNum][3]) { stunHero(); } if (source.inside.attacks[source.inside.atkNum][4]) { snareHero(); } } else { _root.attachMovie('redSCT', 'sct' + sctDepth, sctDepth); _root['sct' + sctDepth].inside.sctText.text = 'Dodged'; _root['sct' + sctDepth]._x = _root.hero._x; _root['sct' + sctDepth]._y = _root.hero._y; getSCTDepth(); } if (target == null) { makeTarget(source.inside); } if (weapon == 'noHit') { attackFinished(source); } } } function checkForAggro() { if (isStealth == false && currentTile != '0_5') { var v5 = 0; while (v5 < enemyArray.length) { var v4 = enemyArray[v5]; if (_root[v4].inside.aggroed == false && _root[v4].inside.dead == false) { if (getDist(_root.hero, _root[v4]) < _root[v4].inside.aggroRange) { var v3 = 0; while (v3 < enemyArray.length) { var v2 = enemyArray[v3]; if (getDist(_root[v4], _root[v2]) < _root[v2].inside.aggroRange) { _root[v2].inside.aggroed = true; _root[v2]._visible = true; inCombat = true; restoreAlpha(); } ++v3; } break; } } ++v5; } } } function makeTarget(enemy) { if (_root.tutorialWindow._currentframe == 1) { if (enemyArray.length > 0) { showTutorial(7); } if (enemy.dead == false) { target = enemy.instName; _root.targetCircle._x = _root[target]._x; _root.targetCircle._y = _root[target]._y; _root.targetMenu.healthTxt.text = int(enemy.curHealth); _root.targetMenu.hpBar._xscale = (enemy.curHealth / enemy.maxHealth) * 100; _root.targetMenu.name.text = enemy.dispName; _root.targetMenu.lvl.text = enemy.level; setTargetBuffs(enemy); } } } function setEnemyArmor(enemy, source) { if (source.enemyKind == 'skeleton') { enemy.body.gotoAndStop(source.head); enemy.rightArm.gotoAndStop(source.head); enemy.rightArm2.gotoAndStop(source.head); enemy.rightHand.gotoAndStop(source.head); enemy.leftArm.gotoAndStop(source.head); enemy.leftHand.gotoAndStop(source.head); enemy.weapon.gotoAndStop(source.head); enemy.leftFoot.gotoAndStop(source.head); enemy.rightFoot.gotoAndStop(source.head); } else { if (source.enemyKind == 'brute') { enemy.chest.gotoAndStop(source.head); enemy.rightArm.gotoAndStop(source.head); enemy.rightHand.gotoAndStop(source.head); enemy.rightHand.weapon.gotoAndStop(source.head); enemy.leftArm.gotoAndStop(source.head); enemy.leftHand.gotoAndStop(source.head); enemy.leftLeg.gotoAndStop(source.head); enemy.leftFoot.gotoAndStop(source.head); enemy.rightLeg.gotoAndStop(source.head); enemy.rightFoot.gotoAndStop(source.head); enemy.head.gotoAndStop(source.head); } else { if (source.enemyKind == 'void') { enemy.chest.gotoAndStop(source.head); enemy.rightArm.gotoAndStop(source.head); enemy.rightHand.gotoAndStop(source.head); enemy.leftArm.gotoAndStop(source.head); enemy.leftHand.gotoAndStop(source.head); enemy.tail.gotoAndStop(source.head); enemy.head.gotoAndStop(source.head); } else { enemy.head.gotoAndStop(source.head); enemy.chest.gotoAndStop(source.chest); enemy.rightArm.gotoAndStop(source.arms); enemy.leftArm.gotoAndStop(source.arms); enemy.leftLeg.gotoAndStop(source.legs); enemy.rightLeg.gotoAndStop(source.legs); enemy.weapon.gotoAndStop(source.weapon); } } } } function moveEnemy() { var v5 = 0; while (v5 < enemyArray.length) { var v2 = enemyArray[v5]; if (_root[v2].inside.stunned) { --_root[v2].inside.stunDur; if (_root[v2].inside.stunDur <= 0 && _root[v2].inside.enemyKind != 'deathGate') { _root[v2].inside.stunned = false; } } if (_root[v2].inside.enemyKind == 'deathGate') { var v4 = Math.round((_root[v2].inside.curHealth / _root[v2].inside.maxHealth) * 100); if (v4 <= 25 && _root[v2].inside.spawnInterval[2] == false) { playSound('deathGateSpawn'); _root[v2].inside.spawnInterval[2] = true; var v9 = random(_root[v2].inside.spawnArray.length); var v3 = _root[v2].inside.spawnArray[v9]; spawnEnemy(v3, _root[v2]._x - 25, _root[v2]._y + 60, null, true); spawnEnemy(v3, _root[v2]._x, _root[v2]._y + 60, null, true); spawnEnemy(v3, _root[v2]._x + 25, _root[v2]._y + 60, null, true); if (_root[v2].inside.type == 'deathGate5') { spawnEnemy(v3, _root[v2]._x - 12, _root[v2]._y + 60, null, true); spawnEnemy(v3, _root[v2]._x + 12, _root[v2]._y + 60, null, true); } } else { if (v4 <= 50 && _root[v2].inside.spawnInterval[1] == false) { playSound('deathGateSpawn'); _root[v2].inside.spawnInterval[1] = true; var v9 = random(_root[v2].inside.spawnArray.length); var v3 = _root[v2].inside.spawnArray[v9]; spawnEnemy(v3, _root[v2]._x - 20, _root[v2]._y + 60, null, true); spawnEnemy(v3, _root[v2]._x + 20, _root[v2]._y + 60, null, true); if (_root[v2].inside.type == 'deathGate5') { spawnEnemy(v3, _root[v2]._x - 10, _root[v2]._y + 60, null, true); spawnEnemy(v3, _root[v2]._x + 10, _root[v2]._y + 60, null, true); } } else { if (v4 <= 75 && _root[v2].inside.spawnInterval[0] == false) { playSound('deathGateSpawn'); _root[v2].inside.spawnInterval[0] = true; var v9 = random(_root[v2].inside.spawnArray.length); var v3 = _root[v2].inside.spawnArray[v9]; spawnEnemy(v3, _root[v2]._x - 20, _root[v2]._y + 60, null, true); spawnEnemy(v3, _root[v2]._x + 20, _root[v2]._y + 60, null, true); if (_root[v2].inside.type == 'deathGate5') { spawnEnemy(v3, _root[v2]._x - 10, _root[v2]._y + 60, null, true); spawnEnemy(v3, _root[v2]._x + 10, _root[v2]._y + 60, null, true); } } } } } if (_root[v2].inside.aggroed && _root[v2].inside.dead == false && _root[v2].inside.stunned == false) { if (_root[v2].inside.atkTimer > 0) { ++_root[v2].inside.atkTimer; _root[v2]._rotation = getAng(_root[v2], _root.hero); if (_root[v2].inside.atkTimer >= _root[v2].inside.atkDelay) { _root[v2].inside.atkTimer = 0; } } if (getDist(_root.hero, _root[v2]) > _root[v2].inside.attackRange && _root[v2].inside.attacking == false) { moveTowards(_root[v2], _root.hero); _root[v2].inside.attacking = false; _root[v2].inside.gotoAndStop('run'); setEnemyArmor(_root[v2].inside.attack, _root[v2].inside); if (target == v2) { _root.targetCircle._x = _root[v2]._x; _root.targetCircle._y = _root[v2]._y; } } else { if (_root[v2].inside.attacking == false && _root[v2].inside.atkTimer == 0) { _root[v2].inside.attacking = true; _root[v2].inside.atkTimer = 1; var v6 = random(_root[v2].inside.attacks.length); _root[v2].inside.atkNum = v6; var v8 = _root[v2].inside.attacks[v6][0]; _root[v2]._rotation = getAng(_root[v2], _root.hero); _root[v2].inside.gotoAndStop(v8); setEnemyArmor(_root[v2].inside.attack, _root[v2].inside); } else { if (_root[v2].inside.attacking == false) { _root[v2].inside.gotoAndStop('stand'); setEnemyArmor(_root[v2].inside.attack, _root[v2].inside); } } } } else { if (_root[v2].inside.dead == false && _root[v2].inside.stunned == false) { if (_root[v2].inside.isPatrolling == false && _root[v2].inside.patTimer <= 0) { ++_root[v2].inside.patrolPoint; _root[v2].inside.isPatrolling = true; getPatrolPoints(v2); } if (_root[v2].inside.isPatrolling == false) { --_root[v2].inside.patTimer; } if (_root[v2].inside.isPatrolling) { _root[v2].inside.gotoAndStop('run'); setEnemyArmor(_root[v2].inside.attack, _root[v2].inside); moveTowards(_root[v2], _root[_root[v2].inside.patrolMC]); if (_root[v2].inside.instName == target) { _root.targetCircle._x = _root[v2]._x; _root.targetCircle._y = _root[v2]._y; } var v7 = _root[v2].inside.patrolMC; if (_root[v2].hitTest(_root[v7])) { _root[v2].inside.gotoAndStop('stand'); setEnemyArmor(_root[v2].inside.attack, _root[v2].inside); _root[v2].inside.patTimer = random(50) + 50; _root[v2].inside.isPatrolling = false; } } } } ++v5; } } function getPatrolPoints(tempEnemy) { if (_root[tempEnemy].inside.patrolPoint == 4) { var v7 = _root[tempEnemy].inside.startX; var v6 = _root[tempEnemy].inside.startY; } else { var v7 = _root[tempEnemy].inside.startX - 75 + random(150); var v6 = _root[tempEnemy].inside.startY - 75 + random(150); } var v3 = 'pat' + _root[tempEnemy].inside.patDepth; _root.attachMovie('areaSquare', v3, _root[tempEnemy].inside.patDepth); _root[v3]._x = v7; _root[v3]._y = v6; _root[v3]._width = 10; _root[v3]._height = 10; var v5 = true; var v2 = 0; while (v2 < 11) { if (_root.patPoint.hitTest(_root.ground['stop' + v2])) { v5 = false; break; } ++v2; } if (_root.patPoint.hitTest(_root.hero) || _root[v3]._x > 640 || _root[v3]._x < 10 || _root[v3]._y < 10 || _root[v3]._y > 490) { v5 = false; } if (!v5) { getPatrolPoints(tempEnemy); } else { if (_root[tempEnemy].inside.patrolPoint == 3) { _root[tempEnemy].inside.patrolPoint = 0; } _root[tempEnemy].inside.patrolMC = v3; } } function clearTarget() { target = null; savedTarget = null; _root.targetMenu.hpBar._xscale = 0; _root.targetMenu.healthTxt.text = ''; _root.targetMenu.name.text = ''; _root.targetMenu.lvl.text = ''; _root.targetMenu.slot0.gotoAndStop(1); _root.targetMenu.slot1.gotoAndStop(1); _root.targetMenu.slot2.gotoAndStop(1); _root.targetMenu.slot3.gotoAndStop(1); _root.targetMenu.slot4.gotoAndStop(1); } function deadEnemy(enemy) { var v2 = enemy.inside.patDepth; (_root.getInstanceAtDepth(v2)).removeMovieClip(); enemy.removeMovieClip(); } function addEnemyDebuff(enemy, debuff, dur, damagePerTick) { var v2 = findEmptyDebuffSlot(enemy); var v1 = 0; while (v1 < v2) { if (enemy.inside.debuffList[v1][0] == debuff) { v2 = v1; break; } ++v1; } enemy.inside.debuffList[v2][0] = debuff; enemy.inside.debuffList[v2][1] = dur; enemy.inside.debuffList[v2][2] = damagePerTick; if (enemy.inside.instName == target) { setTargetBuffs(enemy); } } function findEmptyDebuffSlot(enemy) { var v1 = 0; while (v1 < 5) { if (enemy.inside.debuffList[v1][0] == null) { return v1; } ++v1; } return null; } function stunEnemy(enemy, dur, attack) { enemy.inside.stunned = true; enemy.inside.stunDur = dur; enemy.inside.attacking = false; enemy.inside.atkTimer = 0; enemy.inside.gotoAndStop('stunned'); setEnemyArmor(enemy.inside.attack, enemy.inside); addEnemyDebuff(enemy, attack, dur, 0); } function setTargetBuffs(enemy) { var v2 = 0; while (v2 < 5) { if (enemy.inside.debuffList[v2][0] == null) { _root.targetMenu['slot' + v2].gotoAndStop(1); } else { _root.targetMenu['slot' + v2].gotoAndStop(enemy.inside.debuffList[v2][0]); _root.targetMenu['slot' + v2].iconTime.text = Math.ceil(enemy.inside.debuffList[v2][1] / 25); } ++v2; } } function debuffActive(enemy, ability) { var v2 = findEmptyDebuffSlot(enemy); var v1 = 0; while (v1 < v2) { if (enemy.inside.debuffList[v1][0] == ability) { return v1; } ++v1; } return -1; } function findEnemyPos(instName) { var v1 = 0; while (v1 < enemyArray.length) { var v2 = enemyArray[v1]; if (instName == v2) { return v1; } ++v1; } return -1; } function killEnemy(ene) { ++enemiesKilled; targetTimer = 0; findLoot(ene); changeExp(ene.inside.level); var v9 = 'tile' + currentTile; var v8 = ene.inside.arrayPos; if (v8 != null) { _root[v9][v8][5] = true; addEnemyToRespawn(_root[v9][v8][4], ene.inside.tileArray, v8); } if (ene.inside.instName == savedTarget) { _root.castBar._visible = false; isCasting = false; _root.hero.castEffects.gotoAndStop(1); } var v11 = findEnemyPos(ene.inside.instName); enemyArray.splice(v11, 1); ene.inside.dead = true; ene.inside.gotoAndStop('die'); setEnemyArmor(ene.inside.attack, ene.inside); if (killingSpreeT[4] > 0) { addHeroBuff('killingSpree'); } if (soulLinkT[4] > 0) { addHeroBuff('soulLink'); } setHealthRegen(); if (ene.inside.instName == target) { clearTarget(); checkCombatState(); _root.targetCircle._x = -100; _root.targetCircle._y = -100; } if (mainStoryline[0] == false && (currentTile == '1_1' || currentTile == '1_2')) { var v10 = getEnemiesDead('tile1_1') + getEnemiesDead('tile1_2'); showMessage('Enemies Remaining: ' + (7 - v10)); if (tileClear('tile1_1') && tileClear('tile1_2')) { playLoop('city1'); mainStoryline[0] = true; _root.ground.fires._visible = false; _root.ground.npc1.npcType.gotoAndStop(_root.ground.npc1.type); _root.ground.npc2.npcType.gotoAndStop(_root.ground.npc2.type); _root.ground.npc3.npcType.gotoAndStop(_root.ground.npc3.type); tile0_1[0][5] = false; tile1_3[0][5] = false; tile2_0[0][5] = false; showTutorial(11); } } if (mainStoryline[1] == false && ene.inside.enemyKind == 'deathGate' && (currentTile == '0_1' || currentTile == '1_3' || currentTile == '2_0')) { var v7 = 0; if (tile0_1[0][5]) { ++v7; } if (tile1_3[0][5]) { ++v7; } if (tile2_0[0][5]) { ++v7; } if (v7 > 0) { showMessage('Death Gates Destroyed: ' + v7 + '/3'); } if (v7 == 3) { mainStoryline[1] = true; } } if (mainStoryline[2] == false && ene.inside.type == 'boss1') { mainStoryline[2] = true; } if (mainStoryline[4] == false && (currentTile == '5_1' || currentTile == '5_2' || currentTile == '5_3')) { v10 = getEnemiesDead('tile5_1') + getEnemiesDead('tile5_2') + getEnemiesDead('tile5_3'); showMessage('Monsters Remaining: ' + (13 - v10)); if (tileClear('tile5_1') && tileClear('tile5_2') && tileClear('tile5_3')) { mainStoryline[4] = true; } } if (mainStoryline[5] == false && ene.inside.enemyKind == 'deathGate' && (currentTile == '4_1' || currentTile == '4_3')) { v7 = 0; if (tile4_1[0][5]) { ++v7; } if (tile4_3[0][5]) { ++v7; } showMessage('Death Gates Destroyed: ' + v7 + '/2'); if (v7 == 2) { mainStoryline[5] = true; } } if (mainStoryline[7] == false && (currentTile == '7_0' || currentTile == '7_4')) { if (ene.inside.type == 'gateSorceror') { if (tile7_0[0][5] && tile7_4[0][5]) { showMessage('Gate Sorcerors Killed 2/2'); mainStoryline[7] = true; } else { showMessage('Gate Sorcerors Killed 1/2'); } } } if (mainStoryline[9] == false && ene.inside.type == 'boss2') { mainStoryline[9] = true; tile5_4[0][5] = false; tile5_4[1][5] = false; tile5_4[2][5] = false; tile5_4[3][5] = false; } if (mainStoryline[12] == false && ene.inside.type == 'mindController') { mainStoryline[12] = true; showMessage('Destroyed Mind Controller: 1/1'); } if (mainStoryline[13] == false && ene.inside.enemyKind == 'deathGate' && (currentTile == '7_6' || currentTile == '6_9')) { v7 = 0; if (tile7_6[0][5]) { ++v7; } if (tile6_9[0][5]) { ++v7; } showMessage('Death Gates Destroyed: ' + v7 + '/2'); if (v7 == 2) { mainStoryline[13] = true; } } if (mainStoryline[14] == false && ene.inside.type == 'gateSorceror2' && (currentTile == '7_5' || currentTile == '7_8')) { v7 = 0; if (tile7_5[0][5]) { ++v7; } if (tile7_8[0][5]) { ++v7; } showMessage('Gate Sorcerors Killed: ' + v7 + '/2'); if (v7 == 2) { mainStoryline[14] = true; } } if (mainStoryline[15] == false && ene.inside.type == 'boss3') { mainStoryline[15] = true; } if (mainStoryline[18] == false && ene.inside.enemyKind == 'deathGate' && (currentTile == '1_6' || currentTile == '1_7' || currentTile == '1_8')) { v7 = 0; if (tile1_6[0][5]) { ++v7; } if (tile1_7[0][5]) { ++v7; } if (tile1_8[0][5]) { ++v7; } showMessage('Death Gates Destroyed: ' + v7 + '/3'); if (v7 == 3) { mainStoryline[18] = true; } } if (mainStoryline[19] == false && currentTile == '2_7') { v10 = getEnemiesDead('tile2_7'); showMessage('Enemies Remaining: ' + (8 - v10)); if (v10 == 8) { mainStoryline[19] = true; } } if (mainStoryline[23] == false && (currentTile == '3_3' || currentTile == '3_4' || currentTile == '4_3') && ene.inside.type == 'risenSoldier') { v10 = getEnemiesDead('tile4_3') + getEnemiesDead('tile3_3') + getEnemiesDead('tile3_4') - 2; showMessage('Enemies Remaining: ' + (15 - v10)); if (v10 == 15) { mainStoryline[23] = true; } } if (mainStoryline[25] == false && currentTile == '5_2' && ene.inside.type == 'shadowStalker') { if (enemyArray.length == 0) { mainStoryline[25] = true; _root.dropGear(ene._x, ene._y, 'shadowslayersCover', 3); _root.ground.fires._visible = false; _root.ground.stop6._y = 1000; _root.ground.stop7._y = 1000; _root.ground.stop8._y = 1000; _root.ground.stop9._y = 1000; } } if (mainStoryline[29] == false && currentTile == '6_6' && ene.inside.type == 'boss4') { mainStoryline[29] = true; } if (ene.inside.type == 'deathGate5') { playSound('bruteSpawn'); spawnEnemy('boss5', 525, 110, null, true); } if (ene.inside.type == 'boss5') { mainStoryline[31] = true; var v2 = 0; while (v2 < itemsOnGround.length) { var v5 = itemsOnGround[v2]; v5.removeMovieClip(); ++v2; } v2 = 0; while (v2 < enemyArray.length) { var v4 = enemyArray[v2]; var v6 = _root[v4].inside.patDepth; (_root.getInstanceAtDepth(v6)).removeMovieClip(); _root[v4].removeMovieClip(); ++v2; } hero.removeMovieClip(); displayMessage.removeMovieClip(); tutorialWindow.removeMovieClip(); chatWindow.removeMovieClip(); buffText.removeMovieClip(); talentText.removeMovieClip(); talentWindow.removeMovieClip(); charMenu.removeMovieClip(); options.removeMovieClip(); mapWindow.removeMovieClip(); abilities.removeMovieClip(); castBar.removeMovieClip(); charBar.removeMovieClip(); targetMenu.removeMovieClip(); hotBar.removeMovieClip(); stopAllSounds(); _root.attachMovie('fadeToBlack', 'fadeToBlack', _root.getNextHighestDepth()); _root.fadeToBlack.goal = 'victory'; } } function findLoot(enemy) { if (enemy.inside.enemyKind != 'deathGate') { var v3 = null; if (_root[enemy.inside.type][13] != null) { v3 = _root[enemy.inside.type][13]; } else { var v8 = random(1000); var v5 = Math.ceil(enemy.inside.level / 3); var v7; if (v8 < 8) { v7 = 3; v3 = 'table' + v5 + 'e'; } else { if (v8 < 20) { v7 = 2; v3 = 'table' + v5 + 'r'; } else { if (v8 < 150) { v7 = 1; v3 = 'table' + v5 + 'c'; } } } } if (v3 != null) { var v10 = random(_root[v3].length); var v9 = _root[v3][v10]; if (_root[v9][3] == 'comm') { v7 = 1; } else { if (_root[v9][3] == 'rare') { v7 = 2; } else { v7 = 3; } } dropGear(enemy._x, enemy._y, v9, v7); } if (random(100) < 10) { if (random(2) == 0) { var v11 = 'ePotion'; } else { var v11 = 'hPotion'; } var v4 = 'item' + itemDepth; var v6 = enemy._x; if (v6 > 570) { v6 = 570; } _root.attachMovie(v11, v4, itemDepth); _root[v4]._x = v6; _root[v4]._y = enemy._y; itemsOnGround[itemsOnGround.length] = _root[v4]; getItemDepth(); } v4 = 'item' + itemDepth; _root.attachMovie('gold', v4, itemDepth); v6 = enemy._x; if (v6 > 595) { v6 = 595; } _root[v4]._x = v6; _root[v4]._y = enemy._y; _root[v4].amount = enemy.inside.level + random(2); itemsOnGround[itemsOnGround.length] = _root[v4]; getItemDepth(); } } function resizeToGround(item) { var v2 = 0; while (v2 < 1000) { if (item._width > 15 || item._height > 15) { item._width *= 0.95; item._height *= 0.95; } else { break; } ++v2; } } function dropGear(xPos, yPos, item, frame) { var v2 = 'item' + itemDepth; _root.attachMovie('groundPieces', v2, itemDepth); _root[v2].allItems.gotoAndStop(item); _root[v2].textMC.gotoAndStop(frame); _root[v2].textMC.itemText.text = _root[item][12]; if (xPos < 15) { xPos = 15; } else { if (xPos > 605) { xPos = 605; } } _root[v2]._x = xPos; _root[v2]._y = yPos; _root[v2].gearName = item; itemsOnGround[itemsOnGround.length] = _root[v2]; getItemDepth(); } function applyMouseOver(ene) { var v1 = new flash.geom.Transform(ene); var v2 = new flash.geom.ColorTransform(1, 1, 1, 1, 50, 50, 50, 0); v1.colorTransform = v2; } function removeMouseOver(ene) { var v1 = new flash.geom.Transform(ene); v1.colorTransform = new flash.geom.ColorTransform(); } function stunHero() { if (!isStunned) { _root.hero.inside.gotoAndStop('stunned'); isCasting = false; isMoving = false; isAttacking = false; _root.castBar._visible = false; _root.hero.castEffects.gotoAndStop(1); setHeroGear(); isStunned = true; stunTimer = 0; _root.charBar.debuff0.gotoAndStop('stun'); _root.charBar.debuff0.iconTime.text = 1; } } function snareHero() { isSnared = true; _root.charBar.debuff0.gotoAndStop('snare'); _root.charBar.debuff0.iconTime.text = 5; snareTimer = 0; setMoveSpeed(); } function spaceTarget() { if (targetTimer <= 0) { sortEnemies(); targetPos = 0; } targetTimer = 75; if (target == _root[sortedEnemies[targetPos]].inside.instName) { ++targetPos; if (targetPos >= sortedEnemies.length) { targetPos = 0; } } playSound('click'); makeTarget(_root[sortedEnemies[targetPos]].inside); } function sortEnemies() { sortedEnemies = []; var v7 = 0; while (v7 < enemyArray.length) { var v8 = enemyArray[v7]; if (_root[v8].inside.dead == false) { sortedEnemies[sortedEnemies.length] = enemyArray[v7]; } ++v7; } var v4; var v9; var v3 = 0; while (v3 < sortedEnemies.length) { v4 = v3; var v2 = v3; while (v2 < sortedEnemies.length - 1) { var v5 = getDist(_root.hero, _root[sortedEnemies[v2 + 1]]); var v6 = getDist(_root.hero, _root[sortedEnemies[v4]]); if (v5 < v6) { v4 = v2 + 1; } ++v2; } v9 = sortedEnemies[v3]; sortedEnemies[v3] = sortedEnemies[v4]; sortedEnemies[v4] = v9; ++v3; } } function lowerAlpha() { if (allowLower) { _root.charBar._alpha = 60; _root.targetMenu._alpha = 60; } } function restoreAlpha() { _root.charBar._alpha = 80; _root.targetMenu._alpha = 80; } function getAADamage() { var v1; var v3 = weaponDelay / 25; if (weaponType == 'Sword' || weaponType == 'Dagger') { v1 = str * 0.2; var v2 = (level * 0.5 + baseDamage + v1) * v3; var v4 = weaponDamage * 1.1 + v2; return Math.round(v4); } if (weaponType == 'Wand') { v1 = foc * 0.2; var v2 = (level * 0.5 + baseDamage + v1) * v3; var v4 = weaponDamage * 1.1 + v2; return Math.round(v4); } v1 = agi * 0.2; var v2 = (level * 0.5 + baseDamage + v1) * v3; var v4 = weaponDamage * 1.1 + v2; return Math.round(v4); } function moveHero() { if (isStunned) { ++stunTimer; if (stunTimer >= 25) { isStunned = false; _root.hero.gotoAndStop('stand'); _root.charBar.debuff0.gotoAndStop(1); _root.charBar.debuff0.iconTime.text = ''; setHeroGear(); } } if (isSnared) { ++snareTimer; _root.charBar.debuff0.iconTime.text = Math.ceil((125 - snareTimer) / 25); if (snareTimer >= 125) { isSnared = false; setMoveSpeed(); _root.charBar.debuff0.gotoAndStop(1); _root.charBar.debuff0.iconTime.text = ''; } } if (isStunned == false && isRooted == false && isAttacking == false && isDead == false) { if (Key.isDown(39) || Key.isDown(68)) { isMoving = true; if (Key.isDown(38) || Key.isDown(87)) { _root.hero._rotation = 135; } else { if (Key.isDown(40) || Key.isDown(83)) { _root.hero._rotation = -135; } else { _root.hero._rotation = 180; } } } else { if (Key.isDown(37) || Key.isDown(65)) { isMoving = true; if (Key.isDown(38) || Key.isDown(87)) { _root.hero._rotation = 45; } else { if (Key.isDown(40) || Key.isDown(83)) { _root.hero._rotation = -45; } else { _root.hero._rotation = 0; } } } else { if (Key.isDown(38) || Key.isDown(87)) { isMoving = true; _root.hero._rotation = 90; } else { if (Key.isDown(40) || Key.isDown(83)) { isMoving = true; _root.hero._rotation = -90; } else { if (isCasting == false && isAttacking == false && _root.hero.inside._currentframe != 21 && _root.hero.inside._currentframe != 29) { isMoving = false; _root.hero.inside.gotoAndStop('stand'); setHeroGear(); } } } } } if (isMoving) { if (isCasting) { isCasting = false; _root.castBar._visible = false; } _root.hero.castEffects.gotoAndStop(1); _root.hero.inside.gotoAndStop('run'); setHeroGear(); var v4 = getXSlope(_root.hero); var v3 = getYSlope(_root.hero); if (v4 == 1 || v4 == -1 || v3 == 1 || v3 == -1) { v4 *= 0.8; v3 *= 0.8; } var v5 = false; var v2 = 0; while (v2 < 11) { if (_root.ground['stop' + v2].hitTest(hero._x + moveSpeed * v4 * 2, hero._y + moveSpeed * v3 * 2, true)) { v5 = true; break; } ++v2; } v2 = 1; while (v2 < 4) { if (_root.ground['npc' + v2].hitTest(hero._x + moveSpeed * v4 * 2, hero._y + moveSpeed * v3 * 2, true)) { v5 = true; break; } ++v2; } if (!v5) { _root.hero._x += moveSpeed * v4; _root.hero._y += moveSpeed * v3; } if (inTransition == false) { if (_root.hero._x > 640) { mapTransition(row, col + 1); } else { if (_root.hero._x < 10) { mapTransition(row, col - 1); } else { if (_root.hero._y < 10) { mapTransition(row - 1, col); } else { if (_root.hero._y > 490) { mapTransition(row + 1, col); } } } } } } else { if (isCasting) { ++curCast; var v6 = getAng(_root.hero, _root[savedTarget]); _root.hero._rotation = v6; _root.castBar.castMeter._xscale = (curCast / endCast) * 100; _root.castBar.diamond._x = 145 * (curCast / endCast); if (curCast >= endCast) { executeAbility(savedAbility); } } } } } function moveTowards(char, tar) { if (char.inside.aggroed == false) { var v5 = char.inside.moveSpeed / 2; } else { var v5 = char.inside.moveSpeed; } var v4 = false; char._rotation = getAng(char, tar); var v9 = getXSlope(char); var v8 = getYSlope(char); if (char.inside.fDir == null) { v9 = getXSlope(char); v8 = getYSlope(char); var v3 = 0; while (v3 < 11) { if (_root.ground['stop' + v3].hitTest(char)) { v4 = true; char.inside.hitObj = 'stop' + v3; break; } ++v3; } if (!v4) { char._x += v9 * v5; char._y += v8 * v5; } else { var v6 = findSide(char, _root.ground[char.inside.hitObj]); if (v6 == 'down' || v6 == 'up') { if (char._x < tar._x) { char.inside.fDir = 'right'; } else { char.inside.fDir = 'left'; } } else { if (v6 == 'left' || v6 == 'right') { if (char._y < tar._y) { char.inside.fDir = 'down'; } else { char.inside.fDir = 'up'; } } } } } else { if (char.inside.fDir == 'up') { char._y -= v5 * 0.8; if (!_root.ground[char.inside.hitObj].hitTest(char)) { char.inside.fDir = null; } } else { if (char.inside.fDir == 'down') { char._y += v5 * 0.8; if (!_root.ground[char.inside.hitObj].hitTest(char)) { char.inside.fDir = null; } } else { if (char.inside.fDir == 'right') { char._x += v5 * 0.8; if (!_root.ground[char.inside.hitObj].hitTest(char)) { char.inside.fDir = null; } } else { if (char.inside.fDir == 'left') { char._x -= v5 * 0.8; if (!_root.ground[char.inside.hitObj].hitTest(char)) { char.inside.fDir = null; } } } } } } } function findSide(char, obj) { if (char._x < obj._x) { if (char._y < obj._y) { var v3 = obj._x - obj._width / 2 - char._x; var v4 = obj._y - obj._height / 2 - char._y; if (v3 > v4) { return 'left'; } else { return 'up'; } } else { var v3 = obj._x - obj._width / 2 - char._x; var v4 = char._y - (obj._y + obj._height / 2); if (v3 > v4) { return 'left'; } else { return 'down'; } } } else { if (char._y < obj._y) { var v3 = char._x - (obj._x + obj._width / 2); var v4 = obj._y - obj._height / 2 - char._y; if (v3 > v4) { return 'right'; } else { return 'up'; } } else { var v3 = char._x - (obj._x + obj._width / 2); var v4 = char._y - (obj._y + obj._height / 2); if (v3 > v4) { return 'right'; } else { return 'down'; } } } } function getXSlope(char) { if (char._rotation >= 0 && char._rotation <= 90) { var v2 = char._rotation / 90; return (1 - v2) * -1; } else { if (char._rotation > 90 && char._rotation < 180) { return (char._rotation - 90) / 90; } else { if (char._rotation < -90) { return (char._rotation + 90) / -90; } else { if (char._rotation < 0) { var v2 = char._rotation / -90; return (1 - v2) * -1; } else { return char._rotation / 180; } } } } } function getYSlope(char) { if (char._rotation >= 0 && char._rotation <= 90) { return (char._rotation / 90) * -1; } else { if (char._rotation > 90 && char._rotation < 180) { var v2 = (char._rotation - 90) / 90; return (1 - v2) * -1; } else { if (char._rotation < -90) { var v2 = (char._rotation + 90) / -90; return 1 - v2; } else { if (char._rotation < 0) { return char._rotation / -90; } else { var v2 = char._rotation / 180; return 1 - v2; } } } } } function getAng(char, tar) { var v2 = char._x; var v1 = char._y; var v7 = tar._x; var v5 = tar._y; var v4 = v7 - v2; var v3 = v5 - v1; var v6 = Math.atan2(v3, v4); ang = int(v6 * 57.29577951308232); return ang + 180; } function addItemToInventory(itemSrc, item) { var v3 = findInvSlot(); if (v3 != -1) { playSound('equip'); var v4 = charMenu.getNextHighestDepth(); var v2 = 'item' + v4; _root.charMenu.attachMovie('invPieces', v2, v4); _root.charMenu[v2].allItems.gotoAndStop(item); resizeToInv(_root.charMenu[v2].allItems); _root.charMenu[v2].mouseHit.useHandCursor = false; _root.charMenu[v2].mouseHit.tabEnabled = false; _root.charMenu[v2].gearName = item; _root.charMenu[v2]._x = _root.charMenu['slot' + v3]._x; _root.charMenu[v2]._y = _root.charMenu['slot' + v3]._y; inventory[v3] = item; inventoryInst[v3] = v2; if (item != null) { removeItemFromGround(itemSrc); itemSrc.removeMovieClip(); } } else { showMessage('Inventory Full'); } } function equipItem(item) { var v4 = _root[item][1]; _root.charMenu.portrait[v4].gotoAndStop(item); str += _root[item][5]; foc += _root[item][6]; agi += _root[item][7]; baseDodge += _root[item][11]; if (_root[item][1] == 'Weapon') { weaponType = _root[item][2]; weaponDamage = _root[item][4]; weaponDelay = _root[item][13]; var v2 = 0; while (v2 < hotBarList.length) { if (hotBarList[v2] == 'autoAttack') { _root.hotBar['slot' + v2].aaIcon.gotoAndStop(weaponType); } ++v2; } _root.abilities.slot0.aaIcon.gotoAndStop(weaponType); } autoAttackTimer = 0; setCharacterText(); } function unequipItem(item) { var v4 = _root[item][1]; _root.charMenu.portrait[v4].gotoAndStop(1); str -= _root[item][5]; foc -= _root[item][6]; agi -= _root[item][7]; baseDodge -= _root[item][11]; if (_root[item][1] == 'Weapon') { weaponType = 'noWeapon'; weaponDamage = 0; weaponDelay = 1000; var v2 = 0; while (v2 < hotBarList.length) { if (hotBarList[v2] == 'autoAttack') { _root.hotBar['slot' + v2].aaIcon.gotoAndStop(weaponType); } ++v2; } _root.abilities.slot0.aaIcon.gotoAndStop(weaponType); } setCharacterText(); } function resizeToInv(item) { var v2 = 0; while (v2 < 1000) { if (item._width > 33 || item._height > 33) { item._width *= 0.95; item._height *= 0.95; } else { break; } ++v2; } } function findInvSlot() { var v1 = 0; while (v1 < inventory.length) { if (inventory[v1] == null) { return v1; } ++v1; } return -1; } function createItemText(place, item) { if (!itemOnMouse && !iconOnMouse) { playSound('rollOver'); _root.createEmptyMovieClip('textWindow', textWindowDepth); _root.textWindow._x = place._x + 10; _root.textWindow._y = place._y; if (place._x == _root.charMenu.equip1._x && place._y == _root.charMenu.equip1._y) { _root.textWindow._y = place._y - 10; } var v4 = ''; var v7 = ''; var v6 = ''; if (_root[item][1] == 'Weapon') { v7 = 'Type: \n'; v7 += 'Damage: Delay:\n'; v6 += ' ' + _root[item][2] + '\n'; v6 += ' ' + _root[item][4] + ' ' + _root[item][13]; } else { v7 = 'Slot: \n'; v7 += 'Armor: +\n'; v6 = ' ' + _root[item][1] + '\n'; v6 += ' ' + _root[item][4] + '\n'; } if (_root[item][5] > 0) { v4 = '+' + _root[item][5] + 'str '; } if (_root[item][6] > 0) { v4 += '+' + _root[item][6] + 'foc '; } if (_root[item][7] > 0) { v4 += '+' + _root[item][7] + 'agi '; } if (_root[item][8] > 0) { v4 += '+' + _root[item][8] + 'hp '; } if (_root[item][9] > 0) { v4 += '+' + _root[item][9] + 'ene '; } if (_root[item][10] > 0) { v4 += '+' + _root[item][10] + '%crit'; } if (_root[item][11] > 0) { v4 += '+' + _root[item][11] + '%dodge'; } if (_root[item][13] != null && _root[item][1] != 'Weapon') { v4 += '\n' + _root[item][13]; } var v3 = new TextFormat(); v3.kerning = false; v3.font = 'titleFont'; v3.size = 15; v3.bold = true; var v5 = v3.getTextExtent(v4, 170); if (_root[item][3] == 'comm') { v3.color = 16777010; } else { if (_root[item][3] == 'rare') { v3.color = 16750848; } else { if (_root[item][3] == 'epic') { v3.color = 6710988; } } } _root.textWindow.createTextField('txtTitle', 2, 0, 0, v5.textFieldWidth, 4); _root.textWindow.txtTitle.text = _root[item][12]; _root.textWindow.txtTitle.embedFonts = true; _root.textWindow.txtTitle.selectable = false; _root.textWindow.txtTitle.setTextFormat(v3); _root.textWindow.createTextField('txtHead', 3, 4, 24, v5.textFieldWidth, 40); v3.underline = false; v3.color = 13421772; v3.size = 12; v3.leading = 1; textWindow.txtHead.embedFonts = true; textWindow.txtHead.text = v7; textWindow.txtHead.multiline = true; textWindow.txtHead.wordWrap = true; textWindow.txtHead.selectable = false; textWindow.txtHead.setTextFormat(v3); _root.textWindow.createTextField('txtHead2', 4, 4, 24, v5.textFieldWidth, 40); v3.color = 16777215; textWindow.txtHead2.embedFonts = true; textWindow.txtHead2.text = v6; textWindow.txtHead2.multiline = true; textWindow.txtHead2.wordWrap = true; textWindow.txtHead2.selectable = false; textWindow.txtHead2.setTextFormat(v3); _root.textWindow.attachMovie('textFieldLine', 'textFieldLine', 5); textWindow.textFieldLine._x = 4; textWindow.textFieldLine._y = 62; _root.textWindow.createTextField('txtMain', 6, 4, 64, v5.textFieldWidth, v5.textFieldHeight + 20); v3.underline = false; v3.color = 3407616; v3.size = 12; v3.leading = 2; textWindow.txtMain.embedFonts = true; textWindow.txtMain.text = v4; textWindow.txtMain.multiline = true; textWindow.txtMain.wordWrap = true; textWindow.txtMain.selectable = false; textWindow.txtMain.setTextFormat(v3); _root.textWindow.attachMovie('txtBackground', 'txtBackground', 1); _root.textWindow.txtBackground.textBorder.gotoAndStop(_root[item][3]); _root.textWindow.txtBackground._width = v5.textFieldWidth + 5; _root.textWindow.txtBackground._height = _root.textWindow.txtTitle._height + _root.textWindow.txtMain._height + _root.textWindow.txtHead._height + 6; _root.textWindow.txtBackground._x = 0; _root.textWindow.txtBackground._y = 0; if (textWindow.txtBackground._height > 145) { textWindow.txtBackground._height = 145; } if (_root.textWindow._y + _root.textWindow._height > 550) { _root.textWindow._y = 550 - _root.textWindow._height; } if (_root.textWindow._x + _root.textWindow._width > 650) { _root.textWindow._x = 650 - _root.textWindow._width; } } } function removeItemText() { _root.textWindow.removeMovieClip(); } function setHeroGear() { if (equipmentList[1] == null) { _root.hero.inside.attack.head.gotoAndStop(sex); } else { _root.hero.inside.attack.head.gotoAndStop(equipmentList[1]); } if (equipmentList[2] == null) { _root.hero.inside.attack.chest.gotoAndStop(sex); } else { _root.hero.inside.attack.chest.gotoAndStop(equipmentList[2] + sex); } if (equipmentList[6] == null) { _root.hero.inside.attack.weapon.gotoAndStop(1); } else { _root.hero.inside.attack.weapon.gotoAndStop(equipmentList[6]); } } function removeItemFromGround(item) { var v1 = 0; while (v1 < itemsOnGround.length) { if (item == itemsOnGround[v1]) { itemsOnGround.splice(v1, 1); break; } ++v1; } } function getSellPrice(tGearName) { var v2 = (_root[tGearName][0] + 1) * 2; if (_root[tGearName][3] == 'rare') { v2 *= 2; return v2; } if (_root[tGearName][3] == 'epic') { v2 *= 3; } return v2; } function questItemInInv(item) { var v2 = 0; while (v2 < inventory.length) { if (inventory[v2] == item) { _root.charMenu[inventoryInst[v2]].removeMovieClip(); inventory[v2] = null; inventoryInst[v2] = null; return true; } ++v2; } return false; } function toggleTalentWindow() { if (_root.tutorialWindow._currentframe == 1) { if (itemOnMouse) { playSound('error'); showMessage('Drop or Equip the Item First'); } else { if (_root.talentWindow._visible) { _root.talentWindow._visible = false; } else { showTutorial(9); _root.talentWindow._visible = true; _root.charMenu._visible = false; _root.mapWindow._visible = false; _root.abilities._visible = false; _root.options._visible = false; } } } else { playSound('error'); showMessage('Close Window First'); } } function toggleInventory() { if (_root.tutorialWindow._currentframe == 1) { if (itemOnMouse) { playSound('error'); showMessage('Drop or Equip the Item First'); } else { if (_root.charMenu._visible) { _root.charMenu._visible = false; } else { setCharacterText(); _root.charMenu._visible = true; _root.talentWindow._visible = false; _root.mapWindow._visible = false; _root.abilities._visible = false; _root.options._visible = false; } } } else { playSound('error'); showMessage('Close Window First'); } } function toggleMapWindow() { if (_root.tutorialWindow._currentframe == 1) { if (itemOnMouse) { playSound('error'); showMessage('Drop or Equip the Item First'); } else { if (_root.mapWindow._visible) { _root.mapWindow._visible = false; } else { _root.mapWindow._visible = true; _root.talentWindow._visible = false; _root.charMenu._visible = false; _root.abilities._visible = false; _root.options._visible = false; } } } else { playSound('error'); showMessage('Close Window First'); } } function toggleAbilities() { if (_root.tutorialWindow._currentframe == 1) { if (itemOnMouse) { playSound('error'); showMessage('Drop or Equip the Item First'); } else { if (_root.abilities._visible) { _root.abilities._visible = false; } else { _root.abilities._visible = true; _root.talentWindow._visible = false; _root.charMenu._visible = false; _root.mapWindow._visible = false; _root.options._visible = false; } } } else { playSound('error'); showMessage('Close Window First'); } } function toggleOptions() { if (_root.tutorialWindow._currentframe == 1) { if (itemOnMouse) { playSound('error'); showMessage('Drop or Equip the Item First'); } else { if (_root.options._visible) { _root.options._visible = false; } else { _root.options.enemiesKilled.text = 'Kills - ' + enemiesKilled; _root.options.highestHit.text = 'Highest Hit - ' + highestHit; _root.options.deaths.text = 'Deaths - ' + deaths; _root.options.talentResets.text = 'Talent Resets - ' + talentResets; if (soundOn) { _root.options.soundMC.gotoAndStop(1); } else { _root.options.soundMC.gotoAndStop(2); } if (musicOn) { _root.options.musicMC.gotoAndStop(1); } else { _root.options.musicMC.gotoAndStop(2); } if (_root._quality == 'LOW') { _root.options.qualityMC.gotoAndStop(3); } else { if (_root._quality == 'MEDIUM') { _root.options.qualityMC.gotoAndStop(2); } else { _root.options.qualityMC.gotoAndStop(1); } } if (allowLower) { _root.options.windowMC.gotoAndStop(1); } else { _root.options.windowMC.gotoAndStop(2); } _root.options._visible = true; _root.talentWindow._visible = false; _root.charMenu._visible = false; _root.mapWindow._visible = false; _root.abilities._visible = false; } } } else { playSound('error'); showMessage('Close Window First'); } } function getSpellDepth() { ++spellDepth; if (spellDepth > 11999) { spellDepth = 11000; } } function getSCTDepth() { ++sctDepth; if (sctDepth > 10499) { sctDepth = 10000; } } function getEnemyDepth() { ++enemyDepth; if (enemyDepth > 9498) { enemyDepth = 9000; } } function getItemDepth() { ++itemDepth; if (itemDepth > 8049) { itemDepth = 8000; } } function getPatrolDepth() { ++patrolDepth; if (patrolDepth > 12999) { patrolDepth = 12000; } } function usePotion(type) { if (_root.tutorialWindow._currentframe == 1) { if (globalCD == 0) { if (type == 'health') { if (curHealth == maxHealth) { showMessage('Already Full Health'); } else { if (healthPots > 0) { playSound('potionUse'); --healthPots; changeHealth(maxHealth * 0.15); globalCD = 15; } else { showMessage('No Health Potions'); } } } else { if (curEnergy == maxEnergy) { showMessage('Already Full Energy'); } else { if (energyPots > 0) { playSound('potionUse'); --energyPots; changeEnergy(maxEnergy * 0.15); globalCD = 15; } else { showMessage('No Energy Potions'); } } } } else { showMessage('Not Ready Yet'); } } } function itemInList(item, list) { var v2 = 0; while (v2 < _root[list].length) { if (String(_root[list][v2]) == String(item)) { return true; } ++v2; } return false; } function getDist(one, two) { var v1 = one._x - two._x; var v2 = one._y - two._y; var v3 = Math.sqrt(v1 * v1 + v2 * v2); return v3; } function checkCombatState() { inCombat = false; var v2 = 0; while (v2 < enemyArray.length) { var v3 = enemyArray[v2]; if (_root[v3].inside.aggroed) { playLoop('combat'); inCombat = true; restoreAlpha(); break; } ++v2; } if (!inCombat) { if (currentLoop == 'combat') { playLoop('mainTheme'); } lowerAlpha(); deactivateAA(); autoAttackTimer = 0; } } function behindTarget(trgt) { _root.attachMovie('behindTarget', 'behindTargetMC', areaSquareDepth + 2); _root.behindTargetMC._x = _root[trgt]._x; _root.behindTargetMC._y = _root[trgt]._y; _root.behindTargetMC._rotation = _root[trgt]._rotation; if (_root.hero.hitTest(_root.behindTargetMC)) { _root.behindTargetMC.removeMovieClip(); return true; } else { _root.behindTargetMC.removeMovieClip(); return false; } } function dragItem() { if (iconOnMouse) { _root.mouseItem._x = _xmouse; _root.mouseItem._y = _ymouse; if (Key.isDown(27)) { clearMouseIcon(); } } else { if (itemOnMouse) { _root.charMenu[equipOnMouse]._x = _xmouse; _root.charMenu[equipOnMouse]._y = _ymouse; } } if (allowDrag) { var v3 = _xmouse - dragX; var v4 = _ymouse - dragY; var v6 = Math.sqrt(v3 * v3 + v4 * v4); if (v6 > 6) { allowDrag = false; var v2 = Math.floor(_xmouse / 40); if (hotBarList[v2] != null) { iconOnMouse = true; var v5 = hotBarList[v2]; hotBarList[v2] = null; clearAbilityName(); _root.hotBar['slot' + v2].gotoAndStop(1); _root.hotBar['slot' + v2].cdCover._visible = false; _root.hotBar['slot' + v2].cdTimer.text = ''; mouseItemInfo[0] = v5 + 'T'; mouseItemInfo[1] = 'ability'; _root.attachMovie('iconList', 'mouseItem', mouseIconDepth); mouseItem._x = _xmouse; mouseItem._y = _ymouse; mouseItem._width = 30; mouseItem._height = 30; _root.mouseItem.gotoAndStop(mouseItemInfo[0]); _root.mouseItem.aaIcon.gotoAndStop(weaponType); } } } } function clearMouseIcon() { iconOnMouse = false; _root.mouseItem.removeMovieClip(); mouseItemInfo = []; } function showMessage(m) { if (m == 'Inventory Full') { playSound('error'); } _root.displayMessage.gotoAndPlay(2); _root.displayMessage.mess.text = m; } function getAbilityName(slot) { playSound('rollOver'); _root.hotBar.abilityName._x = 40 * slot; _root.hotBar.abilityName.gotoAndStop(hotBarList[slot]); } function clearAbilityName() { _root.hotBar.abilityName.gotoAndStop(1); } function timers() { if (targetTimer > 0) { --targetTimer; } if (itemOnMouse && _root.charMenu.sellSlot.hitTest(_xmouse, _ymouse, true)) { var v16 = _root.charMenu[equipOnMouse].gearName; var v17 = _root.getSellPrice(v16); _root.charMenu.sellPrice.sellPriceTxt.text = 'Sell Price: ' + v17 + ' gold'; _root.charMenu.sellPrice._visible = true; } else { _root.charMenu.sellPrice._visible = false; } if (autoAttackOn) { ++autoAttackTimer; if (autoAttackTimer >= attackSpeed) { performAutoAttack(); autoAttackTimer = 0; } } ++combatStateTimer; if (combatStateTimer >= 25) { combatStateTimer = 0; checkCombatState(); } if (globalCD > 0) { --globalCD; } ++mainTimer; if (mainTimer == 3) { mainTimer = 1; if (!Key.isDown(savedKey) && savedKey != null) { savedKey = null; } var v6 = 0; while (v6 < respawnArray.length) { respawnArray[v6][0] -= 2; ++v6; } if (respawnArray.length > 0 && respawnArray[0][0] <= 0) { var v14 = respawnArray[0][1]; var v15 = respawnArray[0][2]; _root[v14][v15][5] = false; respawnArray.splice(0, 1); if ('tile' + currentTile == v14) { spawnEnemy(_root[v14][v15][1], _root[v14][v15][2], _root[v14][v15][3], _root[v14][v15][0], false); } } if (isMoving) { checkForAggro(); } v6 = 0; while (v6 < enemyArray.length) { var v2 = enemyArray[v6]; var v7 = findEmptyDebuffSlot(_root[v2]); var v5 = 0; while (v5 < v7) { _root[v2].inside.debuffList[v5][1] -= 2; if (_root[v2].inside.debuffList[v5][1] % 75 < 2 && _root[v2].inside.debuffList[v5][1] % 75 >= 0) { if (_root[v2].inside.debuffList[v5][0] == 'aftermathT' || _root[v2].inside.debuffList[v5][0] == 'scorchT' || _root[v2].inside.debuffList[v5][0] == 'scorpionBiteT') { var v10 = Math.round(_root[v2].inside.debuffList[v5][2]); _root[v2].inside.curHealth -= v10; var v9 = debuffActive(_root[v2], 'dazzleT'); if (v9 != -1) { if (_root[v2].inside.enemyKind != 'deathGate') { _root[v2].inside.stunned = false; } _root[v2].inside.debuffList[v9][1] = 2; } var v8 = debuffActive(_root[v2], 'incapacitateT'); if (v8 != -1) { if (_root[v2].inside.enemyKind != 'deathGate') { _root[v2].inside.stunned = false; } _root[v2].inside.debuffList[v8][1] = 2; } if (_root[v2].inside.curHealth <= 0) { killEnemy(_root[v2]); } else { if (v2 == target) { _root.targetMenu.hpBar._xscale = (_root[v2].inside.curHealth / _root[v2].inside.maxHealth) * 100; _root.targetMenu.healthTxt.text = int(_root[v2].inside.curHealth); } } _root.attachMovie('orangeSCT', 'sct' + sctDepth, sctDepth); _root['sct' + sctDepth].inside.sctText.text = v10; _root['sct' + sctDepth]._x = _root[v2]._x; _root['sct' + sctDepth]._y = _root[v2]._y; getSCTDepth(); } } if (_root[v2].inside.debuffList[v5][1] <= 0) { if (_root[v2].inside.debuffList[v5][0] == 'naturesGraspT') { _root[v2].inside.moveSpeed = _root[_root[v2].inside.type][4]; } if (v7 - 1 > v5) { var v4 = v7 - 1 - v5; var v3 = 0; while (v3 < v4) { _root[v2].inside.debuffList[v5 + v3][0] = _root[v2].inside.debuffList[v5 + v3 + 1][0]; _root[v2].inside.debuffList[v5 + v3][1] = _root[v2].inside.debuffList[v5 + v3 + 1][1]; _root[v2].inside.debuffList[v5 + v3][2] = _root[v2].inside.debuffList[v5 + v3 + 1][2]; _root.targetMenu['slot' + v5 + v3].gotoAndStop(_root[v2].inside.debuffList[v5 + v3 + 1][0]); ++v3; } _root.targetMenu['slot' + v5 + v4].gotoAndStop(1); _root[v2].inside.debuffList[v5 + v4][0] = null; _root[v2].inside.debuffList[v5 + v4][1] = null; _root[v2].inside.debuffList[v5 + v4][2] = null; } else { _root.targetMenu['slot' + v5].gotoAndStop(1); _root[v2].inside.debuffList[v5][0] = null; _root[v2].inside.debuffList[v5][1] = null; _root[v2].inside.debuffList[v5][2] = null; } } ++v5; } if (v2 == target) { setTargetBuffs(_root[v2]); } ++v6; } if (activeBuffs > 0) { var v12 = []; v6 = 0; while (v6 < activeBuffs) { if (buffList[v6][1] != 'noTime') { buffList[v6][1] -= 2; if (buffList[v6][0] == 'sylvanTouch') { if (buffList[v6][1] % 75 < 2 && buffList[v6][1] % 75 >= 0) { var v13 = Math.round(sylvanTouch[2] + level * sylvanTouch[11]); changeHealth(v13); _root.attachMovie('greenSCT', 'sct' + sctDepth, sctDepth); _root['sct' + sctDepth].inside.sctText.text = '+' + v13; _root['sct' + sctDepth]._x = _root.hero._x; _root['sct' + sctDepth]._y = _root.hero._y; getSCTDepth(); } } if (buffList[v6][1] <= 0) { v12[v12.length] = v6; } else { _root.charBar['slot' + v6].iconTime.text = Math.ceil(buffList[v6][1] / 25); } } ++v6; } v6 = 0; while (v6 < v12.length) { var v11 = v12[v6]; buffList[v11][0] = null; buffList[v11][1] = null; _root.charBar['slot' + v11].gotoAndStop(1); clearBuffInfo(); --activeBuffs; if (_root.charMenu._visible == false) { setAllAttributes(); } else { setCharacterText(); } ++v6; } } v6 = 0; while (v6 < abilityCD.length) { if (_root[abilityCD[v6]][9] > 0) { _root[abilityCD[v6]][9] -= 2; if (_root[abilityCD[v6]][9] <= 0) { v5 = 0; while (v5 < hotBarList.length) { if (String(hotBarList[v5]) == String(abilityCD[v6])) { _root.hotBar['slot' + v5].cdCover._visible = false; _root.hotBar['slot' + v5].cdTimer.text = ''; } ++v5; } } else { v5 = 0; while (v5 < hotBarList.length) { if (String(hotBarList[v5]) == String(abilityCD[v6])) { _root.hotBar['slot' + v5].cdCover._visible = true; _root.hotBar['slot' + v5].cdTimer.text = Math.ceil(_root[abilityCD[v6]][9] / 25); } ++v5; } } } ++v6; } } } function setCharacterText() { setAllAttributes(); _root.charMenu.charNameTxt.text = charName + ' - Level ' + level; _root.charMenu.healthTxt.text = 'Health - ' + int(curHealth) + '/' + maxHealth; _root.charMenu.energyTxt.text = 'Energy - ' + int(curEnergy) + '/' + maxEnergy; _root.charMenu.expTxt.text = 'Exp. - ' + curExp + '/' + nextLevel; _root.charMenu.strTxt.text = 'Strength - ' + str; _root.charMenu.agiTxt.text = 'Agility - ' + agi; _root.charMenu.focTxt.text = 'Focus - ' + foc; _root.charMenu.dpsTxt.text = 'Damage Per Second - N/A'; _root.charMenu.armorTxt.text = 'Armor - ' + armor; _root.charMenu.hRegenTxt.text = 'Health Recovery - ' + healthRegen + '/sec'; _root.charMenu.eRegenTxt.text = 'Energy Recovery - ' + energyRegen + '/sec'; _root.charMenu.critTxt.text = 'Critical Chance - ' + crit + '%'; _root.charMenu.dodgeTxt.text = 'Dodge Chance - ' + dodge + '%'; _root.charMenu.moveTxt.text = 'Run Speed - ' + Math.round(moveSpeed * 10); if (weaponType != 'noWeapon') { var v5 = getAADamage() * 25 / attackSpeed; _root.charMenu.dpsTxt.text = 'Damage Per Second - ' + Math.round(v5 * 100) / 100; } else { _root.charMenu.dpsTxt.text = 'No Weapon Equipped'; } _root.charMenu.goldTxt.text = 'x' + gold; var v3 = 0; var v2 = 0; while (v2 < mainStoryline.length) { if (mainStoryline[v2] == false) { } else { ++v3; } ++v2; } var v4 = (v3 / mainStoryline.length) * 100; _root.charMenu.progressBar._xscale = v4; _root.charMenu.progressTxt.text = 'Game Progress - ' + int(v4) + '%'; } function dragInvItem(item) { if (iconOnMouse == false) { if (itemOnMouse == false) { itemOnMouse = true; equipOnMouse = item; inventory[item.invSlot] = null; removeItemText(); } } } function moveNPC() { _root.startGuy._x -= 3; if (_root.startGuy.hitTest(_root.ground.npc1) || row != 1 && col != 0) { _root.startGuy.removeMovieClip(); _root.ground.npc1._x += 40; _root.ground.npc1._visible = true; showTutorial(3); clearInterval(npcInterval); } } function getItemCost(item) { var v2 = Math.round((_root[item][0] + 1) * 8 * 1.5); if (_root[item][1] == 'Weapon') { v2 = Math.round(v2 * 1.5); } if (_root[item][3] == 'rare') { v2 *= 3; } else { if (_roo[item][3] == 'epic') { v2 *= 5; } } if (item == 'healthPotion' || item == 'energyPotion') { v2 = Math.round(level * 2 * 1.5); } return Math.round(v2); } function showTutorial(num) { if (tutorialsOn && tutorialArray[num] == false || num == 14 || num == 13) { _root.hero.inside.gotoAndStop('stand'); _root.tutorialWindow.gotoAndStop(num); tutorialArray[num] = true; } } function tileClear(myTile) { var v2 = 0; while (v2 < _root[myTile].length) { if (_root[myTile][v2][5] == false) { return false; } ++v2; } return true; } function getEnemiesDead(myTile) { var v4 = 0; var v2 = 0; while (v2 < _root[myTile].length) { if (_root[myTile][v2][5]) { ++v4; } ++v2; } return v4; } function copyArray(savedArray) { var v3 = []; var v1 = 0; while (v1 < savedArray.length) { v3[v1] = savedArray[v1]; ++v1; } return v3; } function returnToTitle() { var v2 = 0; while (v2 < itemsOnGround.length) { var v4 = itemsOnGround[v2]; v4.removeMovieClip(); ++v2; } v2 = 0; while (v2 < enemyArray.length) { var v3 = enemyArray[v2]; var v5 = _root[v3].inside.patDepth; (_root.getInstanceAtDepth(v5)).removeMovieClip(); _root[v3].removeMovieClip(); ++v2; } hero.removeMovieClip(); displayMessage.removeMovieClip(); tutorialWindow.removeMovieClip(); chatWindow.removeMovieClip(); buffText.removeMovieClip(); talentText.removeMovieClip(); talentWindow.removeMovieClip(); charMenu.removeMovieClip(); options.removeMovieClip(); mapWindow.removeMovieClip(); abilities.removeMovieClip(); castBar.removeMovieClip(); charBar.removeMovieClip(); targetMenu.removeMovieClip(); startGuy.removeMovieClip(); _root.attachMovie('fadeToBlack', 'fadeToBlack', _root.getNextHighestDepth()); _root.fadeToBlack.goal = 'title'; } function playLoop(loop) { if (musicOn && currentLoop != loop) { stopAllSounds(); currentLoop = loop; if (loop == 'combat') { if (currentTile == '0_9' || currentTile == '0_2' || currentTile == '5_0' || currentTile == '6_6') { loop = 'bossTheme'; } else { loop = 'combat1'; } } _root.soundFX.gotoAndPlay(loop); } } function playSound(snd) { if (soundOn) { _root.soundFX.gotoAndPlay(snd); } } function setArmorAndWeapons() { table1c = ['clothRobe', 'mossyWraps', 'duskyLeggings', 'vinewrapSandals', 'mysticOrb', 'dullGreatsword', 'warpwoodStaff', 'dentedHelm']; table1r = ['fletchersGrips', 'sundialOfLight', 'quickstrikeBlade', 'coldSteelBreastplate']; table1e = ['forkedLightningLegplates', 'slippersOfWhiteClarity']; table2c = ['peonsTabard', 'rustyGloves', 'leafguardLegs', 'rustyBoots', 'strikersMark', 'rustyDagger', 'vinewoodBow', 'fadedHood']; table2r = ['pantsOfVision', 'phaseBoots', 'justice', 'enchantedTanglewoodRod', 'enchantedWoodBow', 'shadowcallersHood']; table2e = ['tunicOfTheChampion', 'pendantOfTheSilentAssassin', 'fireAndIce']; table3c = ['steelBreastplate', 'barkskinGloves', 'tutorsTrousers', 'graySilkSlippers', 'warlordsBattlecharm', 'bastardSword', 'apprenticesWand', 'headcoverOfFaith']; table3r = ['fireweaveRobe', 'firetoothGloves', 'heartOfTheUndying']; table3e = ['wrapsOfTheSulDim', 'retlowsStaffOfLight', 'lansBootsOfTravel', 'sothrunsSpikedHelmet']; table4c = ['huntersTunic', 'silkGloves', 'soldiersLegs', 'bootsOfTheTrue', 'sylvanGlobe', 'filedShanker', 'reinforcedBow', 'shadedMask']; table4r = ['bloodguardLegplates', 'mossyTreads', 'helmOfTheFireSpirit']; table4e = ['avantarsLostLeggings', 'raegarsLight', 'bowOfTranquility', 'retlowsStaffOfLight']; table5c = ['studentsRobe', 'glovesOfThePrism', 'legsOfTheServant', 'bootsOfTheLinx', 'enchantersCharm', 'soldiersGreatsword', 'staffOfWizardry', 'hornedHelmet', 'huntersBow']; table5r = ['lifeSpringVest', 'angerforgeGauntlets', 'mysticalShard', 'bladeOfPerdition']; table5e = ['chestguardOfEradication', 'locketOfMysteries']; table6c = ['squiresColors', 'bronzeGauntlets', 'pantsOfTheScout', 'chainmailBoots', 'serpentIdol', 'steelDagger', 'wizardsCowl']; table6r = ['shadowboundTrousers', 'crystalSandals', 'shadowmourn', 'dagonsScepter', 'baronsRecurveBow', 'berserkersHelmet']; table6e = ['glovesOfTheShadowdance', 'dragonFang', 'coverOfEndlessVision']; table7c = ['knightsBreastplate', 'wardensWraps', 'spellweaveTrousers', 'energizingSlippers', 'spikedCollar', 'weightedLongsword', 'staffOfTheProphet', 'spectralHeaddress']; table7r = ['cosmicTunic', 'runeEtchedGloves', 'trinketOfDeath']; table7e = ['legsOfThePhantasm', 'vonStranglesBoots', 'wanderlust']; table8c = ['elvenVest', 'glovesOfSpark', 'blackSteelLegplates', 'sandalsOfLight', 'manaboundChoker', 'bronzeQuickblade', 'pathfindersBow', 'nightrunnersHood']; table8r = ['legsOfStorm', 'bootsOfConquest', 'enchantersCowl']; table8e = ['axisTunic', 'pulsingShadow', 'shadowslice']; table9c = ['aeromancersRobe', 'shapeshiftersHands', 'legsOfTheMarshall', 'mongooseBoots', 'wardersCharm', 'polishedSteelClaymore', 'pyromancersWand', 'helmOfDomination']; table9r = ['stoicChestguard', 'stalkersGrips', 'theMindsEye', 'daggerOfMalice']; table9e = ['ancientTitanGauntlets', 'furyOfTheStorm', 'circletOfTerror']; table10c = ['shapeshiftersGarb', 'defendersHandguards', 'woodwalkerLeggings', 'mithrilBoots', 'mastersNecklace', 'polishedMithrilDagger', 'angerwoodBow', 'spellshockHood']; table10r = ['beguilersLeggings', 'firewalkerTreads', 'bladeOfTheDawn', 'aeristsWandOfJustice', 'turningTideBow', 'truesightCover']; table10e = ['legsOfTheRampartDefender', 'bootsOfTheSilentStalker']; table11c = ['championsGuard', 'sylvanGuards', 'mastersLeggings', 'mageweaveSlippers', 'giantsbane', 'blackSteelGreatsword', 'wandOfBitingFrost', 'helmetOfClearsight']; table11r = ['robeOfSilentSouls', 'glovesOfTheSlayer', 'stoneOfTheImmortal']; table11e = ['robeOfTheEastRain', 'markOfTheImmortal']; table12c = ['treegardVest', 'wizardweaveGloves', 'stalwartLegplates', 'metagardsSoles', 'pulsingOrbOfLight', 'bowOfTheMarksman', 'huntersCap', 'assassinsBlade']; table12r = ['giantslayersLegplates', 'deathsFeetcovers', 'diamondweaveHood']; table12e = ['glovesOfTheDiamondAjah', 'markOfTheImmortal', 'robeOfTheEastRain', 'hoodOfTheBlinkingSpirit', 'markOfTheShadowslayer']; table13c = ['metagardsArmor', 'metagardsGauntlets', 'pantsOfTheWise', 'treadsOfTheHeron', 'necklaceOfTheUndying', 'helmOfTheBrute']; table13r = ['giantslayersLegplates', 'deathsFeetcovers', 'diamondweaveHood']; table13e = ['glovesOfTheDiamondAjah', 'markOfTheImmortal', 'robeOfTheEastRain', 'hoodOfTheBlinkingSpirit', 'markOfTheShadowslayer']; boss4Loot = ['shadowslayersChestguard']; dentedHelm = [1, 'Head', null, 'comm', 6, 1, 0, 0, 0, 0, 0, 0, 'Dented Helm', null, 1]; fadedHood = [2, 'Head', null, 'comm', 4, 0, 3, 0, 0, 0, 0, 0, 'Faded Hood', null, 1]; headcoverOfFaith = [3, 'Head', null, 'comm', 12, 2, 1, 2, 0, 0, 0, 0, 'Headcover of Faith', null, 1]; shadedMask = [4, 'Head', null, 'comm', 16, 1, 0, 6, 0, 0, 0, 0, 'Shaded Mask', null, 1]; hornedHelmet = [5, 'Head', null, 'comm', 26, 7, 2, 0, 0, 0, 0, 0, 'Horned Helmet', null, 1]; wizardsCowl = [6, 'Head', null, 'comm', 16, 0, 8, 3, 0, 0, 0, 0, 'Wizard\'s Cowl', null, 1]; spectralHeaddress = [7, 'Head', null, 'comm', 28, 5, 5, 4, 0, 0, 0, 0, 'Spectral Headdress', null, 1]; nightrunnersHood = [8, 'Head', null, 'comm', 32, 0, 3, 14, 0, 0, 0, 0, 'Nightrunners Hood', null, 1]; helmOfDomination = [9, 'Head', null, 'comm', 46, 16, 2, 2, 0, 0, 0, 0, 'Helm of Domination', null, 1]; spellshockHood = [10, 'Head', null, 'comm', 28, 0, 20, 3, 0, 0, 0, 0, 'Spellshock Hood', null, 1]; helmetOfClearsight = [11, 'Head', null, 'comm', 44, 9, 8, 8, 0, 0, 0, 0, 'Helmet of Clearsight', null, 1]; huntersCap = [12, 'Head', null, 'comm', 48, 2, 3, 22, 0, 0, 0, 0, 'Hunter\'s Cap', null, 1]; helmOfTheBrute = [13, 'Head', null, 'comm', 66, 25, 0, 5, 0, 0, 0, 0, 'Helm of the Brute', null, 1]; shadowcallersHood = [2, 'Head', null, 'rare', 14, 0, 0, 6, 0, 0, 0, 0, 'Shadowcaller\'s Hood', null, 1]; helmOfTheFireSpirit = [4, 'Head', null, 'rare', 22, 4, 3, 3, 0, 0, 0, 0, 'Helm of the Fire Spirit', null, 1]; berserkersHelmet = [6, 'Head', null, 'rare', 39, 13, 0, 3, 0, 0, 0, 0, 'Berserker\'s Helmet', null, 1]; enchantersCowl = [8, 'Head', null, 'rare', 27, 3, 19, 0, 0, 0, 0, 0, 'Enchanter\'s Cowl', null, 1]; truesightCover = [10, 'Head', null, 'rare', 46, 0, 4, 22, 0, 0, 0, 0, 'Truesight Cover', null, 1]; diamondweaveHood = [12, 'Head', null, 'rare', 54, 10, 11, 11, 0, 0, 0, 0, 'Diamondweave Hood', null, 1]; sothrunsSpikedHelmet = [3, 'Head', null, 'epic', 31, 10, 0, 0, 0, 10, 0, 0, 'Sothrun\'s Spiked Helmet', null, 1]; coverOfEndlessVision = [6, 'Head', null, 'epic', 36, 6, 6, 6, 0, 20, 0, 0, 'Cover of Endless Vision', null, 1]; circletOfTerror = [9, 'Head', null, 'epic', 34, 5, 20, 4, 0, 0, 0, 1, 'Circlet of Terror', null, 1]; hoodOfTheBlinkingSpirit = [12, 'Head', null, 'epic', 60, 0, 0, 30, 0, 0, 1, 0, 'Hood of Blinking Spirits', null, 1]; shadowslayersCover = [13, 'Head', null, 'epic', 64, 12, 12, 12, 75, 75, 0, 0, 'Shadowslayer\'s Cover', null, 1]; clothRobe = [1, 'Chest', null, 'comm', 3, 0, 1, 0, 0, 0, 0, 0, 'Torn Shirt', null, 2]; peonsTabard = [2, 'Chest', null, 'comm', 10, 1, 1, 1, 0, 0, 0, 0, 'Peon\'s Tabard', null, 2]; steelBreastplate = [3, 'Chest', null, 'comm', 19, 4, 0, 1, 0, 0, 0, 0, 'Steel Breastplate', null, 2]; huntersTunic = [4, 'Chest', null, 'comm', 18, 0, 2, 5, 0, 0, 0, 0, 'Hunter\'s Tunic', null, 2]; studentsRobe = [5, 'Chest', null, 'comm', 14, 0, 9, 0, 10, 0, 0, 0, 'Student\'s Garb', null, 2]; squiresColors = [6, 'Chest', null, 'comm', 26, 4, 4, 4, 0, 0, 0, 0, 'Squire\'s Colors', null, 2]; knightsBreastplate = [7, 'Chest', null, 'comm', 44, 11, 4, 0, 0, 0, 0, 0, 'Knight\'s Tunic', null, 2]; elvenVest = [8, 'Chest', null, 'comm', 34, 4, 0, 14, 0, 0, 0, 0, 'Elven Vest', null, 2]; aeromancersRobe = [9, 'Chest', null, 'comm', 26, 0, 15, 5, 0, 0, 0, 0, 'Aeromancer\'s Drape', null, 2]; shapeshiftersGarb = [10, 'Chest', null, 'comm', 42, 7, 7, 7, 10, 10, 0, 0, 'Shapeshifter\'s Garb', null, 2]; championsGuard = [11, 'Chest', null, 'comm', 59, 20, 5, 0, 0, 0, 0, 0, 'Champion\'s Guard', null, 2]; treegardVest = [12, 'Chest', null, 'comm', 50, 4, 0, 23, 0, 0, 0, 0, 'Treegard Vest', null, 2]; metagardsArmor = [13, 'Chest', null, 'comm', 54, 10, 10, 10, 0, 0, 0, 0, 'Metagard\'s Armor', null, 2]; coldSteelBreastplate = [1, 'Chest', null, 'rare', 17, 4, 0, 0, 0, 0, 0, 0, 'Cold Steel Breastplate', null, 2]; fireweaveRobe = [3, 'Chest', null, 'rare', 13, 2, 6, 0, 0, 0, 0, 0, 'Fireweave Protector', null, 2]; lifeSpringVest = [5, 'Chest', null, 'rare', 28, 0, 3, 10, 0, 0, 0, 0, 'Life Spring Vest', null, 2]; cosmicTunic = [7, 'Chest', null, 'rare', 36, 7, 6, 6, 0, 0, 0, 0, 'Cosmic Tunic', null, 2]; stoicChestguard = [9, 'Chest', null, 'rare', 57, 20, 4, 0, 0, 0, 0, 0, 'Stoic Chestguard', null, 2]; robeOfSilentSouls = [11, 'Chest', null, 'rare', 37, 3, 3, 23, 0, 0, 0, 0, 'Cover of Silent Souls', null, 2]; tunicOfTheChampion = [2, 'Chest', null, 'epic', 22, 2, 2, 3, 10, 10, 0, 0, 'Tunic of the Champion', null, 2]; chestguardOfEradication = [5, 'Chest', null, 'epic', 44, 15, 2, 0, 20, 0, 0, 0, 'Chestguard of Eradication', null, 2]; axisTunic = [8, 'Chest', null, 'epic', 46, 5, 0, 20, 0, 0, 1, 0, 'Axis\' Tunic', null, 2]; robeOfTheEastRain = [11, 'Chest', null, 'epic', 41, 5, 28, 0, 0, 15, 1, 0, 'The East Rain', null, 2]; shadowslayersChestguard = [13, 'Chest', null, 'epic', 66, 13, 13, 13, 50, 50, 2, 0, 'Shadowslayer\'s Chestguard', null, 2]; mossyWraps = [1, 'Hands', null, 'comm', 1, 0, 0, 1, 0, 0, 0, 0, 'Mossy Wraps', null, 3]; rustyGloves = [2, 'Hands', null, 'comm', 8, 3, 0, 0, 0, 0, 0, 0, 'Rusty Gloves', null, 3]; barkskinGloves = [3, 'Hands', null, 'comm', 10, 0, 0, 5, 0, 0, 0, 0, 'Barkskin Gloves', null, 3]; silkGloves = [4, 'Hands', null, 'comm', 9, 1, 6, 0, 0, 0, 0, 0, 'Silk Gloves', null, 3]; glovesOfThePrism = [5, 'Hands', null, 'comm', 0, 4, 4, 4, 0, 0, 0, 0, 'Gloves of the Prism', null, 3]; bronzeGauntlets = [6, 'Hands', null, 'comm', 28, 8, 0, 3, 0, 0, 0, 0, 'Bronze Gauntlets', null, 3]; wardensWraps = [7, 'Hands', null, 'comm', 26, 2, 2, 10, 0, 0, 0, 0, 'Warden\'s Wraps', null, 3]; glovesOfSpark = [8, 'Hands', null, 'comm', 21, 2, 14, 0, 0, 10, 0, 0, 'Gloves of Spark', null, 3]; shapeshiftersHands = [9, 'Hands', null, 'comm', 34, 6, 6, 6, 0, 0, 0, 0, 'Shapshifter\'s Hands', null, 3]; defendersHandguards = [10, 'Hands', null, 'comm', 48, 18, 0, 5, 0, 0, 0, 0, 'Defender\'s Handguards', null, 3]; sylvanGuards = [11, 'Hands', null, 'comm', 42, 2, 3, 20, 0, 0, 0, 0, 'Sylvan Guards', null, 3]; wizardweaveGloves = [12, 'Hands', null, 'comm', 33, 0, 22, 5, 0, 0, 0, 0, 'Wizardweave Gloves', null, 3]; metagardsGauntlets = [13, 'Hands', null, 'comm', 50, 10, 10, 10, 0, 0, 0, 0, 'Metagard\'s Gauntlets', null, 3]; fletchersGrips = [1, 'Hands', null, 'rare', 8, 0, 0, 4, 0, 0, 0, 0, 'Fletcher\'s Grips', null, 3]; firetoothGloves = [3, 'Hands', null, 'rare', 16, 3, 3, 2, 0, 0, 0, 0, 'Firetooth Gloves', null, 3]; angerforgeGauntlets = [5, 'Hands', null, 'rare', 36, 10, 0, 3, 0, 0, 0, 0, 'Angerforge Gauntlets', null, 3]; runeEtchedGloves = [7, 'Hands', null, 'rare', 22, 4, 15, 0, 0, 0, 0, 0, 'Rune Etched Gloves', null, 3]; stalkersGrips = [9, 'Hands', null, 'rare', 40, 2, 2, 20, 0, 0, 0, 0, 'Stalker\'s Grips', null, 3]; glovesOfTheSlayer = [11, 'Hands', null, 'rare', 48, 10, 9, 9, 0, 0, 0, 0, 'Gloves of the Slayer', null, 3]; wrapsOfTheSulDim = [3, 'Hands', null, 'epic', 15, 0, 10, 1, 0, 0, 0, 0, 'Wraps of the Sul\'Dim', null, 3]; glovesOfTheShadowdance = [6, 'Hands', null, 'epic', 34, 0, 5, 15, 20, 0, 0, 0, 'Gloves of Shadowdance', null, 3]; ancientTitanGauntlets = [9, 'Hands', null, 'epic', 58, 22, 4, 4, 0, 0, 0, 0, 'Ancient Titan Gauntlets', null, 3]; glovesOfTheDiamondAjah = [12, 'Hands', null, 'epic', 80, 0, 0, 0, 50, 50, 2, 0, 'Gloves of Diamond Ajah', null, 3]; shadowslayersGrips = [13, 'Hands', null, 'epic', 62, 12, 12, 12, 50, 0, 2, 0, 'Shadowslayer\'s Grips', null, 3]; duskyLeggings = [1, 'Legs', null, 'comm', 6, 1, 0, 0, 0, 0, 0, 0, 'Dusky Leggings', null, 5]; leafguardLegs = [2, 'Legs', null, 'comm', 8, 0, 0, 3, 0, 0, 0, 0, 'Leafguard Legs', null, 5]; tutorsTrousers = [3, 'Legs', null, 'comm', 7, 0, 5, 0, 0, 0, 0, 0, 'Tutor\'s Trousers', null, 5]; soldiersLegs = [4, 'Legs', null, 'comm', 21, 5, 0, 2, 0, 0, 0, 0, 'Soldier\'s Legs', null, 5]; legsOfTheServant = [5, 'Legs', null, 'comm', 20, 3, 3, 3, 0, 0, 0, 0, 'Legs of the Servant', null, 5]; pantsOfTheScout = [6, 'Legs', null, 'comm', 24, 0, 3, 8, 0, 0, 0, 0, 'Pants of the Scout', null, 5]; spellweaveTrousers = [7, 'Legs', null, 'comm', 19, 2, 10, 2, 0, 0, 0, 0, 'Spellweave Trousers', null, 5]; blackSteelLegplates = [8, 'Legs', null, 'comm', 41, 14, 3, 0, 0, 0, 0, 0, 'Black Steel Legplates', null, 5]; legsOfTheMarshall = [9, 'Legs', null, 'comm', 36, 6, 6, 6, 0, 0, 0, 0, 'Lets of the Marshall', null, 5]; woodwalkerLeggings = [10, 'Legs', null, 'comm', 40, 3, 0, 20, 0, 0, 0, 0, 'Woodwalker Leggings', null, 5]; mastersLeggings = [11, 'Legs', null, 'comm', 31, 0, 20, 5, 0, 0, 0, 0, 'Master\'s Leggings', null, 5]; stalwartLegplates = [12, 'Legs', null, 'comm', 61, 22, 2, 3, 0, 0, 0, 0, 'Stalwart Legplates', null, 5]; pantsOfTheWise = [13, 'Legs', null, 'comm', 37, 2, 25, 3, 0, 0, 0, 0, 'Pants of the Wise', null, 5]; pantsOfVision = [2, 'Legs', null, 'rare', 9, 0, 6, 0, 0, 0, 0, 0, 'Pants of Vision', null, 5]; bloodguardLegplates = [4, 'Legs', null, 'rare', 28, 10, 0, 0, 0, 0, 0, 0, 'Bloodguard Legplates', null, 5]; shadowboundTrousers = [6, 'Legs', null, 'rare', 30, 0, 2, 12, 0, 0, 0, 0, 'Shadowbound Trousers', null, 5]; legsOfStorm = [8, 'Legs', null, 'rare', 38, 8, 7, 7, 0, 0, 0, 0, 'Legs of Storm', null, 5]; beguilersLeggings = [10, 'Legs', null, 'rare', 33, 0, 21, 5, 0, 0, 0, 0, 'Beguiler\'s Leggings', null, 5]; giantslayersLegplates = [12, 'Legs', null, 'rare', 69, 27, 3, 2, 0, 0, 0, 0, 'Giantslayer\'s Legplates', null, 5]; forkedLightningLegplates = [1, 'Legs', null, 'epic', 21, 5, 0, 2, 0, 10, 0, 0, 'Lightning Legplates', null, 5]; avantarsLostLeggings = [4, 'Legs', null, 'epic', 28, 0, 4, 10, 20, 0, 0, 0, 'Avantar\'s Lost Leggings', null, 5]; legsOfThePhantasm = [7, 'Legs', null, 'epic', 28, 3, 18, 2, 0, 0, 1, 0, 'Legs of the Phantasm', null, 5]; legsOfTheRampartDefender = [10, 'Legs', null, 'epic', 52, 10, 10, 10, 50, 0, 0, 0, 'The Rampart Defender', null, 5]; shadowslayersLegguards = [13, 'Legs', null, 'epic', 64, 13, 13, 13, 0, 0, 0, 1, 'Shadowslayer\'s Legguards', null, 5]; vinewrapSandals = [1, 'Feet', null, 'comm', 1, 0, 0, 1, 0, 0, 0, 0, 'Vinewrap Sandals', null, 4]; rustyBoots = [2, 'Feet', null, 'comm', 8, 3, 0, 0, 0, 0, 0, 0, 'Rusty Boots', null, 4]; graySilkSlippers = [3, 'Feet', null, 'comm', 6, 0, 5, 0, 0, 0, 0, 0, 'Gray Silk Slippers', null, 4]; bootsOfTheTrue = [4, 'Feet', null, 'comm', 14, 3, 2, 2, 0, 0, 0, 0, 'Boots of the True', null, 4]; bootsOfTheLinx = [5, 'Feet', null, 'comm', 18, 0, 2, 7, 0, 0, 0, 0, 'Boots of the Linx', null, 4]; chainmailBoots = [6, 'Feet', null, 'comm', 28, 9, 0, 2, 0, 0, 0, 0, 'Chainmail Boots', null, 4]; energizingSlippers = [7, 'Feet', null, 'comm', 18, 2, 12, 0, 0, 0, 0, 0, 'Energizing Slippers', null, 4]; sandalsOfLight = [8, 'Feet', null, 'comm', 30, 7, 5, 5, 0, 0, 0, 0, 'Sandals of Light', null, 4]; mongooseBoots = [9, 'Feet', null, 'comm', 34, 0, 4, 16, 0, 0, 0, 0, 'Mongoose Boots', null, 4]; mithrilBoots = [10, 'Feet', null, 'comm', 48, 20, 0, 3, 0, 0, 0, 0, 'Mithril Boots', null, 4]; mageweaveSlippers = [11, 'Feet', null, 'comm', 30, 2, 21, 2, 0, 0, 0, 0, 'Mageweave Slippers', null, 4]; metagardsSoles = [12, 'Feet', null, 'comm', 46, 9, 9, 9, 0, 0, 0, 0, 'Metagard\'s Soles', null, 4]; treadsOfTheHeron = [13, 'Feet', null, 'comm', 50, 3, 2, 25, 0, 0, 0, 0, 'Threads of the Heron', null, 4]; phaseBoots = [2, 'Feet', null, 'rare', 12, 12, 2, 2, 0, 0, 0, 0, 'Phase Boots', null, 4]; mossyTreads = [4, 'Feet', null, 'rare', 20, 0, 2, 8, 0, 0, 0, 0, 'Mossy Treads', null, 4]; crystalSandals = [6, 'Feet', null, 'rare', 20, 2, 13, 0, 0, 0, 0, 0, 'Crystal Sandals', null, 4]; bootsOfConquest = [8, 'Feet', null, 'rare', 45, 18, 2, 3, 0, 0, 0, 0, 'Boots of Conquest', null, 4]; firewalkerTreads = [10, 'Feet', null, 'rare', 40, 9, 8, 9, 0, 0, 0, 0, 'Firewalker Treads', null, 4]; deathsFeetcovers = [12, 'Feet', null, 'rare', 52, 0, 2, 30, 0, 0, 0, 0, 'Death\'s Feetcovers', null, 4]; slippersOfWhiteClarity = [1, 'Feet', null, 'epic', 9, 0, 7, 0, 10, 0, 0, 0, 'Slippers of White Clarity', null, 4]; lansBootsOfTravel = [4, 'Feet', null, 'epic', 26, 4, 4, 4, 0, 0, 0, 1, 'Lan\'s Boots of Travel', null, 4]; vonStranglesBoots = [7, 'Feet', null, 'epic', 48, 20, 0, 3, 0, 20, 0, 0, 'Von Strangle\'s Boots', null, 4]; bootsOfTheSilentStalker = [10, 'Feet', null, 'epic', 50, 0, 5, 25, 0, 0, 1, 0, 'The Silent Stalkers', null, 4]; shadowslayersTreads = [13, 'Feet', null, 'epic', 62, 13, 13, 13, 0, 0, 0, 2, 'Shadowslayer\'s Treads', null, 4]; mysticOrb = [1, 'Jewel', null, 'comm', 0, 0, 2, 0, 0, 0, 0, 0, 'Mystic Orb', null, 0]; strikersMark = [2, 'Jewel', null, 'comm', 0, 0, 0, 0, 0, 0, 0, 1, 'Striker\'s Mark', null, 0]; warlordsBattlecharm = [3, 'Jewel', null, 'comm', 0, 6, 0, 0, 0, 0, 0, 0, 'Warlord\'s Battlecharm', null, 0]; sylvanGlobe = [4, 'Jewel', null, 'comm', 0, 0, 2, 6, 0, 0, 0, 0, 'Sylvan Globe', null, 0]; enchantersCharm = [5, 'Jewel', null, 'comm', 0, 3, 7, 0, 0, 0, 0, 0, 'Enchanter\'s Charm', null, 0]; serpentIdol = [6, 'Jewel', null, 'comm', 0, 0, 0, 0, 0, 0, 2, 2, 'Serpent Idol', null, 0]; spikedCollar = [7, 'Jewel', null, 'comm', 0, 10, 3, 2, 0, 0, 0, 0, 'Spiked Collar', null, 0]; manaboundChoker = [8, 'Jewel', null, 'comm', 0, 0, 15, 3, 0, 0, 0, 0, 'Manabound Choker', null, 0]; wardersCharm = [9, 'Jewel', null, 'comm', 0, 4, 0, 17, 0, 0, 0, 0, 'Warder\'s Charm', null, 0]; mastersNecklace = [10, 'Jewel', null, 'comm', 0, 5, 5, 5, 0, 0, 1, 0, 'Master\'s Necklace', null, 0]; giantsbane = [11, 'Jewel', null, 'comm', 0, 20, 3, 3, 0, 0, 0, 0, 'Giantsbane', null, 0]; pulsingOrbOfLight = [12, 'Jewel', null, 'comm', 0, 0, 25, 0, 0, 0, 1, 0, 'Puling Orb of Light', null, 0]; necklaceOfTheUndying = [13, 'Jewel', null, 'comm', 0, 30, 0, 0, 0, 0, 0, 1, 'Necklace of the Undying', null, 0]; sundialOfLight = [1, 'Jewel', null, 'rare', 0, 0, 4, 0, 0, 0, 0, 0, 'Sundial of Light', null, 0]; heartOfTheUndying = [3, 'Jewel', null, 'rare', 0, 8, 0, 0, 0, 0, 0, 0, 'Heart of the Undying', null, 0]; mysticalShard = [5, 'Jewel', null, 'rare', 0, 0, 10, 2, 0, 0, 0, 0, 'Mystical Shard', null, 0]; trinketOfDeath = [7, 'Jewel', null, 'rare', 0, 0, 0, 0, 0, 0, 3, 0, 'Trinket of Death', null, 0]; theMindsEye = [9, 'Jewel', null, 'rare', 0, 6, 6, 0, 0, 0, 1, 0, 'The Mind\'s Eye', null, 0]; stoneOfTheImmortal = [11, 'Jewel', null, 'rare', 0, 25, 0, 0, 0, 0, 1, 0, 'Stone of the Immortal', null, 0]; pendantOfTheSilentAssassin = [2, 'Jewel', null, 'epic', 0, 0, 0, 9, 15, 0, 0, 0, 'Pendant of the Assassin', null, 0]; locketOfMysteries = [5, 'Jewel', null, 'epic', 0, 0, 15, 4, 0, 0, 0, 0, 'Locket of Mysteries', null, 0]; pulsingShadow = [8, 'Jewel', null, 'epic', 0, 8, 8, 8, 0, 0, 0, 1, 'Pulsing Shadow', null, 0]; markOfTheImmortal = [11, 'Jewel', null, 'epic', 0, 30, 0, 0, 50, 0, 0, 0, 'Mark of the Immortal', null, 0]; markOfTheShadowslayer = [13, 'Jewel', null, 'epic', 0, 10, 10, 10, 0, 0, 2, 2, 'Mark of the Shadowslayer', null, 0]; toySword = [1, 'Weapon', 'Quest Item', 'comm', 1, 0, 0, 0, 5, 0, 0, 0, 'Toy Sword', 50, 10]; dullGreatsword = [1, 'Weapon', 'Sword', 'comm', 8, 0, 0, 0, 5, 0, 0, 0, 'Dull Greatsword', 50, 6]; bastardSword = [3, 'Weapon', 'Sword', 'comm', 13, 1, 0, 0, 0, 0, 0, 0, 'Bastard Sword', 42, 6]; soldiersGreatsword = [5, 'Weapon', 'Sword', 'comm', 18, 2, 0, 1, 0, 0, 0, 0, 'Soldier\'s Greatsword', 46, 6]; weightedLongsword = [7, 'Weapon', 'Sword', 'comm', 45, 5, 0, 0, 0, 0, 0, 0, 'Weighted Longsword', 80, 6]; polishedSteelClaymore = [9, 'Weapon', 'Sword', 'comm', 25, 4, 3, 0, 0, 0, 0, 0, 'Polished Steel Claymore', 39, 6]; blackSteelGreatsword = [11, 'Weapon', 'Sword', 'comm', 34, 7, 1, 2, 0, 0, 0, 0, 'Black Steel Greatsword', 43, 6]; justice = [2, 'Weapon', 'Sword', 'rare', 11, 0, 0, 0, 10, 0, 0, 0, 'Justice', 35, 6]; shadowmourn = [6, 'Weapon', 'Sword', 'rare', 31, 6, 0, 0, 0, 10, 0, 0, 'Shadowmourn', 55, 6]; bladeOfTheDawn = [10, 'Weapon', 'Sword', 'rare', 37, 10, 3, 0, 0, 0, 0, 0, 'Blade of the Dawn', 47, 6]; raegarsLight = [4, 'Weapon', 'Sword', 'epic', 25, 5, 3, 0, 0, 0, 0, 0, 'Raegar\'s Light', 44, 6]; shadowslice = [8, 'Weapon', 'Sword', 'epic', 30, 7, 3, 0, 0, 0, 0, 0, 'Shadowslice', 38, 6]; lightbringer = [13, 'Weapon', 'Sword', 'epic', 44, 10, 0, 10, 0, 50, 0, 0, 'Lightbringer', 41, 6]; rustyDagger = [2, 'Weapon', 'Dagger', 'comm', 4, 0, 0, 1, 0, 0, 0, 0, 'Rusty Dagger', 27, 6]; filedShanker = [4, 'Weapon', 'Dagger', 'comm', 10, 0, 0, 1, 0, 0, 0, 0, 'Filed Shanker', 32, 6]; steelDagger = [6, 'Weapon', 'Dagger', 'comm', 11, 0, 1, 2, 0, 0, 0, 0, 'Steel Dagger', 28, 6]; bronzeQuickblade = [8, 'Weapon', 'Dagger', 'comm', 16, 0, 0, 3, 10, 0, 0, 0, 'Bronze Quickblade', 29, 6]; polishedMithrilDagger = [10, 'Weapon', 'Dagger', 'comm', 17, 0, 0, 1, 0, 0, 0, 0, 'Polished Dagger', 26, 6]; assassinsBlade = [12, 'Weapon', 'Dagger', 'comm', 23, 0, 0, 2, 0, 0, 0, 0, 'Assassin\'s Blade', 29, 6]; quickstrikeBlade = [1, 'Weapon', 'Dagger', 'rare', 6, 0, 0, 2, 0, 0, 0, 0, 'Quickstrike Blade', 22, 6]; bladeOfPerdition = [5, 'Weapon', 'Dagger', 'rare', 16, 0, 0, 6, 0, 0, 0, 0, 'Blade of Perdition', 29, 6]; daggerOfMalice = [9, 'Weapon', 'Dagger', 'rare', 20, 0, 0, 0, 0, 0, 1, 0, 'Dagger of Malice', 27, 6]; fireAndIce = [3, 'Weapon', 'Dagger', 'epic', 14, 0, 2, 4, 0, 0, 0, 0, 'Fire and Ice', 29, 6]; dragonFang = [7, 'Weapon', 'Dagger', 'epic', 23, 2, 0, 8, 0, 0, 0, 0, 'Dragon Fang', 32, 6]; painAndSuffering = [13, 'Weapon', 'Dagger', 'epic', 25, 0, 0, 10, 0, 50, 1, 0, 'Pain and Suffering', 23, 6]; warpwoodStaff = [1, 'Weapon', 'Wand', 'comm', 6, 0, 0, 0, 0, 5, 0, 0, 'Warpwood Staff', 35, 6]; apprenticesWand = [3, 'Weapon', 'Wand', 'comm', 12, 0, 1, 0, 0, 0, 0, 0, 'Apprentice\'s Wand', 38, 6]; staffOfWizardry = [5, 'Weapon', 'Wand', 'comm', 13, 0, 3, 0, 0, 0, 0, 0, 'Staff of Wizadry', 32, 6]; staffOfTheProphet = [7, 'Weapon', 'Wand', 'comm', 16, 2, 3, 0, 0, 0, 0, 0, 'Staff of the Prophet', 28, 6]; pyromancersWand = [9, 'Weapon', 'Wand', 'comm', 26, 0, 4, 3, 0, 0, 0, 0, 'Pyromancer\'s Wand', 41, 6]; wandOfBitingFrost = [11, 'Weapon', 'Wand', 'comm', 30, 0, 9, 0, 0, 0, 0, 0, 'Wand of Biting Frost', 37, 6]; enchantedTanglewoodRod = [2, 'Weapon', 'Wand', 'rare', 12, 0, 2, 0, 0, 0, 0, 0, 'Enchanted Rod', 39, 6]; dagonsScepter = [6, 'Weapon', 'Wand', 'rare', 16, 0, 8, 0, 0, 0, 0, 0, 'Dagon\'s Scepter', 29, 6]; aeristsWandOfJustice = [10, 'Weapon', 'Wand', 'rare', 27, 3, 10, 0, 0, 0, 0, 0, 'Aerist\'s Wand of Justice', 34, 6]; retlowsStaffOfLight = [3, 'Weapon', 'Wand', 'epic', 21, 0, 9, 3, 0, 15, 0, 0, 'Retlow\'s Staff of Light', 36, 6]; wanderlust = [7, 'Weapon', 'Wand', 'epic', 27, 0, 7, 0, 30, 0, 0, 0, 'Wanderlust', 38, 6]; shadowculler = [13, 'Weapon', 'Wand', 'epic', 36, 10, 10, 0, 0, 0, 1, 0, 'Shadowculler', 33, 6]; vinewoodBow = [2, 'Weapon', 'Bow', 'comm', 7, 0, 0, 0, 2, 3, 0, 0, 'Vinewood Bow', 45, 6]; reinforcedBow = [4, 'Weapon', 'Bow', 'comm', 15, 0, 0, 1, 0, 0, 0, 0, 'Reinforced Bow', 48, 6]; huntersBow = [6, 'Weapon', 'Bow', 'comm', 21, 2, 0, 5, 0, 0, 0, 0, 'Hunter\'s Bow', 43, 6]; pathfindersBow = [8, 'Weapon', 'Bow', 'comm', 26, 0, 2, 3, 0, 0, 0, 0, 'Pathfinder\'s Bow', 46, 6]; angerwoodBow = [10, 'Weapon', 'Bow', 'comm', 35, 3, 0, 5, 0, 0, 0, 0, 'Angerwood Bow', 55, 6]; bowOfTheMarksman = [12, 'Weapon', 'Bow', 'comm', 37, 0, 0, 10, 5, 0, 0, 0, 'Bow of the Marksman', 46, 6]; enchantedWoodBow = [2, 'Weapon', 'Bow', 'rare', 17, 0, 0, 2, 0, 0, 0, 0, 'Enchanted Wood Bow', 42, 6]; baronsRecurveBow = [6, 'Weapon', 'Bow', 'rare', 20, 0, 0, 5, 0, 20, 0, 0, 'Baron\'s Recurve Bow', 36, 6]; turningTideBow = [10, 'Weapon', 'Bow', 'rare', 33, 3, 0, 10, 0, 0, 0, 0, 'Turning Tide Bow', 41, 6]; bowOfTranquility = [4, 'Weapon', 'Bow', 'epic', 20, 0, 0, 6, 10, 0, 0, 0, 'Bow of Tranquility', 36, 6]; furyOfTheStorm = [8, 'Weapon', 'Bow', 'epic', 23, 0, 3, 7, 0, 0, 0, 0, 'Fury of the Storm', 29, 6]; shadowbane = [13, 'Weapon', 'Bow', 'epic', 41, 10, 0, 10, 0, 50, 0, 0, 'Shadowbane', 38, 6]; blueFlower = [1, 'Weapon', 'Quest Item', 'comm', 1, 0, 0, 0, 5, 0, 0, 0, 'Blue Flower', 50, 10]; } function setTileArrays() { tile0_0 = [[0, 'banditArcher', 280, 120, null, true], [1, 'banditArcher', 110, 300, null, true], [2, 'banditSoldier', 300, 240, null, true]]; tile0_1 = [[0, 'deathGate1', 200, 200, null, true]]; tile0_2 = [[0, 'boss1', 315, 170, null, true], [1, 'graySkeleton', 250, 230, 800, true], [2, 'graySkeleton', 380, 230, 650, true]]; tile0_8 = [[0, 'twilightVoid', 140, 165, 800, false], [1, 'twilightVoid', 190, 380, 800, false], [2, 'twilightVoid', 325, 270, 800, false], [3, 'twilightVoid', 485, 200, 800, false], [4, 'twilightVoid', 455, 385, 800, false]]; tile0_9 = [[0, 'deathGate5', 525, 110, null, true]]; tile1_1 = [[0, 'graySkeleton', 280, 165, null, false], [1, 'graySkeleton', 495, 320, null, false], [2, 'graySkeleton', 195, 280, null, false]]; tile1_2 = [[0, 'graySkeleton', 95, 160, null, false], [1, 'graySkeleton', 310, 350, null, false], [2, 'graySkeleton', 445, 165, null, false], [3, 'graySkeleton', 510, 190, null, false]]; tile1_3 = [[0, 'deathGate1', 400, 100, null, true]]; tile1_6 = [[0, 'deathGate4', 320, 210, null, true], [1, 'shadowBones', 210, 270, null, false], [2, 'shadowBones', 435, 270, null, false]]; tile1_7 = [[0, 'deathGate4', 320, 210, null, true], [1, 'shadowBones', 210, 270, null, false], [2, 'shadowBones', 435, 270, null, false]]; tile1_8 = [[0, 'deathGate4', 320, 210, null, true], [1, 'shadowBones', 210, 270, null, false], [2, 'shadowBones', 435, 270, null, false]]; tile1_9 = [[0, 'flameWalker', 135, 125, 800, false], [1, 'flameWalker', 210, 360, 800, false], [2, 'flameWalker', 310, 240, 800, false], [3, 'flameWalker', 395, 330, 800, false], [4, 'flameWalker', 455, 195, 800, false]]; tile2_0 = [[0, 'deathGate1', 100, 140, null, true]]; tile2_3 = [[0, 'banditArcher', 430, 230, null, true], [1, 'banditArcher', 300, 260, null, true], [2, 'banditSoldier', 140, 220, null, true], [3, 'banditSoldier', 390, 70, null, true]]; tile2_4 = [[0, 'banditCaptain1', 315, 130, null, true], [1, 'banditLooter', 215, 190, 800, false], [2, 'banditWizard', 210, 250, 800, false], [3, 'banditWizard', 440, 200, 800, false], [4, 'banditLooter', 440, 260, 800, false]]; tile2_7 = [[0, 'nightmareVoid', 212, 160, null, true], [1, 'nightmareVoid', 265, 160, null, true], [2, 'nightmareVoid', 359, 160, null, true], [3, 'nightmareVoid', 406, 160, null, true], [4, 'shadowBones', 212, 120, null, true], [5, 'shadowBones', 265, 120, null, true], [6, 'shadowBones', 359, 120, null, true], [7, 'shadowBones', 406, 120, null, true]]; tile2_9 = [[0, 'twilightVoid', 150, 265, 800, false], [1, 'twilightVoid', 205, 100, 800, false], [2, 'twilightVoid', 255, 395, 800, false], [3, 'twilightVoid', 455, 140, 800, false], [4, 'twilightVoid', 390, 280, 800, false]]; tile3_1 = [[0, 'dryBones', 175, 170, null, false], [1, 'dryBones', 450, 170, null, false], [2, 'dryBones', 175, 360, null, false], [3, 'dryBones', 450, 360, null, false]]; tile3_3 = [[0, 'risenSoldier', 150, 390, null, true], [1, 'risenSoldier', 195, 270, null, true], [2, 'risenSoldier', 240, 160, null, true], [3, 'risenSoldier', 380, 130, null, true], [4, 'risenSoldier', 495, 86, null, true]]; tile3_4 = [[0, 'risenSoldier', 110, 145, null, true], [1, 'risenSoldier', 260, 75, null, true], [2, 'risenSoldier', 320, 210, null, true], [3, 'risenSoldier', 435, 365, null, true], [4, 'risenSoldier', 530, 255, null, true]]; tile4_1 = [[0, 'deathGate2', 320, 150, null, true], [1, 'dryBones', 275, 260, null, false], [2, 'dryBones', 370, 260, null, false]]; tile4_3 = [[0, 'deathGate2', 250, 240, null, true], [1, 'dryBones', 295, 360, null, false], [2, 'dryBones', 195, 360, null, false], [0, 'risenSoldier', 85, 160, null, true], [4, 'risenSoldier', 230, 245, null, true], [5, 'risenSoldier', 90, 350, null, true], [6, 'risenSoldier', 245, 400, null, true], [7, 'risenSoldier', 420, 350, null, true]]; tile4_5 = [[0, 'emberVoid', 110, 170, 800, false], [1, 'emberVoid', 95, 305, 800, false], [2, 'emberVoid', 250, 320, 400, false]]; tile5_0 = [[0, 'boss2', 230, 230, null, true], [1, 'skeletonGuard', 300, 180, 800, true], [2, 'skeletonGuard', 300, 280, 800, true]]; tile5_1 = [[0, 'shadowVoid', 145, 130, null, false], [1, 'shadowVoid', 260, 275, null, false], [2, 'dryBones', 100, 345, null, false], [3, 'shadowVoid', 535, 225, null, false]]; tile5_2 = [[0, 'shadowVoid', 90, 155, null, false], [1, 'shadowVoid', 205, 195, null, false], [2, 'dryBones', 535, 245, null, false], [3, 'shadowVoid', 350, 295, null, false], [4, 'shadowVoid', 475, 315, null, false]]; tile5_3 = [[0, 'shadowVoid', 95, 295, null, false], [1, 'shadowVoid', 255, 275, null, false], [2, 'dryBones', 475, 160, null, false], [3, 'shadowVoid', 520, 310, null, false]]; tile5_4 = [[0, 'emberVoid', 190, 110, 800, true], [1, 'emberVoid', 205, 315, 800, true], [2, 'emberVoid', 410, 185, 800, true], [3, 'emberVoid', 460, 350, 800, true]]; tile5_7 = [[0, 'shadowStalker', 290, 360, 500, true], [1, 'shadowStalker', 325, 135, 500, true]]; tile5_9 = [[0, 'boss3', 320, 235, null, true], [1, 'lasherVoid', 405, 150, null, true], [2, 'lasherVoid', 210, 320, null, true], [3, 'lasherVoid', 420, 330, null, true]]; tile6_2 = [[0, 'shadowStalker', 220, 340, 500, true], [1, 'shadowStalker', 320, 245, 500, true], [2, 'shadowStalker', 450, 335, 500, true]]; tile6_3 = [[0, 'shadowStalker', 195, 130, 500, true], [1, 'shadowStalker', 290, 390, 500, true], [2, 'shadowStalker', 480, 230, 500, true]]; tile6_5 = [[0, 'banditCaptain2', 345, 355, null, true], [1, 'banditLooter', 215, 185, 800, false], [2, 'banditWizard', 200, 250, 800, false], [3, 'banditWizard', 445, 195, 800, false], [4, 'banditLooter', 435, 255, 800, false]]; tile6_6 = [[0, 'boss4', 320, 230, null, true]]; tile6_7 = [[0, 'shadowStalker', 170, 350, 500, true], [1, 'shadowStalker', 370, 345, 500, true], [2, 'shadowStalker', 290, 105, 500, true]]; tile6_9 = [[0, 'deathGate3', 310, 190, null, true], [1, 'lasherVoid', 230, 265, null, false], [2, 'lasherVoid', 395, 265, null, false], [3, 'lasherVoid', 310, 325, null, false]]; tile7_0 = [[0, 'gateSorceror', 220, 250, null, true], [1, 'shadowVoid', 280, 185, 800, true], [2, 'shadowVoid', 330, 240, 800, true], [3, 'shadowVoid', 300, 310, 800, true]]; tile7_4 = [[0, 'gateSorceror', 315, 360, null, true], [1, 'shadowVoid', 220, 260, 800, true], [2, 'shadowVoid', 265, 175, 800, true], [3, 'shadowVoid', 360, 175, 800, true], [4, 'shadowVoid', 405, 260, 800, true]]; tile7_5 = [[0, 'gateSorceror2', 300, 275, null, true], [1, 'lasherVoid', 135, 295, 800, false], [2, 'lasherVoid', 270, 175, 800, false], [3, 'lasherVoid', 445, 215, 800, false], [4, 'lasherVoid', 385, 379, 800, false]]; tile7_6 = [[0, 'deathGate3', 325, 125, null, true], [1, 'mindController', 330, 275, null, true], [2, 'lasherVoid', 280, 220, null, false], [3, 'lasherVoid', 380, 220, null, false]]; tile7_7 = [[0, 'shadowStalker', 80, 245, null, true], [1, 'shadowStalker', 310, 40, 500, true], [2, 'shadowStalker', 515, 350, 500, true]]; tile7_8 = [[0, 'gateSorceror2', 320, 240, null, true], [1, 'lasherVoid', 230, 155, 800, false], [2, 'lasherVoid', 420, 160, 800, false], [3, 'lasherVoid', 425, 325, 800, false], [4, 'lasherVoid', 205, 325, 800, false]]; } function loadSavedGame() { var v2 = SharedObject.getLocal('game' + _root.saveSlot); _root.charName = v2.data.charName; level = v2.data.level; allowLower = v2.data.allowLower; if (allowLower == false) { restoreAlpha(); } soundOn = v2.data.soundOn; musicOn = v2.data.musicOn; exploration = _root.copyArray(v2.data.exploration); riddles = _root.copyArray(v2.data.riddles); respawnArray = _root.copyArray(v2.data.respawnArray); mainStoryline = _root.copyArray(v2.data.mainStoryline); questRewards = _root.copyArray(v2.data.questRewards); altStoryline = _root.copyArray(v2.data.altStoryline); bashT = _root.copyArray(v2.data.bashT); fireFistsT = _root.copyArray(v2.data.fireFistsT); terrifyingShoutT = _root.copyArray(v2.data.terrifyingShoutT); titanSwingT = _root.copyArray(v2.data.titanSwingT); whirlwindT = _root.copyArray(v2.data.whirlwindT); battleAuraT = _root.copyArray(v2.data.battleAuraT); fortifyT = _root.copyArray(v2.data.fortifyT); recoveryT = _root.copyArray(v2.data.recoveryT); warriorsSpiritT = _root.copyArray(v2.data.warriorsSpiritT); paralyzingSwingT = _root.copyArray(v2.data.paralyzingSwingT); aftermathT = _root.copyArray(v2.data.aftermathT); lifeStealT = _root.copyArray(v2.data.lifeStealT); shadowStrikeT = _root.copyArray(v2.data.shadowStrikeT); backstabT = _root.copyArray(v2.data.backstabT); stealthT = _root.copyArray(v2.data.stealthT); incapacitateT = _root.copyArray(v2.data.incapacitateT); bladeFlurryT = _root.copyArray(v2.data.bladeFlurryT); blinkStrikeT = _root.copyArray(v2.data.blinkStrikeT); anticipationT = _root.copyArray(v2.data.anticipationT); deadEyeT = _root.copyArray(v2.data.deadEyeT); stalkersSpiritT = _root.copyArray(v2.data.stalkersSpiritT); maliceT = _root.copyArray(v2.data.maliceT); killingSpreeT = _root.copyArray(v2.data.killingSpreeT); soulLinkT = _root.copyArray(v2.data.soulLinkT); steadyShotT = _root.copyArray(v2.data.steadyShotT); sylvanTouchT = _root.copyArray(v2.data.sylvanTouchT); naturesGraspT = _root.copyArray(v2.data.naturesGraspT); stalkersFuryT = _root.copyArray(v2.data.stalkersFuryT); explosiveShotT = _root.copyArray(v2.data.explosiveShotT); shadowShotT = _root.copyArray(v2.data.shadowShotT); scorpionBiteT = _root.copyArray(v2.data.scorpionBiteT); blessingOfTheWindT = _root.copyArray(v2.data.blessingOfTheWindT); spiritOfTheGroveT = _root.copyArray(v2.data.spiritOfTheGroveT); huntersPursuitT = _root.copyArray(v2.data.huntersPursuitT); mongooseT = _root.copyArray(v2.data.mongooseT); naturesRecoveryT = _root.copyArray(v2.data.naturesRecoveryT); scorchT = _root.copyArray(v2.data.scorchT); dazzleT = _root.copyArray(v2.data.dazzleT); recallT = _root.copyArray(v2.data.recallT); refreshT = _root.copyArray(v2.data.refreshT); blinkStepT = _root.copyArray(v2.data.blinkStepT); energyNovaT = _root.copyArray(v2.data.energyNovaT); dispellT = _root.copyArray(v2.data.dispellT); siphonEnergyT = _root.copyArray(v2.data.siphonEnergyT); arcanePulseT = _root.copyArray(v2.data.arcanePulseT); wizardsSpiritT = _root.copyArray(v2.data.wizardsSpiritT); focusedMindT = _root.copyArray(v2.data.focusedMindT); maliciousIntentT = _root.copyArray(v2.data.maliciousIntentT); bladeFlurry = _root.copyArray(v2.data.bladeFlurry); stalkersFury = _root.copyArray(v2.data.stalkersFury); incapacitate = _root.copyArray(v2.data.incapacitate); pointsPerTree = _root.copyArray(v2.data.pointsPerTree); treeNameByNum = _root.copyArray(v2.data.treeNameByNum); equipmentList = _root.copyArray(v2.data.equipmentList); abilityList = _root.copyArray(v2.data.abilityList); hotBarList = _root.copyArray(v2.data.hotBarList); _root.sex = v2.data.sex; curExp = v2.data.curExp; nextLevel = v2.data.nextLevel; level = v2.data.level; currentTalentPoints = v2.data.currentTalentPoints; healthPots = v2.data.healthPots; energyPots = v2.data.energyPots; tutorialsOn = v2.data.tutorialsOn; gold = v2.data.gold; row = v2.data.row; col = v2.data.col; enemiesKilled = v2.data.enemiesKilled; highestHit = v2.data.highestHit; deaths = v2.data.deaths; talentResets = v2.data.talentResets; tutorialArray = _root.copyArray(v2.data.tutorialArray); tile0_0 = _root.copyArray(v2.data.tile0_0); tile0_1 = _root.copyArray(v2.data.tile0_1); tile0_2 = _root.copyArray(v2.data.tile0_2); tile0_8 = _root.copyArray(v2.data.tile0_8); tile0_9 = _root.copyArray(v2.data.tile0_9); tile1_1 = _root.copyArray(v2.data.tile1_1); tile1_2 = _root.copyArray(v2.data.tile1_2); tile1_3 = _root.copyArray(v2.data.tile1_3); tile1_6 = _root.copyArray(v2.data.tile1_6); tile1_7 = _root.copyArray(v2.data.tile1_7); tile1_8 = _root.copyArray(v2.data.tile1_8); tile1_9 = _root.copyArray(v2.data.tile1_9); tile2_0 = _root.copyArray(v2.data.tile2_0); tile2_3 = _root.copyArray(v2.data.tile2_3); tile2_4 = _root.copyArray(v2.data.tile2_4); tile2_7 = _root.copyArray(v2.data.tile2_7); tile2_9 = _root.copyArray(v2.data.tile2_9); tile3_1 = _root.copyArray(v2.data.tile3_1); tile3_3 = _root.copyArray(v2.data.tile3_3); tile3_4 = _root.copyArray(v2.data.tile3_4); tile4_1 = _root.copyArray(v2.data.tile4_1); tile4_3 = _root.copyArray(v2.data.tile4_3); tile4_5 = _root.copyArray(v2.data.tile4_5); tile5_0 = _root.copyArray(v2.data.tile5_0); tile5_1 = _root.copyArray(v2.data.tile5_1); tile5_2 = _root.copyArray(v2.data.tile5_2); tile5_3 = _root.copyArray(v2.data.tile5_3); tile5_4 = _root.copyArray(v2.data.tile5_4); tile5_7 = _root.copyArray(v2.data.tile5_7); tile5_9 = _root.copyArray(v2.data.tile5_9); tile6_2 = _root.copyArray(v2.data.tile6_2); tile6_3 = _root.copyArray(v2.data.tile6_3); tile6_5 = _root.copyArray(v2.data.tile6_5); tile6_6 = _root.copyArray(v2.data.tile6_6); tile6_7 = _root.copyArray(v2.data.tile6_7); tile6_9 = _root.copyArray(v2.data.tile6_9); tile7_0 = _root.copyArray(v2.data.tile7_0); tile7_4 = _root.copyArray(v2.data.tile7_4); tile7_5 = _root.copyArray(v2.data.tile7_5); tile7_6 = _root.copyArray(v2.data.tile7_6); tile7_7 = _root.copyArray(v2.data.tile7_7); tile7_8 = _root.copyArray(v2.data.tile7_8); charMenu.portrait.gotoAndStop(sex); _root.talentWindow.tal0.text = pointsPerTree[0]; _root.talentWindow.tal1.text = pointsPerTree[1]; _root.talentWindow.tal2.text = pointsPerTree[2]; _root.talentWindow.tal3.text = pointsPerTree[3]; if (currentTalentPoints > 0) { _root.hotBar.talentPointsTxt.text = currentTalentPoints; } else { _root.hotBar.talentPointsTxt.text = ''; } _root.mapWindow.heroMarker._x = 150 + col * 35; _root.mapWindow.heroMarker._y = 135 + row * 35; var v5 = 0; while (v5 < 10) { var v3 = 0; while (v3 < 8) { if (exploration[v5][v3]) { var v6 = v5 + '_' + v3; _root.mapWindow['cover' + v6]._visible = false; } ++v3; } ++v5; } setTalentText(); v5 = 0; while (v5 < v2.data.inventory.length) { if (v2.data.inventory[v5] != null) { addItemToInventory(null, v2.data.inventory[v5]); } ++v5; } v5 = 0; while (v5 < equipmentList.length) { if (equipmentList[v5] != null) { equipSlot = _root[equipmentList[v5]][14]; var v7 = charMenu.getNextHighestDepth(); var v4 = 'item' + v7; _root.charMenu.attachMovie('invPieces', v4, v7); _root.charMenu[v4].allItems.gotoAndStop(equipmentList[v5]); resizeToInv(_root.charMenu[v4].allItems); _root.charMenu[v4].mouseHit.useHandCursor = false; _root.charMenu[v4].mouseHit.tabEnabled = false; _root.charMenu[v4].gearName = equipmentList[v5]; _root.charMenu[v4]._x = _root.charMenu['equip' + equipSlot]._x; _root.charMenu[v4]._y = _root.charMenu['equip' + equipSlot]._y; equipmentInst[v5] = v4; equipItem(equipmentList[v5]); } ++v5; } v5 = 0; while (v5 < 11) { _root.hotBar['slot' + v5].gotoAndStop(hotBarList[v5] + 'T'); ++v5; } v5 = 0; while (v5 < abilityList.length) { _root.abilities['slot' + v5].gotoAndStop(abilityList[v5]); _root.abilities['slot' + v5].abilityName.gotoAndStop(_root.abilities['slot' + v5]._currentframe); ++v5; } setAllAttributes(); changeHealth(10000); changeEnergy(10000); changeExp(0); _root.hero._x = 350; _root.hero._y = 250; } var my_cm; my_cm = new ContextMenu(); my_cm.hideBuiltInItems(); var myFirstItem_cmi; myFirstItem_cmi = new ContextMenuItem('(c)2009 - axis-games.com', myFirstItemHandler); my_cm.customItems.push(myFirstItem_cmi); _root.menu = my_cm; stopAllSounds(); currentLoop; allowLower = true; soundOn = true; musicOn = true; itemDepth = 8000; enemyDepth = 9000; areaSquareDepth = 9551; heroDepth = 9554; sctDepth = 10000; spellDepth = 11000; patrolDepth = 12000; fadeToWhiteDepth = 999999; fadeToBlackDepth = 999998; talentWindow.assassinTree._visible = false; talentWindow.warderTree._visible = false; talentWindow.arcaneTree._visible = false; _root.mapWindow.town1._visible = false; _root.mapWindow.town2._visible = false; _root.mapWindow.town3._visible = false; visibleTree = talentWindow.gladiatorTree; displayMessage.swapDepths(999954); tutorialWindow.swapDepths(999953); textWindowDepth = 999952; chatWindow.swapDepths(999951); buffText.swapDepths(999950); talentText.swapDepths(999949); mouseIconDepth = 999948; talentWindow.swapDepths(999947); charMenu.swapDepths(999946); options.swapDepths(999945); mapWindow.swapDepths(999944); abilities.swapDepths(999943); castBar.swapDepths(999942); charBar.swapDepths(999941); targetMenu.swapDepths(999940); hotBar.swapDepths(999939); hero.swapDepths(heroDepth); talentWindow._x = 0; talentWindow._y = 0; charMenu._x = 0; charMenu._y = 0; options._x = 0; options._y = 0; mapWindow._x = 0; mapWindow._y = 0; abilities._x = 0; abilities._y = 0; castBar._x = 248; castBar._y = 485; charMenu.portrait.gotoAndStop(sex); talentWindow._visible = false; charMenu._visible = false; options._visible = false; mapWindow._visible = false; abilities._visible = false; castBar._visible = false; iconOnMouse = false; itemOnMouse = false; allowDrag = false; itemsOnGround = []; dragX = 0; dragY = 0; _root.talentWindow.tal0.text = 0; _root.talentWindow.tal1.text = 0; _root.talentWindow.tal2.text = 0; _root.talentWindow.tal3.text = 0; exploration = [[false, false, false, false, false, false, false, false, false, false], [false, false, false, false, false, false, false, false, false, false], [false, false, false, false, false, false, false, false, false, false], [false, false, false, false, false, false, false, false, false, false], [false, false, false, false, false, false, false, false, false, false], [false, false, false, false, false, false, false, false, false, false], [false, false, false, false, false, false, false, false, false, false], [false, false, false, false, false, false, false, false, false, false]]; npcInterval; _root.startGuyLoot = false; _root.hotBar.talentPointsTxt.text = ''; _root.charMenu.sellPrice._visible = false; _root.charBar.healthNum._visible = false; _root.charBar.energyNum._visible = false; _root.charBar.expNum._visible = false; _root.hotBar.optionsBtn.tabEnabled = false; _root.hotBar.mapBtn.tabEnabled = false; _root.hotBar.abilitiesBtn.tabEnabled = false; _root.hotBar.talentBtn.tabEnabled = false; _root.hotBar.characterBtn.tabEnabled = false; _root.hotBar.healthPot.tabEnabled = false; _root.hotBar.energyPot.tabEnabled = false; bash = ['attack', 3, 5, 'melee', 0, true, 50, false, 125, 0, 'Bash', 1, false, true, 0, 0, false, 0.5, true]; fireFists = ['buff', 3, 1, null, 25, false, 1500, false, 0, 0, 'Fire Fists', 0.5, false, true, 0, 0, false, 0.5, true]; terrifyingShout = ['attack', 5, 0, 'melee', 0, true, 500, false, 0, 0, 'Terrifying Shout', 3, false, true, 0, 0, false, 0.5, true]; titanSwing = ['attack', 5, 2, 'melee', 0, true, 0, false, 0, 0, 'Titan Swing', 1, false, true, 0, 0, false, 0.5, false]; whirlwind = ['attack', 7, 3, 'melee', 0, true, 0, true, 125, 0, 'Whirlwind', 0.75, false, true, 70, 0, false, 0.5, false]; shadowStrike = ['attack', 5, 1, 'melee', 0, true, 0, false, 0, 0, 'Shadow Stirke', 1.5, false, true, 0, 0, false, 0.5, false]; incapacitate = ['attack', 5, 0, 'melee', 0, true, 125, false, 125, 0, 'Incapacitate', 0, false, true, 0, 0, true, 0.5, true]; backstab = ['attack', 5, 15, 'melee', 0, true, 0, false, 0, 0, 'Backstab', 2, false, true, 0, 0, false, 0.5, false]; stealth = ['buff', 5, 0, null, 0, false, 'noTime', false, 0, 0, 'Stealth', 0, false, true, 0, 0, false, 0.5, true]; bladeFlurry = ['buff', 5, 0, null, 0, false, 125, false, 1500, 0, 'Blade Flurry', 0, false, true, 0, 0, false, 0.5, true]; blinkStrike = ['attack', 15, 10, 'range', 0, true, 50, false, 0, 0, 'Blink Strike', 1.5, false, true, 0, 0, true, 0.5, true]; steadyShot = ['attack', 3, 1, 'range', 25, true, 0, false, 0, 0, 'Steady Shot', 1.5, true, false, 0, 0, false, 0.5, false]; sylvanTouch = ['heal', 5, 1, 'range', 0, false, 375, false, 0, 0, 'Sylvan Touch', 1, false, true, 0, 5, false, 0.5, true]; naturesGrasp = ['attack', 3, 0, 'range', 25, true, 250, false, 0, 0, 'Nature\'s Grasp', 0, false, true, 0, 0, false, 0.5, true]; stalkersFury = ['buff', 0, 0, 'range', 0, false, 4, false, 750, 0, 'Stalker\'s Fury', 0, false, true, 0, 0, false, 0.5, true]; explosiveShot = ['attack', 7, 10, 'range', 38, true, 0, true, 75, 0, 'Explosive Shot', 1.5, true, false, 150, 0, false, 0.5, false]; shadowShot = ['attack', 10, 9, 'range', 38, true, 0, false, 250, 0, 'Shadow Shot', 1.5, true, false, 150, 0, false, 0.5, false]; scorpionBite = ['attack', 1, 2, 'range', 0, true, 375, false, 0, 0, 'Scorpion Bite', 0.75, false, true, 0, 10, false, 0.5, true]; scorch = ['attack', 3, 6, 'range', 38, true, 375, false, 0, 0, 'Scorch', 2, false, true, 0, 2, false, 1.25, true]; dazzle = ['attack', 3, 0, 'range', 25, true, 250, false, 125, 0, 'Dazzle', 0, false, true, 0, 0, false, 0.5, true]; recall = ['misc', 10, 0, 'range', 125, false, 0, false, 0, 0, 'Recall', 0, false, true, 0, 0, false, 0.5, false]; refresh = ['heal', 4, 10, 'range', 45, false, 0, false, 0, 0, 'Refresh', 1.25, false, true, 0, 0, false, 1.25, false]; blinkStep = ['misc', 3, 0, 'range', 0, false, 0, false, 125, 0, 'Blink Step', 0, false, true, 0, 0, false, 0.5, false]; energyNova = ['attack', 6, 9, 'range', 0, false, 0, true, 75, 0, 'Energy Nova', 1.5, false, true, 150, 0, false, 2.5, false]; dispell = ['misc', 4, 0, 'range', 0, false, 0, false, 0, 0, 'Dispell', 0, false, true, 0, 0, false, 0.5, false]; siphonEnergy = ['attack', 1, 2, 'range', 50, true, 0, false, 75, 0, 'Siphon Energy', 2, false, true, 0, 0, false, 0.5, false]; arcanePulse = ['attack', 20, 9, 'range', 38, true, 50, true, 125, 0, 'Arcane Pulse', 0.5, true, true, 150, 0, false, 3, false]; killingSpree = ['buff', 0, 0, null, 0, false, 250, false, 0, 0, null, 0, false, true, 0, 0, false, 0.5, false]; soulLink = ['buff', 0, 0, null, 0, false, 125, false, 0, 0, null, 0, false, true, 0, 0, false, 0.5, false]; mongoose = ['buff', 0, 0, null, 0, false, 125, false, 0, 0, null, 0, false, true, 0, 0, false, 0.5, false]; maliciousIntent = ['buff', 0, 0, null, 0, false, 125, false, 0, 0, null, 0, false, true, 0, 0, false, 0.5, false]; autoAttack = ['attack', 0, 0, 'misc', 0, true, 0, false, 0, 0, 'Auto Attack', 0, true, true, 0, 0, false, 0, false]; abilityCD = ['bash', 'whirlwind', 'incapacitate', 'bladeFlurry', 'stalkersFury', 'explosiveShot', 'shadowShot', 'dazzle', 'blinkStep', 'energyNova', 'siphonEnergy', 'arcanePulse']; riddles = [0, 0, 0]; enemyArray = []; respawnArray = []; graySkeleton = ['skeleton', 'Gray Skeleton', 2, 30, 3, 30, 1, 1, 1, 1, 1, 30, [['atk1', 4, 'bashHit', false, false]], null]; banditArcher = ['humanEnemy', 'Bandit Archer', 3, 45, 3, 600, 6, 6, 6, 6, 6, 40, [['atk3', 5, 'steadyShotHit', false, false]], null]; banditSoldier = ['humanEnemy', 'Bandit Soldier', 4, 60, 4, 30, 5, 5, 5, 5, 5, 30, [['atk2', 8, 'backstabHit', false, false]], null]; boss1 = ['skeleton', 'Bloodbones', 6, 250, 3, 30, 2, 2, 2, 2, 2, 30, [['atk1', 11, 'bashHit', false, false], ['atk2', 5, 'backstabHit', true, false]], 'table1e']; dryBones = ['skeleton', 'Dry Bones', 7, 75, 3, 30, 3, 3, 3, 3, 3, 30, [['atk1', 13, 'bashHit', false, false]], null]; shadowVoid = ['void', 'Shadow Void', 9, 100, 4, 30, 1, 1, 1, 1, 1, 30, [['atk1', 17, 'shadowStrikeHit', false, false]], null]; gateSorceror = ['humanEnemy', 'Gate Sorceror', 11, 230, 3, 400, 38, 59, 8, 8, 53, 45, [['atk4', 28, 'shadowShotHit', false, true]], 'table4c']; skeletonGuard = ['skeleton', 'Skeleton Guard', 11, 150, 3, 30, 5, 5, 5, 5, 5, 30, [['atk1', 20, 'bashHit', false, false]], null]; boss2 = ['brute', 'General Medina', 13, 800, 4.5, 30, 1, 1, 1, 1, 1, 30, [['atk1', 45, 'steadyShotHit', false, false], ['atk2', 50, 'siphonEnergyHit', false, true]], 'table4e']; emberVoid = ['void', 'Ember Void', 13, 300, 4, 30, 2, 2, 2, 2, 2, 26, [['atk1', 20, 'bashHit', false, false]], null]; banditLooter = ['humanEnemy', 'Bandit Looter', 15, 360, 3, 30, 4, 4, 4, 4, 4, 30, [['atk5', 21, 'backstabHit', false, false]], null]; banditWizard = ['humanEnemy', 'Bandit Wizard', 15, 320, 3, 400, 39, 60, 4, 2, 7, 30, [['atk4', 21, 'steadyShotHit', false, false]], null]; banditCaptain1 = ['humanEnemy', 'Captain Wu', 18, 750, 4, 30, 40, 61, 4, 8, 57, 25, [['atk5', 25, 'backstabHit', false, false], ['atk2', 20, 'siphonEnergyHit', false, true]], null]; banditCaptain2 = ['humanEnemy', 'Captain Fu', 18, 750, 3, 600, 41, 62, 6, 1, 58, 40, [['atk3', 30, 'steadyShotHit', false, false]], null]; boneGuard = ['skeleton', 'Bone Guard', 17, 530, 3, 30, 4, 4, 4, 4, 4, 30, [['atk1', 28, 'bashHit', false, false]], null]; lasherVoid = ['void', 'Lasher Void', 19, 460, 4.5, 30, 3, 3, 3, 3, 3, 25, [['atk1', 25, 'backstabHit', false, false]], null]; mindController = ['humanEnemy', 'Mind Reaver', 21, 650, 3, 400, 42, 63, 8, 8, 53, 60, [['atk4', 50, 'bashHit', false, true]], null]; gateSorceror2 = ['humanEnemy', 'Gate Sorceror', 22, 770, 3, 400, 38, 59, 8, 8, 53, 45, [['atk4', 52, 'shadowShotHit', false, true]], null]; boss3 = ['brute', 'General Grokus', 26, 1800, 5, 30, 2, 2, 2, 2, 2, 36, [['atk1', 80, 'steadyShotHit', false, false], ['atk2', 80, 'siphonEnergyHit', false, true]], 'table8e']; shadowBones = ['skeleton', 'Shadow Bones', 25, 900, 3, 30, 6, 2, 2, 2, 2, 30, [['atk1', 40, 'bashHit', false, false]], null]; nightmareVoid = ['void', 'Nightmare Void', 28, 950, 5, 30, 4, 4, 4, 4, 4, 25, [['atk1', 45, 'shadowShotHit', false, true]], null]; risenSoldier = ['humanEnemy', 'Risen Soldier', 31, 1000, 4, 30, 43, 16, 9, 4, 57, 30, [['atk1', 65, 'shadowShotHit', false, false]], null]; shadowStalker = ['humanEnemy', 'Shadow Stalker', 33, 1050, 5, 30, 44, 12, 3, 8, 1, 30, [['atk1', 55, 'shadowShotHit', false, false], ['atk2', 45, 'backstabHit', false, true]], null]; boss4 = ['brute', 'General Tarsis', 38, 4000, 5, 30, 3, 3, 3, 3, 3, 30, [['atk1', 200, 'bossHit', false, false], ['atk2', 200, 'shadowStrikeShit', false, true]], 'boss4Loot']; twilightVoid = ['void', 'Plague Void', 36, 1100, 4, 30, 5, 5, 5, 5, 5, 25, [['atk1', 60, 'shadowShotHit', false, true]], null]; flameWalker = ['skeleton', 'Blight Skeleton', 38, 1150, 3, 30, 7, 7, 7, 7, 7, 30, [['atk1', 65, 'bashHit', false, false], ['atk2', 55, 'bossHit', false, true]], null]; boss5 = ['brute', 'The Shadow Lord', 40, 6000, 5, 30, 4, 4, 4, 4, 4, 30, [['atk1', 350, 'bossHit', false, false], ['atk2', 350, 'shadowStrikeShit', false, true]], null]; deathGate1 = ['deathGate', 'Death Gate', 5, 400, 0, [false, false, false], ['graySkeleton']]; deathGate2 = ['deathGate', 'Death Gate', 8, 750, 0, [false, false, false], ['shadowVoid']]; deathGate3 = ['deathGate', 'Death Gate', 19, 1800, 0, [false, false, false], ['boneGuard']]; deathGate4 = ['deathGate', 'Death Gate', 30, 3500, 0, [false, false, false], ['shadowBones']]; deathGate5 = ['deathGate', 'The Shadow Gate', 40, 5000, 0, [false, false, false], ['twilightVoid', 'flameWalker']]; mainStoryline = [false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false]; questRewards = [false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false]; altStoryline = [false, false, false, false, false, false, false, false, false]; bashT = ['Bash', 'ability', 0, 0, 0, 1, 'bash', null, null]; fireFistsT = ['Fire Fists', 'ability', 0, 0, 0, 1, 'fireFists', null, null]; terrifyingShoutT = ['Terrifying Shout', 'ability', 0, 5, 0, 3, 'terrifyingShout', [0, 1.1, 1.15, 1.2], null]; titanSwingT = ['Titan Swing', 'ability', 0, 5, 0, 1, 'titanSwing', null, null]; whirlwindT = ['Whirlwind', 'ability', 0, 10, 0, 1, 'whirlwind', null, null]; battleAuraT = ['Battle Aura', 'aura', 0, 15, 0, 1, 'battleAura', [0, 0.15], null]; fortifyT = ['Fortify', 'onLevel', 0, 0, 0, 3, 'armor', [0, 1.2, 1.35, 1.5], null]; recoveryT = ['Recovery', 'passive', 0, 0, 0, 5, 'blah', [0, 0.1, 0.2, 0.3, 0.4, 0.5], null]; warriorsSpiritT = ['Warrior\'s Spirit', 'maxStat', 0, 0, 0, 0, 'str', null, null]; paralyzingSwingT = ['Paralyzing Swing', 'onAtk', 0, 5, 0, 3, null, [0, 4, 7, 10], 50]; aftermathT = ['Aftermath', 'bOnAtk', 0, 10, 0, 3, 'dot', [0, 0.15, 0.3, 0.45], 152]; lifeStealT = ['Life Steal', 'onAtk', 0, 10, 0, 3, null, [0, 0.01, 0.02, 0.04], null]; shadowStrikeT = ['Shadow Strike', 'ability', 1, 0, 0, 1, 'shadowStrike', null, null]; backstabT = ['Backstab', 'ability', 1, 5, 0, 1, 'backstab', null, null]; stealthT = ['Stealth', 'ability', 1, 5, 0, 1, 'stealth', null, null]; incapacitateT = ['Incapacitate', 'ability', 1, 5, 0, 3, 'incapacitate', [0, 125, 250, 375], null]; bladeFlurryT = ['Blade Flurry', 'ability', 1, 10, 0, 3, 'bladeFlurry', [0, 125, 250, 375], null]; blinkStrikeT = ['Blink Strike', 'ability', 1, 15, 0, 1, 'blinkStrike', null, null]; anticipationT = ['Anticipation', 'passive', 1, 0, 0, 3, 'blah', [0, 2, 2, 2], null]; deadEyeT = ['Dead Eye', 'passive', 1, 0, 0, 5, 'blah', [0, 1, 1, 1, 1, 1], null]; stalkersSpiritT = ['Stalker\'s Spirit', 'maxStat', 1, 0, 0, 0, 'baseDamage', null, null]; maliceT = ['Malice', 'onAtk', 1, 10, 0, 3, 'crit', [0, 10, 20, 30], null]; killingSpreeT = ['Killing Spree', 'bOnKill', 1, 0, 0, 2, 'crit', [0, 10, 15], 500]; soulLinkT = ['Soul Link', 'bOnKill', 1, 10, 0, 1, 'healthRegen', [0, 2], 125]; steadyShotT = ['Steady Shot', 'ability', 2, 0, 0, 1, 'steadyShot', null, null]; sylvanTouchT = ['Sylvan Touch', 'ability', 2, 0, 0, 1, 'sylvanTouch', null, null]; naturesGraspT = ['Nature\'s Grasp', 'ability', 2, 0, 0, 1, 'naturesGrasp', null, null]; stalkersFuryT = ['Stalker\'s Fury', 'ability', 2, 5, 0, 3, 'stalkersFury', [0, 100, 200, 300], null]; explosiveShotT = ['Explosive Shot', 'ability', 2, 10, 0, 1, 'explosiveShot', null, null]; shadowShotT = ['ShadowShot', 'ability', 2, 15, 0, 1, 'shadowShot', null, null]; scorpionBiteT = ['Scorpion Bite', 'ability', 2, 5, 0, 1, 'scorpionBite', null, null]; blessingOfTheWindT = ['Blessing of the Wind', 'aura', 2, 10, 0, 1, null, [0, 0.1], null]; spiritOfTheGroveT = ['Spirit of the Grove', 'maxStat', 2, 0, 0, 0, 'agi', null, null]; huntersPursuitT = ['Hunter\'s Pursuit', 'misc', 2, 0, 0, 5, null, [0, 0.03, 0.06, 0.09, 0.12, 0.15], null]; mongooseT = ['Mongoose', 'bOnDef', 2, 5, 0, 5, null, [0, 2, 4, 6, 8, 10], 125]; naturesRecoveryT = ['Nature\'s Recovery', 'onAtk', 2, 10, 0, 5, null, [0, 0.08, 0.16, 0.24, 0.32, 0.4], null]; scorchT = ['Scorch', 'ability', 3, 0, 0, 1, 'scorch', null, null]; dazzleT = ['Dazzle', 'ability', 3, 0, 0, 1, 'dazzle', null, null]; recallT = ['Recall', 'ability', 3, 0, 0, 1, 'recall', null, null]; refreshT = ['Refresh', 'ability', 3, 5, 0, 1, 'refresh', null, null]; blinkStepT = ['Blinkstep', 'ability', 3, 5, 0, 3, 'blinkStep', [0, 10, 15, 20], null]; energyNovaT = ['Energy Nova', 'ability', 3, 5, 0, 1, 'energyNova', null, null]; dispellT = ['Dispell', 'passive', 3, 10, 0, 3, 'dispell', [0, 0.05, 0.1, 0.15], null]; siphonEnergyT = ['Siphon Energy', 'ability', 3, 10, 0, 5, 'siphonEnergy', [0, 1, 1.25, 1.5, 1.75, 2], null]; arcanePulseT = ['Arcane Pulse', 'ability', 3, 15, 0, 1, 'arcanePulse', null, null]; wizardsSpiritT = ['Wizard\'s Spirit', 'maxStat', 3, 0, 0, 0, 'foc', null, null]; focusedMindT = ['Focused Mind', 'passive', 3, 0, 0, 5, 'blah', [0, 0.15, 0.3, 0.45, 0.6, 0.75], null]; maliciousIntentT = ['Malicious Intent', 'bOnAtk', 3, 10, 0, 3, 'damageDelt', [0, 0.1, 0.2, 0.3], 125]; pointsPerTree = [0, 0, 0, 0]; treeNameByNum = ['gladiatorTree', 'assassinTree', 'warderTree', 'arcaneTree']; list0 = ['bashT', 'fireFistsT', 'terrifyingShoutT', 'titanSwingT', 'whirlwindT', 'battleAuraT', 'fortifyT', 'recoveryT', 'warriorsSpiritT', 'paralyzingSwingT', 'aftermathT', 'lifeStealT']; list1 = ['shadowStrikeT', 'backstabT', 'stealthT', 'incapacitateT', 'bladeFlurryT', 'blinkStrikeT', 'anticipationT', 'deadEyeT', 'stalkersSpiritT', 'maliceT', 'killingSpreeT', 'soulLinkT']; list2 = ['steadyShotT', 'sylvanTouchT', 'naturesGraspT', 'stalkersFuryT', 'explosiveShotT', 'shadowShotT', 'scorpionBiteT', 'blessingOfTheWindT', 'spiritOfTheGroveT', 'huntersPursuitT', 'mongooseT', 'naturesRecoveryT']; list3 = ['scorchT', 'dazzleT', 'recallT', 'refreshT', 'blinkStepT', 'energyNovaT', 'dispellT', 'siphonEnergyT', 'arcanePulseT', 'wizardsSpiritT', 'focusedMindT', 'maliciousIntentT']; setTalentText(); equipmentList = [null, null, null, null, null, null, null]; equipmentInst = [null, null, null, null, null, null, null]; abilityList = ['autoAttackT']; hotBarList = ['autoAttack', null, null, null, null, null, null, null, null, null]; inventory = [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null]; inventoryInst = [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null]; buffList = [[null, null, null], [null, null, null], [null, null, null], [null, null, null], [null, null, null], [null, null, null], [null, null, null], [null, null, null], [null, null, null], [null, null, null]]; null; null; debuffList = [[null, null, null], [null, null, null], [null, null, null], [null, null, null], [null, null, null], [null, null, null], [null, null, null][null], [null, null, null], [null, null, null]]; activeBuffs = 0; activeDebuffs = 0; expSplits = [0, 8, 11, 15, 22, 28, 34, 40, 48, 57, 71, 89, 100, 105, 110, 120, 120, 120, 120, 130, 140, 150, 160, 170, 180, 190, 200, 210, 220, 240, 260, 280, 310, 350, 393, 438, 485, 535, 588, 643, 700, 760, 823, 888, 955, 1025, 1098, 1373, 1650, 2030, 2413, 2498, 1585, 1675, 1768, 1863, 1960, 2060, 2163, 2268, 2375, 2485, 2598, 2713, 2830, 2950, 3073, 3198, 3325, 3455, 3588, 3723, 3860, 4000, 4143, 4288, 4435, 4585, 4738, 4893, 5050, 5210, 5373, 5538, 5705, 5875, 6048, 6223, 6400, 6580, 6763, 6948, 7135, 7325, 7518, 7713, 7910, 8110, 8313, 8518, 8725, 8935, 9148, 9363, 9580, 9800, 10023, 10248, 10475, 10705, 10938, 11173, 11410, 11650, 11893, 12138, 12385, 12635]; curExp = 0; nextLevel = expSplits[1]; sellTiles = ['1_2', '5_2', '4_7', '5_6', '5_7', '4_2', '3_7']; tutorialArray = [null, null, false, false, false, false, false, false, false, false, false, false, false, false, false]; _root.hero._rotation = -180; level = 1; currentTalentPoints = 0; healthPots = 5; energyPots = 5; isMoving = false; isCasting = false; isStunned = false; isRooted = false; isDead = false; isMoving = false; isAttacking = false; isStealth = false; inCombat = false; savedKey = null; tutorialsOn = true; str = 5; snareTimer = 0; stunTimer = 0; agi = 5; foc = 5; baseDodge = 5; dodge; baseAttackSpeed = 30; baseCrit = 3; baseArmor = 5; baseHealthRegen = 1; baseEnergyRegen = 1; baseMoveSpeed = 4.5; baseDamage = 1; baseHealth = 9; baseEnergy = 10; gold = 10; mit = 5; armor; crit; attackSpeed; healthRegen; energyRegen; moveSpeed; maxHealth; maxEnergy; curHealth; curEnergy; meleeRange = 45; weaponDamage = 0; weaponDelay = 1000; mainTimer = 1; autoAttackTimer = 0; globalCD = 0; savedAbility = null; target = null; savedTarget = null; companion = null; setAllAttributes(); curHealth = maxHealth; curEnergy = maxEnergy; weaponType = 'noWeapon'; mouseItemInfo = []; if (loadGame == false) { row = 1; col = 0; currentTile = row + '_' + col; _root.ground.gotoAndStop(currentTile); _root.mapWindow.heroMarker._x = 150 + col * 35; _root.mapWindow.heroMarker._y = 135 + row * 35; } transitionInterval; combatStateTimer = 0; changeExp(0); inTransition = false; sortedEnemies = []; targetTimer = 0; targetPos = 0; enemiesKilled = 0; highestHit = 0; deaths = 0; talentResets = 0; lowerAlpha(); clearTarget(); setTileArrays(); setArmorAndWeapons(); setInterval(healthTick, 200); setInterval(energyTick, 200); var i = 0; while (i < 11) { _root.hotBar['slot' + i].useHandCursor = false; _root.hotBar['slot' + i].gotoAndStop(hotBarList[i] + 'T'); _root.hotBar['slot' + i].cdCover._visible = false; _root.hotBar['slot' + i].cdTimer.text = ''; _root.hotBar['slot' + i].tabEnabled = false; _root.charBar['slot' + i].useHandCursor = false; _root.charBar['slot' + i].tabEnabled = false; _root.charBar['bar' + i].tabEnabled = false; _root.targetMenu['slot' + i].useHandCursor = false; _root.targetMenu['slot' + i].tabEnabled = false; ++i; } var i = 0; while (i < abilityList.length) { _root.abilities['slot' + i].gotoAndStop(abilityList[i]); _root.abilities['slot' + i].abilityName.gotoAndStop(_root.abilities['slot' + i]._currentframe); ++i; } if (loadGame) { loadSavedGame(); } else { playLoop('mainTheme'); } showTutorial(2); if (sex == 'f') { hero._width *= 0.95; hero._height *= 0.95; } setNewArea(); _root.attachMovie('fadeToWhite', 'fadeToWhite', fadeToBlackDepth); if (loadGame == false && row == 1 && col == 0) { _root.ground.npc1._visible = false; _root.attachMovie('humanEnemy', 'startGuy', enemyDepth); _root.startGuy.inside.gotoAndStop('run'); _root.startGuy.mouseFX.tabEnabled = false; _root.startGuy.inside.attack.head.gotoAndStop(32); _root.startGuy.inside.attack.legs.gotoAndStop(4); _root.startGuy.inside.attack.chest.gotoAndStop(56); _root.startGuy._x = 675; _root.startGuy._y = 240; getEnemyDepth(); } _root.onEnterFrame = function () { if (_root.tutorialWindow._currentframe == 1 && isDead == false) { moveEnemy(); moveHero(); dragItem(); timers(); } }; _root.onMouseDown = function () { if (iconOnMouse == true && mouseItemInfo[1] == 'ability' && _root.hotBar.hitTest(_xmouse, _ymouse, true)) { playSound('click'); var v5 = Math.floor(_xmouse / 40); _root.hotBar['slot' + v5].cdCover._visible = false; _root.hotBar['slot' + v5].cdTimer.text = ''; var v13 = mouseItemInfo[0]; var v12 = false; if (hotBarList[v5] != null) { var v15 = hotBarList[v5] + 'T'; v12 = true; } hotBarList[v5] = _root[v13][6]; if (mouseItemInfo[0] == 'autoAttackT') { hotBarList[v5] = 'autoAttack'; } _root.hotBar['slot' + v5].gotoAndStop(mouseItemInfo[0]); if (v12) { mouseItemInfo[0] = v15; _root.mouseItem.gotoAndStop(mouseItemInfo[0]); _root.mouseItem.aaIcon.gotoAndStop(weaponType); } else { clearMouseIcon(); } var v2 = 0; while (v2 < hotBarList.length) { if (hotBarList[v2] == 'autoAttack') { _root.hotBar['slot' + v2].aaIcon.gotoAndStop(weaponType); } ++v2; } } else { if (iconOnMouse == false && _root.hotBar.hitTest(_xmouse, _ymouse, true)) { playSound('click'); allowDrag = true; dragX = _xmouse; dragY = _ymouse; } else { if (_root.charMenu._visible) { if (itemOnMouse) { var v4 = null; var v7 = true; var v2 = 0; while (v2 < 21) { var v5 = 'slot' + v2; if (_root.charMenu[v5].hitTest(_xmouse, _ymouse, true)) { v4 = v2; if (inventory[v2] != null) { v7 = false; } break; } ++v2; } if (v4 == null) { if (_root.charMenu.dropSlot.hitTest(_xmouse, _ymouse, true)) { var v9; if (_root[_root.charMenu[equipOnMouse].gearName][3] == 'comm') { v9 = 1; } else { if (_root[_root.charMenu[equipOnMouse].gearName][3] == 'rare') { v9 = 2; } else { v9 = 3; } } dropGear(_root.hero._x, _root.hero._y, _root.charMenu[equipOnMouse].gearName, v9); var v14 = mouseItemInfo[0]; _root.charMenu[v14].removeMovieClip(); mouseItemInfo[0] = null; mouseItemInfo[1] = null; itemOnMouse = false; equipOnMouse = null; playSound('click'); } else { if (_root.charMenu.sellSlot.hitTest(_xmouse, _ymouse, true)) { var v8 = false; var v3 = 0; while (v3 < sellTiles.length) { if (currentTile == sellTiles[v3]) { v8 = true; break; } ++v3; } if (v8) { var v10 = _root.charMenu[equipOnMouse].gearName; if (_root[v10][14] == 10) { playSound('error'); showMessage('Cannot Sell Quest Items'); } else { playSound('sellItem'); _root.charMenu[equipOnMouse].removeMovieClip(); gold += getSellPrice(v10); _root.charMenu.goldTxt.text = 'x' + gold; _root.chatWindow.goldTxt.text = gold; mouseItemInfo[0] = null; mouseItemInfo[1] = null; itemOnMouse = false; equipOnMouse = null; } } else { playSound('error'); showMessage('Must Be Near Merchants'); } } } } if (v4 != null) { playSound('equip'); if (v7) { inventory[v4] = _root.charMenu[equipOnMouse].gearName; inventoryInst[v4] = mouseItemInfo[0]; mouseItemInfo[0] = null; mouseItemInfo[1] = null; _root.charMenu[equipOnMouse]._x = _root.charMenu['slot' + v4]._x; _root.charMenu[equipOnMouse]._y = _root.charMenu['slot' + v4]._y; itemOnMouse = false; equipOnMouse = null; } else { _root.charMenu[equipOnMouse]._x = _root.charMenu['slot' + v4]._x; _root.charMenu[equipOnMouse]._y = _root.charMenu['slot' + v4]._y; var v6 = inventory[v4]; var v11 = inventoryInst[v4]; inventory[v4] = _root.charMenu[equipOnMouse].gearName; inventoryInst[v4] = mouseItemInfo[0]; mouseItemInfo[0] = v11; mouseItemInfo[1] = 'gear'; equipOnMouse = v11; removeItemText(); } } else { equipSlot = _root[_root.charMenu[equipOnMouse].gearName][14]; if (_root.charMenu['equip' + equipSlot].hitTest(_xmouse, _ymouse, true)) { if (equipmentList[equipSlot] != null) { _root.charMenu[equipOnMouse]._x = _root.charMenu['equip' + equipSlot]._x; _root.charMenu[equipOnMouse]._y = _root.charMenu['equip' + equipSlot]._y; var v6 = equipmentList[equipSlot]; var v11 = equipmentInst[equipSlot]; equipmentList[equipSlot] = _root.charMenu[equipOnMouse].gearName; equipmentInst[equipSlot] = mouseItemInfo[0]; mouseItemInfo[0] = v11; mouseItemInfo[1] = 'gear'; equipOnMouse = v11; removeItemText(); unequipItem(v6); equipItem(equipmentList[equipSlot]); playSound('equip'); } else { equipmentList[equipSlot] = _root.charMenu[equipOnMouse].gearName; equipmentInst[equipSlot] = mouseItemInfo[0]; mouseItemInfo[0] = null; mouseItemInfo[1] = null; _root.charMenu[equipOnMouse]._x = _root.charMenu['equip' + equipSlot]._x; _root.charMenu[equipOnMouse]._y = _root.charMenu['equip' + equipSlot]._y; itemOnMouse = false; equipOnMouse = null; equipItem(equipmentList[equipSlot]); playSound('equip'); } } } } else { var v2 = 0; while (v2 < 21) { var v5 = 'slot' + v2; if (_root.charMenu[v5].hitTest(_xmouse, _ymouse, true) && inventory[v2] != null) { playSound('unEquip'); itemOnMouse = true; equipOnMouse = inventoryInst[v2]; mouseItemInfo[0] = inventoryInst[v2]; mouseItemInfo[1] = 'gear'; inventory[v2] = null; inventoryInst[v2] = null; removeItemText(); break; } ++v2; } if (itemOnMouse == false) { v2 = 0; while (v2 < 7) { v5 = 'equip' + v2; if (_root.charMenu[v5].hitTest(_xmouse, _ymouse, true) && equipmentList[v2] != null) { itemOnMouse = true; var v6 = equipmentList[v2]; equipOnMouse = equipmentInst[v2]; mouseItemInfo[0] = equipmentInst[v2]; mouseItemInfo[1] = 'gear'; equipmentList[v2] = null; equipmentInst[v2] = null; unequipItem(v6); playSound('unEquip'); removeItemText(); break; } ++v2; } } } } else { clearMouseIcon(); } } } }; _root.onMouseUp = function () { allowDrag = false; if (iconOnMouse == false && _root.hotBar.hitTest(_xmouse, _ymouse, true) && _root.abilities._visible == false) { var v2 = Math.floor(_xmouse / 40); useAbility(hotBarList[v2]); } }; var keyListener = new Object(); Key.addListener(keyListener); keyListener.onKeyDown = function () { var v1 = Key.getCode(); if (savedKey != v1) { savedKey = v1; if (v1 == 32 || v1 == 9) { spaceTarget(); } else { if (v1 == 66) { playSound('click'); toggleAbilities(); } else { if (v1 == 67) { playSound('click'); toggleInventory(); } else { if (v1 == 77) { playSound('click'); toggleMapWindow(); } else { if (v1 == 71) { playSound('click'); toggleOptions(); } else { if (v1 == 84) { playSound('click'); toggleTalentWindow(); } else { if (v1 == 49 || v1 == 97) { useAbility(hotBarList[0]); } else { if (v1 == 50 || v1 == 98) { useAbility(hotBarList[1]); } else { if (v1 == 51 || v1 == 99) { useAbility(hotBarList[2]); } else { if (v1 == 52 || v1 == 100) { useAbility(hotBarList[3]); } else { if (v1 == 53 || v1 == 101) { useAbility(hotBarList[4]); } else { if (v1 == 54 || v1 == 102) { useAbility(hotBarList[5]); } else { if (v1 == 55 || v1 == 103) { useAbility(hotBarList[6]); } else { if (v1 == 56 || v1 == 104) { useAbility(hotBarList[7]); } else { if (v1 == 57 || v1 == 105) { useAbility(hotBarList[8]); } else { if (v1 == 48 || v1 == 96) { useAbility(hotBarList[9]); } else { if (v1 == 81) { usePotion('health'); } else { if (v1 == 69) { usePotion('energy'); } } } } } } } } } } } } } } } } } } } }; stop(); } movieClip 1184 { } movieClip 1186 { } movieClip 1188 { } movieClip 1190 { } movieClip 1193 { } movieClip 1201 { } movieClip 1203 { } movieClip 1205 { } movieClip 1208 { } movieClip 1210 { } movieClip 1213 { } movieClip 1215 { } movieClip 1217 { } movieClip 1224 { frame 1 { stop(); } } movieClip 1225 { } movieClip 1229 { } movieClip 1231 { } movieClip 1233 { } movieClip 1235 { } movieClip 1237 { } movieClip 1240 { } movieClip 1242 { } movieClip 1246 { } movieClip 1247 { frame 1 { stop(); } } movieClip 1251 { } movieClip 1255 { } movieClip 1257 { } movieClip 1259 { } movieClip 1261 { } movieClip 1263 { } movieClip 1265 { } movieClip 1266 { } movieClip 1271 { } movieClip 1273 { } movieClip 1284 { } movieClip 1292 { } movieClip 1304 { } movieClip 1307 { } movieClip 1315 { } movieClip 1317 { } movieClip 1319 { } movieClip 1321 { } movieClip 1324 { } movieClip 1336 { } movieClip 1343 { } movieClip 1344 { } movieClip 1346 { } movieClip 1350 { } movieClip 1356 { } movieClip 1359 { } movieClip 1360 { } movieClip 1381 { } movieClip 1382 { } movieClip 1384 { } movieClip 1386 { } movieClip 1388 { } movieClip 1399 { } movieClip 1400 { frame 1 { stop(); } instance npc1 of movieClip 1225 { onClipEvent (load) { this.type = 'talk'; this.npcType.gotoAndStop(this.type); this.head.gotoAndStop(33); this.chest.gotoAndStop(7); this.legs.gotoAndStop(4); } onClipEvent (enterFrame) { if (this.hitTest(_root.hero.inside)) { if (_root.riddles[1] == 0) { _root.chatWindow.gotoAndStop(26); } else { if (_root.riddles[1] == 1) { _root.chatWindow.gotoAndStop(27); } else { if (_root.riddles[1] == 2) { _root.chatWindow.gotoAndStop(28); } } } } else { _root.chatWindow.gotoAndStop(1); } } } instance of movieClip 1229 { onClipEvent (enterFrame) { if (_root.mainStoryline[20] && _root.mainStoryline[21] == false && _root.questRewards[16] == false) { if (_root.hero.inside.hitTest(this)) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.questRewards[16] = true; _root.addItemToInventory(null, 'blueFlower'); _root.showMessage('Blue Flower Picked 1/1'); } } } } } frame 8 { function setAllToRed() { var v2 = 1; while (v2 < 11) { _root.ground['stop' + v2].gotoAndStop(3); ++v2; } _root.playSound('riddleWrong'); _root.ground.npc1.gotoAndStop(3); _root.ground.npc2.gotoAndStop(3); puzzleActive = false; } if (_root.questRewards[15] && _root.mainStoryline[20] == false) { var puzzleActive = true; } else { var puzzleActive = false; } if (_root.mainStoryline[20]) { npc5._visible = true; } else { npc5._visible = false; } if (_root.mainStoryline[29]) { npc5._x = -200; if (_root.mainStoryline[30] == false) { npc7._x = 325; } } var puzzleOrder = []; } instance npc6 of movieClip 1246 { onClipEvent (enterFrame) { if (this.hitTest(_root.hero.inside) && _root.questRewards[15] && _root.mainStoryline[20] == false) { _root.chatWindow.gotoAndStop(49); } else { if (!_root.hero.inside.hitTest(_root.ground.npc5) && !_root.hero.inside.hitTest(_root.ground.npc7)) { _root.chatWindow.gotoAndStop(1); } } } } instance npc5 of movieClip 1225 { onClipEvent (load) { this.type = 'talk'; this.head.gotoAndStop(42); this.chest.gotoAndStop(64); this.npcType.gotoAndStop(this.type); } onClipEvent (enterFrame) { if (this.hitTest(_root.hero.inside) && _root.questRewards[16]) { _root.chatWindow.gotoAndStop(100); if (_root.questItemInInv('blueFlower')) { _root.mainStoryline[21] = true; _root.dropGear(this._x, this._y, 'shadowslayersGrips', 3); _root.playSound('gameEvent'); } } else { if (this.hitTest(_root.hero.inside) && _root.mainStoryline[20]) { _root.chatWindow.gotoAndStop(50); } else { if (!_root.hero.inside.hitTest(_root.ground.npc6) && !_root.hero.inside.hitTest(_root.ground.npc7)) { _root.chatWindow.gotoAndStop(1); } } } } } instance npc2 of movieClip 1247 { onClipEvent (load) { this.hit = false; } onClipEvent (enterFrame) { if (_root.ground.puzzleActive && this.hit == false) { if (this.hitTest(_root.hero.inside)) { if (_root.ground.puzzleOrder.length == 1) { _root.playSound('gameEvent'); _root.ground.puzzleOrder[1] = 12; this.hit = true; this.gotoAndStop(2); } else { _root.ground.setAllToRed(); } } } } } instance stop1 of movieClip 1247 { onClipEvent (enterFrame) { if (_root.ground.puzzleActive) { if (this.hitTest(_root.hero.inside)) { _root.ground.setAllToRed(); } } } } instance stop2 of movieClip 1247 { onClipEvent (enterFrame) { if (_root.ground.puzzleActive) { if (this.hitTest(_root.hero.inside)) { _root.ground.setAllToRed(); } } } } instance stop3 of movieClip 1247 { onClipEvent (enterFrame) { if (_root.ground.puzzleActive) { if (this.hitTest(_root.hero.inside)) { _root.ground.setAllToRed(); } } } } instance stop4 of movieClip 1247 { onClipEvent (enterFrame) { if (_root.ground.puzzleActive) { if (this.hitTest(_root.hero.inside)) { _root.ground.setAllToRed(); } } } } instance stop5 of movieClip 1247 { onClipEvent (load) { this.hit = false; } onClipEvent (enterFrame) { if (_root.ground.puzzleActive && this.hit == false) { if (this.hitTest(_root.hero.inside)) { if (_root.ground.puzzleOrder.length == 0) { _root.playSound('gameEvent'); _root.ground.puzzleOrder[0] = 5; this.hit = true; this.gotoAndStop(2); } else { _root.ground.setAllToRed(); } } } } } instance stop6 of movieClip 1247 { onClipEvent (enterFrame) { if (_root.ground.puzzleActive) { if (this.hitTest(_root.hero.inside)) { _root.ground.setAllToRed(); } } } } instance stop7 of movieClip 1247 { onClipEvent (enterFrame) { if (_root.ground.puzzleActive) { if (this.hitTest(_root.hero.inside)) { _root.ground.setAllToRed(); } } } } instance stop8 of movieClip 1247 { onClipEvent (enterFrame) { if (_root.ground.puzzleActive) { if (this.hitTest(_root.hero.inside)) { _root.ground.setAllToRed(); } } } } instance stop9 of movieClip 1247 { onClipEvent (load) { this.hit = false; } onClipEvent (enterFrame) { if (_root.ground.puzzleActive && this.hit == false) { if (this.hitTest(_root.hero.inside)) { if (_root.ground.puzzleOrder.length == 2) { this.hit = true; this.gotoAndStop(2); _root.mainStoryline[20] = true; _root.ground.puzzleActive = false; _root.ground.npc5._visible = true; _root.playSound('riddleCorrect'); } else { _root.ground.setAllToRed(); } } } } } instance stop10 of movieClip 1247 { onClipEvent (enterFrame) { if (_root.ground.puzzleActive) { if (this.hitTest(_root.hero.inside)) { _root.ground.setAllToRed(); } } } } instance npc1 of movieClip 1247 { onClipEvent (enterFrame) { if (_root.ground.puzzleActive) { if (this.hitTest(_root.hero.inside)) { _root.ground.setAllToRed(); } } } } instance npc7 of movieClip 1225 { onClipEvent (load) { this.type = 'talk'; this.head.gotoAndStop(35); this.chest.gotoAndStop(58); this.legs.gotoAndStop(4); this.npcType.gotoAndStop(this.type); } onClipEvent (enterFrame) { if (_root.mainStoryline[30] && this._alpha > 0) { this.npcType.gotoAndStop(1); this._alpha -= 0.5; if (this._alpha < 1) { this._x = -200; } } if (this.hitTest(_root.hero.inside) && _root.mainStoryline[30] == false) { _root.chatWindow.gotoAndStop(52); } else { if (!_root.hero.inside.hitTest(_root.ground.npc6) && !_root.hero.inside.hitTest(_root.ground.npc5)) { _root.chatWindow.gotoAndStop(1); } } } } frame 16 { if (_root.mainStoryline[0]) { npc1._x = -200; } } instance npc1 of movieClip 1225 { onClipEvent (load) { this.type = 'talk'; this.npcType.gotoAndStop(this.type); this.talkFrame = 2; this.head.gotoAndStop(32); this.chest.gotoAndStop(56); this.legs.gotoAndStop(4); } onClipEvent (enterFrame) { if (this.hitTest(_root.hero.inside)) { _root.chatWindow.gotoAndStop(this.talkFrame); if (_root.questRewards[0] == false) { _root.questRewards[0] = true; _root.playSound('gameEvent'); _root.dropGear(this._x, this._y, 'vinewoodBow', 1); } } else { _root.chatWindow.gotoAndStop(1); } } } instance fires of movieClip 1266 { onClipEvent (load) { if (_root.mainStoryline[0]) { this._visible = false; } } } instance npc1 of movieClip 1225 { onClipEvent (load) { this.type = 'talk'; this.head.gotoAndStop(33); this.chest.gotoAndStop(1); if (_root.mainStoryline[0]) { this.npcType.gotoAndStop(this.type); } } onClipEvent (enterFrame) { if (this.hitTest(_root.hero.inside)) { if (_root.mainStoryline[0]) { if (_root.altStoryline[0] && _root.tile0_0[0][5] && _root.tile0_0[1][5] && _root.tile0_0[2][5] && _root.tile2_3[0][5] && _root.tile2_3[1][5] && _root.tile2_3[2][5] && _root.tile2_3[3][5]) { _root.chatWindow.gotoAndStop(9); if (_root.questRewards[3] == false) { _root.questRewards[3] = true; _root.playSound('gameEvent'); _root.dropGear(this._x, this._y, _root.table1r[random(_root.table1r.length)], 2); _root.changeExp(7); } } else { if (_root.altStoryline[0] == false) { _root.altStoryline[0] = true; _root.tile2_3[0][5] = false; _root.tile2_3[1][5] = false; _root.tile2_3[2][5] = false; _root.tile2_3[3][5] = false; _root.tile0_0[0][5] = false; _root.tile0_0[1][5] = false; _root.tile0_0[2][5] = false; } _root.chatWindow.gotoAndStop(3); } } } else { _root.chatWindow.gotoAndStop(1); } } } instance fires of movieClip 1273 { onClipEvent (load) { if (_root.mainStoryline[0]) { this._visible = false; } } } instance npc1 of movieClip 1225 { onClipEvent (load) { this.type = 'inn'; this.talkFrame = 4; this.head.gotoAndStop(34); this.chest.gotoAndStop(38); if (_root.mainStoryline[0]) { this.npcType.gotoAndStop(this.type); } } onClipEvent (enterFrame) { if (this.hitTest(_root.hero.inside) && _root.mainStoryline[0]) { _root.chatWindow.gotoAndStop(this.talkFrame); } else { if (!_root.hero.inside.hitTest(_root.ground.npc2) && !_root.hero.inside.hitTest(_root.ground.npc3)) { _root.chatWindow.gotoAndStop(1); } } } } instance npc2 of movieClip 1225 { onClipEvent (load) { this.type = 'talk'; this.head.gotoAndStop(35); this.chest.gotoAndStop(57); if (_root.mainStoryline[0]) { this.npcType.gotoAndStop(this.type); } } onClipEvent (enterFrame) { if (this.hitTest(_root.hero.inside)) { if (_root.mainStoryline[2]) { _root.chatWindow.gotoAndStop(8); if (_root.questRewards[2] == false) { _root.questRewards[2] = true; _root.changeExp(20); _root.playSound('gameEvent'); _root.dropGear(this._x, this._y, _root.table1r[random(_root.table1r.length)], 2); } } else { if (_root.mainStoryline[1]) { _root.chatWindow.gotoAndStop(7); if (_root.questRewards[1] == false) { _root.questRewards[1] = true; _root.playSound('gameEvent'); _root.dropGear(this._x, this._y, _root.table1c[random(_root.table1c.length)], 1); _root.tile0_2[0][5] = false; _root.tile0_2[1][5] = false; _root.tile0_2[2][5] = false; } } else { if (_root.mainStoryline[0]) { _root.chatWindow.gotoAndStop(5); } } } } else { if (!_root.hero.inside.hitTest(_root.ground.npc1) && !_root.hero.inside.hitTest(_root.ground.npc3)) { _root.chatWindow.gotoAndStop(1); } } } } instance npc3 of movieClip 1225 { onClipEvent (load) { this.type = 'merchant'; this.talkFrame = 6; this.head.gotoAndStop(6); this.chest.gotoAndStop(9); if (_root.mainStoryline[0]) { this.npcType.gotoAndStop(this.type); } } onClipEvent (enterFrame) { if (this.hitTest(_root.hero.inside) && _root.mainStoryline[0]) { _root.chatWindow.gotoAndStop(this.talkFrame); } else { if (!_root.hero.inside.hitTest(_root.ground.npc1) && !_root.hero.inside.hitTest(_root.ground.npc2)) { _root.chatWindow.gotoAndStop(1); } } } } frame 33 { if (_root.mainStoryline[2]) { _root.ground.stop2._x = -200; _root.ground.stop3._x = -200; } } instance npc1 of movieClip 1225 { onClipEvent (load) { this.type = 'talk'; this.npcType.gotoAndStop(this.type); this.head.gotoAndStop(3); this.chest.gotoAndStop(35); this.legs.gotoAndStop(4); _root.ground.fires._visible = false; if (_root.mainStoryline[3]) { this._x = -200; } } onClipEvent (enterFrame) { if (this.hitTest(_root.hero.inside)) { _root.ground.fires._visible = true; _root.ground.stop1._x += 700; _root.ground.stop2._x += 700; _root.ground.stop3._x += 700; _root.ground.stop4._x += 700; this._x = -200; _root[_root.enemyArray[0]]._visible = true; _root[_root.enemyArray[0]].inside.aggroed = true; _root[_root.enemyArray[0]].inside.dead = false; _root[_root.enemyArray[1]]._visible = true; _root[_root.enemyArray[1]].inside.aggroed = true; _root[_root.enemyArray[1]].inside.dead = false; _root[_root.enemyArray[2]]._visible = true; _root[_root.enemyArray[2]].inside.aggroed = true; _root[_root.enemyArray[2]].inside.dead = false; _root[_root.enemyArray[3]]._visible = true; _root[_root.enemyArray[3]].inside.aggroed = true; _root[_root.enemyArray[3]].inside.dead = false; } if (_root.tile3_1[0][5] && _root.tile3_1[1][5] && _root.tile3_1[2][5] && _root.tile3_1[3][5] && _root.mainStoryline[3] == false) { _root.mainStoryline[3] = true; _root.ground.fires._visible = false; _root.ground.stop1._x -= 700; _root.ground.stop2._x -= 700; _root.ground.stop3._x -= 700; _root.ground.stop4._x -= 700; } } } frame 48 { if (_root.questRewards[4]) { npc1._x = -200; } } instance npc1 of movieClip 1225 { onClipEvent (load) { this.type = 'talk'; this.npcType.gotoAndStop(this.type); this.head.gotoAndStop(6); this.chest.gotoAndStop(9); this.legs.gotoAndStop(4); } onClipEvent (enterFrame) { if (this.hitTest(_root.hero.inside)) { if (_root.mainStoryline[3]) { _root.chatWindow.gotoAndStop(11); if (_root.questRewards[4] == false) { _root.changeExp(12); _root.playSound('gameEvent'); _root.dropGear(this._x, this._y, _root.table3r[random(_root.table3r.length)], 2); _root.questRewards[4] = true; } } else { _root.chatWindow.gotoAndStop(10); } } else { _root.chatWindow.gotoAndStop(1); } } } instance stop2 of movieClip 1242 { onClipEvent (enterFrame) { if (this.hitTest(_root.hero)) { if (_root.altStoryline[1] == false) { _root.playSound('gameEvent'); _root.dropGear(this._x, this._y, 'toySword', 1); _root.altStoryline[1] = true; } } } } instance npc1 of movieClip 1225 { onClipEvent (load) { this.type = 'talk'; this.head.gotoAndStop(20); this.chest.gotoAndStop(21); if (_root.mainStoryline[16]) { this.npcType.gotoAndStop(this.type); } } onClipEvent (enterFrame) { if (_root.mainStoryline[16]) { if (this.hitTest(_root.hero.inside)) { if (_root.mainStoryline[19]) { _root.chatWindow.gotoAndStop(47); } else { if (_root.mainStoryline[18]) { _root.chatWindow.gotoAndStop(46); if (_root.questRewards[14] == false) { _root.playSound('gameEvent'); _root.dropGear(this._x, this._y, _root.table10c[random(_root.table10c.length)], 1); _root.questRewards[14] = true; var i = 0; while (i < 10) { _root.tile2_7[i][5] = false; ++i; } } } else { _root.chatWindow.gotoAndStop(45); if (_root.mainStoryline[17] == false) { _root.mainStoryline[17] = true; _root.tile1_6[0][5] = false; _root.tile1_7[0][5] = false; _root.tile1_8[0][5] = false; } } } } else { _root.chatWindow.gotoAndStop(1); } } } } instance npc1 of movieClip 1225 { onClipEvent (load) { this.type = 'talk'; this.head.gotoAndStop(34); this.chest.gotoAndStop(40); if (_root.questRewards[13]) { this.npcType.gotoAndStop(this.type); } } onClipEvent (enterFrame) { if (_root.questRewards[13]) { if (this.hitTest(_root.hero.inside)) { if (_root.mainStoryline[19]) { _root.chatWindow.gotoAndStop(48); if (_root.questRewards[15] == false) { _root.questRewards[15] = true; } } else { _root.chatWindow.gotoAndStop(44); if (_root.mainStoryline[16] == false) { _root.mainStoryline[16] = true; } } } else { if (!_root.hero.inside.hitTest(_root.ground.npc2)) { _root.chatWindow.gotoAndStop(1); } } } } } instance npc2 of movieClip 1225 { onClipEvent (load) { this.type = 'merchant'; this.talkFrame = 53; this.head.gotoAndStop(6); this.chest.gotoAndStop(9); if (_root.questRewards[13]) { this.npcType.gotoAndStop(this.type); } } onClipEvent (enterFrame) { if (this.hitTest(_root.hero.inside) && _root.questRewards[13]) { _root.chatWindow.gotoAndStop(this.talkFrame); } else { if (!_root.hero.inside.hitTest(_root.ground.npc1)) { _root.chatWindow.gotoAndStop(1); } } } } instance npc1 of movieClip 1225 { onClipEvent (load) { this.type = 'talk'; this.npcType.gotoAndStop(this.type); this.head.gotoAndStop(33); this.chest.gotoAndStop(7); this.legs.gotoAndStop(4); } onClipEvent (enterFrame) { if (this.hitTest(_root.hero.inside)) { if (_root.riddles[0] == 0) { _root.chatWindow.gotoAndStop(21); } else { if (_root.riddles[0] == 1) { _root.chatWindow.gotoAndStop(22); } else { if (_root.riddles[0] == 2) { _root.chatWindow.gotoAndStop(23); } } } } else { _root.chatWindow.gotoAndStop(1); } } } frame 63 { if (_root.questRewards[5]) { npc1._x = -200; npc2._x = -200; npc3._x = -200; } } instance npc1 of movieClip 1225 { onClipEvent (load) { this.type = 'inn'; this.talkFrame = 4; this.head.gotoAndStop(12); this.chest.gotoAndStop(16); this.npcType.gotoAndStop(this.type); } onClipEvent (enterFrame) { if (this.hitTest(_root.hero.inside)) { _root.chatWindow.gotoAndStop(this.talkFrame); } else { if (!_root.hero.inside.hitTest(_root.ground.npc2) && !_root.hero.inside.hitTest(_root.ground.npc3)) { _root.chatWindow.gotoAndStop(1); } } } } instance npc2 of movieClip 1225 { onClipEvent (load) { this.type = 'talk'; this.head.gotoAndStop(36); this.chest.gotoAndStop(44); this.npcType.gotoAndStop(this.type); } onClipEvent (enterFrame) { if (this.hitTest(_root.hero.inside)) { if (_root.mainStoryline[4]) { _root.chatWindow.gotoAndStop(14); if (_root.questRewards[5] == false) { _root.questRewards[5] = true; _root.playSound('gameEvent'); _root.dropGear(this._x, this._y, _root.table3c[random(_root.table3c.length)], 1); _root.tile4_1[0][5] = false; _root.tile4_3[0][5] = false; } } else { _root.chatWindow.gotoAndStop(13); } } else { if (!_root.hero.inside.hitTest(_root.ground.npc1) && !_root.hero.inside.hitTest(_root.ground.npc3)) { _root.chatWindow.gotoAndStop(1); } } } } instance npc3 of movieClip 1225 { onClipEvent (load) { this.type = 'merchant'; this.talkFrame = 12; this.head.gotoAndStop(6); this.chest.gotoAndStop(5); this.npcType.gotoAndStop(this.type); } onClipEvent (enterFrame) { if (this.hitTest(_root.hero.inside)) { _root.chatWindow.gotoAndStop(this.talkFrame); } else { if (!_root.hero.inside.hitTest(_root.ground.npc1) && !_root.hero.inside.hitTest(_root.ground.npc2)) { _root.chatWindow.gotoAndStop(1); } } } } frame 65 { if (_root.mainStoryline[21] == false) { npc1._visible = false; } } instance npc1 of movieClip 1225 { onClipEvent (load) { this.type = 'talk'; this.head.gotoAndStop(42); this.chest.gotoAndStop(64); if (_root.mainStoryline[21]) { this.npcType.gotoAndStop(this.type); } } onClipEvent (enterFrame) { if (_root.mainStoryline[21]) { if (this.hitTest(_root.hero.inside) && _root.mainStoryline[23]) { _root.chatWindow.gotoAndStop(55); if (_root.questRewards[17] == false) { _root.questRewards[17] = true; _root.playSound('gameEvent'); _root.dropGear(this._x, this._y, 'shadowslayersTreads', 3); } } else { if (this.hitTest(_root.hero.inside)) { _root.chatWindow.gotoAndStop(54); if (_root.mainStoryline[22] == false) { _root.mainStoryline[22] = true; _root.tile3_3[0][5] = false; _root.tile3_3[1][5] = false; _root.tile3_3[2][5] = false; _root.tile3_3[3][5] = false; _root.tile3_3[4][5] = false; _root.tile3_4[0][5] = false; _root.tile3_4[1][5] = false; _root.tile3_4[2][5] = false; _root.tile3_4[3][5] = false; _root.tile3_4[4][5] = false; _root.tile4_3[1][5] = true; _root.tile4_3[2][5] = true; _root.tile4_3[3][5] = false; _root.tile4_3[4][5] = false; _root.tile4_3[5][5] = false; _root.tile4_3[6][5] = false; _root.tile4_3[7][5] = false; } } else { _root.chatWindow.gotoAndStop(1); } } } } } instance npc1 of movieClip 1225 { onClipEvent (load) { this.type = 'talk'; this.head.gotoAndStop(33); this.chest.gotoAndStop(1); if (_root.mainStoryline[9]) { this.npcType.gotoAndStop(this.type); } } onClipEvent (enterFrame) { if (this.hitTest(_root.hero.inside) && _root.mainStoryline[9]) { if (_root.altStoryline[3] && _root.tile6_5[0][5] && _root.tile2_4[0][5]) { _root.chatWindow.gotoAndStop(33); if (_root.questRewards[9] == false) { _root.questRewards[9] = true; _root.playSound('gameEvent'); _root.dropGear(this._x, this._y, _root.table6r[random(_root.table6r.length)], 2); _root.changeExp(85); } } else { if (_root.altStoryline[3] == false) { _root.altStoryline[3] = true; _root.tile6_5[0][5] = false; _root.tile2_4[0][5] = false; } _root.chatWindow.gotoAndStop(32); } } else { _root.chatWindow.gotoAndStop(1); } } } instance npc1 of movieClip 1225 { onClipEvent (load) { this.type = 'talk'; if (_root.mainStoryline[9]) { this.npcType.gotoAndStop(this.type); } this.head.gotoAndStop(33); this.chest.gotoAndStop(7); this.legs.gotoAndStop(4); } onClipEvent (enterFrame) { if (this.hitTest(_root.hero.inside) && _root.mainStoryline[9]) { if (_root.mainStoryline[12]) { _root.chatWindow.gotoAndStop(37); } else { if (_root.mainStoryline[11]) { _root.chatWindow.gotoAndStop(36); } else { _root.chatWindow.gotoAndStop(34); _root.mainStoryline[10] = true; } } } else { if (!_root.hero.inside.hitTest(_root.ground.npc2)) { _root.chatWindow.gotoAndStop(1); } } } } instance npc2 of movieClip 1225 { onClipEvent (load) { this.type = 'respec'; this.npcType.gotoAndStop(this.type); this.head.gotoAndStop(30); this.chest.gotoAndStop(24); this.legs.gotoAndStop(4); } onClipEvent (enterFrame) { if (this.hitTest(_root.hero.inside)) { _root.chatWindow.gotoAndStop(43); } else { if (!_root.hero.inside.hitTest(_root.ground.npc1)) { _root.chatWindow.gotoAndStop(1); } } } } instance npc1 of movieClip 1225 { onClipEvent (load) { this.type = 'inn'; this.talkFrame = 4; this.head.gotoAndStop(34); this.chest.gotoAndStop(38); this.npcType.gotoAndStop(this.type); } onClipEvent (enterFrame) { if (this.hitTest(_root.hero.inside)) { _root.chatWindow.gotoAndStop(this.talkFrame); } else { if (!_root.hero.inside.hitTest(_root.ground.npc2)) { _root.chatWindow.gotoAndStop(1); } } } } instance npc2 of movieClip 1225 { onClipEvent (load) { this.type = 'merchant'; this.talkFrame = 42; this.head.gotoAndStop(6); this.chest.gotoAndStop(9); if (_root.mainStoryline[9]) { this.npcType.gotoAndStop(this.type); } } onClipEvent (enterFrame) { if (this.hitTest(_root.hero.inside) && _root.mainStoryline[9]) { _root.chatWindow.gotoAndStop(this.talkFrame); } else { if (!_root.hero.inside.hitTest(_root.ground.npc1)) { _root.chatWindow.gotoAndStop(1); } } } } frame 77 { if (_root.mainStoryline[5] == false) { npc1._x = -200; npc2._x = -200; npc3._x = -200; } else { if (_root.questRewards[7]) { npc1._x = -200; npc2._x = -200; npc3._x = -200; if (_root.mainStoryline[24] == false) { deathScene._x = 336; npc4._x = 243; } } } } instance of movieClip 1271 { onClipEvent (enterFrame) { if (this.hitTest(_root.hero.inside) && _root.enemyArray.length == 0 && _root.mainStoryline[24] && _root.mainStoryline[25] == false && _root.ground.fires._y > 100) { _root.ground.fires._y -= 520; _root.ground.stop6._y -= 520; _root.ground.stop7._y -= 520; _root.ground.stop8._y -= 520; _root.ground.stop9._y -= 520; _root.playSound('deathGateSpawn'); _root.spawnEnemy('shadowStalker', 290, 120, null, true); _root.spawnEnemy('shadowStalker', 118, 210, null, true); _root.spawnEnemy('shadowStalker', 320, 320, null, true); _root.spawnEnemy('shadowStalker', 525, 285, null, true); } } } instance npc1 of movieClip 1225 { onClipEvent (load) { this.type = 'inn'; this.talkFrame = 4; this.head.gotoAndStop(12); this.chest.gotoAndStop(16); this.npcType.gotoAndStop(this.type); } onClipEvent (enterFrame) { if (this.hitTest(_root.hero.inside)) { _root.chatWindow.gotoAndStop(this.talkFrame); } else { if (!_root.hero.inside.hitTest(_root.ground.npc2) && !_root.hero.inside.hitTest(_root.ground.npc3) && !_root.hero.inside.hitTest(_root.ground.npc4)) { _root.chatWindow.gotoAndStop(1); } } } } instance npc2 of movieClip 1225 { onClipEvent (load) { this.type = 'talk'; this.head.gotoAndStop(36); this.chest.gotoAndStop(44); this.npcType.gotoAndStop(this.type); } onClipEvent (enterFrame) { if (this.hitTest(_root.hero.inside)) { _root.chatWindow.gotoAndStop(15); if (_root.questRewards[6] == false) { _root.questRewards[6] = true; _root.playSound('gameEvent'); _root.dropGear(this._x, this._y, _root.table4c[random(_root.table4c.length)], 1); } } else { if (!_root.hero.inside.hitTest(_root.ground.npc1) && !_root.hero.inside.hitTest(_root.ground.npc3) && !_root.hero.inside.hitTest(_root.ground.npc4)) { _root.chatWindow.gotoAndStop(1); } } } } instance npc3 of movieClip 1225 { onClipEvent (load) { this.type = 'merchant'; this.talkFrame = 18; this.head.gotoAndStop(6); this.chest.gotoAndStop(5); this.npcType.gotoAndStop(this.type); } onClipEvent (enterFrame) { if (this.hitTest(_root.hero.inside)) { _root.chatWindow.gotoAndStop(this.talkFrame); } else { if (!_root.hero.inside.hitTest(_root.ground.npc1) && !_root.hero.inside.hitTest(_root.ground.npc2) && !_root.hero.inside.hitTest(_root.ground.npc4)) { _root.chatWindow.gotoAndStop(1); } } } } instance npc4 of movieClip 1359 { onClipEvent (enterFrame) { if (this.hitTest(_root.hero.inside)) { _root.chatWindow.gotoAndStop(19); if (_root.mainStoryline[8] == false) { _root.mainStoryline[8] = true; _root.tile5_0[0][5] = false; _root.tile5_0[1][5] = false; _root.tile5_0[2][5] = false; } } else { if (!_root.hero.inside.hitTest(_root.ground.npc1) && !_root.hero.inside.hitTest(_root.ground.npc3) && !_root.hero.inside.hitTest(_root.ground.npc4)) { _root.chatWindow.gotoAndStop(1); } } } } instance npc1 of movieClip 1225 { onClipEvent (load) { this.type = 'talk'; this.head.gotoAndStop(33); this.chest.gotoAndStop(1); this.npcType.gotoAndStop(this.type); } onClipEvent (enterFrame) { if (this.hitTest(_root.hero.inside)) { if (_root.questRewards[8] == false) { if (_root.questItemInInv('toySword')) { _root.changeExp(30); _root.playSound('gameEvent'); _root.dropGear(this._x, this._y, _root.table4r[random(_root.table4r.length)], 2); _root.questRewards[8] = true; } } if (_root.questRewards[8] == false) { _root.chatWindow.gotoAndStop(24); } else { _root.chatWindow.gotoAndStop(25); } } else { _root.chatWindow.gotoAndStop(1); } } } frame 96 { if (_root.mainStoryline[24]) { npc1._x = -200; } } instance npc1 of movieClip 1225 { onClipEvent (load) { this.type = 'talk'; this.head.gotoAndStop(35); this.chest.gotoAndStop(58); this.legs.gotoAndStop(4); if (_root.mainStoryline[10]) { this.npcType.gotoAndStop(this.type); } } onClipEvent (enterFrame) { if (_root.mainStoryline[10]) { if (this.hitTest(_root.hero.inside)) { if (_root.mainStoryline[15]) { _root.chatWindow.gotoAndStop(41); if (_root.questRewards[13] == false) { _root.changeExp(80); _root.questRewards[13] = true; } } else { if (_root.mainStoryline[14]) { _root.chatWindow.gotoAndStop(40); if (_root.questRewards[12] == false) { _root.questRewards[12] = true; _root.playSound('gameEvent'); _root.dropGear(this._x, this._y, _root.table8c[random(_root.table8c.length)], 1); _root.tile5_9[0][5] = false; _root.tile5_9[1][5] = false; _root.tile5_9[2][5] = false; _root.tile5_9[3][5] = false; } } else { if (_root.mainStoryline[13]) { _root.chatWindow.gotoAndStop(39); if (_root.questRewards[10] == false) { _root.questRewards[10] = true; _root.tile7_5[0][5] = false; _root.tile7_8[0][5] = false; _root.playSound('gameEvent'); _root.dropGear(this._x, this._y, _root.table8c[random(_root.table7c.length)], 1); } } else { if (_root.mainStoryline[12]) { _root.chatWindow.gotoAndStop(38); if (_root.questRewards[11] == false) { _root.questRewards[11] = true; _root.tile7_6[0][5] = false; _root.tile6_9[0][5] = false; } } else { if (_root.mainStoryline[10]) { _root.chatWindow.gotoAndStop(35); if (_root.mainStoryline[11] == false) { _root.mainStoryline[11] = true; _root.tile7_6[1][5] = false; } } } } } } } else { _root.chatWindow.gotoAndStop(1); } } } } frame 105 { if (_root.questRewards[17]) { npc1._x = -200; } else { npc3._x = -200; } } instance npc1 of movieClip 1225 { onClipEvent (load) { this.type = 'talk'; this.npcType.gotoAndStop(this.type); this.head.gotoAndStop(37); this.chest.gotoAndStop(58); this.legs.gotoAndStop(4); } onClipEvent (enterFrame) { if (this.hitTest(_root.hero.inside)) { if (_root.mainStoryline[6] == false) { _root.mainStoryline[6] = true; _root.tile7_0[0][5] = false; _root.tile7_0[1][5] = false; _root.tile7_0[2][5] = false; _root.tile7_0[3][5] = false; _root.tile7_4[0][5] = false; _root.tile7_4[1][5] = false; _root.tile7_4[2][5] = false; _root.tile7_4[3][5] = false; _root.tile7_4[4][5] = false; } if (_root.mainStoryline[9]) { _root.chatWindow.gotoAndStop(20); } else { if (_root.mainStoryline[7]) { _root.chatWindow.gotoAndStop(17); if (_root.questRewards[7] == false) { _root.questRewards[7] = true; _root.playSound('gameEvent'); _root.dropGear(this._x, this._y, _root.table4r[random(_root.table4r.length)], 2); } } else { _root.chatWindow.gotoAndStop(16); } } } else { if (!_root.hero.inside.hitTest(_root.ground.npc2) && !_root.hero.inside.hitTest(_root.ground.npc3) && !_root.hero.inside.hitTest(_root.ground.npc4)) { _root.chatWindow.gotoAndStop(1); } } } } instance npc2 of movieClip 1225 { onClipEvent (load) { this.type = 'respec'; this.npcType.gotoAndStop(this.type); this.head.gotoAndStop(30); this.chest.gotoAndStop(24); this.legs.gotoAndStop(4); } onClipEvent (enterFrame) { if (this.hitTest(_root.hero.inside)) { _root.chatWindow.gotoAndStop(43); } else { if (!_root.hero.inside.hitTest(_root.ground.npc1) && !_root.hero.inside.hitTest(_root.ground.npc3) && !_root.hero.inside.hitTest(_root.ground.npc4)) { _root.chatWindow.gotoAndStop(1); } } } } instance npc3 of movieClip 1225 { onClipEvent (load) { this.type = 'talk'; this.head.gotoAndStop(42); this.chest.gotoAndStop(64); this.npcType.gotoAndStop(this.type); } onClipEvent (enterFrame) { if (this.hitTest(_root.hero.inside) && _root.mainStoryline[25]) { _root.chatWindow.gotoAndStop(57); if (_root.mainStoryline[26] == false) { _root.mainStoryline[26] = true; _root.tile5_7[0][5] = false; _root.tile5_7[1][5] = false; _root.tile6_2[0][5] = false; _root.tile6_2[1][5] = false; _root.tile6_2[2][5] = false; _root.tile6_3[0][5] = false; _root.tile6_3[1][5] = false; _root.tile6_3[2][5] = false; _root.tile6_7[0][5] = false; _root.tile6_7[1][5] = false; _root.tile6_7[2][5] = false; _root.tile7_7[0][5] = false; _root.tile7_7[1][5] = false; _root.tile7_7[2][5] = false; } } else { if (this.hitTest(_root.hero.inside) && _root.questRewards[17]) { _root.chatWindow.gotoAndStop(56); if (_root.mainStoryline[24] == false) { _root.mainStoryline[24] = true; } } else { if (!_root.hero.inside.hitTest(_root.ground.npc1) && !_root.hero.inside.hitTest(_root.ground.npc2) && !_root.hero.inside.hitTest(_root.ground.npc4)) { _root.chatWindow.gotoAndStop(1); } } } } } instance npc4 of movieClip 1225 { onClipEvent (load) { this.type = 'inn'; this.talkFrame = 4; this.head.gotoAndStop(34); this.chest.gotoAndStop(38); this.npcType.gotoAndStop(this.type); } onClipEvent (enterFrame) { if (this.hitTest(_root.hero.inside)) { _root.chatWindow.gotoAndStop(this.talkFrame); } else { if (!_root.hero.inside.hitTest(_root.ground.npc2) && !_root.hero.inside.hitTest(_root.ground.npc3) && !_root.hero.inside.hitTest(_root.ground.npc1)) { _root.chatWindow.gotoAndStop(1); } } } } frame 110 { if (_root.mainStoryline[26] == false) { _root.ground.npc1._x = -200; } if (_root.questRewards[18]) { _root.ground.npc2._x = 95; _root.grpimd.npc2._alpha = 100; } } instance stop3 of movieClip 1231 { onClipEvent (enterFrame) { if (this.hitTest(_root.hero) && _root.mainStoryline[27]) { if (_root.questRewards[18] == false) { _root.dropGear(this._x, this._y, 'shadowslayersLegguards', 3); _root.playSound('gameEvent'); _root.questRewards[18] = true; _root.ground.npc2._alpha = 0; _root.ground.npc2._x = 95; } } } } instance npc1 of movieClip 1359 { onClipEvent (enterFrame) { if (this.hitTest(_root.hero.inside)) { _root.chatWindow.gotoAndStop(58); if (_root.mainStoryline[27] == false) { _root.mainStoryline[27] = true; } } else { if (!_root.hero.inside.hitTest(_root.ground.npc2)) { _root.chatWindow.gotoAndStop(1); } } } } instance npc2 of movieClip 1225 { onClipEvent (load) { this.type = 'talk'; this.head.gotoAndStop(42); this.chest.gotoAndStop(64); this.npcType.gotoAndStop(this.type); } onClipEvent (enterFrame) { if (_root.ground.npc2._x < 100 && _root.ground.npc2._alpha < 100) { _root.ground.npc2._alpha += 1; } if (this.hitTest(_root.hero.inside) && _root.mainStoryline[29]) { _root.chatWindow.gotoAndStop(60); } else { if (this.hitTest(_root.hero.inside)) { _root.chatWindow.gotoAndStop(59); if (_root.mainStoryline[28] == false) { _root.mainStoryline[28] = true; _root.tile6_6[0][5] = false; } } else { if (!_root.hero.inside.hitTest(_root.ground.npc1)) { _root.chatWindow.gotoAndStop(1); } } } } } instance npc1 of movieClip 1225 { onClipEvent (load) { this.type = 'talk'; this.npcType.gotoAndStop(this.type); this.head.gotoAndStop(33); this.chest.gotoAndStop(7); this.legs.gotoAndStop(4); } onClipEvent (enterFrame) { if (this.hitTest(_root.hero.inside)) { if (_root.riddles[2] == 0) { _root.chatWindow.gotoAndStop(29); } else { if (_root.riddles[2] == 1) { _root.chatWindow.gotoAndStop(30); } else { if (_root.riddles[2] == 2) { _root.chatWindow.gotoAndStop(31); } } } } else { _root.chatWindow.gotoAndStop(1); } } } } button 1404 { on (rollOver) { _root.getTalentText('scorchT'); } on (release) { _root.processTalent('scorchT'); } on (rollOut) { _root.removeTalentText(); } } button 1407 { on (rollOver) { _root.getTalentText('focusedMindT'); } on (release) { _root.processTalent('focusedMindT'); } on (rollOut) { _root.removeTalentText(); } } button 1408 { on (rollOver) { _root.getTalentText('dazzleT'); } on (release) { _root.processTalent('dazzleT'); } on (rollOut) { _root.removeTalentText(); } } button 1410 { on (rollOver) { _root.getTalentText('recallT'); } on (release) { _root.processTalent('recallT'); } on (rollOut) { _root.removeTalentText(); } } button 1412 { on (rollOver) { _root.getTalentText('wizardsSpiritT'); } on (release) { _root.processTalent('wizardsSpiritT'); } on (rollOut) { _root.removeTalentText(); } } button 1413 { on (rollOver) { _root.getTalentText('refreshT'); } on (release) { _root.processTalent('refreshT'); } on (rollOut) { _root.removeTalentText(); } } button 1415 { on (rollOver) { _root.getTalentText('blinkStepT'); } on (release) { _root.processTalent('blinkStepT'); } on (rollOut) { _root.removeTalentText(); } } button 1416 { on (rollOver) { _root.getTalentText('energyNovaT'); } on (release) { _root.processTalent('energyNovaT'); } on (rollOut) { _root.removeTalentText(); } } button 1418 { on (rollOver) { _root.getTalentText('dispellT'); } on (release) { _root.processTalent('dispellT'); } on (rollOut) { _root.removeTalentText(); } } button 1420 { on (rollOver) { _root.getTalentText('maliciousIntentT'); } on (release) { _root.processTalent('maliciousIntentT'); } on (rollOut) { _root.removeTalentText(); } } button 1422 { on (rollOver) { _root.getTalentText('siphonEnergyT'); } on (release) { _root.processTalent('siphonEnergyT'); } on (rollOut) { _root.removeTalentText(); } } button 1424 { on (rollOver) { _root.getTalentText('arcanePulseT'); } on (release) { _root.processTalent('arcanePulseT'); } on (rollOut) { _root.removeTalentText(); } } movieClip 1427 { } movieClip 1441 { } button 1444 { on (rollOver) { _root.getTalentText('killingSpreeT'); } on (release) { _root.processTalent('killingSpreeT'); } on (rollOut) { _root.removeTalentText(); } } button 1447 { on (rollOver) { _root.getTalentText('anticipationT'); } on (release) { _root.processTalent('anticipationT'); } on (rollOut) { _root.removeTalentText(); } } button 1450 { on (rollOver) { _root.getTalentText('deadEyeT'); } on (release) { _root.processTalent('deadEyeT'); } on (rollOut) { _root.removeTalentText(); } } button 1452 { on (rollOver) { _root.getTalentText('shadowStrikeT'); } on (release) { _root.processTalent('shadowStrikeT'); } on (rollOut) { _root.removeTalentText(); } } button 1454 { on (rollOver) { _root.getTalentText('stalkersSpiritT'); } on (release) { _root.processTalent('stalkersSpiritT'); } on (rollOut) { _root.removeTalentText(); } } button 1456 { on (rollOver) { _root.getTalentText('backstabT'); } on (release) { _root.processTalent('backstabT'); } on (rollOut) { _root.removeTalentText(); } } button 1458 { on (rollOver) { _root.getTalentText('stealthT'); } on (release) { _root.processTalent('stealthT'); } on (rollOut) { _root.removeTalentText(); } } button 1460 { on (rollOver) { _root.getTalentText('incapacitateT'); } on (release) { _root.processTalent('incapacitateT'); } on (rollOut) { _root.removeTalentText(); } } button 1462 { on (rollOver) { _root.getTalentText('soulLinkT'); } on (release) { _root.processTalent('soulLinkT'); } on (rollOut) { _root.removeTalentText(); } } button 1464 { on (rollOver) { _root.getTalentText('bladeFlurryT'); } on (release) { _root.processTalent('bladeFlurryT'); } on (rollOut) { _root.removeTalentText(); } } button 1467 { on (rollOver) { _root.getTalentText('maliceT'); } on (release) { _root.processTalent('maliceT'); } on (rollOut) { _root.removeTalentText(); } } button 1469 { on (rollOver) { _root.getTalentText('blinkStrikeT'); } on (release) { _root.processTalent('blinkStrikeT'); } on (rollOut) { _root.removeTalentText(); } } movieClip 1483 { } button 1487 { on (rollOver) { _root.getTalentText('huntersPursuitT'); } on (release) { _root.processTalent('huntersPursuitT'); } on (rollOut) { _root.removeTalentText(); } } button 1489 { on (rollOver) { _root.getTalentText('sylvanTouchT'); } on (release) { _root.processTalent('sylvanTouchT'); } on (rollOut) { _root.removeTalentText(); } } button 1491 { on (rollOver) { _root.getTalentText('steadyShotT'); } on (release) { _root.processTalent('steadyShotT'); } on (rollOut) { _root.removeTalentText(); } } button 1493 { on (rollOver) { _root.getTalentText('naturesGraspT'); } on (release) { _root.processTalent('naturesGraspT'); } on (rollOut) { _root.removeTalentText(); } } button 1495 { on (rollOver) { _root.getTalentText('spiritOfTheGroveT'); } on (release) { _root.processTalent('spiritOfTheGroveT'); } on (rollOut) { _root.removeTalentText(); } } button 1497 { on (rollOver) { _root.getTalentText('stalkersFuryT'); } on (release) { _root.processTalent('stalkersFuryT'); } on (rollOut) { _root.removeTalentText(); } } button 1499 { on (rollOver) { _root.getTalentText('mongooseT'); } on (release) { _root.processTalent('mongooseT'); } on (rollOut) { _root.removeTalentText(); } } button 1501 { on (rollOver) { _root.getTalentText('scorpionBiteT'); } on (release) { _root.processTalent('scorpionBiteT'); } on (rollOut) { _root.removeTalentText(); } } button 1504 { on (rollOver) { _root.getTalentText('naturesRecoveryT'); } on (release) { _root.processTalent('naturesRecoveryT'); } on (rollOut) { _root.removeTalentText(); } } button 1507 { on (rollOver) { _root.getTalentText('blessingOfTheWindT'); } on (release) { _root.processTalent('blessingOfTheWindT'); } on (rollOut) { _root.removeTalentText(); } } button 1510 { on (rollOver) { _root.getTalentText('explosiveShotT'); } on (release) { _root.processTalent('explosiveShotT'); } on (rollOut) { _root.removeTalentText(); } } button 1512 { on (rollOver) { _root.getTalentText('shadowShotT'); } on (release) { _root.processTalent('shadowShotT'); } on (rollOut) { _root.removeTalentText(); } } movieClip 1526 { } button 1533 { on (release) { _root.switchTalentMenu('warder'); _root.playSound('click'); } on (rollOver) { _root.playSound('rollOver'); } } button 1539 { on (release) { _root.switchTalentMenu('assassin'); _root.playSound('click'); } on (rollOver) { _root.playSound('rollOver'); } } button 1545 { on (release) { _root.switchTalentMenu('arcane'); _root.playSound('click'); } on (rollOver) { _root.playSound('rollOver'); } } button 1552 { on (release) { _root.switchTalentMenu('gladiator'); _root.playSound('click'); } on (rollOver) { _root.playSound('rollOver'); } } button 1557 { on (rollOver) { _root.getTalentText('fortifyT'); } on (release) { _root.processTalent('fortifyT'); } on (rollOut) { _root.removeTalentText(); } } button 1559 { on (rollOver) { _root.getTalentText('bashT'); } on (release) { _root.processTalent('bashT'); } on (rollOut) { _root.removeTalentText(); } } button 1561 { on (rollOver) { _root.getTalentText('fireFistsT'); } on (release) { _root.processTalent('fireFistsT'); } on (rollOut) { _root.removeTalentText(); } } button 1564 { on (rollOver) { _root.getTalentText('recoveryT'); } on (release) { _root.processTalent('recoveryT'); } on (rollOut) { _root.removeTalentText(); } } button 1565 { on (rollOver) { _root.getTalentText('warriorsSpiritT'); } on (release) { _root.processTalent('warriorsSpiritT'); } on (rollOut) { _root.removeTalentText(); } } button 1567 { on (rollOver) { _root.getTalentText('paralyzingSwingT'); } on (release) { _root.processTalent('paralyzingSwingT'); } on (rollOut) { _root.removeTalentText(); } } button 1569 { on (rollOver) { _root.getTalentText('terrifyingShoutT'); } on (release) { _root.processTalent('terrifyingShoutT'); } on (rollOut) { _root.removeTalentText(); } } button 1571 { on (rollOver) { _root.getTalentText('titanSwingT'); } on (release) { _root.processTalent('titanSwingT'); } on (rollOut) { _root.removeTalentText(); } } button 1572 { on (rollOver) { _root.getTalentText('aftermathT'); } on (release) { _root.processTalent('aftermathT'); } on (rollOut) { _root.removeTalentText(); } } button 1574 { on (rollOver) { _root.getTalentText('whirlwindT'); } on (release) { _root.processTalent('whirlwindT'); } on (rollOut) { _root.removeTalentText(); } } button 1577 { on (rollOver) { _root.getTalentText('lifeStealT'); } on (release) { _root.processTalent('lifeStealT'); } on (rollOut) { _root.removeTalentText(); } } button 1580 { on (rollOver) { _root.getTalentText('battleAuraT'); } on (release) { _root.processTalent('battleAuraT'); } on (rollOut) { _root.removeTalentText(); } } movieClip 1593 { } button 1599 { on (release) { _root.playSound('click'); _root.toggleTalentWindow(); } on (rollOver) { _root.playSound('rollOver'); } } // unknown tag 88 length 145 movieClip 1610 { frame 1 { closeBtn.useHandCursor = false; gBtn.useHandCursor = false; aBtn.useHandCursor = false; wBtn.useHandCursor = false; arBtn.useHandCursor = false; closeBtn.tabEnabled = false; gBtn.tabEnabled = false; aBtn.tabEnabled = false; wBtn.tabEnabled = false; arBtn.tabEnabled = false; } } movieClip 1614 { } button 1618 { on (release) { _root.playSound('click'); _root.toggleInventory(); } on (rollOver) { _root.playSound('rollOver'); } } movieClip 1629 { } movieClip 1670 { frame 1 { stop(); } } movieClip 1695 { frame 1 { stop(); } } movieClip 1720 { frame 1 { stop(); } } movieClip 1745 { frame 1 { stop(); } } movieClip 1769 { frame 1 { stop(); } } movieClip 1796 { frame 1 { stop(); } } movieClip 1821 { frame 1 { stop(); } } movieClip 1846 { frame 1 { stop(); } } movieClip 1871 { frame 1 { stop(); } } movieClip 1896 { frame 1 { stop(); } } movieClip 1897 { frame 1 { stop(); } } movieClip 1903 { } movieClip 1911 { } movieClip 1915 { } button 1918 { on (rollOver) { _root.playSound('rollOver'); textDisplay.gotoAndStop(2); } on (rollOut) { textDisplay.gotoAndStop(1); } } button 1919 { on (rollOver) { _root.playSound('rollOver'); textDisplay.gotoAndStop(4); } on (rollOut) { textDisplay.gotoAndStop(1); } } button 1920 { on (rollOver) { _root.playSound('rollOver'); textDisplay.gotoAndStop(3); } on (rollOut) { textDisplay.gotoAndStop(1); } } button 1921 { on (rollOver) { _root.playSound('rollOver'); textDisplay.gotoAndStop(5); } on (rollOut) { textDisplay.gotoAndStop(1); } } movieClip 1929 { frame 1 { stop(); } } movieClip 1930 { frame 1 { closeBtn.useHandCursor = false; sellSlot.useHandCursor = false; closeBtn.tabEnabled = false; sellSlot.tabEnabled = false; strBtn.useHandCursor = false; agiBtn.useHandCursor = false; focBtn.useHandCursor = false; armorBtn.useHandCursor = false; strBtn.tabEnabled = false; agiBtn.tabEnabled = false; focBtn.tabEnabled = false; armorBtn.tabEnabled = false; } } button 1933 { on (release) { _root.playSound('click'); _root.toggleOptions(); } on (rollOver) { _root.playSound('rollOver'); } } button 1942 { on (release) { if (_root.allowLower) { _root.allowLower = false; _root.options.windowMC.gotoAndStop(2); _root.restoreAlpha(); } else { _root.allowLower = true; _root.options.windowMC.gotoAndStop(1); _root.lowerAlpha(); } _root.playSound('click'); } on (rollOver) { _root.playSound('rollOver'); } } button 1946 { on (release) { if (_root._quality == 'LOW') { _root._quality = 'MEDIUM'; _root.options.qualityMC.gotoAndStop(2); } else { if (_root._quality == 'MEDIUM') { _root._quality = 'HIGH'; _root.options.qualityMC.gotoAndStop(1); } else { _root._quality = 'LOW'; _root.options.qualityMC.gotoAndStop(3); } } _root.playSound('click'); } on (rollOver) { _root.playSound('rollOver'); } } button 1950 { on (release) { if (_root.soundOn) { _root.soundOn = false; _root.options.soundMC.gotoAndStop(2); } else { _root.soundOn = true; _root.options.soundMC.gotoAndStop(1); } _root.playSound('click'); } on (rollOver) { _root.playSound('rollOver'); } } button 1954 { on (release) { if (_root.musicOn) { _root.musicOn = false; stopAllSounds(); _root.currentLoop = 'null'; _root.options.musicMC.gotoAndStop(2); } else { _root.musicOn = true; _root.options.musicMC.gotoAndStop(1); if (_root.currentTile == '3_6' || _root.currentTile == '3_7' || _root.currentTile == '4_6' || _root.currentTile == '4_7') { _root.playLoop('city2'); } else { _root.playLoop('mainTheme'); } } _root.playSound('click'); } on (rollOver) { _root.playSound('rollOver'); } } button 1958 { on (release) { _root.playSound('click'); _root.returnToTitle(); } on (rollOver) { _root.playSound('rollOver'); } } movieClip 1962 { frame 1 { stop(); } } movieClip 1965 { frame 1 { stop(); } } movieClip 1966 { frame 1 { closeBtn.useHandCursor = false; btn1.useHandCursor = false; btn2.useHandCursor = false; btn3.useHandCursor = false; btn4.useHandCursor = false; btn5.useHandCursor = false; closeBtn.tabEnabled = false; btn1.tabEnabled = false; btn2.tabEnabled = false; btn3.tabEnabled = false; btn4.tabEnabled = false; btn5.tabEnabled = false; } } button 1973 { on (release) { _root.playSound('click'); _root.toggleMapWindow(); } on (rollOver) { _root.playSound('rollOver'); } } movieClip 1976 { } movieClip 1978 { } button 1988 { on (rollOver) { _root.playSound('rollOver'); } } movieClip 1991 { } movieClip 1993 { } movieClip 1995 { } button 1999 { on (release) { _root.mapTransition(1, 2); _root.hero._x = 315; _root.hero._y = 260; _root.tutorialWindow.gotoAndStop(1); _root.mapWindow._visible = false; _root.mapWindow.town1._visible = false; _root.mapWindow.town2._visible = false; _root.mapWindow.town3._visible = false; _root.playSound('click'); } on (rollOver) { _root.playSound('rollOver'); } } button 2000 { on (release) { _root.mapTransition(5, 2); _root.hero._x = 315; _root.hero._y = 225; _root.tutorialWindow.gotoAndStop(1); _root.mapWindow._visible = false; _root.mapWindow.town1._visible = false; _root.mapWindow.town2._visible = false; _root.mapWindow.town3._visible = false; _root.playSound('click'); } on (rollOver) { _root.playSound('rollOver'); } } button 2001 { on (release) { _root.mapTransition(4, 6); _root.hero._x = 300; _root.hero._y = 240; _root.tutorialWindow.gotoAndStop(1); _root.mapWindow._visible = false; _root.mapWindow.town1._visible = false; _root.mapWindow.town2._visible = false; _root.mapWindow.town3._visible = false; _root.playSound('click'); } on (rollOver) { _root.playSound('rollOver'); } } movieClip 2002 { frame 1 { town1.useHandCursor = false; town2.useHandCursor = false; town3.useHandCursor = false; town1.tabEnabled = false; town2.tabEnabled = false; town3.tabEnabled = false; } frame 1 { closeBtn.useHandCursor = false; heroMarker.useHandCursor = false; closeBtn.tabEnabled = false; heroMarker.tabEnabled = false; } } button 2004 { on (release) { _root.playSound('click'); _root.toggleAbilities(); } on (rollOver) { _root.playSound('rollOver'); } } movieClip 2007 { frame 1 { var i = 0; while (i < 24) { var slotName = 'slot' + i; _root.abilities[slotName].useHandCursor = false; _root.abilities[slotName].tabEnabled = false; ++i; } closeBtn.useHandCursor = false; closeBtn.tabEnabled = false; } instance slot3 of movieClip 221 iconList { onClipEvent (rollOver) { _root.getAbilityText(3); } onClipEvent (press) { _root.beginIconDrag(3); } onClipEvent (rollOut) { _root.removeTalentText(); } } instance slot6 of movieClip 221 iconList { onClipEvent (rollOver) { _root.getAbilityText(6); } onClipEvent (press) { _root.beginIconDrag(6); } onClipEvent (rollOut) { _root.removeTalentText(); } } instance slot5 of movieClip 221 iconList { onClipEvent (rollOver) { _root.getAbilityText(5); } onClipEvent (press) { _root.beginIconDrag(5); } onClipEvent (rollOut) { _root.removeTalentText(); } } instance slot4 of movieClip 221 iconList { onClipEvent (rollOver) { _root.getAbilityText(4); } onClipEvent (press) { _root.beginIconDrag(4); } onClipEvent (rollOut) { _root.removeTalentText(); } } instance slot0 of movieClip 221 iconList { onClipEvent (rollOver) { _root.getAbilityText(0); } onClipEvent (press) { _root.beginIconDrag(0); } onClipEvent (rollOut) { _root.removeTalentText(); } } instance slot2 of movieClip 221 iconList { onClipEvent (rollOver) { _root.getAbilityText(2); } onClipEvent (press) { _root.beginIconDrag(2); } onClipEvent (rollOut) { _root.removeTalentText(); } } instance slot1 of movieClip 221 iconList { onClipEvent (rollOver) { _root.getAbilityText(1); } onClipEvent (press) { _root.beginIconDrag(1); } onClipEvent (rollOut) { _root.removeTalentText(); } } instance slot7 of movieClip 221 iconList { onClipEvent (rollOver) { _root.getAbilityText(7); } onClipEvent (press) { _root.beginIconDrag(7); } onClipEvent (rollOut) { _root.removeTalentText(); } } instance slot11 of movieClip 221 iconList { onClipEvent (rollOver) { _root.getAbilityText(11); } onClipEvent (press) { _root.beginIconDrag(11); } onClipEvent (rollOut) { _root.removeTalentText(); } } instance slot14 of movieClip 221 iconList { onClipEvent (rollOver) { _root.getAbilityText(14); } onClipEvent (press) { _root.beginIconDrag(14); } onClipEvent (rollOut) { _root.removeTalentText(); } } instance slot13 of movieClip 221 iconList { onClipEvent (rollOver) { _root.getAbilityText(13); } onClipEvent (press) { _root.beginIconDrag(13); } onClipEvent (rollOut) { _root.removeTalentText(); } } instance slot12 of movieClip 221 iconList { onClipEvent (rollOver) { _root.getAbilityText(12); } onClipEvent (press) { _root.beginIconDrag(12); } onClipEvent (rollOut) { _root.removeTalentText(); } } instance slot8 of movieClip 221 iconList { onClipEvent (rollOver) { _root.getAbilityText(8); } onClipEvent (press) { _root.beginIconDrag(8); } onClipEvent (rollOut) { _root.removeTalentText(); } } instance slot10 of movieClip 221 iconList { onClipEvent (rollOver) { _root.getAbilityText(10); } onClipEvent (press) { _root.beginIconDrag(10); } onClipEvent (rollOut) { _root.removeTalentText(); } } instance slot9 of movieClip 221 iconList { onClipEvent (rollOver) { _root.getAbilityText(9); } onClipEvent (press) { _root.beginIconDrag(9); } onClipEvent (rollOut) { _root.removeTalentText(); } } instance slot15 of movieClip 221 iconList { onClipEvent (rollOver) { _root.getAbilityText(15); } onClipEvent (press) { _root.beginIconDrag(15); } onClipEvent (rollOut) { _root.removeTalentText(); } } instance slot19 of movieClip 221 iconList { onClipEvent (rollOver) { _root.getAbilityText(19); } onClipEvent (press) { _root.beginIconDrag(19); } onClipEvent (rollOut) { _root.removeTalentText(); } } instance slot22 of movieClip 221 iconList { onClipEvent (rollOver) { _root.getAbilityText(22); } onClipEvent (press) { _root.beginIconDrag(22); } onClipEvent (rollOut) { _root.removeTalentText(); } } instance slot21 of movieClip 221 iconList { onClipEvent (rollOver) { _root.getAbilityText(21); } onClipEvent (press) { _root.beginIconDrag(21); } onClipEvent (rollOut) { _root.removeTalentText(); } } instance slot20 of movieClip 221 iconList { onClipEvent (rollOver) { _root.getAbilityText(20); } onClipEvent (press) { _root.beginIconDrag(20); } onClipEvent (rollOut) { _root.removeTalentText(); } } instance slot16 of movieClip 221 iconList { onClipEvent (rollOver) { _root.getAbilityText(16); } onClipEvent (press) { _root.beginIconDrag(16); } onClipEvent (rollOut) { _root.removeTalentText(); } } instance slot18 of movieClip 221 iconList { onClipEvent (rollOver) { _root.getAbilityText(18); } onClipEvent (press) { _root.beginIconDrag(18); } onClipEvent (rollOut) { _root.removeTalentText(); } } instance slot17 of movieClip 221 iconList { onClipEvent (rollOver) { _root.getAbilityText(17); } onClipEvent (press) { _root.beginIconDrag(17); } onClipEvent (rollOut) { _root.removeTalentText(); } } instance slot23 of movieClip 221 iconList { onClipEvent (rollOver) { _root.getAbilityText(23); } onClipEvent (press) { _root.beginIconDrag(23); } onClipEvent (rollOut) { _root.removeTalentText(); } } } movieClip 2009 { } // unknown tag 88 length 74 movieClip 2365 { frame 1 { stop(); } frame 11 { cost.text = 'Energy Cost - ' + Math.round(_root.bash[1] * _root.bash[17]); dam.text = 'Base Damage - ' + Math.round(_root.bash[2] * _root.bash[11]); } frame 12 { cost.text = 'Energy Cost - ' + Math.round(_root.bash[1] * _root.bash[17]); dam.text = 'Base Damage - ' + Math.round(_root.bash[2] * _root.bash[11]); } frame 18 { cost.text = 'Energy Cost - ' + Math.round(_root.fireFists[1] * _root.fireFists[17]); dam.text = 'Base Damage - ' + Math.round(_root.fireFists[2] * _root.fireFists[11]); } frame 19 { cost.text = 'Energy Cost - ' + Math.round(_root.fireFists[1] * _root.fireFists[17]); dam.text = 'Base Damage - ' + Math.round(_root.fireFists[2] * _root.fireFists[11]); } frame 44 { cost.text = 'Energy Cost - ' + Math.round(_root.terrifyingShout[1] * _root.terrifyingShout[17]); } frame 45 { cost.text = 'Energy Cost - ' + Math.round(_root.terrifyingShout[1] * _root.terrifyingShout[17]); } frame 46 { cost.text = 'Energy Cost - ' + Math.round(_root.terrifyingShout[1] * _root.terrifyingShout[17]); } frame 47 { cost.text = 'Energy Cost - ' + Math.round(_root.terrifyingShout[1] * _root.terrifyingShout[17]); } frame 52 { cost.text = 'Energy Cost - ' + Math.round(_root.titanSwing[1] * _root.titanSwing[17]); dam.text = 'Base Damage - ' + Math.round(_root.titanSwing[2] * _root.titanSwing[11]); } frame 53 { cost.text = 'Energy Cost - ' + Math.round(_root.titanSwing[1] * _root.titanSwing[17]); dam.text = 'Base Damage - ' + Math.round(_root.titanSwing[2] * _root.titanSwing[11]); } frame 76 { cost.text = 'Energy Cost - ' + Math.round(_root.whirlwind[1] * _root.whirlwind[17]); dam.text = 'Base Damage - ' + Math.round(_root.whirlwind[2] * _root.whirlwind[11]); } frame 77 { cost.text = 'Energy Cost - ' + Math.round(_root.whirlwind[1] * _root.whirlwind[17]); dam.text = 'Base Damage - ' + Math.round(_root.whirlwind[2] * _root.whirlwind[11]); } frame 124 { cost.text = 'Energy Cost - ' + Math.round(_root.shadowStrike[1] * _root.shadowStrike[17]); dam.text = 'Base Damage - ' + Math.round(_root.shadowStrike[2] * _root.shadowStrike[11]); } frame 125 { cost.text = 'Energy Cost - ' + Math.round(_root.shadowStrike[1] * _root.shadowStrike[17]); dam.text = 'Base Damage - ' + Math.round(_root.shadowStrike[2] * _root.shadowStrike[11]); } frame 135 { cost.text = 'Energy Cost - ' + Math.round(_root.backstab[1] * _root.backstab[17]); dam.text = 'Base Damage - ' + Math.round(_root.backstab[2] * _root.backstab[11]); } frame 136 { cost.text = 'Energy Cost - ' + Math.round(_root.backstab[1] * _root.backstab[17]); dam.text = 'Base Damage - ' + Math.round(_root.backstab[2] * _root.backstab[11]); } frame 142 { cost.text = 'Energy Cost - ' + Math.round(_root.stealth[1] * _root.stealth[17]); } frame 143 { cost.text = 'Energy Cost - ' + Math.round(_root.stealth[1] * _root.stealth[17]); } frame 149 { cost.text = 'Energy Cost - ' + Math.round(_root.incapacitate[1] * _root.incapacitate[17]); } frame 150 { cost.text = 'Energy Cost - ' + Math.round(_root.incapacitate[1] * _root.incapacitate[17]); } frame 151 { cost.text = 'Energy Cost - ' + Math.round(_root.incapacitate[1] * _root.incapacitate[17]); } frame 152 { cost.text = 'Energy Cost - ' + Math.round(_root.incapacitate[1] * _root.incapacitate[17]); } frame 168 { cost.text = 'Energy Cost - ' + Math.round(_root.bladeFlurry[1] * _root.bladeFlurry[17]); } frame 169 { cost.text = 'Energy Cost - ' + Math.round(_root.bladeFlurry[1] * _root.bladeFlurry[17]); } frame 170 { cost.text = 'Energy Cost - ' + Math.round(_root.bladeFlurry[1] * _root.bladeFlurry[17]); } frame 171 { cost.text = 'Energy Cost - ' + Math.round(_root.bladeFlurry[1] * _root.bladeFlurry[17]); } frame 188 { cost.text = 'Energy Cost - ' + Math.round(_root.blinkStrike[1] * _root.blinkStrike[17]); dam.text = 'Base Damage - ' + Math.round(_root.blinkStrike[2] * _root.blinkStrike[11]); } frame 189 { cost.text = 'Energy Cost - ' + Math.round(_root.blinkStrike[1] * _root.blinkStrike[17]); dam.text = 'Base Damage - ' + Math.round(_root.blinkStrike[2] * _root.blinkStrike[11]); } frame 207 { cost.text = 'Energy Cost - ' + Math.round(_root.steadyShot[1] * _root.steadyShot[17]); dam.text = 'Base Damage - ' + Math.round(_root.steadyShot[2] * _root.steadyShot[11]); } frame 208 { cost.text = 'Energy Cost - ' + Math.round(_root.steadyShot[1] * _root.steadyShot[17]); dam.text = 'Base Damage - ' + Math.round(_root.steadyShot[2] * _root.steadyShot[11]); } frame 215 { cost.text = 'Energy Cost - ' + Math.round(_root.sylvanTouch[1] * _root.sylvanTouch[17]); dam.text = 'Base Heal - ' + Math.round(_root.sylvanTouch[15] * _root.sylvanTouch[11]); } frame 216 { cost.text = 'Energy Cost - ' + Math.round(_root.sylvanTouch[1] * _root.sylvanTouch[17]); dam.text = 'Base Heal - ' + Math.round(_root.sylvanTouch[15] * _root.sylvanTouch[11]); } frame 224 { cost.text = 'Energy Cost - ' + Math.round(_root.naturesGrasp[1] * _root.naturesGrasp[17]); } frame 225 { cost.text = 'Energy Cost - ' + Math.round(_root.naturesGrasp[1] * _root.naturesGrasp[17]); } frame 239 { cost.text = 'Energy Cost - ' + Math.round(_root.stalkersFury[1] * _root.stalkersFury[17]); } frame 240 { cost.text = 'Energy Cost - ' + Math.round(_root.stalkersFury[1] * _root.stalkersFury[17]); } frame 241 { cost.text = 'Energy Cost - ' + Math.round(_root.stalkersFury[1] * _root.stalkersFury[17]); } frame 242 { cost.text = 'Energy Cost - ' + Math.round(_root.stalkersFury[1] * _root.stalkersFury[17]); } frame 261 { cost.text = 'Energy Cost - ' + Math.round(_root.scorpionBite[1] * _root.scorpionBite[17]); dam.text = 'Base Damage - ' + Math.round(_root.scorpionBite[15] * _root.scorpionBite[11]); } frame 262 { cost.text = 'Energy Cost - ' + Math.round(_root.scorpionBite[1] * _root.scorpionBite[17]); dam.text = 'Base Damage - ' + Math.round(_root.scorpionBite[15] * _root.scorpionBite[11]); } frame 292 { cost.text = 'Energy Cost - ' + Math.round(_root.explosiveShot[1] * _root.explosiveShot[17]); dam.text = 'Base Damage - ' + Math.round(_root.explosiveShot[2] * _root.explosiveShot[11]); } frame 293 { cost.text = 'Energy Cost - ' + Math.round(_root.explosiveShot[1] * _root.explosiveShot[17]); dam.text = 'Base Damage - ' + Math.round(_root.explosiveShot[2] * _root.explosiveShot[11]); } frame 302 { cost.text = 'Energy Cost - ' + Math.round(_root.shadowShot[1] * _root.shadowShot[17]); dam.text = 'Base Damage - ' + Math.round(_root.shadowShot[2] * _root.shadowShot[11]); } frame 303 { cost.text = 'Energy Cost - ' + Math.round(_root.shadowShot[1] * _root.shadowShot[17]); dam.text = 'Base Damage - ' + Math.round(_root.shadowShot[2] * _root.shadowShot[11]); } frame 311 { cost.text = 'Energy Cost - ' + Math.round(_root.scorch[1] * _root.scorch[17]); dam.text = 'Base Damage - ' + Math.round(_root.scorch[2] * _root.scorch[11] * 2); } frame 312 { cost.text = 'Energy Cost - ' + Math.round(_root.scorch[1] * _root.scorch[17]); dam.text = 'Base Damage - ' + Math.round(_root.scorch[2] * _root.scorch[11] * 2); } frame 330 { cost.text = 'Energy Cost - ' + Math.round(_root.dazzle[1] * _root.dazzle[17]); } frame 331 { cost.text = 'Energy Cost - ' + Math.round(_root.dazzle[1] * _root.dazzle[17]); } frame 337 { cost.text = 'Energy Cost - ' + Math.round(_root.recall[1] * _root.recall[17]); } frame 338 { cost.text = 'Energy Cost - ' + Math.round(_root.recall[1] * _root.recall[17]); } frame 351 { cost.text = 'Energy Cost - ' + Math.round(_root.refresh[1] * _root.refresh[17]); dam.text = 'Base Heal - ' + Math.round(_root.refresh[2] * _root.refresh[11]); } frame 352 { cost.text = 'Energy Cost - ' + Math.round(_root.refresh[1] * _root.refresh[17]); dam.text = 'Base Heal - ' + Math.round(_root.refresh[2] * _root.refresh[11]); } frame 358 { cost.text = 'Energy Cost - ' + Math.round(_root.blinkStep[1] * _root.blinkStep[17]); } frame 359 { cost.text = 'Energy Cost - ' + Math.round(_root.blinkStep[1] * _root.blinkStep[17]); } frame 360 { cost.text = 'Energy Cost - ' + Math.round(_root.blinkStep[1] * _root.blinkStep[17]); } frame 361 { cost.text = 'Energy Cost - ' + Math.round(_root.blinkStep[1] * _root.blinkStep[17]); } frame 370 { cost.text = 'Energy Cost - ' + Math.round(_root.energyNova[1] * _root.energyNova[17]); dam.text = 'Base Damage - ' + Math.round(_root.energyNova[2] * _root.energyNova[11]); } frame 371 { cost.text = 'Energy Cost - ' + Math.round(_root.energyNova[1] * _root.energyNova[17]); dam.text = 'Base Damage - ' + Math.round(_root.energyNova[2] * _root.energyNova[11]); } frame 398 { cost.text = 'Energy Cost - ' + Math.round(_root.siphonEnergy[1] * _root.siphonEnergy[17]); dam.text = 'Base Drain - ' + Math.round(_root.siphonEnergy[2] * _root.siphonEnergy[11]); } frame 399 { cost.text = 'Energy Cost - ' + Math.round(_root.siphonEnergy[1] * _root.siphonEnergy[17]); dam.text = 'Base Drain - ' + Math.round(_root.siphonEnergy[2] * _root.siphonEnergy[11]); } frame 400 { cost.text = 'Energy Cost - ' + Math.round(_root.siphonEnergy[1] * _root.siphonEnergy[17]); dam.text = 'Base Drain - ' + Math.round(_root.siphonEnergy[2] * _root.siphonEnergy[11]); } frame 401 { cost.text = 'Energy Cost - ' + Math.round(_root.siphonEnergy[1] * _root.siphonEnergy[17]); dam.text = 'Base Drain - ' + Math.round(_root.siphonEnergy[2] * _root.siphonEnergy[11]); } frame 402 { cost.text = 'Energy Cost - ' + Math.round(_root.siphonEnergy[1] * _root.siphonEnergy[17]); dam.text = 'Base Drain - ' + Math.round(_root.siphonEnergy[2] * _root.siphonEnergy[11]); } frame 403 { cost.text = 'Energy Cost - ' + Math.round(_root.siphonEnergy[1] * _root.siphonEnergy[17]); dam.text = 'Base Drain - ' + Math.round(_root.siphonEnergy[2] * _root.siphonEnergy[11]); } frame 412 { cost.text = 'Energy Cost - ' + Math.round(_root.arcanePulse[1] * _root.arcanePulse[17]); dam.text = 'Base Drain - ' + Math.round(_root.arcanePulse[2] * _root.arcanePulse[11]); } frame 413 { cost.text = 'Energy Cost - ' + Math.round(_root.arcanePulse[1] * _root.arcanePulse[17]); dam.text = 'Base Drain - ' + Math.round(_root.arcanePulse[2] * _root.arcanePulse[11]); } } movieClip 2369 { } movieClip 2374 { frame 1 { stop(); } frame 10 { this.gotoAndPlay(2); } } movieClip 2375 { frame 1 { stop(); } } button 2382 { on (release) { _root.toggleInventory(); } on (rollOver) { _root.playSound('rollOver'); } } button 2389 { on (release) { _root.toggleTalentWindow(); } on (rollOver) { _root.playSound('rollOver'); } } button 2396 { on (release) { _root.toggleAbilities(); } on (rollOver) { _root.playSound('rollOver'); } } button 2403 { on (release) { _root.toggleMapWindow(); } on (rollOver) { _root.playSound('rollOver'); } } button 2410 { on (release) { _root.toggleOptions(); } on (rollOver) { _root.playSound('rollOver'); } } movieClip 2465 { frame 1 { stop(); } } button 2470 { on (release) { _root.usePotion('health'); } on (rollOver) { _root.playSound('rollOver'); } } button 2475 { on (release) { _root.usePotion('energy'); } on (rollOver) { _root.playSound('rollOver'); } } movieClip 2496 { frame 1 { characterBtn.useHandCursor = false; abilitiesBtn.useHandCursor = false; talentBtn.useHandCursor = false; mapBtn.useHandCursor = false; optionsBtn.useHandCursor = false; healthPot.useHandCursor = false; energyPot.useHandCursor = false; } instance slot0 of movieClip 2375 { onClipEvent (rollOver) { _root.getAbilityName(0); } onClipEvent (rollOut) { _root.clearAbilityName(); } } instance slot1 of movieClip 2375 { onClipEvent (rollOver) { _root.getAbilityName(1); } onClipEvent (rollOut) { _root.clearAbilityName(); } } instance slot2 of movieClip 2375 { onClipEvent (rollOver) { _root.getAbilityName(2); } onClipEvent (rollOut) { _root.clearAbilityName(); } } instance slot3 of movieClip 2375 { onClipEvent (rollOver) { _root.getAbilityName(3); } onClipEvent (rollOut) { _root.clearAbilityName(); } } instance slot4 of movieClip 2375 { onClipEvent (rollOver) { _root.getAbilityName(4); } onClipEvent (rollOut) { _root.clearAbilityName(); } } instance slot5 of movieClip 2375 { onClipEvent (rollOver) { _root.getAbilityName(5); } onClipEvent (rollOut) { _root.clearAbilityName(); } } instance slot6 of movieClip 2375 { onClipEvent (rollOver) { _root.getAbilityName(6); } onClipEvent (rollOut) { _root.clearAbilityName(); } } instance slot7 of movieClip 2375 { onClipEvent (rollOver) { _root.getAbilityName(7); } onClipEvent (rollOut) { _root.clearAbilityName(); } } instance slot8 of movieClip 2375 { onClipEvent (rollOver) { _root.getAbilityName(8); } onClipEvent (rollOut) { _root.clearAbilityName(); } } instance slot9 of movieClip 2375 { onClipEvent (rollOver) { _root.getAbilityName(9); } onClipEvent (rollOut) { _root.clearAbilityName(); } } } movieClip 2505 { } movieClip 2508 { } movieClip 2510 { instance slot4 of movieClip 261 buffIcons { onClipEvent (rollOver) { _root.showDebuffInfo(4); } onClipEvent (rollOut) { _root.clearBuffInfo(); } } instance slot3 of movieClip 261 buffIcons { onClipEvent (rollOver) { _root.showDebuffInfo(3); } onClipEvent (rollOut) { _root.clearBuffInfo(); } } instance slot2 of movieClip 261 buffIcons { onClipEvent (rollOver) { _root.showDebuffInfo(2); } onClipEvent (rollOut) { _root.clearBuffInfo(); } } instance slot1 of movieClip 261 buffIcons { onClipEvent (rollOver) { _root.showDebuffInfo(1); } onClipEvent (rollOut) { _root.clearBuffInfo(); } } instance slot0 of movieClip 261 buffIcons { onClipEvent (rollOver) { _root.showDebuffInfo(0); } onClipEvent (rollOut) { _root.clearBuffInfo(); } } } movieClip 2514 { } movieClip 2521 { } movieClip 2523 { } movieClip 2525 { } movieClip 2527 { } movieClip 2529 { } movieClip 2531 { } movieClip 2532 { frame 1 { debuff0.useHandCursor = false; debuff0.tabEnabled = false; bar0.useHandCursor = false; bar1.useHandCursor = false; bar2.useHandCursor = false; } instance slot0 of movieClip 261 buffIcons { onClipEvent (rollOver) { _root.showBuffInfo(0); } onClipEvent (rollOut) { _root.clearBuffInfo(); } } instance slot1 of movieClip 261 buffIcons { onClipEvent (rollOver) { _root.showBuffInfo(1); } onClipEvent (rollOut) { _root.clearBuffInfo(); } } instance slot2 of movieClip 261 buffIcons { onClipEvent (rollOver) { _root.showBuffInfo(2); } onClipEvent (rollOut) { _root.clearBuffInfo(); } } instance slot3 of movieClip 261 buffIcons { onClipEvent (rollOver) { _root.showBuffInfo(3); } onClipEvent (rollOut) { _root.clearBuffInfo(); } } instance slot4 of movieClip 261 buffIcons { onClipEvent (rollOver) { _root.showBuffInfo(4); } onClipEvent (rollOut) { _root.clearBuffInfo(); } } instance slot5 of movieClip 261 buffIcons { onClipEvent (rollOver) { _root.showBuffInfo(5); } onClipEvent (rollOut) { _root.clearBuffInfo(); } } instance slot6 of movieClip 261 buffIcons { onClipEvent (rollOver) { _root.showBuffInfo(6); } onClipEvent (rollOut) { _root.clearBuffInfo(); } } instance slot7 of movieClip 261 buffIcons { onClipEvent (rollOver) { _root.showBuffInfo(7); } onClipEvent (rollOut) { _root.clearBuffInfo(); } } instance debuff0 of movieClip 261 buffIcons { onClipEvent (rollOver) { _root.playSound('rollOver'); if (_root.isStunned) { _root.buffText._x = _root.charBar.debuff0._x + 12; _root.buffText._y = _root.charBar.debuff0._y; _root.buffText.gotoAndStop('stun'); } else { if (_root.isSnared) { _root.buffText._x = _root.charBar.debuff0._x + 12; _root.buffText._y = _root.charBar.debuff0._y; _root.buffText.gotoAndStop('snare'); } } } onClipEvent (rollOut) { _root.clearBuffInfo(); } } instance bar0 of movieClip 668 areaSquare { onClipEvent (rollOver) { _root.playSound('rollOver'); _root.charBar.healthWord._visible = false; _root.charBar.healthNum._visible = true; } onClipEvent (rollOut) { _root.charBar.healthWord._visible = true; _root.charBar.healthNum._visible = false; } } instance bar1 of movieClip 668 areaSquare { onClipEvent (rollOver) { _root.playSound('rollOver'); _root.charBar.energyWord._visible = false; _root.charBar.energyNum._visible = true; } onClipEvent (rollOut) { _root.charBar.energyWord._visible = true; _root.charBar.energyNum._visible = false; } } instance bar2 of movieClip 668 areaSquare { onClipEvent (rollOver) { _root.playSound('rollOver'); _root.charBar.expWord._visible = false; _root.charBar.expNum._visible = true; } onClipEvent (rollOut) { _root.charBar.expWord._visible = true; _root.charBar.expNum._visible = false; } } } movieClip 2534 { frame 41 { this.gotoAndStop(1); } } movieClip 2539 { } movieClip 2542 { } movieClip 2544 { } movieClip 2547 { } movieClip 2570 { frame 1 { stop(); } } movieClip 2579 { frame 8 { this._parent.gotoAndStop(1); } } movieClip 2590 { frame 10 { this._parent.gotoAndStop(1); } } movieClip 2603 { } movieClip 2642 { } movieClip 2655 { } movieClip 2680 { } movieClip 2719 { } movieClip 2734 { } movieClip 2747 { } movieClip 2770 { } movieClip 2785 { } movieClip 2786 { frame 1 { stop(); } } movieClip 2788 { instance of movieClip 652 { onClipEvent (enterFrame) { if (this._parent._parent._parent == _root.hero) { this.gotoAndStop(_root.savedAbility); } else { this.gotoAndStop(3); } } } frame 3 { _root.playSound('steadyShotUse'); } frame 5 { _root.finishAA(); } } movieClip 2789 { frame 4 { if (_root.weaponType == 'Sword' || _root.weaponType == 'Dagger') { _root.playSound('meleeAutoAttack'); } } frame 6 { if (_root.weaponType == 'Wand') { _root.playSound('wandAutoAttack'); } _root.finishAA(); } } movieClip 2790 { frame 8 { _root.playSound('bash'); } frame 10 { if (this._parent._parent == _root.hero) { _root.checkForHit(weapon2, _root[_root.target], 'bash'); } else { _root.checkHitHero(weapon2, this._parent._parent); } } frame 16 { _root.attackFinished(this._parent._parent); } } movieClip 2791 { frame 6 { if (this._parent._parent == _root.hero) { _root.checkForHit(weapon2, _root[_root.target], 'terrifyingShout'); } else { _root.checkHitHero(weapon2, this._parent._parent); } } frame 10 { _root.attackFinished(this._parent._parent); } } movieClip 2792 { frame 8 { _root.playSound('titan'); } frame 10 { if (this._parent._parent == _root.hero) { _root.checkForHit(weapon, _root[_root.target], 'titanSwing'); } else { _root.checkHitHero(weapon, this._parent._parent); } } frame 13 { _root.attackFinished(this._parent._parent); } } movieClip 2793 { frame 5 { _root.playSound('whirlwind'); } frame 11 { if (this._parent._parent == _root.hero) { _root.checkForHit(weapon2, _root[_root.target], 'whirlwind'); } else { _root.checkHitHero(weapon2, this._parent._parent); } } frame 16 { _root.playSound('whirlwind'); } frame 21 { if (this._parent._parent == _root.hero) { _root.checkForHit(weapon2, _root[_root.target], 'whirlwind'); } else { _root.checkHitHero(weapon2, this._parent._parent); } } frame 25 { _root.attackFinished(this._parent._parent); } } movieClip 2800 { } movieClip 2801 { } movieClip 2802 { frame 4 { if (this._parent._parent == _root.hero) { _root.checkForHit(weapon, _root[_root.target], 'backstab'); } else { _root.checkHitHero(weapon, this._parent._parent); } } frame 6 { _root.attackFinished(this._parent._parent); } } movieClip 2803 { frame 7 { _root.playSound('incap'); } frame 10 { if (this._parent._parent == _root.hero) { _root.checkForHit(weapon2, _root[_root.target], 'incapacitate'); } else { _root.checkHitHero(weapon2, this._parent._parent); } } frame 16 { _root.attackFinished(this._parent._parent); } } movieClip 2804 { frame 2 { _root.attackFinished(this._parent._parent); } } movieClip 2805 { frame 1 { _root.applyStealth(); _root.attackFinished(this._parent._parent); } } movieClip 2806 { frame 1 { _root.useBlinkStrike(); } frame 3 { _root.playSound('titan'); } frame 4 { if (this._parent._parent == _root.hero) { _root.checkForHit(weapon2, _root[_root.target], 'blinkStrike'); } else { _root.checkHitHero(weapon2, this._parent._parent); } } frame 9 { _root.attackFinished(this._parent._parent); } } movieClip 2807 { } movieClip 2808 { frame 6 { _root.attackFinished(this._parent._parent); } } movieClip 2809 { } movieClip 2810 { frame 1 { _root.useBlinkStep(); } frame 2 { _root.attackFinished(this._parent._parent); } } movieClip 2811 { frame 8 { _root.attackFinished(this._parent._parent); } } movieClip 2812 { frame 1 { stop(); } instance attack of movieClip 655 { onClipEvent (enterFrame) { this.arrow.gotoAndStop('steadyShot'); } } instance attack of movieClip 655 { onClipEvent (enterFrame) { this.arrow.gotoAndStop('explosiveShot'); } } instance attack of movieClip 655 { onClipEvent (enterFrame) { this.arrow.gotoAndStop('shadowShot'); } } } movieClip 2813 { } movieClip 2815 { } button 2824 { on (release) { _root.playSound('click'); var mySO = SharedObject.getLocal('game' + _root.saveSlot); mySO.data.charName = _root.charName; mySO.data.sex = _root.sex; mySO.data.level = _root.level; mySO.data.allowLower = _root.allowLower; mySO.data.soundOn = _root.soundOn; mySO.data.musicOn = _root.musicOn; mySO.data.exploration = _root.copyArray(_root.exploration); mySO.data.riddles = _root.copyArray(_root.riddles); mySO.data.respawnArray = _root.copyArray(_root.respawnArray); mySO.data.mainStoryline = _root.copyArray(_root.mainStoryline); mySO.data.questRewards = _root.copyArray(_root.questRewards); mySO.data.altStoryline = _root.copyArray(_root.altStoryline); mySO.data.bashT = _root.copyArray(_root.bashT); mySO.data.fireFistsT = _root.copyArray(_root.fireFistsT); mySO.data.terrifyingShoutT = _root.copyArray(_root.terrifyingShoutT); mySO.data.titanSwingT = _root.copyArray(_root.titanSwingT); mySO.data.whirlwindT = _root.copyArray(_root.whirlwindT); mySO.data.battleAuraT = _root.copyArray(_root.battleAuraT); mySO.data.fortifyT = _root.copyArray(_root.fortifyT); mySO.data.recoveryT = _root.copyArray(_root.recoveryT); mySO.data.warriorsSpiritT = _root.copyArray(_root.warriorsSpiritT); mySO.data.paralyzingSwingT = _root.copyArray(_root.paralyzingSwingT); mySO.data.aftermathT = _root.copyArray(_root.aftermathT); mySO.data.lifeStealT = _root.copyArray(_root.lifeStealT); mySO.data.shadowStrikeT = _root.copyArray(_root.shadowStrikeT); mySO.data.backstabT = _root.copyArray(_root.backstabT); mySO.data.stealthT = _root.copyArray(_root.stealthT); mySO.data.incapacitateT = _root.copyArray(_root.incapacitateT); mySO.data.bladeFlurryT = _root.copyArray(_root.bladeFlurryT); mySO.data.blinkStrikeT = _root.copyArray(_root.blinkStrikeT); mySO.data.anticipationT = _root.copyArray(_root.anticipationT); mySO.data.deadEyeT = _root.copyArray(_root.deadEyeT); mySO.data.stalkersSpiritT = _root.copyArray(_root.stalkersSpiritT); mySO.data.maliceT = _root.copyArray(_root.maliceT); mySO.data.killingSpreeT = _root.copyArray(_root.killingSpreeT); mySO.data.soulLinkT = _root.copyArray(_root.soulLinkT); mySO.data.steadyShotT = _root.copyArray(_root.steadyShotT); mySO.data.sylvanTouchT = _root.copyArray(_root.sylvanTouchT); mySO.data.naturesGraspT = _root.copyArray(_root.naturesGraspT); mySO.data.stalkersFuryT = _root.copyArray(_root.stalkersFuryT); mySO.data.explosiveShotT = _root.copyArray(_root.explosiveShotT); mySO.data.shadowShotT = _root.copyArray(_root.shadowShotT); mySO.data.scorpionBiteT = _root.copyArray(_root.scorpionBiteT); mySO.data.blessingOfTheWindT = _root.copyArray(_root.blessingOfTheWindT); mySO.data.spiritOfTheGroveT = _root.copyArray(_root.spiritOfTheGroveT); mySO.data.huntersPursuitT = _root.copyArray(_root.huntersPursuitT); mySO.data.mongooseT = _root.copyArray(_root.mongooseT); mySO.data.naturesRecoveryT = _root.copyArray(_root.naturesRecoveryT); mySO.data.scorchT = _root.copyArray(_root.scorchT); mySO.data.dazzleT = _root.copyArray(_root.dazzleT); mySO.data.recallT = _root.copyArray(_root.recallT); mySO.data.refreshT = _root.copyArray(_root.refreshT); mySO.data.blinkStepT = _root.copyArray(_root.blinkStepT); mySO.data.energyNovaT = _root.copyArray(_root.energyNovaT); mySO.data.dispellT = _root.copyArray(_root.dispellT); mySO.data.siphonEnergyT = _root.copyArray(_root.siphonEnergyT); mySO.data.arcanePulseT = _root.copyArray(_root.arcanePulseT); mySO.data.wizardsSpiritT = _root.copyArray(_root.wizardsSpiritT); mySO.data.focusedMindT = _root.copyArray(_root.focusedMindT); mySO.data.maliciousIntentT = _root.copyArray(_root.maliciousIntentT); mySO.data.incapacitate = _root.copyArray(_root.incapacitate); mySO.data.stalkersFury = _root.copyArray(_root.stalkersFury); mySO.data.bladeFlurry = _root.copyArray(_root.bladeFlurry); mySO.data.pointsPerTree = _root.copyArray(_root.pointsPerTree); mySO.data.treeNameByNum = _root.copyArray(_root.treeNameByNum); mySO.data.equipmentList = _root.copyArray(_root.equipmentList); mySO.data.abilityList = _root.copyArray(_root.abilityList); mySO.data.hotBarList = _root.copyArray(_root.hotBarList); mySO.data.inventory = _root.copyArray(_root.inventory); mySO.data.curExp = _root.curExp; mySO.data.nextLevel = _root.nextLevel; mySO.data.level = _root.level; mySO.data.currentTalentPoints = _root.currentTalentPoints; mySO.data.healthPots = _root.healthPots; mySO.data.energyPots = _root.energyPots; mySO.data.tutorialsOn = _root.tutorialsOn; mySO.data.gold = _root.gold; mySO.data.row = _root.row; mySO.data.col = _root.col; mySO.data.enemiesKilled = _root.enemiesKilled; mySO.data.highestHit = _root.highestHit; mySO.data.deaths = _root.deaths; mySO.data.talentResets = _root.talentResets; mySO.data.tutorialArray = _root.copyArray(_root.tutorialArray); mySO.data.tile0_0 = _root.copyArray(_root.tile0_0); mySO.data.tile0_1 = _root.copyArray(_root.tile0_1); mySO.data.tile0_2 = _root.copyArray(_root.tile0_2); mySO.data.tile0_8 = _root.copyArray(_root.tile0_8); mySO.data.tile0_9 = _root.copyArray(_root.tile0_9); mySO.data.tile1_1 = _root.copyArray(_root.tile1_1); mySO.data.tile1_2 = _root.copyArray(_root.tile1_2); mySO.data.tile1_3 = _root.copyArray(_root.tile1_3); mySO.data.tile1_6 = _root.copyArray(_root.tile1_6); mySO.data.tile1_7 = _root.copyArray(_root.tile1_7); mySO.data.tile1_8 = _root.copyArray(_root.tile1_8); mySO.data.tile1_9 = _root.copyArray(_root.tile1_9); mySO.data.tile2_0 = _root.copyArray(_root.tile2_0); mySO.data.tile2_3 = _root.copyArray(_root.tile2_3); mySO.data.tile2_4 = _root.copyArray(_root.tile2_4); mySO.data.tile2_7 = _root.copyArray(_root.tile2_7); mySO.data.tile2_9 = _root.copyArray(_root.tile2_9); mySO.data.tile3_1 = _root.copyArray(_root.tile3_1); mySO.data.tile3_3 = _root.copyArray(_root.tile3_3); mySO.data.tile3_4 = _root.copyArray(_root.tile3_4); mySO.data.tile4_1 = _root.copyArray(_root.tile4_1); mySO.data.tile4_3 = _root.copyArray(_root.tile4_3); mySO.data.tile4_5 = _root.copyArray(_root.tile4_5); mySO.data.tile5_0 = _root.copyArray(_root.tile5_0); mySO.data.tile5_1 = _root.copyArray(_root.tile5_1); mySO.data.tile5_2 = _root.copyArray(_root.tile5_2); mySO.data.tile5_3 = _root.copyArray(_root.tile5_3); mySO.data.tile5_4 = _root.copyArray(_root.tile5_4); mySO.data.tile5_7 = _root.copyArray(_root.tile5_7); mySO.data.tile5_9 = _root.copyArray(_root.tile5_9); mySO.data.tile6_2 = _root.copyArray(_root.tile6_2); mySO.data.tile6_3 = _root.copyArray(_root.tile6_3); mySO.data.tile6_5 = _root.copyArray(_root.tile6_5); mySO.data.tile6_6 = _root.copyArray(_root.tile6_6); mySO.data.tile6_7 = _root.copyArray(_root.tile6_7); mySO.data.tile6_9 = _root.copyArray(_root.tile6_9); mySO.data.tile7_0 = _root.copyArray(_root.tile7_0); mySO.data.tile7_4 = _root.copyArray(_root.tile7_4); mySO.data.tile7_5 = _root.copyArray(_root.tile7_5); mySO.data.tile7_6 = _root.copyArray(_root.tile7_6); mySO.data.tile7_7 = _root.copyArray(_root.tile7_7); mySO.data.tile7_8 = _root.copyArray(_root.tile7_8); mySO.flush(100000); _root.chatWindow.saveBar.gotoAndPlay(2); } on (rollOver) { _root.playSound('rollOver'); } } movieClip 2826 { } movieClip 2828 { } movieClip 2835 { frame 1 { stop(); } frame 21 { _root.playSound('riddleCorrect'); stop(); } } button 2849 { on (rollOver) { _root.playSound('rollOver'); this.itemName = 'healthPotion'; costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'healthPotion'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; ++_root.healthPots; _root.showMessage('Item Purchased'); } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2852 { on (rollOver) { _root.playSound('rollOver'); this.itemName = 'energyPotion'; costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'energyPotion'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; ++_root.energyPots; _root.showMessage('Item Purchased'); } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2853 { on (rollOver) { this.itemName = 'clothRobe'; _root.createItemText(_root.chatWindow.slot2, this.itemName); costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'clothRobe'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; _root.showMessage('Item Purchased'); } } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2854 { on (rollOver) { this.itemName = 'mossyWraps'; _root.createItemText(_root.chatWindow.slot3, this.itemName); costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'mossyWraps'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; _root.showMessage('Item Purchased'); } } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2855 { on (rollOver) { this.itemName = 'dentedHelm'; _root.createItemText(_root.chatWindow.slot4, this.itemName); costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'dentedHelm'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; _root.showMessage('Item Purchased'); } } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2856 { on (rollOver) { this.itemName = 'warpwoodStaff'; _root.createItemText(_root.chatWindow.slot5, this.itemName); costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'warpwoodStaff'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; _root.showMessage('Item Purchased'); } } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2857 { on (rollOver) { this.itemName = 'vinewrapSandals'; _root.createItemText(_root.chatWindow.slot6, this.itemName); costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'vinewrapSandals'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; _root.showMessage('Item Purchased'); } } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2858 { on (rollOver) { this.itemName = 'rustyDagger'; _root.createItemText(_root.chatWindow.slot7, this.itemName); costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'rustyDagger'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; _root.showMessage('Item Purchased'); } } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2859 { on (rollOver) { this.itemName = 'leafguardLegs'; _root.createItemText(_root.chatWindow.slot8, this.itemName); costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'leafguardLegs'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; _root.showMessage('Item Purchased'); } } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2860 { on (rollOver) { this.itemName = 'fadedHood'; _root.createItemText(_root.chatWindow.slot9, this.itemName); costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'fadedHood'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; _root.showMessage('Item Purchased'); } } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2861 { on (rollOver) { this.itemName = 'rustyBoots'; _root.createItemText(_root.chatWindow.slot10, this.itemName); costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'rustyBoots'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; _root.showMessage('Item Purchased'); } } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2862 { on (rollOver) { this.itemName = 'mysticOrb'; _root.createItemText(_root.chatWindow.slot11, this.itemName); costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'mysticOrb'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; _root.showMessage('Item Purchased'); } } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2873 { on (rollOver) { this.itemName = 'rustyGloves'; _root.createItemText(_root.chatWindow.slot2, this.itemName); costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'rustyGloves'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; _root.showMessage('Item Purchased'); } } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2874 { on (rollOver) { this.itemName = 'strikersMark'; _root.createItemText(_root.chatWindow.slot3, this.itemName); costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'strikersMark'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; _root.showMessage('Item Purchased'); } } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2875 { on (rollOver) { this.itemName = 'leafguardLegs'; _root.createItemText(_root.chatWindow.slot4, this.itemName); costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'leafguardLegs'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; _root.showMessage('Item Purchased'); } } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2876 { on (rollOver) { this.itemName = 'peonsTabard'; _root.createItemText(_root.chatWindow.slot6, this.itemName); costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'peonsTabard'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; _root.showMessage('Item Purchased'); } } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2877 { on (rollOver) { this.itemName = 'steelBreastplate'; _root.createItemText(_root.chatWindow.slot7, this.itemName); costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'steelBreastplate'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; _root.showMessage('Item Purchased'); } } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2878 { on (rollOver) { this.itemName = 'bastardSword'; _root.createItemText(_root.chatWindow.slot8, this.itemName); costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'bastardSword'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; _root.showMessage('Item Purchased'); } } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2879 { on (rollOver) { this.itemName = 'headcoverOfFaith'; _root.createItemText(_root.chatWindow.slot9, this.itemName); costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'headcoverOfFaith'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; _root.showMessage('Item Purchased'); } } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2880 { on (rollOver) { this.itemName = 'bootsOfTheTrue'; _root.createItemText(_root.chatWindow.slot10, this.itemName); costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'bootsOfTheTrue'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; _root.showMessage('Item Purchased'); } } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2881 { on (rollOver) { this.itemName = 'filedShanker'; _root.createItemText(_root.chatWindow.slot11, this.itemName); costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'filedShanker'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; _root.showMessage('Item Purchased'); } } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2893 { on (rollOver) { this.itemName = 'justice'; _root.createItemText(_root.chatWindow.slot5, this.itemName); costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'justice'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; _root.showMessage('Item Purchased'); } } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2894 { on (rollOver) { this.itemName = 'enchantedWoodBow'; _root.createItemText(_root.chatWindow.slot8, this.itemName); costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'enchantedWoodBow'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; _root.showMessage('Item Purchased'); } } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2896 { on (rollOver) { this.itemName = 'quickstrikeBlade'; _root.createItemText(_root.chatWindow.slot11, this.itemName); costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'quickstrikeBlade'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; _root.showMessage('Item Purchased'); } } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2897 { on (rollOver) { this.itemName = 'enchantedTanglewoodRod'; _root.createItemText(_root.chatWindow.slot2, this.itemName); costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'enchantedTanglewoodRod'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; _root.showMessage('Item Purchased'); } } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2908 { on (release) { var pG = _root.chatWindow.guessTxt.text; pG = pG.toUpperCase(); if (pG == 12 || pG == 'ALL' || pG == 'ALL OF THEM' || pG == 'ALL 12' || pG == 'EVERY ONE' || pG == 'EVERY ONE OF THEM') { _root.playSound('riddleCorrect'); var itemName = 'item' + _root.itemDepth; _root.attachMovie('gold', itemName, _root.itemDepth); _root[itemName]._x = _root.ground.npc1._x; _root[itemName]._y = _root.ground.npc1._y; _root[itemName].amount = 40; _root.itemsOnGround[_root.itemsOnGround.length] = _root[itemName]; _root.getItemDepth(); _root.dropGear(_root.ground.npc1._x, _root.ground.npc1._y, _root.table2r[random(_root.table2r.length)], 2); ++_root.currentTalentPoints; _root.changeExp(15); _root.hotBar.talentPointsTxt.text = _root.currentTalentPoints; _root.showMessage('You gained 1 Talent Point!'); _root.riddles[0] = 1; } else { _root.playSound('riddleWrong'); _root.riddles[0] = 2; } } on (rollOver) { _root.playSound('rollOver'); } } button 2916 { on (release) { var pG = _root.chatWindow.guessTxt.text; if (pG == 33) { _root.playSound('riddleCorrect'); var itemName = 'item' + _root.itemDepth; _root.attachMovie('gold', itemName, _root.itemDepth); _root[itemName]._x = _root.ground.npc1._x; _root[itemName]._y = _root.ground.npc1._y; _root[itemName].amount = 80; _root.itemsOnGround[_root.itemsOnGround.length] = _root[itemName]; _root.getItemDepth(); _root.dropGear(_root.ground.npc1._x, _root.ground.npc1._y, _root.table10r[random(_root.table10r.length)], 2); ++_root.currentTalentPoints; _root.changeExp(100); _root.hotBar.talentPointsTxt.text = _root.currentTalentPoints; _root.showMessage('You gained 1 Talent Point!'); _root.riddles[1] = 1; } else { _root.playSound('riddleWrong'); _root.riddles[1] = 2; } } } button 2922 { on (release) { var pG = _root.chatWindow.guessTxt.text; if (pG == 15 || pG == 'fifteen' || pG == 'Fifteen') { _root.playSound('riddleCorrect'); var itemName = 'item' + _root.itemDepth; _root.attachMovie('gold', itemName, _root.itemDepth); _root[itemName]._x = _root.ground.npc1._x; _root[itemName]._y = _root.ground.npc1._y; _root[itemName].amount = 60; _root.itemsOnGround[_root.itemsOnGround.length] = _root[itemName]; _root.getItemDepth(); _root.dropGear(_root.ground.npc1._x, _root.ground.npc1._y, _root.table6r[random(_root.table6r.length)], 2); ++_root.currentTalentPoints; _root.changeExp(60); _root.hotBar.talentPointsTxt.text = _root.currentTalentPoints; _root.showMessage('You gained 1 Talent Point!'); _root.riddles[2] = 1; } else { _root.riddles[2] = 2; _root.playSound('riddleWrong'); } } } button 2937 { on (rollOver) { this.itemName = 'squiresColors'; _root.createItemText(_root.chatWindow.slot2, this.itemName); costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'squiresColors'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; _root.showMessage('Item Purchased'); } } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2938 { on (rollOver) { this.itemName = 'pantsOfTheScout'; _root.createItemText(_root.chatWindow.slot3, this.itemName); costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'pantsOfTheScout'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; _root.showMessage('Item Purchased'); } } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2939 { on (rollOver) { this.itemName = 'spectralHeaddress'; _root.createItemText(_root.chatWindow.slot4, this.itemName); costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'spectralHeaddress'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; _root.showMessage('Item Purchased'); } } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2940 { on (rollOver) { this.itemName = 'serpentIdol'; _root.createItemText(_root.chatWindow.slot5, this.itemName); costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'serpentIdol'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; _root.showMessage('Item Purchased'); } } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2941 { on (rollOver) { this.itemName = 'bronzeGauntlets'; _root.createItemText(_root.chatWindow.slot6, this.itemName); costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'bronzeGauntlets'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; _root.showMessage('Item Purchased'); } } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2942 { on (rollOver) { this.itemName = 'energizingSlippers'; _root.createItemText(_root.chatWindow.slot7, this.itemName); costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'energizingSlippers'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; _root.showMessage('Item Purchased'); } } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2943 { on (rollOver) { this.itemName = 'huntersBow'; _root.createItemText(_root.chatWindow.slot8, this.itemName); costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'huntersBow'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; _root.showMessage('Item Purchased'); } } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2944 { on (rollOver) { this.itemName = 'steelDagger'; _root.createItemText(_root.chatWindow.slot9, this.itemName); costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'steelDagger'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; _root.showMessage('Item Purchased'); } } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2945 { on (rollOver) { this.itemName = 'weightedLongsword'; _root.createItemText(_root.chatWindow.slot10, this.itemName); costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'weightedLongsword'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; _root.showMessage('Item Purchased'); } } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2946 { on (rollOver) { this.itemName = 'staffOfTheProphet'; _root.createItemText(_root.chatWindow.slot11, this.itemName); costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'staffOfTheProphet'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; _root.showMessage('Item Purchased'); } } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2953 { on (release) { if (_root.gold >= 100) { _root.playSound('click'); _root.gold -= 100; _root.resetTalents(); } else { _root.playSound('error'); _root.showMessage('Not Enough Gold'); } } on (rollOver) { _root.playSound('rollOver'); } } button 2964 { on (rollOver) { this.itemName = 'lightbringer'; _root.createItemText(_root.chatWindow.slot0, this.itemName); } on (release) { this.itemName = 'lightbringer'; if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.showMessage('Item Received'); _root.mainStoryline[30] = true; _root.chatWindow.gotoAndStop(1); _root.tile0_9[0][5] = false; } } on (rollOut) { _root.removeItemText(); } } button 2965 { on (rollOver) { this.itemName = 'shadowbane'; _root.createItemText(_root.chatWindow.slot1, this.itemName); } on (release) { this.itemName = 'shadowbane'; if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.showMessage('Item Received'); _root.mainStoryline[30] = true; _root.chatWindow.gotoAndStop(1); _root.tile0_9[0][5] = false; } } on (rollOut) { _root.removeItemText(); } } button 2966 { on (rollOver) { this.itemName = 'painAndSuffering'; _root.createItemText(_root.chatWindow.slot2, this.itemName); } on (release) { this.itemName = 'painAndSuffering'; if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.showMessage('Item Received'); _root.mainStoryline[30] = true; _root.chatWindow.gotoAndStop(1); _root.tile0_9[0][5] = false; } } on (rollOut) { _root.removeItemText(); } } button 2967 { on (rollOver) { this.itemName = 'shadowculler'; _root.createItemText(_root.chatWindow.slot3, this.itemName); } on (release) { this.itemName = 'shadowculler'; if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.showMessage('Item Received'); _root.mainStoryline[30] = true; _root.chatWindow.gotoAndStop(1); _root.tile0_9[0][5] = false; } } on (rollOut) { _root.removeItemText(); } } button 2973 { on (rollOver) { this.itemName = 'championsGuard'; _root.createItemText(_root.chatWindow.slot2, this.itemName); costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'championsGuard'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; _root.showMessage('Item Purchased'); } } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2974 { on (rollOver) { this.itemName = 'mageweaveSlippers'; _root.createItemText(_root.chatWindow.slot3, this.itemName); costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'mageweaveSlippers'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; _root.showMessage('Item Purchased'); } } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2975 { on (rollOver) { this.itemName = 'truesightCover'; _root.createItemText(_root.chatWindow.slot4, this.itemName); costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'truesightCover'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; _root.showMessage('Item Purchased'); } } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2976 { on (rollOver) { this.itemName = 'giantsbane'; _root.createItemText(_root.chatWindow.slot5, this.itemName); costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'giantsbane'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; _root.showMessage('Item Purchased'); } } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2977 { on (rollOver) { this.itemName = 'mastersLeggings'; _root.createItemText(_root.chatWindow.slot6, this.itemName); costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'mastersLeggings'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; _root.showMessage('Item Purchased'); } } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2978 { on (rollOver) { this.itemName = 'sylvanGuards'; _root.createItemText(_root.chatWindow.slot7, this.itemName); costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'sylvanGuards'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; _root.showMessage('Item Purchased'); } } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2979 { on (rollOver) { this.itemName = 'bladeOfTheDawn'; _root.createItemText(_root.chatWindow.slot8, this.itemName); costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'bladeOfTheDawn'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; _root.showMessage('Item Purchased'); } } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2980 { on (rollOver) { this.itemName = 'turningTideBow'; _root.createItemText(_root.chatWindow.slot9, this.itemName); costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'turningTideBow'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; _root.showMessage('Item Purchased'); } } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2981 { on (rollOver) { this.itemName = 'daggerOfMalice'; _root.createItemText(_root.chatWindow.slot10, this.itemName); costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'daggerOfMalice'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; _root.showMessage('Item Purchased'); } } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } button 2982 { on (rollOver) { this.itemName = 'aeristsWandOfJustice'; _root.createItemText(_root.chatWindow.slot11, this.itemName); costTxt.text = _root.getItemCost(this.itemName); } on (release) { this.itemName = 'aeristsWandOfJustice'; var cost = _root.getItemCost(this.itemName); if (_root.gold >= cost) { if (_root.findInvSlot() == -1) { _root.showMessage('Inventory Full'); } else { _root.addItemToInventory(null, this.itemName); _root.gold -= cost; _root.chatWindow.goldTxt.text = _root.gold; _root.showMessage('Item Purchased'); } } else { _root.showMessage('Not Enough Gold'); } } on (rollOut) { _root.removeItemText(); costTxt.text = ''; } } movieClip 2993 { frame 1 { _root.removeItemText(); } frame 1 { stop(); } frame 4 { myBtn.useHandCursor = false; myBtn.tabEnabled = false; } frame 6 { goldTxt.text = _root.gold; var i = 0; while (i < 13) { var slot = 'slot' + i; _root.chatWindow[slot].useHandCursor = false; _root.chatWindow[slot].tabEnabled = false; ++i; } } frame 12 { goldTxt.text = _root.gold; var i = 0; while (i < 13) { var slot = 'slot' + i; _root.chatWindow[slot].useHandCursor = false; _root.chatWindow[slot].tabEnabled = false; ++i; } } frame 18 { goldTxt.text = _root.gold; var i = 0; while (i < 13) { var slot = 'slot' + i; _root.chatWindow[slot].useHandCursor = false; _root.chatWindow[slot].tabEnabled = false; ++i; } } frame 19 { cName.text = _root.charName + ','; } frame 21 { guessBtn.useHandCursor = false; guessBtn.tabEnabled = false; } frame 26 { guessBtn.useHandCursor = false; guessBtn.tabEnaled = false; } frame 29 { guessBtn.useHandCursor = false; guessBtn.tabEnabled = false; } frame 42 { goldTxt.text = _root.gold; var i = 0; while (i < 13) { var slot = 'slot' + i; _root.chatWindow[slot].useHandCursor = false; _root.chatWindow[slot].tabEnabled = false; ++i; } } frame 43 { myBtn.useHandCursor = false; myBtn.tabEnabled = false; } frame 52 { _root.chatWindow.slot0.useHandCursor = false; _root.chatWindow.slot1.useHandCursor = false; _root.chatWindow.slot2.useHandCursor = false; _root.chatWindow.slot3.useHandCursor = false; _root.chatWindow.slot0.tabEnabled = false; _root.chatWindow.slot1.tabEnabled = false; _root.chatWindow.slot2.tabEnabled = false; _root.chatWindow.slot3.tabEnabled = false; } frame 53 { goldTxt.text = _root.gold; var i = 0; while (i < 13) { var slot = 'slot' + i; _root.chatWindow[slot].useHandCursor = false; _root.chatWindow[slot].tabEnabled = false; ++i; } } frame 58 { cName.text = _root.charName + ','; } } button 2999 { on (release) { _root.playSound('click'); _root.tutorialsOn = false; _root.npcInterval = setInterval(_root.moveNPC, 40); _root.tutorialWindow.gotoAndStop(1); } on (rollOver) { _root.playSound('rollOver'); } } button 3009 { on (release) { _root.playSound('click'); _root.npcInterval = setInterval(_root.moveNPC, 40); _root.tutorialWindow.gotoAndStop(1); } on (rollOver) { _root.playSound('rollOver'); } } button 3010 { on (release) { _root.playSound('click'); _root.tutorialWindow.gotoAndStop(1); } on (rollOver) { _root.playSound('rollOver'); } } button 3011 { on (release) { _root.playSound('click'); _root.tutorialsOn = false; _root.tutorialWindow.gotoAndStop(1); } on (rollOver) { _root.playSound('rollOver'); } } movieClip 3036 { } movieClip 3037 { } movieClip 3039 { } movieClip 3040 { } movieClip 3043 { } movieClip 3044 { } movieClip 3071 { } movieClip 3072 { } movieClip 3079 { } button 3086 { on (release) { _root.playSound('click'); _root.respawnHero(); } on (rollOver) { _root.playSound('rollOver'); } } movieClip 3091 { frame 1 { stop(); } frame 2 { closeBtn.useHandCursor = false; hideBtn.useHandCursor = false; closeBtn.tabEnabled = false; hideBtn.tabEnabled = false; } frame 3 { closeBtn.useHandCursor = false; hideBtn.useHandCursor = false; closeBtn.tabEnabled = false; hideBtn.tabEnabled = false; } frame 4 { closeBtn.useHandCursor = false; hideBtn.useHandCursor = false; closeBtn.tabEnabled = false; hideBtn.tabEnabled = false; } frame 5 { closeBtn.useHandCursor = false; hideBtn.useHandCursor = false; closeBtn.tabEnabled = false; hideBtn.tabEnabled = false; } frame 6 { closeBtn.useHandCursor = false; hideBtn.useHandCursor = false; closeBtn.tabEnabled = false; hideBtn.tabEnabled = false; } frame 7 { closeBtn.useHandCursor = false; hideBtn.useHandCursor = false; closeBtn.tabEnabled = false; hideBtn.tabEnabled = false; } frame 8 { closeBtn.useHandCursor = false; hideBtn.useHandCursor = false; closeBtn.tabEnabled = false; hideBtn.tabEnabled = false; } frame 9 { closeBtn.useHandCursor = false; hideBtn.useHandCursor = false; closeBtn.tabEnabled = false; hideBtn.tabEnabled = false; } frame 10 { closeBtn.useHandCursor = false; hideBtn.useHandCursor = false; closeBtn.tabEnabled = false; hideBtn.tabEnabled = false; } frame 11 { closeBtn.useHandCursor = false; hideBtn.useHandCursor = false; closeBtn.tabEnabled = false; hideBtn.tabEnabled = false; } frame 12 { closeBtn.useHandCursor = false; hideBtn.useHandCursor = false; closeBtn.tabEnabled = false; hideBtn.tabEnabled = false; } frame 13 { respawnBtn.useHandCursor = false; respawnBtn.tabEnabled = false; } } movieClip 3163 { frame 1 { stop(); } frame 2 { this.gotoAndStop(1); } frame 12 { this.gotoAndStop(1); } frame 20 { this.gotoAndStop(1); } frame 30 { this.gotoAndStop(1); } frame 38 { this.gotoAndStop(1); } frame 47 { this.gotoAndStop(1); } frame 54 { this.gotoAndStop(1); } frame 61 { this.gotoAndStop(1); } frame 71 { this.gotoAndStop(1); } frame 82 { this.gotoAndStop(1); } frame 95 { this.gotoAndStop(1); } frame 106 { this.gotoAndStop(1); } frame 115 { this.gotoAndStop(1); } frame 128 { this.gotoAndStop(1); } frame 139 { this.gotoAndStop(1); } frame 150 { this.gotoAndStop(1); } frame 162 { this.gotoAndStop(1); } frame 171 { this.gotoAndStop(1); } frame 182 { this.gotoAndStop(1); } frame 192 { this.gotoAndStop(1); } frame 204 { this.gotoAndStop(1); } frame 216 { this.gotoAndStop(1); } frame 229 { this.gotoAndStop(1); } frame 243 { this.gotoAndStop(1); } frame 257 { this.gotoAndStop(1); } frame 268 { this.gotoAndStop(1); } frame 277 { this.gotoAndStop(1); } frame 292 { this.gotoAndStop(1); } frame 305 { this.gotoAndStop(1); } frame 318 { this.gotoAndStop(1); } frame 329 { this.gotoAndStop(1); } frame 341 { this.gotoAndStop(1); } frame 355 { this.gotoAndStop(1); } frame 364 { this.gotoAndStop(1); } frame 375 { this.gotoAndStop(1); } frame 385 { this.gotoAndStop(1); } frame 398 { this.gotoAndStop(1); } frame 411 { this.gotoAndStop(1); } frame 424 { this.gotoAndStop(1); } frame 438 { this.gotoAndStop(1); } frame 452 { this.gotoAndStop(1); } frame 465 { this.gotoAndStop(1); } frame 476 { this.gotoAndStop(1); } frame 489 { this.gotoAndStop(1); } frame 502 { this.gotoAndStop(1); } frame 515 { this.gotoAndStop(1); } frame 525 { this.gotoAndStop(1); } frame 538 { this.gotoAndStop(1); } frame 553 { this.gotoAndStop(1); } frame 566 { this.gotoAndStop(1); } frame 577 { this.gotoAndStop(1); } frame 586 { this.gotoAndStop(1); } frame 599 { this.gotoAndStop(1); } frame 611 { this.gotoAndStop(1); } frame 624 { this.gotoAndStop(1); } frame 639 { this.gotoAndStop(1); } frame 648 { this.gotoAndStop(1); } frame 659 { this.gotoAndStop(1); } frame 670 { this.gotoAndStop(1); } frame 683 { this.gotoAndStop(1); } frame 698 { this.gotoAndStop(1); } frame 711 { this.gotoAndStop(1); } frame 712 { this.gotoAndStop(1); } frame 713 { this.gotoAndStop(1); } frame 714 { this.gotoAndStop(1); } frame 715 { this.gotoAndStop(1); } frame 716 { this.gotoAndStop(1); } frame 717 { this.gotoAndStop(1); } frame 718 { this.gotoAndStop(1); } frame 719 { this.gotoAndStop(1); } frame 720 { this.gotoAndStop(1); } frame 721 { this.gotoAndStop(1); } frame 722 { this.gotoAndStop(1); } frame 723 { this.gotoAndStop(1); } } frame 56 { function myFirstItemHandler() { getURL('http://www.axis-games.com/shadowreign.php', ''); } var my_cm; my_cm = new ContextMenu(); my_cm.hideBuiltInItems(); var myFirstItem_cmi; myFirstItem_cmi = new ContextMenuItem('(c)2009 - axis-games.com', myFirstItemHandler); my_cm.customItems.push(myFirstItem_cmi); _root.menu = my_cm; _root.attachMovie('fadeToWhite', 'fadeToWhite', _root.getNextHighestDepth()); _root.maskMC.cacheAsBitmap = true; _root.introVideo.cacheAsBitmap = true; _root.introVideo.setMask('maskMC'); skipBtn.useHandCursor = false; } movieClip 3166 { } movieClip 3167 { frame 1167 { _root.attachMovie('fadeToBlack', 'fadeToBlack', _root.getNextHighestDepth()); _root.fadeToBlack.goal = 'end'; } } button 3168 { on (release) { _root.attachMovie('fadeToBlack', 'fadeToBlack', _root.getNextHighestDepth()); _root.fadeToBlack.goal = 'end'; } } frame 64 { function myFirstItemHandler() { getURL('http://www.axis-games.com/shadowreign.php', ''); } var my_cm; my_cm = new ContextMenu(); my_cm.hideBuiltInItems(); var myFirstItem_cmi; myFirstItem_cmi = new ContextMenuItem('(c)2009 - axis-games.com', myFirstItemHandler); my_cm.customItems.push(myFirstItem_cmi); _root.menu = my_cm; _root.attachMovie('fadeToWhite', 'fadeToWhite', _root.getNextHighestDepth()); logoBtn.useHandCursor = false; textBtn.useHandCursor = false; mainMenuBtn.useHandCursor = false; } button 3174 { on (release) { getURL('http://www.axis-games.com', '_blank'); } }




http://swfchan.com/21/100109/info.shtml
Created: 10/8 -2019 15:32:59 Last modified: 10/8 -2019 15:32:59 Server time: 22/12 -2024 09:09:34