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

swfchan now supports swf files with LZMA compression.

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

Little Protector Planes.swf

This is the info page for
Flash #207543

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


ActionScript [AS1/AS2]
Combined Code
// unknown tag 88 length 229 // unknown tag 88 length 220 movieClip 4 { } movieClip 7 { } movieClip 9 { } movieClip 10 { } movieClip 11 IDTooltip { #initclip Object.registerClass('IDTooltip', oxylus.Tooltip03.Tooltip); #endinitclip } // unknown tag 88 length 115 movieClip 14 tooltip_loader { } frame 1 { urlStart = _url.indexOf('://') + 3; urlEnd = _url.indexOf('/', urlStart); domain = _url.substring(urlStart, urlEnd); LastDot = domain.lastIndexOf('.') - 1; domEnd = domain.lastIndexOf('.', LastDot) + 1; domain = domain.substring(domEnd, domain.length); var onAG = true; if (domain != 'armorgames.com') { onAG = false; } } movieClip 2078 __Packages.oxylus.Tooltip03.Tooltip { #initclip if (!_global.oxylus) { _global.oxylus = new Object(); } if (!_global.oxylus.Tooltip03) { _global.oxylus.Tooltip03 = new Object(); } if (!_global.oxylus.Tooltip03.Tooltip) { var v1 = function () { super(); this._alpha = 0; this._x = Stage.width; this._y = Stage.height; this.Text = this.createEmptyMovieClip('Text', this.getNextHighestDepth()); this.stroke = this.stroke; this.bg = this.bg; this.defaultValues(); }; oxylus.Tooltip03.Tooltip = v1; oxylus.Tooltip03.Tooltip extends MovieClip; var v2 = v1.prototype; v2.defaultValues = function () { this.obj = new Object(); this.obj.strokeColor = 0; this.obj.strokeAlpha = 100; this.obj.strokeWidth = 0; this.obj.backgroundColor = new Array(); this.obj.backgroundAlpha = 100; this.obj.backgroundRadius = 0; this.obj.backgroundWidth = 0; this.obj.backgroundHeight = 0; this.obj.tipOrientation = 'bottom'; this.obj.tipWidth = 0; this.obj.tipHeight = 0; this.obj.tipInclination = 0; this.obj.tipX = 0; this.obj.tipAutoMove = 'false'; this.obj.myTexts = new Array(); this.obj.myTexts[0] = 'Text unavailable, please execute setCustomVars({ }) !'; this.obj.myFonts = new Array(); this.obj.myFonts[0] = 'my_font1'; this.obj.myColors = new Array(); this.obj.mySizes = new Array(); this.obj.myUnderlines = new Array(); this.obj.myLengths = new Array(); this.obj.myVerticalSpaces = new Array(); this.obj.textXPos = 0; this.obj.image = ''; this.obj.imageHeight = 30; this.obj.imageWidth = 30; this.obj.imageBackgroundColor = 16777215; this.obj.imageBackgroundAlpha = 100; this.obj.imageBackgroundWidth = 0; this.obj.imageX = 0; this.obj.imageY = 0; this.obj.farX = 4; this.obj.delay = 0.1; this.obj.animationTime = 0.5; this.obj.animationType = 'linear'; this.obj.stay = 0; this.obj.XDistanceFromCursor = 0; this.obj.YDistanceFromCursor = 0; this.obj.alignHoriz = 'center'; this.obj.alignVerti = 'top'; this.obj.stageToleranceX = 0; this.obj.stageToleranceY = 0; this.obj.addShadow = 'false'; this.obj.shadowDistance = 1; this.obj.shadowAngleInDegrees = 45; this.obj.shadowColor = 0; this.obj.shadowAlpha = 0.25; this.obj.shadowBlurX = 1.5; this.obj.shadowBlurY = 1.5; this.obj.shadowStrength = 1; this.obj.shadowQuality = 3; this.obj.shadowInner = false; this.obj.shadowKnockout = false; this.obj.shadowHideObject = false; }; v2.show = function (myObj) { clearInterval(this.myInt); caurina.transitions.Tweener.removeTweens(this); this.shortParse(myObj); caurina.transitions.Tweener.addTween(this, {'_alpha': 100, 'delay': this.obj.delay, 'time': this.obj.animationTime, 'transition': this.obj.animationType, 'onStart': ascb.util.Proxy.create(this, this.startInterval)}); }; v2.startInterval = function () { this.move(1); if (this.obj.stay != 0) { caurina.transitions.Tweener.addTween(this, {'_alpha': 0, 'delay': this.obj.stay, 'time': this.obj.animationTime, 'transition': this.obj.animationType, 'onStart': ascb.util.Proxy.create(this, this.endInterval)}); } this.myInt = setInterval(this, 'move', 10); }; v2.move = function (aux) { switch (this.obj.alignHoriz) { case 'center': if (_root._xmouse + this.actualBgWidth / 2 + this.obj.stageToleranceX < Stage.width && _root._xmouse - this.actualBgWidth / 2 > this.obj.stageToleranceX) { this._x = Math.round(_root._xmouse - this.actualBgWidth / 2); if (this.obj.tipAutoMove == 'true') { this.obj.tipX = this.actualBgWidth / 2 + this.obj.tipWidth / 2; this.buildBackground(); } } else { if (_root._xmouse - this.actualBgWidth / 2 - this.obj.stageToleranceX < 0) { this._x = this.obj.stageToleranceX; if (aux == 1 && this.obj.tipAutoMove == 'true') { this.obj.tipX = this.obj.tipWidth + this.obj.backgroundRadius; this.buildBackground(); } if (this.obj.tipAutoMove == 'true' && _root._xmouse - this.obj.stageToleranceX - this.obj.backgroundRadius > this.obj.tipWidth / 2) { this.obj.tipX = _root._xmouse - this.obj.stageToleranceX + this.obj.tipWidth / 2; this.buildBackground(); } } else { if (aux == 1) { if (this.obj.tipAutoMove == 'true') { this._x = Math.round(Stage.width - this.actualBgWidth - this.obj.stageToleranceX); this.obj.tipX = this.actualBgWidth - this.obj.strokeWidth - this.obj.backgroundRadius; this.buildBackground(); } else { this._x = Math.round(Stage.width - this.actualBgWidth - this.obj.stageToleranceX); } } if (this.obj.tipAutoMove == 'true' && _root._xmouse - Math.round(Stage.width - this.actualBgWidth - this.obj.stageToleranceX) + this.obj.strokeWidth + this.obj.tipWidth + this.obj.backgroundRadius < this.actualBgWidth) { this.obj.tipX = _root._xmouse - Math.round(Stage.width - this.actualBgWidth - this.obj.stageToleranceX - this.obj.tipWidth - this.obj.strokeWidth); this.buildBackground(); } } } break; case 'left': if (_root._xmouse + this.obj.tipWidth / 2 + this.obj.backgroundRadius + this.obj.stageToleranceX < Stage.width && _root._xmouse - this.actualBgWidth + this.obj.tipWidth + this.obj.backgroundRadius > this.obj.stageToleranceX) { this._x = Math.round(_root._xmouse - this.actualBgWidth + this.obj.tipWidth + this.obj.backgroundRadius + this.obj.XDistanceFromCursor); this.obj.tipX = this.actualBgWidth - this.obj.strokeWidth - this.obj.backgroundRadius; this.buildBackground(); } else { if (_root._xmouse - this.actualBgWidth - this.obj.stageToleranceX < 0) { if (this._x != this.obj.stageToleranceX) { this._x = this.obj.stageToleranceX; } if (aux == 1 && this.obj.tipAutoMove == 'true') { this._x = this.obj.stageToleranceX; this.obj.tipX = this.obj.tipWidth + this.obj.strokeWidth + this.obj.backgroundRadius; this.buildBackground(); } if (this.obj.tipAutoMove == 'true' && _root._xmouse - this.obj.stageToleranceX + this.obj.tipWidth / 2 - this.obj.strokeWidth - this.obj.backgroundRadius > this.obj.tipWidth) { this.obj.tipX = _root._xmouse - this.obj.stageToleranceX + this.obj.tipWidth / 2 - this.obj.strokeWidth; this.buildBackground(); } } else { if (aux == 1 && this.obj.tipAutoMove == 'true') { this._x = Math.round(_root._xmouse - this.actualBgWidth + this.obj.tipWidth / 2 - this.obj.stageToleranceX); this.obj.tipX = this.actualBgWidth - this.obj.strokeWidth - this.obj.backgroundRadius; this.buildBackground(); } } } break; case 'right': if (_root._xmouse + this.actualBgWidth + this.obj.stageToleranceX < Stage.width && _root._xmouse - this.obj.stageToleranceX > 0) { this._x = Math.round(_root._xmouse - this.obj.tipWidth + this.obj.XDistanceFromCursor); this.obj.tipX = this.obj.tipWidth + this.obj.tipWidth; this.buildBackground(); } else { if (_root._xmouse + this.actualBgWidth + this.obj.stageToleranceX + this.obj.tipWidth / 2 - this.obj.backgroundRadius > Stage.width) { this._x = Math.round(Stage.width - this.obj.stageToleranceX - this.actualBgWidth); if (aux == 1 && this.obj.tipAutoMove == 'true') { this.obj.tipX = this.actualBgWidth - this.obj.strokeWidth - this.obj.backgroundRadius; this.buildBackground(); } if (this.obj.tipAutoMove == 'true' && _root._xmouse - this._x + this.obj.tipWidth / 2 + this.obj.backgroundRadius < this.actualBgWidth) { this.obj.tipX = _root._xmouse - this._x + this.obj.tipWidth / 2; this.buildBackground(); } } } } switch (this.obj.alignVerti) { case 'top': var v3 = Math.round(_root._ymouse - this._height + this.obj.YDistanceFromCursor); if (v3 > this.obj.stageToleranceY) { this._y = v3; } else { this._y = this.obj.stageToleranceY; } break; case 'middle': var v3 = Math.round(_root._ymouse - this._height / 2 + this.obj.YDistanceFromCursor); if (v3 > this.obj.stageToleranceY) { if (v3 + this.actualBgHeight > Stage.height - this.obj.stageToleranceY) { v3 = Stage.height - this.actualBgHeight - this.obj.stageToleranceY; } this._y = v3; } else { v3 = this.obj.stageToleranceY; this._y = v3; } break; case 'bottom': var v3 = Math.round(_root._ymouse + this.obj.YDistanceFromCursor); if (v3 > 0) { if (v3 + this.actualBgHeight > Stage.height - this.obj.stageToleranceY) { v3 = Stage.height - this.actualBgHeight - this.obj.stageToleranceY; } this._y = v3; } } updateAfterEvent(); }; v2.hide = function (myObj) { clearInterval(this.myInt); caurina.transitions.Tweener.removeTweens(this); this.shortParse(myObj); caurina.transitions.Tweener.addTween(this, {'_alpha': 0, 'time': this.obj.animationTime, 'transition': this.obj.animationType}); caurina.transitions.Tweener.addTween(this, {'_y': this._y + 20, 'time': this.obj.animationTime, 'transition': this.obj.animationType}); }; v2.endInterval = function () { clearInterval(this.myInt); }; v2.onLoadInit = function (mc) { var v3 = new flash.display.BitmapData(mc._width, mc._height); v3.draw(mc); mc.attachBitmap(v3, mc.getNextHighestDepth(), 'always', true); mc._width = this.obj.imageWidth; mc._height = this.obj.imageHeight; }; v2.formatMyText = function (mc, idx) { mc.text = this.obj.myTexts[idx]; mc.autoSize = true; mc.wordWrap = true; mc.selectable = false; mc.antiAliasType = 'advanced'; mc.embedFonts = true; var v4 = new TextFormat(); v4.font = this.obj.myFonts[idx]; v4.align = 'center'; v4.size = Number(this.obj.mySizes[idx]); v4.color = this.obj.myColors[idx]; if (this.obj.myUnderlines[idx] == 'true') { v4.underline = true; } mc.setTextFormat(v4); if (this.obj.myLengths[idx] > 0) { mc.wordWrap = true; mc._width = this.obj.myLengths[idx]; } if (this.obj.myLengths[idx] == 0) { mc.wordWrap = false; } this.currentPos += Math.round(this.obj.myVerticalSpaces[idx]); mc._y = this.currentPos; this.currentPos += Math.round(mc._height); if (this.maxTextWidth < mc._width) { this.maxTextWidth = Math.round(mc._width); } }; v2.buildBackground = function () { var v2 = new Array(); var v3 = new Array(); var v4 = new Array(); v2 = [this.obj.backgroundAlpha, this.obj.backgroundAlpha, this.obj.backgroundAlpha]; v3 = [this.obj.backgroundColor[0], this.obj.backgroundColor[1], this.obj.backgroundColor[2]]; v4 = [0, 127.5, 255]; this.bg.endflourish._y = this.obj.backgroundHeight; this.bg.endflourish._x = this.obj.backgroundWidth; this.bg.topflourish._y = 0; if (this.obj.image.length != 0) { this.drawGradient(this.bg, this.obj.backgroundWidth + this.obj.imageX + this.obj.imageWidth, this.obj.backgroundHeight, this.obj.backgroundRadius, v3, v2, v4, 90); } else { this.drawGradient(this.bg, this.obj.backgroundWidth, this.obj.backgroundHeight, this.obj.backgroundRadius, v3, v2, v4, 90); } if (this.obj.addShadow == 'true') { this.addShadow(); } }; v1.attach = function () { var v2 = _root.attachMovie('IDTooltip', String('myTooltip_' + random(50000)), _root.getNextHighestDepth()); return v2; }; v2.addShadow = function () { var v3 = new flash.filters.DropShadowFilter(this.obj.shadowDistance, this.obj.shadowAngleInDegrees, this.obj.shadowColor, this.obj.shadowAlpha, this.obj.shadowBlurX, this.obj.shadowBlurY, this.obj.shadowStrength, this.obj.shadowQuality, this.obj.shadowInner, this.obj.shadowKnockout, this.obj.shadowHideObject); var v2 = new Array(); v2.push(v3); this.filters = v2; }; v2.shortParse = function (myObj) { with (this) { for (var i in myObj) { switch (i) { case 'delay': obj.delay = Number(myObj[i]); break; case 'animationTime': obj.animationTime = Number(myObj[i]); break; case 'animationType': obj.animationType = String(myObj[i]); break; case 'stay': obj.stay = String(myObj[i]); } } } }; v2.setCustomVars = function (myObj) { this.parseObject(myObj); if (this.obj.myTexts.length != this.obj.myFonts.length) { var v3; var v4 = this.obj.myFonts.length - 1; v3 = this.obj.myFonts.length; while (v3 <= this.obj.myTexts.length) { this.obj.myFonts[v3] = this.obj.myFonts[v4]; ++v3; } } if (this.obj.myTexts.length != this.obj.myColors.length) { if (this.obj.myColors.length == 0) { v3 = 0; while (v3 <= this.obj.myTexts.length) { this.obj.myColors[v3] = 0; ++v3; } } else { v4 = this.obj.myColors.length - 1; v3 = this.obj.myColors.length; while (v3 <= this.obj.myTexts.length) { this.obj.myColors[v3] = this.obj.myColors[v4]; ++v3; } } } if (this.obj.myTexts.length != this.obj.mySizes.length) { if (this.obj.mySizes.length == 0) { v3 = 0; while (v3 <= this.obj.myTexts.length) { this.obj.mySizes[v3] = 12; ++v3; } } else { v4 = this.obj.mySizes.length - 1; v3 = this.obj.mySizes.length; while (v3 <= this.obj.myTexts.length) { this.obj.mySizes[v3] = this.obj.mySizes[v4]; ++v3; } } } if (this.obj.myTexts.length != this.obj.myUnderlines.length) { if (this.obj.myUnderlines.length == 0) { v3 = 0; while (v3 <= this.obj.myTexts.length) { this.obj.myUnderlines[v3] = 'false'; ++v3; } } else { v4 = this.obj.myUnderlines.length - 1; v3 = this.obj.myUnderlines.length; while (v3 <= this.obj.myTexts.length) { this.obj.myUnderlines[v3] = this.obj.myUnderlines[v4]; ++v3; } } } if (this.obj.myTexts.length != this.obj.myLengths.length) { if (this.obj.myLengths.length == 0) { v3 = 0; while (v3 <= this.obj.myTexts.length) { this.obj.myLengths[v3] = 0; ++v3; } } else { v4 = this.obj.myLengths.length - 1; v3 = this.obj.myLengths.length; while (v3 <= this.obj.myTexts.length) { this.obj.myLengths[v3] = this.obj.myLengths[v4]; ++v3; } } } if (this.obj.myTexts.length != this.obj.myVerticalSpaces.length) { if (this.obj.myVerticalSpaces.length == 0) { v3 = 0; while (v3 <= this.obj.myTexts.length) { this.obj.myVerticalSpaces[v3] = 0; ++v3; } } else { v4 = this.obj.myVerticalSpaces.length - 1; v3 = this.obj.myVerticalSpaces.length; while (v3 <= this.obj.myTexts.length) { this.obj.myVerticalSpaces[v3] = this.obj.myVerticalSpaces[v4]; ++v3; } } } if (this.obj.backgroundColor.length < 3) { if (this.obj.backgroundColor.length == 1) { this.obj.backgroundColor[2] = this.obj.backgroundColor[0]; this.obj.backgroundColor[1] = this.obj.backgroundColor[2]; } else { if (this.obj.backgroundColor.length == 2) { this.obj.backgroundColor[2] = this.obj.backgroundColor[1]; } else { if (this.obj.backgroundColor.length == 0) { this.obj.backgroundColor[2] = 16777215; this.obj.backgroundColor[1] = 16777215; this.obj.backgroundColor[0] = 16777215; } } } } this.maxTextWidth = 0; if (this.obj.myTexts.length >= 1) { var v2 = 0; this.currentPos = 0; this.Text.createTextField('txt' + v2, this.Text.getNextHighestDepth(), 0, 0, 0, 25); this.formatMyText(this.Text['txt' + v2], v2); this.Text.txt._y = Math.round(this.obj.myVerticalSpaces[v2]); v2 = 1; while (v2 < this.obj.myTexts.length) { this.Text.createTextField('txt' + v2, this.Text.getNextHighestDepth(), 0, 0, 0, 25); this.formatMyText(this.Text['txt' + v2], v2); ++v2; } } this.obj.backgroundWidth += this.maxTextWidth; this.obj.backgroundHeight += this.currentPos; if (this.obj.image.length != 0) { if (this.obj.textXPos != 0) { this.Text._x = Math.round(this.obj.textXPos + this.obj.imageX + this.obj.imageWidth + this.obj.imageBackgroundWidth); this.obj.backgroundWidth += this.obj.textXPos + this.obj.farX; } else { this.Text._x = Math.round(this.obj.backgroundWidth / 2 - this.Text._width / 2 + this.obj.imageWidth + this.obj.imageBackgroundWidth); } } else { if (this.obj.textXPos != 0) { this.Text._x = this.obj.textXPos; this.obj.backgroundWidth += this.obj.textXPos + this.obj.farX; } else { this.Text._x = Math.round(this.obj.backgroundWidth / 2 - this.Text._width / 2); } } if (this.obj.image.length != 0) { this.mcl = new MovieClipLoader(); this.mcl.addListener(this); this.ImageHolder = this.createEmptyMovieClip('imageHolder', this.getNextHighestDepth()); this.myImageBg = this.ImageHolder.createEmptyMovieClip('myImageBg', this.ImageHolder.getNextHighestDepth()); this.myImage = this.ImageHolder.createEmptyMovieClip('myImage', this.ImageHolder.getNextHighestDepth()); if (this.obj.imageBackgroundWidth != 0) { this.drawOval(this.myImageBg, this.obj.imageWidth + this.obj.imageBackgroundWidth, this.obj.imageHeight + this.obj.imageBackgroundWidth, 0, this.obj.imageBackgroundColor, this.obj.imageBackgroundAlpha); this.myImage._y = this.obj.imageBackgroundWidth / 2; this.myImage._x = this.myImage._y; } this.ImageHolder._x = this.obj.imageX; this.ImageHolder._y = this.obj.imageY; this.mcl.loadClip(this.obj.image, this.myImage); } this.buildBackground(); this.actualBgWidth = this.bg._width; this.actualBgHeight = this.bg._height; }; v2.parseObject = function (myObj) { with (this) { for (var i in myObj) { switch (i) { case 'myTexts': var fontStr = myObj[i]; var fontArr = fontStr.split('<new_line>'); var idx; idx = 0; while (idx < fontArr.length) { obj.myTexts[idx] = fontArr[idx]; ++idx; } break; case 'myFonts': var fontStr = myObj[i]; var fontArr = fontStr.split('|'); var idx; idx = 0; while (idx < fontArr.length) { obj.myFonts[idx] = String(fontArr[idx]); ++idx; } break; case 'myColors': var fontStr = myObj[i]; var fontArr = fontStr.split('|'); var idx; idx = 0; while (idx < fontArr.length) { obj.myColors[idx] = Number(fontArr[idx]); ++idx; } break; case 'mySizes': var fontStr = myObj[i]; var fontArr = fontStr.split('|'); var idx; idx = 0; while (idx < fontArr.length) { obj.mySizes[idx] = Number(fontArr[idx]); ++idx; } break; case 'myLengths': var fontStr = myObj[i]; var fontArr = fontStr.split('|'); var idx; idx = 0; while (idx < fontArr.length) { obj.myLengths[idx] = String(fontArr[idx]); ++idx; } break; case 'myUnderlines': var fontStr = myObj[i]; var fontArr = fontStr.split('|'); var idx; idx = 0; while (idx < fontArr.length) { obj.myUnderlines[idx] = String(fontArr[idx]); ++idx; } break; case 'myVerticalSpaces': var fontStr = myObj[i]; var fontArr = fontStr.split('|'); var idx; idx = 0; while (idx < fontArr.length) { obj.myVerticalSpaces[idx] = Number(fontArr[idx]); ++idx; } break; case 'strokeColor': obj.strokeColor = Number(myObj[i]); break; case 'strokeAlpha': obj.strokeAlpha = Number(myObj[i]); break; case 'strokeWidth': obj.strokeWidth = Number(myObj[i]); break; case 'backgroundColor': var fontStr = myObj[i]; var fontArr = fontStr.split('|'); var idx; idx = 0; while (idx < 3) { obj.backgroundColor[idx] = Number(fontArr[idx]); ++idx; } break; case 'backgroundAlpha': obj.backgroundAlpha = Number(myObj[i]); break; case 'backgroundRadius': obj.backgroundRadius = Number(myObj[i]); break; case 'backgroundWidth': obj.backgroundWidth = Number(myObj[i]); break; case 'backgroundHeight': obj.backgroundHeight = Number(myObj[i]); break; case 'tipWidth': obj.tipWidth = Number(myObj[i]); break; case 'tipHeight': obj.tipHeight = Number(myObj[i]); break; case 'tipInclination': obj.tipInclination = Number(myObj[i]); break; case 'tipX': obj.tipX = Number(myObj[i]); break; case 'tipOrientation': obj.tipOrientation = String(myObj[i]); break; case 'tipAutoMove': obj.tipAutoMove = String(myObj[i]); break; case 'image': obj.image = String(myObj[i]); break; case 'imageWidth': obj.imageWidth = Number(myObj[i]); break; case 'imageHeight': obj.imageHeight = Number(myObj[i]); break; case 'imageBackgroundColor': obj.imageBackgroundColor = Number(myObj[i]); break; case 'imageBackgroundAlpha': obj.imageBackgroundAlpha = Number(myObj[i]); break; case 'imageBackgroundWidth': obj.imageBackgroundWidth = Number(myObj[i]); break; case 'imageX': obj.imageX = Number(myObj[i]); break; case 'imageY': obj.imageY = Number(myObj[i]); break; case 'delay': obj.delay = Number(myObj[i]); break; case 'animationTime': obj.animationTime = Number(myObj[i]); break; case 'animationType': obj.animationType = String(myObj[i]); break; case 'stay': obj.stay = String(myObj[i]); break; case 'XDistanceFromCursor': obj.XDistanceFromCursor = Number(myObj[i]); break; case 'YDistanceFromCursor': obj.YDistanceFromCursor = Number(myObj[i]); break; case 'alignHoriz': obj.alignHoriz = String(myObj[i]); break; case 'alignVerti': obj.alignVerti = String(myObj[i]); break; case 'stageToleranceX': obj.stageToleranceX = Number(myObj[i]); break; case 'stageToleranceY': obj.stageToleranceY = Number(myObj[i]); break; case 'addShadow': obj.addShadow = String(myObj[i]); break; case 'shadowDistance': obj.shadowDistance = Number(myObj[i]); break; case 'shadowColor': obj.shadowColor = Number(myObj[i]); break; case 'shadowAlpha': obj.shadowAlpha = Number(myObj[i]); break; case 'shadowBlurX': obj.shadowBlurX = Number(myObj[i]); break; case 'shadowBlurY': obj.shadowBlurY = Number(myObj[i]); break; case 'shadowStrength': obj.shadowStrength = Number(myObj[i]); break; case 'shadowQuality': obj.shadowQuality = Number(myObj[i]); break; case 'shadowInner': if (String(myObj[i]) == 'true') { obj.shadowInner = true; } break; case 'shadowKnockout': if (String(myObj[i]) == 'true') { obj.shadowKnockout = true; } break; case 'shadowHideObject': if (String(myObj[i]) == 'true') { obj.shadowHideObject = true; } break; case 'shadowAngleInDegrees': obj.shadowAngleInDegrees = Number(myObj[i]); break; case 'textXPos': obj.textXPos = Number(myObj[i]); break; case 'farX': obj.farX = Number(myObj[i]); } } } if (this.obj.tipAutoMove == 'true' && this.obj.tipOrientation == 'bottom') { this.obj.tipInclination = -this.obj.tipWidth / 2; } if (this.obj.tipAutoMove == 'true' && this.obj.tipOrientation == 'top') { this.obj.tipInclination = -this.obj.tipWidth / 2; } }; v2.drawGradient = function (mc, mw, mh, r, colors, alphas, ratios, radius) { var v6 = {'matrixType': 'box', 'x': 0, 'y': 0, 'w': mw, 'h': mh, 'r': radius * Math.PI / 180}; mc.clear(); mc.beginGradientFill('linear', colors, alphas, ratios, v6); if (this.obj.strokeWidth != 0) { mc.lineStyle(this.obj.strokeWidth, this.obj.strokeColor, this.obj.strokeAlpha, true); } mc.moveTo(r, 0); if (this.obj.tipWidth != 0 && this.obj.tipOrientation == 'top') { mc.lineTo(this.obj.tipX - this.obj.tipWidth, 0); mc.lineTo(this.obj.tipX - this.obj.tipWidth - this.obj.tipInclination, -this.obj.tipHeight); mc.lineTo(this.obj.tipX, 0); } mc.lineTo(mw - r, 0); mc.curveTo(mw, 0, mw, r); mc.lineTo(mw, mh - r); mc.curveTo(mw, mh, mw - r, mh); if (this.obj.tipWidth != 0 && this.obj.tipOrientation == 'bottom') { mc.lineTo(this.obj.tipX, mh); mc.lineTo(this.obj.tipX + this.obj.tipInclination, mh + this.obj.tipHeight); mc.lineTo(this.obj.tipX - this.obj.tipWidth, mh); } mc.lineTo(r, mh); mc.curveTo(0, mh, 0, mh - r); mc.lineTo(0, r); mc.curveTo(0, 0, r, 0); mc.endFill(); }; v2.drawOval = function (mc, mw, mh, r, fillColor, alphaAmount) { mc.clear(); mc.beginFill(fillColor, alphaAmount); mc.moveTo(r, 0); mc.lineTo(mw - r, 0); mc.curveTo(mw, 0, mw, r); mc.lineTo(mw, mh - r); mc.curveTo(mw, mh, mw - r, mh); mc.lineTo(r, mh); mc.curveTo(0, mh, 0, mh - r); mc.lineTo(0, r); mc.curveTo(0, 0, r, 0); mc.endFill(); }; ASSetPropFlags(oxylus.Tooltip03.Tooltip.prototype, null, 1); } #endinitclip } movieClip 2079 __Packages.caurina.transitions.Tweener { #initclip if (!_global.caurina) { _global.caurina = new Object(); } if (!_global.caurina.transitions) { _global.caurina.transitions = new Object(); } if (!_global.caurina.transitions.Tweener) { var v1 = function () { trace('Tweener is an static class and should not be instantiated.'); }; caurina.transitions.Tweener = v1; var v2 = v1.prototype; v1.addTween = function (p_scopes, p_parameters) { if (p_scopes == undefined) { return false; } var v3; var v7; var v2; var v11; if (p_scopes instanceof Array) { v11 = p_scopes.concat(); } else { v11 = [p_scopes]; } var v5 = caurina.transitions.TweenListObj.makePropertiesChain(p_parameters); if (!caurina.transitions.Tweener._inited) { caurina.transitions.Tweener.init(); } if (!caurina.transitions.Tweener._engineExists || _root[caurina.transitions.Tweener.getControllerName()] == undefined) { caurina.transitions.Tweener.startEngine(); } var v19 = isNaN(v5.time) ? 0 : v5.time; var v12 = isNaN(v5.delay) ? 0 : v5.delay; var v4 = new Object(); var v24 = {'time': true, 'delay': true, 'useFrames': true, 'skipUpdates': true, 'transition': true, 'transitionParams': true, 'onStart': true, 'onUpdate': true, 'onComplete': true, 'onOverwrite': true, 'onError': true, 'rounded': true, 'onStartParams': true, 'onUpdateParams': true, 'onCompleteParams': true, 'onOverwriteParams': true, 'onStartScope': true, 'onUpdateScope': true, 'onCompleteScope': true, 'onOverwriteScope': true, 'onErrorScope': true, 'quickAdd': true}; var v13 = new Object(); for (v2 in v5) { if (!v24[v2]) { if (caurina.transitions.Tweener._specialPropertySplitterList[v2] != undefined) { var v8 = caurina.transitions.Tweener._specialPropertySplitterList[v2].splitValues(v5[v2], caurina.transitions.Tweener._specialPropertySplitterList[v2].parameters); v3 = 0; while (v3 < v8.length) { if (caurina.transitions.Tweener._specialPropertySplitterList[v8[v3].name] != undefined) { var v9 = caurina.transitions.Tweener._specialPropertySplitterList[v8[v3].name].splitValues(v8[v3].value, caurina.transitions.Tweener._specialPropertySplitterList[v8[v3].name].parameters); v7 = 0; while (v7 < v9.length) { v4[v9[v7].name] = {'valueStart': undefined, 'valueComplete': v9[v7].value, 'arrayIndex': v9[v7].arrayIndex, 'isSpecialProperty': false}; ++v7; } } else { v4[v8[v3].name] = {'valueStart': undefined, 'valueComplete': v8[v3].value, 'arrayIndex': v8[v3].arrayIndex, 'isSpecialProperty': false}; } ++v3; } } else { if (caurina.transitions.Tweener._specialPropertyModifierList[v2] != undefined) { var v10 = caurina.transitions.Tweener._specialPropertyModifierList[v2].modifyValues(v5[v2]); v3 = 0; while (v3 < v10.length) { v13[v10[v3].name] = {'modifierParameters': v10[v3].parameters, 'modifierFunction': caurina.transitions.Tweener._specialPropertyModifierList[v2].getValue}; ++v3; } } else { v4[v2] = {'valueStart': undefined, 'valueComplete': v5[v2]}; } } } } for (v2 in v4) { if (caurina.transitions.Tweener._specialPropertyList[v2] != undefined) { v4[v2].isSpecialProperty = true; } else { if (v11[0][v2] == undefined) { caurina.transitions.Tweener.printError('The property \'' + v2 + '\' doesn\'t seem to be a normal object property of ' + v11[0].toString() + ' or a registered special property.'); } } } for (v2 in v13) { if (v4[v2] != undefined) { v4[v2].modifierParameters = v13[v2].modifierParameters; v4[v2].modifierFunction = v13[v2].modifierFunction; } } var v21; if (typeof v5.transition == 'string') { var v26 = v5.transition.toLowerCase(); v21 = caurina.transitions.Tweener._transitionList[v26]; } else { v21 = v5.transition; } if (v21 == undefined) { v21 = caurina.transitions.Tweener._transitionList.easeoutexpo; } var v14; var v6; var v20; v3 = 0; while (v3 < v11.length) { v14 = new Object(); for (v2 in v4) { v14[v2] = new caurina.transitions.PropertyInfoObj(v4[v2].valueStart, v4[v2].valueComplete, v4[v2].valueComplete, v4[v2].arrayIndex, {}, v4[v2].isSpecialProperty, v4[v2].modifierFunction, v4[v2].modifierParameters); } if (v5.useFrames == true) { v6 = new caurina.transitions.TweenListObj(v11[v3], caurina.transitions.Tweener._currentTimeFrame + v12 / caurina.transitions.Tweener._timeScale, caurina.transitions.Tweener._currentTimeFrame + (v12 + v19) / caurina.transitions.Tweener._timeScale, true, v21, v5.transitionParams); } else { v6 = new caurina.transitions.TweenListObj(v11[v3], caurina.transitions.Tweener._currentTime + v12 * 1000 / caurina.transitions.Tweener._timeScale, caurina.transitions.Tweener._currentTime + (v12 * 1000 + v19 * 1000) / caurina.transitions.Tweener._timeScale, false, v21, v5.transitionParams); } v6.properties = v14; v6.onStart = v5.onStart; v6.onUpdate = v5.onUpdate; v6.onComplete = v5.onComplete; v6.onOverwrite = v5.onOverwrite; v6.onError = v5.onError; v6.onStartParams = v5.onStartParams; v6.onUpdateParams = v5.onUpdateParams; v6.onCompleteParams = v5.onCompleteParams; v6.onOverwriteParams = v5.onOverwriteParams; v6.onStartScope = v5.onStartScope; v6.onUpdateScope = v5.onUpdateScope; v6.onCompleteScope = v5.onCompleteScope; v6.onOverwriteScope = v5.onOverwriteScope; v6.onErrorScope = v5.onErrorScope; v6.rounded = v5.rounded; v6.skipUpdates = v5.skipUpdates; if (!v5.quickAdd) { caurina.transitions.Tweener.removeTweensByTime(v6.scope, v6.properties, v6.timeStart, v6.timeComplete); } caurina.transitions.Tweener._tweenList.push(v6); if (v19 == 0 && v12 == 0) { v20 = caurina.transitions.Tweener._tweenList.length - 1; caurina.transitions.Tweener.updateTweenByIndex(v20); caurina.transitions.Tweener.removeTweenByIndex(v20); } ++v3; } return true; }; v1.addCaller = function (p_scopes, p_parameters) { if (p_scopes == undefined) { return false; } var v5; var v6; if (p_scopes instanceof Array) { v6 = p_scopes.concat(); } else { v6 = [p_scopes]; } var v3 = p_parameters; if (!caurina.transitions.Tweener._inited) { caurina.transitions.Tweener.init(); } if (!caurina.transitions.Tweener._engineExists || _root[caurina.transitions.Tweener.getControllerName()] == undefined) { caurina.transitions.Tweener.startEngine(); } var v7 = isNaN(v3.time) ? 0 : v3.time; var v4 = isNaN(v3.delay) ? 0 : v3.delay; var v9; if (typeof v3.transition == 'string') { var v11 = v3.transition.toLowerCase(); v9 = caurina.transitions.Tweener._transitionList[v11]; } else { v9 = v3.transition; } if (v9 == undefined) { v9 = caurina.transitions.Tweener._transitionList.easeoutexpo; } var v2; var v8; v5 = 0; while (v5 < v6.length) { if (v3.useFrames == true) { v2 = new caurina.transitions.TweenListObj(v6[v5], caurina.transitions.Tweener._currentTimeFrame + v4 / caurina.transitions.Tweener._timeScale, caurina.transitions.Tweener._currentTimeFrame + (v4 + v7) / caurina.transitions.Tweener._timeScale, true, v9, v3.transitionParams); } else { v2 = new caurina.transitions.TweenListObj(v6[v5], caurina.transitions.Tweener._currentTime + v4 * 1000 / caurina.transitions.Tweener._timeScale, caurina.transitions.Tweener._currentTime + (v4 * 1000 + v7 * 1000) / caurina.transitions.Tweener._timeScale, false, v9, v3.transitionParams); } v2.properties = undefined; v2.onStart = v3.onStart; v2.onUpdate = v3.onUpdate; v2.onComplete = v3.onComplete; v2.onOverwrite = v3.onOverwrite; v2.onStartParams = v3.onStartParams; v2.onUpdateParams = v3.onUpdateParams; v2.onCompleteParams = v3.onCompleteParams; v2.onOverwriteParams = v3.onOverwriteParams; v2.onStartScope = v3.onStartScope; v2.onUpdateScope = v3.onUpdateScope; v2.onCompleteScope = v3.onCompleteScope; v2.onOverwriteScope = v3.onOverwriteScope; v2.onErrorScope = v3.onErrorScope; v2.isCaller = true; v2.count = v3.count; v2.waitFrames = v3.waitFrames; caurina.transitions.Tweener._tweenList.push(v2); if (v7 == 0 && v4 == 0) { v8 = caurina.transitions.Tweener._tweenList.length - 1; caurina.transitions.Tweener.updateTweenByIndex(v8); caurina.transitions.Tweener.removeTweenByIndex(v8); } ++v5; } return true; }; v1.removeTweensByTime = function (p_scope, p_properties, p_timeStart, p_timeComplete) { var v5 = false; var v4; var v1; var v7 = caurina.transitions.Tweener._tweenList.length; var v2; v1 = 0; while (v1 < v7) { if (p_scope == caurina.transitions.Tweener._tweenList[v1].scope) { if (p_timeComplete > caurina.transitions.Tweener._tweenList[v1].timeStart && p_timeStart < caurina.transitions.Tweener._tweenList[v1].timeComplete) { v4 = false; for (v2 in caurina.transitions.Tweener._tweenList[v1].properties) { if (p_properties[v2] != undefined) { if (caurina.transitions.Tweener._tweenList[v1].onOverwrite != undefined) { var v3 = (caurina.transitions.Tweener._tweenList[v1].onOverwriteScope != undefined) ? caurina.transitions.Tweener._tweenList[v1].onOverwriteScope : caurina.transitions.Tweener._tweenList[v1].scope; try { caurina.transitions.Tweener._tweenList[v1].onOverwrite.apply(v3, caurina.transitions.Tweener._tweenList[v1].onOverwriteParams); } catch (enumerate caurina.transitions.Tweener._tweenList[v1].properties) { if (Error(enumerate caurina.transitions.Tweener._tweenList[v1].properties) != null) { var e = Error(enumerate caurina.transitions.Tweener._tweenList[v1].properties); caurina.transitions.Tweener.handleError(caurina.transitions.Tweener._tweenList[v1], e, 'onOverwrite'); } else { throw enumerate caurina.transitions.Tweener._tweenList[v1].properties; } } } caurina.transitions.Tweener._tweenList[v1].properties[v2] = undefined; delete caurina.transitions.Tweener._tweenList[v1].properties[v2]; v4 = true; v5 = true; } } if (v4) { if (caurina.transitions.AuxFunctions.getObjectLength(caurina.transitions.Tweener._tweenList[v1].properties) == 0) { caurina.transitions.Tweener.removeTweenByIndex(v1); } } } } ++v1; } return v5; }; v1.removeTweens = function (p_scope) { var v3 = new Array(); var v2; v2 = 1; while (v2 < arguments.length) { if (typeof arguments[v2] == 'string' && !caurina.transitions.AuxFunctions.isInArray(arguments[v2], v3)) { v3.push(arguments[v2]); } ++v2; } return caurina.transitions.Tweener.affectTweens(caurina.transitions.Tweener.removeTweenByIndex, p_scope, v3); }; v1.removeAllTweens = function () { var v2 = false; var v1; v1 = 0; while (v1 < caurina.transitions.Tweener._tweenList.length) { caurina.transitions.Tweener.removeTweenByIndex(v1); v2 = true; ++v1; } return v2; }; v1.pauseTweens = function (p_scope) { var v3 = new Array(); var v2; v2 = 1; while (v2 < arguments.length) { if (typeof arguments[v2] == 'string' && !caurina.transitions.AuxFunctions.isInArray(arguments[v2], v3)) { v3.push(arguments[v2]); } ++v2; } return caurina.transitions.Tweener.affectTweens(caurina.transitions.Tweener.pauseTweenByIndex, p_scope, v3); }; v1.pauseAllTweens = function () { var v2 = false; var v1; v1 = 0; while (v1 < caurina.transitions.Tweener._tweenList.length) { caurina.transitions.Tweener.pauseTweenByIndex(v1); v2 = true; ++v1; } return v2; }; v1.resumeTweens = function (p_scope) { var v3 = new Array(); var v2; v2 = 1; while (v2 < arguments.length) { if (typeof arguments[v2] == 'string' && !caurina.transitions.AuxFunctions.isInArray(arguments[v2], v3)) { v3.push(arguments[v2]); } ++v2; } return caurina.transitions.Tweener.affectTweens(caurina.transitions.Tweener.resumeTweenByIndex, p_scope, v3); }; v1.resumeAllTweens = function () { var v2 = false; var v1; v1 = 0; while (v1 < caurina.transitions.Tweener._tweenList.length) { caurina.transitions.Tweener.resumeTweenByIndex(v1); v2 = true; ++v1; } return v2; }; v1.affectTweens = function (p_affectFunction, p_scope, p_properties) { var v5 = false; var v2; if (!caurina.transitions.Tweener._tweenList) { return false; } v2 = 0; while (v2 < caurina.transitions.Tweener._tweenList.length) { if (caurina.transitions.Tweener._tweenList[v2].scope == p_scope) { if (p_properties.length == 0) { p_affectFunction(v2); v5 = true; } else { var v4 = new Array(); var v1; v1 = 0; while (v1 < p_properties.length) { if (caurina.transitions.Tweener._tweenList[v2].properties[p_properties[v1]] != undefined) { v4.push(p_properties[v1]); } ++v1; } if (v4.length > 0) { var v7 = caurina.transitions.AuxFunctions.getObjectLength(caurina.transitions.Tweener._tweenList[v2].properties); if (v7 == v4.length) { p_affectFunction(v2); v5 = true; } else { var v8 = caurina.transitions.Tweener.splitTweens(v2, v4); p_affectFunction(v8); v5 = true; } } } } ++v2; } return v5; }; v1.splitTweens = function (p_tween, p_properties) { var v6 = caurina.transitions.Tweener._tweenList[p_tween]; var v5 = v6.clone(false); var v1; var v2; v1 = 0; while (v1 < p_properties.length) { v2 = p_properties[v1]; if (v6.properties[v2] != undefined) { v6.properties[v2] = undefined; delete v6.properties[v2]; } ++v1; } var v4; for (v2 in v5.properties) { v4 = false; v1 = 0; while (v1 < p_properties.length) { if (p_properties[v1] == v2) { v4 = true; break; } ++v1; } if (!v4) { v5.properties[v2] = undefined; delete v5.properties[v2]; } } caurina.transitions.Tweener._tweenList.push(v5); return caurina.transitions.Tweener._tweenList.length - 1; }; v1.updateTweens = function () { if (caurina.transitions.Tweener._tweenList.length == 0) { return false; } var v1; v1 = 0; while (v1 < caurina.transitions.Tweener._tweenList.length) { if (!caurina.transitions.Tweener._tweenList[v1].isPaused) { if (!caurina.transitions.Tweener.updateTweenByIndex(v1)) { caurina.transitions.Tweener.removeTweenByIndex(v1); } if (caurina.transitions.Tweener._tweenList[v1] == null) { caurina.transitions.Tweener.removeTweenByIndex(v1, true); --v1; } } ++v1; } return true; }; v1.removeTweenByIndex = function (p_tween, p_finalRemoval) { caurina.transitions.Tweener._tweenList[p_tween] = null; if (p_finalRemoval) { caurina.transitions.Tweener._tweenList.splice(p_tween, 1); } return true; }; v1.pauseTweenByIndex = function (p_tween) { var v1 = caurina.transitions.Tweener._tweenList[p_tween]; if (v1 == null || v1.isPaused) { return false; } v1.timePaused = caurina.transitions.Tweener.getCurrentTweeningTime(v1); v1.isPaused = true; return true; }; v1.resumeTweenByIndex = function (p_tween) { var v1 = caurina.transitions.Tweener._tweenList[p_tween]; if (v1 == null || !v1.isPaused) { return false; } var v2 = caurina.transitions.Tweener.getCurrentTweeningTime(v1); v1.timeStart += v2 - v1.timePaused; v1.timeComplete += v2 - v1.timePaused; v1.timePaused = undefined; v1.isPaused = false; return true; }; v1.updateTweenByIndex = function (i) { var v1 = caurina.transitions.Tweener._tweenList[i]; if (v1 == null || !v1.scope) { return false; } var v13 = false; var v14; var v3; var v7; var v10; var v9; var v6; var v2; var v12; var v5; var v8 = caurina.transitions.Tweener.getCurrentTweeningTime(v1); var v4; if (v8 >= v1.timeStart) { v5 = v1.scope; if (v1.isCaller) { do { v7 = ((v1.timeComplete - v1.timeStart) / v1.count) * (v1.timesCalled + 1); v10 = v1.timeStart; v9 = v1.timeComplete - v1.timeStart; v6 = v1.timeComplete - v1.timeStart; v3 = v1.transition(v7, v10, v9, v6, v1.transitionParams); if (v8 >= v3) { if (v1.onUpdate != undefined) { v12 = (v1.onUpdateScope != undefined) ? v1.onUpdateScope : v5; try { v1.onUpdate.apply(v12, v1.onUpdateParams); } catch (v0) { if (Error(v0) != null) { var e = Error(v0); caurina.transitions.Tweener.handleError(v1, e, 'onUpdate'); } else { throw v0; } } } ++v1.timesCalled; if (v1.timesCalled >= v1.count) { v13 = true; break; } if (v1.waitFrames) { break; } } } while (v8 >= v3); } else { v14 = v1.skipUpdates < 1 || v1.skipUpdates == undefined || v1.updatesSkipped >= v1.skipUpdates; if (v8 >= v1.timeComplete) { v13 = true; v14 = true; } if (!v1.hasStarted) { if (v1.onStart != undefined) { v12 = (v1.onStartScope != undefined) ? v1.onStartScope : v5; try { v1.onStart.apply(v12, v1.onStartParams); } catch (v0) { if (Error(v0) != null) { var e = Error(v0); caurina.transitions.Tweener.handleError(v1, e, 'onStart'); } else { throw v0; } } } var v11; for (v2 in v1.properties) { if (v1.properties[v2].isSpecialProperty) { if (caurina.transitions.Tweener._specialPropertyList[v2].preProcess != undefined) { v1.properties[v2].valueComplete = caurina.transitions.Tweener._specialPropertyList[v2].preProcess(v5, caurina.transitions.Tweener._specialPropertyList[v2].parameters, v1.properties[v2].originalValueComplete, v1.properties[v2].extra); } v11 = caurina.transitions.Tweener._specialPropertyList[v2].getValue(v5, caurina.transitions.Tweener._specialPropertyList[v2].parameters, v1.properties[v2].extra); } else { v11 = v5[v2]; } v1.properties[v2].valueStart = isNaN(v11) ? v1.properties[v2].valueComplete : v11; } v14 = true; v1.hasStarted = true; } if (v14) { for (v2 in v1.properties) { v4 = v1.properties[v2]; if (v13) { v3 = v4.valueComplete; } else { if (v4.hasModifier) { v7 = v8 - v1.timeStart; v6 = v1.timeComplete - v1.timeStart; v3 = v1.transition(v7, 0, 1, v6, v1.transitionParams); v3 = v4.modifierFunction(v4.valueStart, v4.valueComplete, v3, v4.modifierParameters); } else { v7 = v8 - v1.timeStart; v10 = v4.valueStart; v9 = v4.valueComplete - v4.valueStart; v6 = v1.timeComplete - v1.timeStart; v3 = v1.transition(v7, v10, v9, v6, v1.transitionParams); } } if (v1.rounded) { v3 = Math.round(v3); } if (v4.isSpecialProperty) { caurina.transitions.Tweener._specialPropertyList[v2].setValue(v5, v3, caurina.transitions.Tweener._specialPropertyList[v2].parameters, v1.properties[v2].extra); } else { v5[v2] = v3; } } v1.updatesSkipped = 0; if (v1.onUpdate != undefined) { v12 = (v1.onUpdateScope != undefined) ? v1.onUpdateScope : v5; try { v1.onUpdate.apply(v12, v1.onUpdateParams); } catch (enumerate v1.properties) { if (Error(enumerate v1.properties) != null) { var e = Error(enumerate v1.properties); caurina.transitions.Tweener.handleError(v1, e, 'onUpdate'); } else { throw enumerate v1.properties; } } } } else { ++v1.updatesSkipped; } } if (v13 && v1.onComplete != undefined) { v12 = (v1.onCompleteScope != undefined) ? v1.onCompleteScope : v5; try { v1.onComplete.apply(v12, v1.onCompleteParams); } catch (enumerate v1.properties) { if (Error(enumerate v1.properties) != null) { var e = Error(enumerate v1.properties); caurina.transitions.Tweener.handleError(v1, e, 'onComplete'); } else { throw enumerate v1.properties; } } } return !v13; } return true; }; v1.init = function () { caurina.transitions.Tweener._inited = true; caurina.transitions.Tweener._transitionList = new Object(); caurina.transitions.Equations.init(); caurina.transitions.Tweener._specialPropertyList = new Object(); caurina.transitions.Tweener._specialPropertyModifierList = new Object(); caurina.transitions.Tweener._specialPropertySplitterList = new Object(); }; v1.registerTransition = function (p_name, p_function) { if (!caurina.transitions.Tweener._inited) { caurina.transitions.Tweener.init(); } caurina.transitions.Tweener._transitionList[p_name] = p_function; }; v1.registerSpecialProperty = function (p_name, p_getFunction, p_setFunction, p_parameters, p_preProcessFunction) { if (!caurina.transitions.Tweener._inited) { caurina.transitions.Tweener.init(); } var v1 = new caurina.transitions.SpecialProperty(p_getFunction, p_setFunction, p_parameters, p_preProcessFunction); caurina.transitions.Tweener._specialPropertyList[p_name] = v1; }; v1.registerSpecialPropertyModifier = function (p_name, p_modifyFunction, p_getFunction) { if (!caurina.transitions.Tweener._inited) { caurina.transitions.Tweener.init(); } var v1 = new caurina.transitions.SpecialPropertyModifier(p_modifyFunction, p_getFunction); caurina.transitions.Tweener._specialPropertyModifierList[p_name] = v1; }; v1.registerSpecialPropertySplitter = function (p_name, p_splitFunction, p_parameters) { if (!caurina.transitions.Tweener._inited) { caurina.transitions.Tweener.init(); } var v1 = new caurina.transitions.SpecialPropertySplitter(p_splitFunction, p_parameters); caurina.transitions.Tweener._specialPropertySplitterList[p_name] = v1; }; v1.startEngine = function () { caurina.transitions.Tweener._engineExists = true; caurina.transitions.Tweener._tweenList = new Array(); var v2 = Math.floor(Math.random() * 999999); var v3 = _root.createEmptyMovieClip(caurina.transitions.Tweener.getControllerName(), 31338 + v2); v3.onEnterFrame = function () { caurina.transitions.Tweener.onEnterFrame(); }; caurina.transitions.Tweener._currentTimeFrame = 0; caurina.transitions.Tweener.updateTime(); }; v1.stopEngine = function () { caurina.transitions.Tweener._engineExists = false; caurina.transitions.Tweener._tweenList = null; caurina.transitions.Tweener._currentTime = 0; caurina.transitions.Tweener._currentTimeFrame = 0; delete _root[caurina.transitions.Tweener.getControllerName()].onEnterFrame; _root[caurina.transitions.Tweener.getControllerName()].removeMovieClip(); }; v1.updateTime = function () { caurina.transitions.Tweener._currentTime = getTimer(); }; v1.updateFrame = function () { ++caurina.transitions.Tweener._currentTimeFrame; }; v1.onEnterFrame = function () { caurina.transitions.Tweener.updateTime(); caurina.transitions.Tweener.updateFrame(); var v1 = false; v1 = caurina.transitions.Tweener.updateTweens(); if (!v1) { caurina.transitions.Tweener.stopEngine(); } }; v1.setTimeScale = function (p_time) { var v1; var v2; if (isNaN(p_time)) { p_time = 1; } if (p_time < 1.0e-005) { p_time = 1.0e-005; } if (p_time != caurina.transitions.Tweener._timeScale) { v1 = 0; while (v1 < caurina.transitions.Tweener._tweenList.length) { v2 = caurina.transitions.Tweener.getCurrentTweeningTime(caurina.transitions.Tweener._tweenList[v1]); caurina.transitions.Tweener._tweenList[v1].timeStart = v2 - (v2 - caurina.transitions.Tweener._tweenList[v1].timeStart) * caurina.transitions.Tweener._timeScale / p_time; caurina.transitions.Tweener._tweenList[v1].timeComplete = v2 - (v2 - caurina.transitions.Tweener._tweenList[v1].timeComplete) * caurina.transitions.Tweener._timeScale / p_time; if (caurina.transitions.Tweener._tweenList[v1].timePaused != undefined) { caurina.transitions.Tweener._tweenList[v1].timePaused = v2 - (v2 - caurina.transitions.Tweener._tweenList[v1].timePaused) * caurina.transitions.Tweener._timeScale / p_time; } ++v1; } caurina.transitions.Tweener._timeScale = p_time; } }; v1.isTweening = function (p_scope) { var v1; v1 = 0; while (v1 < caurina.transitions.Tweener._tweenList.length) { if (caurina.transitions.Tweener._tweenList[v1].scope == p_scope) { return true; } ++v1; } return false; }; v1.getTweens = function (p_scope) { var v1; var v2; var v3 = new Array(); v1 = 0; while (v1 < caurina.transitions.Tweener._tweenList.length) { if (caurina.transitions.Tweener._tweenList[v1].scope == p_scope) { for (v2 in caurina.transitions.Tweener._tweenList[v1].properties) { v3.push(v2); } } ++v1; } return v3; }; v1.getTweenCount = function (p_scope) { var v1; var v2 = 0; v1 = 0; while (v1 < caurina.transitions.Tweener._tweenList.length) { if (caurina.transitions.Tweener._tweenList[v1].scope == p_scope) { v2 += caurina.transitions.AuxFunctions.getObjectLength(caurina.transitions.Tweener._tweenList[v1].properties); } ++v1; } return v2; }; v1.handleError = function (pTweening, pError, pCallBackName) { if (pTweening.onError != undefined && typeof (pTweening.onError == 'function')) { var v3 = (pTweening.onErrorScope != undefined) ? pTweening.onErrorScope : pTweening.scope; try { pTweening.onError.apply(v3, [pTweening.scope, pError]); } catch (v0) { if (Error(v0) != null) { var metaError = Error(v0); caurina.transitions.Tweener.printError(pTweening.scope.toString() + ' raised an error while executing the \'onError\' handler. Original error:\n ' + pError + '\nonError error: ' + metaError); } else { throw v0; } } } else { if (pTweening.onError == undefined) { caurina.transitions.Tweener.printError(pTweening.scope.toString() + ' raised an error while executing the \'' + pCallBackName.toString() + '\'handler. \n' + pError); } } }; v1.getCurrentTweeningTime = function (p_tweening) { return p_tweening.useFrames ? caurina.transitions.Tweener._currentTimeFrame : caurina.transitions.Tweener._currentTime; }; v1.getVersion = function () { return 'AS2 1.31.71'; }; v1.getControllerName = function () { return '__tweener_controller__' + caurina.transitions.Tweener.getVersion(); }; v1.printError = function (p_message) { trace('## [Tweener] Error: ' + p_message); }; v1._engineExists = false; v1._inited = false; v1._timeScale = 1; ASSetPropFlags(caurina.transitions.Tweener.prototype, null, 1); } #endinitclip } movieClip 2080 __Packages.caurina.transitions.TweenListObj { #initclip if (!_global.caurina) { _global.caurina = new Object(); } if (!_global.caurina.transitions) { _global.caurina.transitions = new Object(); } if (!_global.caurina.transitions.TweenListObj) { var v1 = function (p_scope, p_timeStart, p_timeComplete, p_useFrames, p_transition, p_transitionParams) { this.scope = p_scope; this.timeStart = p_timeStart; this.timeComplete = p_timeComplete; this.useFrames = p_useFrames; this.transition = p_transition; this.transitionParams = p_transitionParams; this.properties = new Object(); this.isPaused = false; this.timePaused = undefined; this.isCaller = false; this.updatesSkipped = 0; this.timesCalled = 0; this.skipUpdates = 0; this.hasStarted = false; }; caurina.transitions.TweenListObj = v1; var v2 = v1.prototype; v2.clone = function (omitEvents) { var v2 = new caurina.transitions.TweenListObj(this.scope, this.timeStart, this.timeComplete, this.useFrames, this.transition, this.transitionParams); v2.properties = new Object(); for (var v3 in this.properties) { v2.properties[v3] = this.properties[v3].clone(); } v2.skipUpdates = this.skipUpdates; v2.updatesSkipped = this.updatesSkipped; if (!omitEvents) { v2.onStart = this.onStart; v2.onUpdate = this.onUpdate; v2.onComplete = this.onComplete; v2.onOverwrite = this.onOverwrite; v2.onError = this.onError; v2.onStartParams = this.onStartParams; v2.onUpdateParams = this.onUpdateParams; v2.onCompleteParams = this.onCompleteParams; v2.onOverwriteParams = this.onOverwriteParams; v2.onStartScope = this.onStartScope; v2.onUpdateScope = this.onUpdateScope; v2.onCompleteScope = this.onCompleteScope; v2.onOverwriteScope = this.onOverwriteScope; v2.onErrorScope = this.onErrorScope; } v2.rounded = this.rounded; v2.isPaused = this.isPaused; v2.timePaused = this.timePaused; v2.isCaller = this.isCaller; v2.count = this.count; v2.timesCalled = this.timesCalled; v2.waitFrames = this.waitFrames; v2.hasStarted = this.hasStarted; return v2; }; v2.toString = function () { var v2 = '\n[TweenListObj '; v2 += 'scope:' + String(this.scope); v2 += ', properties:'; var v3 = true; for (var v4 in this.properties) { if (!v3) { v2 += ','; } v2 += '[name:' + this.properties[v4].name; v2 += ',valueStart:' + this.properties[v4].valueStart; v2 += ',valueComplete:' + this.properties[v4].valueComplete; v2 += ']'; v3 = false; } v2 += ', timeStart:' + String(this.timeStart); v2 += ', timeComplete:' + String(this.timeComplete); v2 += ', useFrames:' + String(this.useFrames); v2 += ', transition:' + String(this.transition); v2 += ', transitionParams:' + String(this.transitionParams); if (this.skipUpdates) { v2 += ', skipUpdates:' + String(this.skipUpdates); } if (this.updatesSkipped) { v2 += ', updatesSkipped:' + String(this.updatesSkipped); } if (this.onStart) { v2 += ', onStart:' + String(this.onStart); } if (this.onUpdate) { v2 += ', onUpdate:' + String(this.onUpdate); } if (this.onComplete) { v2 += ', onComplete:' + String(this.onComplete); } if (this.onOverwrite) { v2 += ', onOverwrite:' + String(this.onOverwrite); } if (this.onError) { v2 += ', onError:' + String(this.onError); } if (this.onStartParams) { v2 += ', onStartParams:' + String(this.onStartParams); } if (this.onUpdateParams) { v2 += ', onUpdateParams:' + String(this.onUpdateParams); } if (this.onCompleteParams) { v2 += ', onCompleteParams:' + String(this.onCompleteParams); } if (this.onOverwriteParams) { v2 += ', onOverwriteParams:' + String(this.onOverwriteParams); } if (this.onStartScope) { v2 += ', onStartScope:' + String(this.onStartScope); } if (this.onUpdateScope) { v2 += ', onUpdateScope:' + String(this.onUpdateScope); } if (this.onCompleteScope) { v2 += ', onCompleteScope:' + String(this.onCompleteScope); } if (this.onOverwriteScope) { v2 += ', onOverwriteScope:' + String(this.onOverwriteScope); } if (this.onErrorScope) { v2 += ', onErrorScope:' + String(this.onErrorScope); } if (this.rounded) { v2 += ', rounded:' + String(this.rounded); } if (this.isPaused) { v2 += ', isPaused:' + String(this.isPaused); } if (this.timePaused) { v2 += ', timePaused:' + String(this.timePaused); } if (this.isCaller) { v2 += ', isCaller:' + String(this.isCaller); } if (this.count) { v2 += ', count:' + String(this.count); } if (this.timesCalled) { v2 += ', timesCalled:' + String(this.timesCalled); } if (this.waitFrames) { v2 += ', waitFrames:' + String(this.waitFrames); } if (this.hasStarted) { v2 += ', hasStarted:' + String(this.hasStarted); } v2 += ']\n'; return v2; }; v1.makePropertiesChain = function (p_obj) { var v6 = p_obj.base; if (v6) { var v5 = {}; var v2; if (v6 instanceof Array) { v2 = []; var v3 = 0; while (v3 < v6.length) { v2.push(v6[v3]); ++v3; } } else { v2 = [v6]; } v2.push(p_obj); var v4; var v7 = v2.length; var v1 = 0; while (v1 < v7) { if (v2[v1].base) { v4 = caurina.transitions.AuxFunctions.concatObjects(caurina.transitions.TweenListObj.makePropertiesChain(v2[v1].base), v2[v1]); } else { v4 = v2[v1]; } v5 = caurina.transitions.AuxFunctions.concatObjects(v5, v4); ++v1; } if (v5.base) { delete v5.base; } return v5; } else { return p_obj; } }; ASSetPropFlags(caurina.transitions.TweenListObj.prototype, null, 1); } #endinitclip } movieClip 2081 __Packages.caurina.transitions.AuxFunctions { #initclip if (!_global.caurina) { _global.caurina = new Object(); } if (!_global.caurina.transitions) { _global.caurina.transitions = new Object(); } if (!_global.caurina.transitions.AuxFunctions) { var v1 = function () {}; caurina.transitions.AuxFunctions = v1; var v2 = v1.prototype; v1.numberToR = function (p_num) { return (p_num & 16711680) >> 16; }; v1.numberToG = function (p_num) { return (p_num & 65280) >> 8; }; v1.numberToB = function (p_num) { return p_num & 255; }; v1.isInArray = function (p_string, p_array) { var v2 = p_array.length; var v1 = 0; while (v1 < v2) { if (p_array[v1] == p_string) { return true; } ++v1; } return false; }; v1.getObjectLength = function (p_object) { var v1 = 0; for (var v2 in p_object) { ++v1; } return v1; }; v1.concatObjects = function () { var v4 = {}; var v2; var v3 = 0; while (v3 < arguments.length) { v2 = arguments[v3]; for (var v5 in v2) { if (v2[v5] == null) { delete v4[v5]; } else { v4[v5] = v2[v5]; } } ++v3; } return v4; }; ASSetPropFlags(caurina.transitions.AuxFunctions.prototype, null, 1); } #endinitclip } movieClip 2082 __Packages.caurina.transitions.PropertyInfoObj { #initclip if (!_global.caurina) { _global.caurina = new Object(); } if (!_global.caurina.transitions) { _global.caurina.transitions = new Object(); } if (!_global.caurina.transitions.PropertyInfoObj) { var v1 = function (p_valueStart, p_valueComplete, p_originalValueComplete, p_arrayIndex, p_extra, p_isSpecialProperty, p_modifierFunction, p_modifierParameters) { this.valueStart = p_valueStart; this.valueComplete = p_valueComplete; this.originalValueComplete = p_originalValueComplete; this.arrayIndex = p_arrayIndex; this.extra = p_extra; this.isSpecialProperty = p_isSpecialProperty; this.hasModifier = p_modifierFunction != undefined; this.modifierFunction = p_modifierFunction; this.modifierParameters = p_modifierParameters; }; caurina.transitions.PropertyInfoObj = v1; var v2 = v1.prototype; v2.clone = function () { var v2 = new caurina.transitions.PropertyInfoObj(this.valueStart, this.valueComplete, this.originalValueComplete, this.arrayIndex, this.extra, this.isSpecialProperty, this.modifierFunction, this.modifierParameters); return v2; }; v2.toString = function () { var v2 = '\n[PropertyInfoObj '; v2 += 'valueStart:' + String(this.valueStart); v2 += ', '; v2 += 'valueComplete:' + String(this.valueComplete); v2 += ', '; v2 += 'originalValueComplete:' + String(this.originalValueComplete); v2 += ', '; v2 += 'arrayIndex:' + String(this.arrayIndex); v2 += ', '; v2 += 'extra:' + String(this.extra); v2 += ', '; v2 += 'isSpecialProperty:' + String(this.isSpecialProperty); v2 += ', '; v2 += 'hasModifier:' + String(this.hasModifier); v2 += ', '; v2 += 'modifierFunction:' + String(this.modifierFunction); v2 += ', '; v2 += 'modifierParameters:' + String(this.modifierParameters); v2 += ']\n'; return v2; }; ASSetPropFlags(caurina.transitions.PropertyInfoObj.prototype, null, 1); } #endinitclip } movieClip 2083 __Packages.caurina.transitions.Equations { #initclip if (!_global.caurina) { _global.caurina = new Object(); } if (!_global.caurina.transitions) { _global.caurina.transitions = new Object(); } if (!_global.caurina.transitions.Equations) { var v1 = function () { trace('Equations is a static class and should not be instantiated.'); }; caurina.transitions.Equations = v1; var v2 = v1.prototype; v1.init = function () { caurina.transitions.Tweener.registerTransition('easenone', caurina.transitions.Equations.easeNone); caurina.transitions.Tweener.registerTransition('linear', caurina.transitions.Equations.easeNone); caurina.transitions.Tweener.registerTransition('easeinquad', caurina.transitions.Equations.easeInQuad); caurina.transitions.Tweener.registerTransition('easeoutquad', caurina.transitions.Equations.easeOutQuad); caurina.transitions.Tweener.registerTransition('easeinoutquad', caurina.transitions.Equations.easeInOutQuad); caurina.transitions.Tweener.registerTransition('easeoutinquad', caurina.transitions.Equations.easeOutInQuad); caurina.transitions.Tweener.registerTransition('easeincubic', caurina.transitions.Equations.easeInCubic); caurina.transitions.Tweener.registerTransition('easeoutcubic', caurina.transitions.Equations.easeOutCubic); caurina.transitions.Tweener.registerTransition('easeinoutcubic', caurina.transitions.Equations.easeInOutCubic); caurina.transitions.Tweener.registerTransition('easeoutincubic', caurina.transitions.Equations.easeOutInCubic); caurina.transitions.Tweener.registerTransition('easeinquart', caurina.transitions.Equations.easeInQuart); caurina.transitions.Tweener.registerTransition('easeoutquart', caurina.transitions.Equations.easeOutQuart); caurina.transitions.Tweener.registerTransition('easeinoutquart', caurina.transitions.Equations.easeInOutQuart); caurina.transitions.Tweener.registerTransition('easeoutinquart', caurina.transitions.Equations.easeOutInQuart); caurina.transitions.Tweener.registerTransition('easeinquint', caurina.transitions.Equations.easeInQuint); caurina.transitions.Tweener.registerTransition('easeoutquint', caurina.transitions.Equations.easeOutQuint); caurina.transitions.Tweener.registerTransition('easeinoutquint', caurina.transitions.Equations.easeInOutQuint); caurina.transitions.Tweener.registerTransition('easeoutinquint', caurina.transitions.Equations.easeOutInQuint); caurina.transitions.Tweener.registerTransition('easeinsine', caurina.transitions.Equations.easeInSine); caurina.transitions.Tweener.registerTransition('easeoutsine', caurina.transitions.Equations.easeOutSine); caurina.transitions.Tweener.registerTransition('easeinoutsine', caurina.transitions.Equations.easeInOutSine); caurina.transitions.Tweener.registerTransition('easeoutinsine', caurina.transitions.Equations.easeOutInSine); caurina.transitions.Tweener.registerTransition('easeincirc', caurina.transitions.Equations.easeInCirc); caurina.transitions.Tweener.registerTransition('easeoutcirc', caurina.transitions.Equations.easeOutCirc); caurina.transitions.Tweener.registerTransition('easeinoutcirc', caurina.transitions.Equations.easeInOutCirc); caurina.transitions.Tweener.registerTransition('easeoutincirc', caurina.transitions.Equations.easeOutInCirc); caurina.transitions.Tweener.registerTransition('easeinexpo', caurina.transitions.Equations.easeInExpo); caurina.transitions.Tweener.registerTransition('easeoutexpo', caurina.transitions.Equations.easeOutExpo); caurina.transitions.Tweener.registerTransition('easeinoutexpo', caurina.transitions.Equations.easeInOutExpo); caurina.transitions.Tweener.registerTransition('easeoutinexpo', caurina.transitions.Equations.easeOutInExpo); caurina.transitions.Tweener.registerTransition('easeinelastic', caurina.transitions.Equations.easeInElastic); caurina.transitions.Tweener.registerTransition('easeoutelastic', caurina.transitions.Equations.easeOutElastic); caurina.transitions.Tweener.registerTransition('easeinoutelastic', caurina.transitions.Equations.easeInOutElastic); caurina.transitions.Tweener.registerTransition('easeoutinelastic', caurina.transitions.Equations.easeOutInElastic); caurina.transitions.Tweener.registerTransition('easeinback', caurina.transitions.Equations.easeInBack); caurina.transitions.Tweener.registerTransition('easeoutback', caurina.transitions.Equations.easeOutBack); caurina.transitions.Tweener.registerTransition('easeinoutback', caurina.transitions.Equations.easeInOutBack); caurina.transitions.Tweener.registerTransition('easeoutinback', caurina.transitions.Equations.easeOutInBack); caurina.transitions.Tweener.registerTransition('easeinbounce', caurina.transitions.Equations.easeInBounce); caurina.transitions.Tweener.registerTransition('easeoutbounce', caurina.transitions.Equations.easeOutBounce); caurina.transitions.Tweener.registerTransition('easeinoutbounce', caurina.transitions.Equations.easeInOutBounce); caurina.transitions.Tweener.registerTransition('easeoutinbounce', caurina.transitions.Equations.easeOutInBounce); }; v1.easeNone = function (t, b, c, d, p_params) { return c * t / d + b; }; v1.easeInQuad = function (t, b, c, d, p_params) { t /= d; return c * t * t + b; }; v1.easeOutQuad = function (t, b, c, d, p_params) { t /= d; return -c * t * (t - 2) + b; }; v1.easeInOutQuad = function (t, b, c, d, p_params) { t /= d / 2; if (t < 1) { return (c / 2) * t * t + b; } return (-c / 2) * (--t * (t - 2) - 1) + b; }; v1.easeOutInQuad = function (t, b, c, d, p_params) { if (t < d / 2) { return caurina.transitions.Equations.easeOutQuad(t * 2, b, c / 2, d, p_params); } return caurina.transitions.Equations.easeInQuad(t * 2 - d, b + c / 2, c / 2, d, p_params); }; v1.easeInCubic = function (t, b, c, d, p_params) { t /= d; return c * t * t * t + b; }; v1.easeOutCubic = function (t, b, c, d, p_params) { t = t / d - 1; return c * (t * t * t + 1) + b; }; v1.easeInOutCubic = function (t, b, c, d, p_params) { t /= d / 2; if (t < 1) { return (c / 2) * t * t * t + b; } t -= 2; return (c / 2) * (t * t * t + 2) + b; }; v1.easeOutInCubic = function (t, b, c, d, p_params) { if (t < d / 2) { return caurina.transitions.Equations.easeOutCubic(t * 2, b, c / 2, d, p_params); } return caurina.transitions.Equations.easeInCubic(t * 2 - d, b + c / 2, c / 2, d, p_params); }; v1.easeInQuart = function (t, b, c, d, p_params) { t /= d; return c * t * t * t * t + b; }; v1.easeOutQuart = function (t, b, c, d, p_params) { t = t / d - 1; return -c * (t * t * t * t - 1) + b; }; v1.easeInOutQuart = function (t, b, c, d, p_params) { t /= d / 2; if (t < 1) { return (c / 2) * t * t * t * t + b; } t -= 2; return (-c / 2) * (t * t * t * t - 2) + b; }; v1.easeOutInQuart = function (t, b, c, d, p_params) { if (t < d / 2) { return caurina.transitions.Equations.easeOutQuart(t * 2, b, c / 2, d, p_params); } return caurina.transitions.Equations.easeInQuart(t * 2 - d, b + c / 2, c / 2, d, p_params); }; v1.easeInQuint = function (t, b, c, d, p_params) { t /= d; return c * t * t * t * t * t + b; }; v1.easeOutQuint = function (t, b, c, d, p_params) { t = t / d - 1; return c * (t * t * t * t * t + 1) + b; }; v1.easeInOutQuint = function (t, b, c, d, p_params) { t /= d / 2; if (t < 1) { return (c / 2) * t * t * t * t * t + b; } t -= 2; return (c / 2) * (t * t * t * t * t + 2) + b; }; v1.easeOutInQuint = function (t, b, c, d, p_params) { if (t < d / 2) { return caurina.transitions.Equations.easeOutQuint(t * 2, b, c / 2, d, p_params); } return caurina.transitions.Equations.easeInQuint(t * 2 - d, b + c / 2, c / 2, d, p_params); }; v1.easeInSine = function (t, b, c, d, p_params) { return -c * Math.cos((t / d) * 1.570796326794897) + c + b; }; v1.easeOutSine = function (t, b, c, d, p_params) { return c * Math.sin((t / d) * 1.570796326794897) + b; }; v1.easeInOutSine = function (t, b, c, d, p_params) { return (-c / 2) * (Math.cos(Math.PI * t / d) - 1) + b; }; v1.easeOutInSine = function (t, b, c, d, p_params) { if (t < d / 2) { return caurina.transitions.Equations.easeOutSine(t * 2, b, c / 2, d, p_params); } return caurina.transitions.Equations.easeInSine(t * 2 - d, b + c / 2, c / 2, d, p_params); }; v1.easeInExpo = function (t, b, c, d, p_params) { return (t == 0) ? b : c * Math.pow(2, 10 * (t / d - 1)) + b - c * 0.001; }; v1.easeOutExpo = function (t, b, c, d, p_params) { return (t == d) ? b + c : c * 1.001 * (-Math.pow(2, -10 * t / d) + 1) + b; }; v1.easeInOutExpo = function (t, b, c, d, p_params) { if (t == 0) { return b; } if (t == d) { return b + c; } t /= d / 2; if (t < 1) { return (c / 2) * Math.pow(2, 10 * (t - 1)) + b - c * 0.0005; } return (c / 2) * 1.0005 * (-Math.pow(2, -10 * --t) + 2) + b; }; v1.easeOutInExpo = function (t, b, c, d, p_params) { if (t < d / 2) { return caurina.transitions.Equations.easeOutExpo(t * 2, b, c / 2, d, p_params); } return caurina.transitions.Equations.easeInExpo(t * 2 - d, b + c / 2, c / 2, d, p_params); }; v1.easeInCirc = function (t, b, c, d, p_params) { t /= d; return -c * (Math.sqrt(1 - t * t) - 1) + b; }; v1.easeOutCirc = function (t, b, c, d, p_params) { t = t / d - 1; return c * Math.sqrt(1 - t * t) + b; }; v1.easeInOutCirc = function (t, b, c, d, p_params) { t /= d / 2; if (t < 1) { return (-c / 2) * (Math.sqrt(1 - t * t) - 1) + b; } t -= 2; return (c / 2) * (Math.sqrt(1 - t * t) + 1) + b; }; v1.easeOutInCirc = function (t, b, c, d, p_params) { if (t < d / 2) { return caurina.transitions.Equations.easeOutCirc(t * 2, b, c / 2, d, p_params); } return caurina.transitions.Equations.easeInCirc(t * 2 - d, b + c / 2, c / 2, d, p_params); }; v1.easeInElastic = function (t, b, c, d, p_params) { if (t == 0) { return b; } t /= d; if (t == 1) { return b + c; } var v2 = (p_params.period == undefined) ? d * 0.3 : p_params.period; var v5; var v1 = p_params.amplitude; if (!v1 || v1 < Math.abs(c)) { v1 = c; v5 = v2 / 4; t -= 1; return -(v1 * Math.pow(2, 10 * t) * Math.sin((t * d - v5) * 6.283185307179586 / v2)) + b; } v5 = (v2 / 6.283185307179586) * Math.asin(c / v1); t -= 1; return -(v1 * Math.pow(2, 10 * t) * Math.sin((t * d - v5) * 6.283185307179586 / v2)) + b; }; v1.easeOutElastic = function (t, b, c, d, p_params) { if (t == 0) { return b; } t /= d; if (t == 1) { return b + c; } var v3 = (p_params.period == undefined) ? d * 0.3 : p_params.period; var v5; var v1 = p_params.amplitude; if (!v1 || v1 < Math.abs(c)) { v1 = c; v5 = v3 / 4; return v1 * Math.pow(2, -10 * t) * Math.sin((t * d - v5) * 6.283185307179586 / v3) + c + b; } v5 = (v3 / 6.283185307179586) * Math.asin(c / v1); return v1 * Math.pow(2, -10 * t) * Math.sin((t * d - v5) * 6.283185307179586 / v3) + c + b; }; v1.easeInOutElastic = function (t, b, c, d, p_params) { if (t == 0) { return b; } t /= d / 2; if (t == 2) { return b + c; } var v3 = (p_params.period == undefined) ? d * 0.45 : p_params.period; var v5; var v1 = p_params.amplitude; if (!v1 || v1 < Math.abs(c)) { v1 = c; v5 = v3 / 4; } else { v5 = (v3 / 6.283185307179586) * Math.asin(c / v1); } if (t < 1) { t -= 1; return -0.5 * (v1 * Math.pow(2, 10 * t) * Math.sin((t * d - v5) * 6.283185307179586 / v3)) + b; } t -= 1; return v1 * Math.pow(2, -10 * t) * Math.sin((t * d - v5) * 6.283185307179586 / v3) * 0.5 + c + b; }; v1.easeOutInElastic = function (t, b, c, d, p_params) { if (t < d / 2) { return caurina.transitions.Equations.easeOutElastic(t * 2, b, c / 2, d, p_params); } return caurina.transitions.Equations.easeInElastic(t * 2 - d, b + c / 2, c / 2, d, p_params); }; v1.easeInBack = function (t, b, c, d, p_params) { if (p_params.overshoot != undefined) { var v1 = p_params.overshoot; t /= d; return c * t * t * ((v1 + 1) * t - v1) + b; } var v1 = 1.70158; t /= d; return c * t * t * ((v1 + 1) * t - v1) + b; }; v1.easeOutBack = function (t, b, c, d, p_params) { if (p_params.overshoot != undefined) { var v2 = p_params.overshoot; t = t / d - 1; return c * (t * t * ((v2 + 1) * t + v2) + 1) + b; } var v2 = 1.70158; t = t / d - 1; return c * (t * t * ((v2 + 1) * t + v2) + 1) + b; }; v1.easeInOutBack = function (t, b, c, d, p_params) { var v2 = (p_params.overshoot == undefined) ? 1.70158 : p_params.overshoot; t /= d / 2; if (t < 1) { v2 *= 1.525; return (c / 2) * (t * t * ((v2 + 1) * t - v2)) + b; } t -= 2; v2 *= 1.525; return (c / 2) * (t * t * ((v2 + 1) * t + v2) + 2) + b; }; v1.easeOutInBack = function (t, b, c, d, p_params) { if (t < d / 2) { return caurina.transitions.Equations.easeOutBack(t * 2, b, c / 2, d, p_params); } return caurina.transitions.Equations.easeInBack(t * 2 - d, b + c / 2, c / 2, d, p_params); }; v1.easeInBounce = function (t, b, c, d, p_params) { return c - caurina.transitions.Equations.easeOutBounce(d - t, 0, c, d) + b; }; v1.easeOutBounce = function (t, b, c, d, p_params) { t /= d; if (t < 0.3636363636363637) { return c * (7.5625 * t * t) + b; } else { if (t < 0.7272727272727273) { t -= 0.5454545454545454; return c * (7.5625 * t * t + 0.75) + b; } else { if (t < 0.9090909090909091) { t -= 0.8181818181818182; return c * (7.5625 * t * t + 0.9375) + b; } else { t -= 0.9545454545454546; return c * (7.5625 * t * t + 0.984375) + b; } } } }; v1.easeInOutBounce = function (t, b, c, d, p_params) { if (t < d / 2) { return caurina.transitions.Equations.easeInBounce(t * 2, 0, c, d) * 0.5 + b; } else { return caurina.transitions.Equations.easeOutBounce(t * 2 - d, 0, c, d) * 0.5 + c * 0.5 + b; } }; v1.easeOutInBounce = function (t, b, c, d, p_params) { if (t < d / 2) { return caurina.transitions.Equations.easeOutBounce(t * 2, b, c / 2, d, p_params); } return caurina.transitions.Equations.easeInBounce(t * 2 - d, b + c / 2, c / 2, d, p_params); }; ASSetPropFlags(caurina.transitions.Equations.prototype, null, 1); } #endinitclip } movieClip 2084 __Packages.caurina.transitions.SpecialProperty { #initclip if (!_global.caurina) { _global.caurina = new Object(); } if (!_global.caurina.transitions) { _global.caurina.transitions = new Object(); } if (!_global.caurina.transitions.SpecialProperty) { var v1 = function (p_getFunction, p_setFunction, p_parameters, p_preProcessFunction) { this.getValue = p_getFunction; this.setValue = p_setFunction; this.parameters = p_parameters; this.preProcess = p_preProcessFunction; }; caurina.transitions.SpecialProperty = v1; var v2 = v1.prototype; v2.toString = function () { var v2 = ''; v2 += '[SpecialProperty '; v2 += 'getValue:' + this.getValue.toString(); v2 += ', '; v2 += 'setValue:' + this.setValue.toString(); v2 += ', '; v2 += 'parameters:' + this.parameters.toString(); v2 += ', '; v2 += 'preProcess:' + this.preProcess.toString(); v2 += ']'; return v2; }; ASSetPropFlags(caurina.transitions.SpecialProperty.prototype, null, 1); } #endinitclip } movieClip 2085 __Packages.caurina.transitions.SpecialPropertyModifier { #initclip if (!_global.caurina) { _global.caurina = new Object(); } if (!_global.caurina.transitions) { _global.caurina.transitions = new Object(); } if (!_global.caurina.transitions.SpecialPropertyModifier) { var v1 = function (p_modifyFunction, p_getFunction) { this.modifyValues = p_modifyFunction; this.getValue = p_getFunction; }; caurina.transitions.SpecialPropertyModifier = v1; var v2 = v1.prototype; v2.toString = function () { var v2 = ''; v2 += '[SpecialPropertyModifier '; v2 += 'modifyValues:' + this.modifyValues.toString(); v2 += ', '; v2 += 'getValue:' + this.getValue.toString(); v2 += ']'; return v2; }; ASSetPropFlags(caurina.transitions.SpecialPropertyModifier.prototype, null, 1); } #endinitclip } movieClip 2086 __Packages.caurina.transitions.SpecialPropertySplitter { #initclip if (!_global.caurina) { _global.caurina = new Object(); } if (!_global.caurina.transitions) { _global.caurina.transitions = new Object(); } if (!_global.caurina.transitions.SpecialPropertySplitter) { var v1 = function (p_splitFunction, p_parameters) { this.splitValues = p_splitFunction; this.parameters = p_parameters; }; caurina.transitions.SpecialPropertySplitter = v1; var v2 = v1.prototype; v2.splitValues = function (p_value, p_parameters) { return []; }; v2.toString = function () { var v2 = ''; v2 += '[SpecialPropertySplitter '; v2 += 'splitValues:' + this.splitValues.toString(); v2 += ', '; v2 += 'parameters:' + this.parameters.toString(); v2 += ']'; return v2; }; ASSetPropFlags(caurina.transitions.SpecialPropertySplitter.prototype, null, 1); } #endinitclip } movieClip 2087 __Packages.ascb.util.Proxy { #initclip if (!_global.ascb) { _global.ascb = new Object(); } if (!_global.ascb.util) { _global.ascb.util = new Object(); } if (!_global.ascb.util.Proxy) { var v1 = function () {}; ascb.util.Proxy = v1; var v2 = v1.prototype; v1.create = function (oTarget, fFunction) { var aParameters = new Array(); var v2 = 2; while (v2 < arguments.length) { aParameters[v2 - 2] = arguments[v2]; ++v2; } var v4 = function () { var v2 = arguments.concat(aParameters); fFunction.apply(oTarget, v2); }; return v4; }; ASSetPropFlags(ascb.util.Proxy.prototype, null, 1); } #endinitclip } movieClip 2088 __Packages.com.greensock.core.TweenCore { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.greensock) { _global.com.greensock = new Object(); } if (!_global.com.greensock.core) { _global.com.greensock.core = new Object(); } if (!_global.com.greensock.core.TweenCore) { var v1 = function (duration, vars) { this.vars = vars || {}; this.cachedTotalDuration = duration || 0; this.cachedDuration = this.cachedTotalDuration; this._delay = Number(this.vars.delay) || 0; this.cachedTimeScale = this.vars.timeScale || 1; this.active = Boolean(duration == 0 && this._delay == 0 && this.vars.immediateRender != false); this.cachedTime = 0; this.cachedTotalTime = 0; this.data = this.vars.data; this.cachedReversed = false; this.cachedPaused = this.cachedReversed; this.cacheIsDirty = this.cachedReversed; this.initted = this.cachedReversed; this.gc = this.cachedReversed; this._rawPrevTime = -1; if (!com.greensock.core.TweenCore._classInitted) { if (com.greensock.TweenLite.rootFrame == undefined && com.greensock.TweenLite.initClass != undefined) { com.greensock.TweenLite.initClass(); com.greensock.core.TweenCore._classInitted = true; } else { return undefined; } } var v2 = this.vars.timeline instanceof com.greensock.core.SimpleTimeline ? this.vars.timeline : ((this.vars.useFrames == true) ? com.greensock.TweenLite.rootFramesTimeline : com.greensock.TweenLite.rootTimeline); this.cachedStartTime = v2.cachedTotalTime + this._delay; v2.addChild(this); if (this.vars.reversed) { this.cachedReversed = true; } if (this.vars.paused) { this.__set__paused(true); } }; com.greensock.core.TweenCore = v1; var v2 = v1.prototype; v2.play = function () { this.__set__reversed(false); this.__set__paused(false); }; v2.pause = function () { this.__set__paused(true); }; v2.resume = function () { this.__set__paused(false); }; v2.restart = function (includeDelay, suppressEvents) { this.__set__reversed(false); this.__set__paused(false); this.setTotalTime(includeDelay ? -this._delay : 0, Boolean(suppressEvents != false)); }; v2.reverse = function (forceResume) { this.__set__reversed(true); if (forceResume != false) { this.__set__paused(false); } else { if (this.gc) { this.setEnabled(true, false); } } }; v2.renderTime = function (time, suppressEvents, force) {}; v2.complete = function (skipRender, suppressEvents) { if (!skipRender) { this.renderTime(this.__get__totalDuration(), suppressEvents, false); return undefined; } if (this.timeline.autoRemoveChildren) { this.setEnabled(false, false); } else { this.active = false; } if (!suppressEvents) { if (this.vars.onComplete && this.cachedTotalTime == this.cachedTotalDuration && !this.cachedReversed) { this.vars.onComplete.apply(this.vars.onCompleteScope, this.vars.onCompleteParams); } else { if (this.cachedReversed && this.cachedTotalTime == 0 && this.vars.onReverseComplete) { this.vars.onReverseComplete.apply(this.vars.onReverseCompleteScope, this.vars.onReverseCompleteParams); } } } }; v2.invalidate = function () {}; v2.setEnabled = function (enabled, ignoreTimeline) { if (enabled) { this.active = Boolean(!this.cachedPaused && this.cachedTotalTime > 0 && this.cachedTotalTime < this.cachedTotalDuration); if (ignoreTimeline != true && this.gc) { this.timeline.addChild(this); } this.gc = !enabled; return false; } this.active = false; if (ignoreTimeline != true) { this.timeline.remove(this, true); } this.gc = !enabled; return false; }; v2.kill = function () { this.setEnabled(false, false); }; v2.setDirtyCache = function (includeSelf) { var v2 = (includeSelf != false) ? this : this.timeline; while (v2) { v2.cacheIsDirty = true; v2 = v2.timeline; } }; v2.setTotalTime = function (time, suppressEvents) { if (this.timeline) { var v3 = (this._pauseTime || this._pauseTime == 0) ? this._pauseTime : this.timeline.cachedTotalTime; if (this.cachedReversed) { var v4 = this.cacheIsDirty ? this.__get__totalDuration() : this.cachedTotalDuration; this.cachedStartTime = v3 - (v4 - time) / this.cachedTimeScale; } else { this.cachedStartTime = v3 - time / this.cachedTimeScale; } if (!this.timeline.cacheIsDirty) { this.setDirtyCache(false); } if (this.cachedTotalTime != time) { this.renderTime(time, suppressEvents, false); } } }; v2.__get__delay = function () { return this._delay; }; v2.__set__delay = function (n) { this.startTime += n - this._delay; this._delay = n; return this.__get__delay(); }; v2.__get__duration = function () { return this.cachedDuration; }; v2.__set__duration = function (n) { this.cachedTotalDuration = n; this.cachedDuration = this.cachedTotalDuration; this.setDirtyCache(false); return this.__get__duration(); }; v2.__get__totalDuration = function () { return this.cachedTotalDuration; }; v2.__set__totalDuration = function (n) { this.__set__duration(n); return this.__get__totalDuration(); }; v2.__get__currentTime = function () { return this.cachedTime; }; v2.__set__currentTime = function (n) { this.setTotalTime(n, false); return this.__get__currentTime(); }; v2.__get__totalTime = function () { return this.cachedTotalTime; }; v2.__set__totalTime = function (n) { this.setTotalTime(n, false); return this.__get__totalTime(); }; v2.__get__startTime = function () { return this.cachedStartTime; }; v2.__set__startTime = function (n) { var v2 = Boolean(this.timeline != undefined && (n != this.cachedStartTime || this.gc)); this.cachedStartTime = n; if (v2) { this.timeline.addChild(this); } return this.__get__startTime(); }; v2.__get__reversed = function () { return this.cachedReversed; }; v2.__set__reversed = function (b) { if (b != this.cachedReversed) { this.cachedReversed = b; this.setTotalTime(this.cachedTotalTime, true); } return this.__get__reversed(); }; v2.__get__paused = function () { return this.cachedPaused; }; v2.__set__paused = function (b) { if (b != this.cachedPaused && this.timeline) { if (b) { this._pauseTime = this.timeline.rawTime; } else { this.cachedStartTime += this.timeline.__get__rawTime() - this._pauseTime; this._pauseTime = NaN; this.setDirtyCache(false); } this.cachedPaused = b; this.active = Boolean(!this.cachedPaused && this.cachedTotalTime > 0 && this.cachedTotalTime < this.cachedTotalDuration); } if (!b && this.gc) { this.setTotalTime(this.cachedTotalTime, false); this.setEnabled(true, false); } return this.__get__paused(); }; v1.version = 1.132; v2.addProperty('currentTime', v2.__get__currentTime, v2.__set__currentTime); v2.addProperty('delay', v2.__get__delay, v2.__set__delay); v2.addProperty('duration', v2.__get__duration, v2.__set__duration); v2.addProperty('paused', v2.__get__paused, v2.__set__paused); v2.addProperty('reversed', v2.__get__reversed, v2.__set__reversed); v2.addProperty('startTime', v2.__get__startTime, v2.__set__startTime); v2.addProperty('totalDuration', v2.__get__totalDuration, v2.__set__totalDuration); v2.addProperty('totalTime', v2.__get__totalTime, v2.__set__totalTime); ASSetPropFlags(com.greensock.core.TweenCore.prototype, null, 1); } #endinitclip } movieClip 2089 __Packages.com.greensock.core.SimpleTimeline { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.greensock) { _global.com.greensock = new Object(); } if (!_global.com.greensock.core) { _global.com.greensock.core = new Object(); } if (!_global.com.greensock.core.SimpleTimeline) { var v1 = function (vars) { super(0, vars); }; com.greensock.core.SimpleTimeline = v1; com.greensock.core.SimpleTimeline extends com.greensock.core.TweenCore; var v2 = v1.prototype; v2.addChild = function (node) { if (!node.gc && node.timeline != undefined) { node.timeline.remove(node, true); } node.timeline = this; if (node.gc) { node.setEnabled(true, true); } if (this._firstChild) { this._firstChild.prevNode = node; } node.nextNode = this._firstChild; this._firstChild = node; node.prevNode = undefined; }; v2.remove = function (node, skipDisable) { if (!node.gc && skipDisable != true) { node.setEnabled(false, true); } if (node.nextNode) { node.nextNode.prevNode = node.prevNode; } else { if (this._lastChild == node) { this._lastChild = node.prevNode; } } if (node.prevNode) { node.prevNode.nextNode = node.nextNode; } else { if (this._firstChild == node) { this._firstChild = node.nextNode; } } }; v2.renderTime = function (time, suppressEvents, force) { var v2 = this._firstChild; var v4; var v5; this.cachedTotalTime = time; this.cachedTime = time; while (v2) { v5 = v2.nextNode; if (v2.active || time >= v2.cachedStartTime && !v2.cachedPaused && !v2.gc) { if (!v2.cachedReversed) { v2.renderTime((time - v2.cachedStartTime) * v2.cachedTimeScale, suppressEvents, false); } else { v4 = v2.cacheIsDirty ? v2.__get__totalDuration() : v2.cachedTotalDuration; v2.renderTime(v4 - (time - v2.cachedStartTime) * v2.cachedTimeScale, suppressEvents, false); } } v2 = v5; } }; v2.__get__rawTime = function () { return this.cachedTotalTime; }; v2.addProperty('rawTime', v2.__get__rawTime, function () {}); ASSetPropFlags(com.greensock.core.SimpleTimeline.prototype, null, 1); } #endinitclip } movieClip 2090 __Packages.com.greensock.TweenLite { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.greensock) { _global.com.greensock = new Object(); } if (!_global.com.greensock.TweenLite) { var v1 = function (target, duration, vars) { super(duration, vars); if (com.greensock.TweenLite._timingClip.onEnterFrame != com.greensock.TweenLite.updateAll) { var v7 = (_root.getBytesLoaded() == undefined) ? com.greensock.TweenLite.findSubloadedSWF(_root) : _root; var v6 = 999; while (v7.getInstanceAtDepth(v6) != undefined) { ++v6; } com.greensock.TweenLite._timingClip = v7.createEmptyMovieClip('__tweenLite' + ((String(com.greensock.TweenLite.version)).split('.')).join('_'), v6); com.greensock.TweenLite._timingClip.onEnterFrame = com.greensock.TweenLite.updateAll; com.greensock.TweenLite.rootTimeline.cachedStartTime = getTimer() * 0.001; com.greensock.TweenLite.rootFramesTimeline.cachedStartTime = com.greensock.TweenLite.rootFrame; } this.ratio = 0; this.target = target; this._targetID = com.greensock.TweenLite.getID(target, true); if (this.vars.timeScale != undefined && this.target instanceof com.greensock.core.TweenCore) { this.cachedTimeScale = 1; } this.propTweenLookup = {}; this._ease = com.greensock.TweenLite.defaultEase; this._overwrite = (vars.overwrite == undefined || !com.greensock.TweenLite.overwriteManager.enabled && vars.overwrite > 1) ? com.greensock.TweenLite.overwriteManager.mode : Number(vars.overwrite); var v5 = com.greensock.TweenLite.masterList[this._targetID].tweens; if (v5.length == 0) { v5[0] = this; } else { if (this._overwrite == 1) { var v4 = v5.length; while (v4--) { if (!v5[v4].gc) { v5[v4].setEnabled(false, false); } } com.greensock.TweenLite.masterList[this._targetID].tweens = [this]; } else { v5[v5.length] = this; } } if (this.active || this.vars.immediateRender) { this.renderTime(0, false, true); } }; com.greensock.TweenLite = v1; com.greensock.TweenLite extends com.greensock.core.TweenCore; var v2 = v1.prototype; v1.initClass = function () { com.greensock.TweenLite.rootFrame = 0; com.greensock.TweenLite.rootTimeline = new com.greensock.core.SimpleTimeline(null); com.greensock.TweenLite.rootFramesTimeline = new com.greensock.core.SimpleTimeline(null); com.greensock.TweenLite.rootFramesTimeline.autoRemoveChildren = true; com.greensock.TweenLite.rootTimeline.autoRemoveChildren = com.greensock.TweenLite.rootFramesTimeline.autoRemoveChildren; if (com.greensock.TweenLite.overwriteManager == undefined) { com.greensock.TweenLite.overwriteManager = {'mode': 1, 'enabled': false}; } }; v2.init = function () { var v2; var v5; var v3; var v6; var v7; if (typeof this.vars.ease == 'function') { this._ease = this.vars.ease; } if (this.vars.easeParams != undefined) { this.vars.proxiedEase = this._ease; this._ease = this.easeProxy; } this.cachedPT1 = undefined; this.propTweenLookup = {}; for (v2 in this.vars) { if (com.greensock.TweenLite._reservedProps[v2] && !(v2 == 'timeScale' && this.target instanceof com.greensock.core.TweenCore)) { } else { if (com.greensock.TweenLite.plugins[v2] && v3.onInitTween(this.target, this.vars[v2], this)) { this.cachedPT1 = new com.greensock.core.PropTween(v3, 'changeFactor', 0, 1, (v3.overwriteProps.length == 1) ? v3.overwriteProps[0] : '_MULTIPLE_', true, this.cachedPT1); if (this.cachedPT1.name == '_MULTIPLE_') { v5 = v3.overwriteProps.length; while (v5--) { this.propTweenLookup[v3.overwriteProps[v5]] = this.cachedPT1; } } else { this.propTweenLookup[this.cachedPT1.name] = this.cachedPT1; } if (v3.priority) { this.cachedPT1.priority = v3.priority; v6 = true; } if (v3.onDisable || v3.onEnable) { this._notifyPluginsOfEnabled = true; } this._hasPlugins = true; } else { this.cachedPT1 = new com.greensock.core.PropTween(this.target, v2, Number(this.target[v2]), (typeof this.vars[v2] == 'number') ? Number(this.vars[v2]) - this.target[v2] : Number(this.vars[v2]), v2, false, this.cachedPT1); this.propTweenLookup[v2] = this.cachedPT1; } } } if (v6) { com.greensock.TweenLite.onPluginEvent('onInit', this); } if (this.vars.runBackwards) { var v4 = this.cachedPT1; while (v4) { v4.start += v4.change; v4.change = -v4.change; v4 = v4.nextNode; } } this._hasUpdate = Boolean(typeof this.vars.onUpdate == 'function'); if (this._overwrittenProps) { this.killVars(this._overwrittenProps); if (this.cachedPT1 == undefined) { this.setEnabled(false, false); } } if (this._overwrite > 1 && this.cachedPT1 && v7 && v7.length > 1) { if (com.greensock.TweenLite.overwriteManager.manageOverwrites(this, this.propTweenLookup, v7, this._overwrite)) { this.init(); } } this.initted = true; }; v2.renderTime = function (time, suppressEvents, force) { var v4; var v5 = this.cachedTime; if (time >= this.cachedDuration) { this.cachedTime = this.cachedDuration; this.cachedTotalTime = this.cachedTime; this.ratio = 1; v4 = true; if (this.cachedDuration == 0) { if ((time == 0 || this._rawPrevTime < 0) && this._rawPrevTime != time) { force = true; } this._rawPrevTime = time; } } else { if (time <= 0) { this.ratio = 0; this.cachedTime = 0; this.cachedTotalTime = 0; if (time < 0) { this.active = false; if (this.cachedDuration == 0) { if (this._rawPrevTime > 0) { force = true; v4 = true; } this._rawPrevTime = time; } } if (this.cachedReversed && v5 != 0) { v4 = true; } } else { this.cachedTime = time; this.cachedTotalTime = this.cachedTime; this.ratio = this._ease(time, 0, 1, this.cachedDuration); } } if (this.cachedTime == v5 && !force) { return undefined; } else { if (!this.initted) { this.init(); if (!v4 && this.cachedTime) { this.ratio = this._ease(this.cachedTime, 0, 1, this.cachedDuration); } } } if (!this.active && !this.cachedPaused) { this.active = true; } if (v5 == 0 && this.vars.onStart && this.cachedTime != 0 && !suppressEvents) { this.vars.onStart.apply(this.vars.onStartScope, this.vars.onStartParams); } var v2 = this.cachedPT1; while (v2) { v2.target[v2.property] = v2.start + this.ratio * v2.change; v2 = v2.nextNode; } if (this._hasUpdate && !suppressEvents) { this.vars.onUpdate.apply(this.vars.onUpdateScope, this.vars.onUpdateParams); } if (v4) { if (this._hasPlugins && this.cachedPT1) { com.greensock.TweenLite.onPluginEvent('onComplete', this); } this.complete(true, suppressEvents); } }; v2.killVars = function (vars, permanent) { if (this._overwrittenProps == undefined) { this._overwrittenProps = {}; } var v3; var v2; var v5; for (v3 in vars) { if (this.propTweenLookup[v3]) { v2 = this.propTweenLookup[v3]; if (v2.isPlugin && v2.name == '_MULTIPLE_') { v2.target.killProps(vars); if (v2.target.overwriteProps.length == 0) { v2.name = ''; } } if (v2.name != '_MULTIPLE_') { if (v2.nextNode) { v2.nextNode.prevNode = v2.prevNode; } if (v2.prevNode) { v2.prevNode.nextNode = v2.nextNode; } else { if (this.cachedPT1 == v2) { this.cachedPT1 = v2.nextNode; } } if (v2.isPlugin && v2.target.onDisable) { v2.target.onDisable(); if (v2.target.activeDisable) { v5 = true; } } delete this.propTweenLookup[v3]; } } if (permanent != false) { this._overwrittenProps[v3] = 1; } } return v5; }; v2.invalidate = function () { if (this._notifyPluginsOfEnabled) { com.greensock.TweenLite.onPluginEvent('onDisable', this); } this.cachedPT1 = undefined; this._overwrittenProps = undefined; this._notifyPluginsOfEnabled = false; this.active = this._notifyPluginsOfEnabled; this.initted = this._notifyPluginsOfEnabled; this._hasUpdate = this._notifyPluginsOfEnabled; this.propTweenLookup = {}; }; v2.setEnabled = function (enabled, ignoreTimeline) { if (enabled) { var v3 = com.greensock.TweenLite.masterList[this._targetID].tweens; if (v3) { v3[v3.length] = this; } else { com.greensock.TweenLite.masterList[this._targetID] = {'target': this.target, 'tweens': [this]}; } } super.setEnabled(enabled, ignoreTimeline); if (this._notifyPluginsOfEnabled && this.cachedPT1) { return com.greensock.TweenLite.onPluginEvent(enabled ? 'onEnable' : 'onDisable', this); } return false; }; v2.easeProxy = function (t, b, c, d) { return this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams)); }; v1.to = function (target, duration, vars) { return new com.greensock.TweenLite(target, duration, vars); }; v1.from = function (target, duration, vars) { vars.runBackwards = true; if (vars.immediateRender != false) { vars.immediateRender = true; } return new com.greensock.TweenLite(target, duration, vars); }; v1.delayedCall = function (delay, onComplete, onCompleteParams, onCompleteScope, useFrames) { return new com.greensock.TweenLite(onComplete, 0, {'delay': delay, 'onComplete': onComplete, 'onCompleteParams': onCompleteParams, 'onCompleteScope': onCompleteScope, 'immediateRender': false, 'useFrames': useFrames, 'overwrite': 0}); }; v1.updateAll = function () { com.greensock.TweenLite.rootTimeline.renderTime((getTimer() * 0.001 - com.greensock.TweenLite.rootTimeline.cachedStartTime) * com.greensock.TweenLite.rootTimeline.cachedTimeScale, false, false); ++com.greensock.TweenLite.rootFrame; com.greensock.TweenLite.rootFramesTimeline.renderTime((com.greensock.TweenLite.rootFrame - com.greensock.TweenLite.rootFramesTimeline.cachedStartTime) * com.greensock.TweenLite.rootFramesTimeline.cachedTimeScale, false, false); if (!(com.greensock.TweenLite.rootFrame % 60)) { var v3 = com.greensock.TweenLite.masterList; var v2; var v1; for (var v4 in v3) { v1 = v3[v4].tweens; v2 = v1.length; while (v2--) { if (v1[v2].gc) { v1.splice(v2, 1); } } if (v1.length == 0) { delete v3[v4]; } } } }; v1.killTweensOf = function (target, complete) { var v5 = com.greensock.TweenLite.getID(target, true); var v3 = com.greensock.TweenLite.masterList[v5].tweens; var v2; var v1; if (v3 != undefined) { v2 = v3.length; while (v2--) { v1 = v3[v2]; if (!v1.gc) { if (complete == true) { v1.complete(false, false); } else { v1.setEnabled(false, false); } } } delete com.greensock.TweenLite.masterList[v5]; } }; v1.getID = function (target, lookup) { var v2; if (lookup) { var v1 = com.greensock.TweenLite.masterList; if (typeof target == 'movieclip') { if (v1[String(target)] != undefined) { return String(target); } else { v2 = String(target); com.greensock.TweenLite.masterList[v2] = {'target': target, 'tweens': []}; return v2; } ++com.greensock.TweenLite._cnt; v2 = 't' + com.greensock.TweenLite._cnt; com.greensock.TweenLite.masterList[v2] = {'target': target, 'tweens': []}; return v2; } for (var v3 in v1) { if (v1[v3].target == target) { return v3; } } } ++com.greensock.TweenLite._cnt; v2 = 't' + com.greensock.TweenLite._cnt; com.greensock.TweenLite.masterList[v2] = {'target': target, 'tweens': []}; return v2; }; v1.easeOut = function (t, b, c, d) { t /= d; return -1 * t * (t - 2); }; v1.findSubloadedSWF = function (mc) { for (var v3 in mc) { if (typeof mc[v3] == 'movieclip') { if (mc[v3]._url != _root._url && mc[v3].getBytesLoaded() != undefined) { return mc[v3]; } else { if (com.greensock.TweenLite.findSubloadedSWF(mc[v3]) != undefined) { return com.greensock.TweenLite.findSubloadedSWF(mc[v3]); } } } } return undefined; }; v1.version = 11.132; v1.plugins = {}; v1.killDelayedCallsTo = com.greensock.TweenLite.killTweensOf; v1.defaultEase = com.greensock.TweenLite.easeOut; v1.masterList = {}; v1._cnt = -16000; v1._reservedProps = {'ease': 1, 'delay': 1, 'overwrite': 1, 'onComplete': 1, 'onCompleteParams': 1, 'useFrames': 1, 'runBackwards': 1, 'startAt': 1, 'onUpdate': 1, 'onUpdateParams': 1, 'roundProps': 1, 'onStart': 1, 'onStartParams': 1, 'onReverseComplete': 1, 'onReverseCompleteParams': 1, 'onRepeat': 1, 'onRepeatParams': 1, 'proxiedEase': 1, 'easeParams': 1, 'yoyo': 1, 'onCompleteListener': 1, 'onUpdateListener': 1, 'onStartListener': 1, 'orientToBezier': 1, 'timeScale': 1, 'immediateRender': 1, 'repeat': 1, 'repeatDelay': 1, 'timeline': 1, 'data': 1, 'paused': 1}; ASSetPropFlags(com.greensock.TweenLite.prototype, null, 1); } #endinitclip } movieClip 2091 __Packages.com.greensock.core.PropTween { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.greensock) { _global.com.greensock = new Object(); } if (!_global.com.greensock.core) { _global.com.greensock.core = new Object(); } if (!_global.com.greensock.core.PropTween) { var v1 = function (target, property, start, change, name, isPlugin, nextNode, priority) { this.target = target; this.property = property; this.start = start; this.change = change; this.name = name; this.isPlugin = isPlugin; if (nextNode) { nextNode.prevNode = this; this.nextNode = nextNode; } this.priority = priority || 0; }; com.greensock.core.PropTween = v1; var v2 = v1.prototype; ASSetPropFlags(com.greensock.core.PropTween.prototype, null, 1); } #endinitclip } frame 2 { _global.$createTweenController = function () { var v3 = _root.createEmptyMovieClip('__tweenController__', 123432); v3.$_tweenPropList = new Array(); v3.$_tTime = getTimer(); v3.onEnterFrame = _global.$updateTweens; }; ASSetPropFlags(_global, '$createTweenController', 1, 0); _global.$removeTweenController = function () { delete _root.__tweenController__.$_tweenPropList; delete _root.__tweenController__.$_tTime; delete _root.__tweenController__.onEnterFrame; _root.__tweenController__.removeMovieClip(); }; ASSetPropFlags(_global, '$removeTweenController', 1, 0); _global.$addTween = function (mtarget, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2, extras) { if (timeSeconds == undefined) { timeSeconds = 0; } if (animType == undefined || animType == '') { animType = 'easeOutExpo'; } if (delay == undefined) { delay = 0; } if (typeof prop == 'string') { var v7 = [prop]; var v11 = [mtarget[prop]]; var v9 = [propDest]; } else { var v7 = []; var v11 = []; var v9 = []; for (var v32 in prop) { v11.push(mtarget[prop[v32]]); } for (v32 in prop) { v7.push(prop[v32]); } for (v32 in propDest) { v9.push(propDest[v32]); } } var v12 = false; if (_root.__tweenController__ == undefined) { _global.$createTweenController(); } var v4 = _root.__tweenController__.$_tweenPropList; var v8 = _root.__tweenController__.$_tTime; for (v32 in v11) { if (v9[v32] != undefined && !mtarget.$_isTweenLocked) { if (mtarget.$_tweenCount > 0) { var v3 = 0; while (v3 < v4.length) { if (v4[v3]._targ == mtarget && v4[v3]._prop == v7[v32]) { if (v8 + delay * 1000 < v4[v3]._timeDest) { v4.splice(v3, 1); --v3; --mtarget.$_tweenCount; } } ++v3; } } v4.push({'_prop': v7[v32], '_targ': mtarget, '_propStart': undefined, '_propDest': v9[v32], '_timeStart': v8, '_timeDest': v8 + timeSeconds * 1000, '_animType': animType, '_extra1': extra1, '_extra2': extra2, '_extras': extras, '_delay': delay, '_isPaused': false, '_timePaused': 0, '_callback': v12 ? undefined : callback}); mtarget.$_tweenCount = mtarget.$_tweenCount > 0 ? mtarget.$_tweenCount + 1 : 1; v12 = true; } } ASSetPropFlags(mtarget, '$_tweenCount', 1, 0); }; ASSetPropFlags(_global, '$addTween', 1, 0); _global.$updateTweens = function () { this.$_tTime = getTimer(); var v8 = this.$_tTime; var v6 = 0; while (v6 < this.$_tweenPropList.length) { var v3 = this.$_tweenPropList[v6]; if (v3._targ.toString() == undefined) { this.$_tweenPropList.splice(v6, 1); --v6; } else { if (v3._timeStart + v3._delay * 1000 <= v8 && !v3._isPaused) { if (v3._propStart == undefined) { if (v3._prop.substr(0, 10) == '__special_') { if (v3._prop == '__special_mc_frame__') { v3._propStart = v3._targ._currentframe; } else { if (v3._prop == '__special_mc_ra__') { v3._propStart = ((new Color(v3._targ)).getTransform()).ra; } else { if (v3._prop == '__special_mc_rb__') { v3._propStart = ((new Color(v3._targ)).getTransform()).rb; } else { if (v3._prop == '__special_mc_ga__') { v3._propStart = ((new Color(v3._targ)).getTransform()).ga; } else { if (v3._prop == '__special_mc_gb__') { v3._propStart = ((new Color(v3._targ)).getTransform()).gb; } else { if (v3._prop == '__special_mc_ba__') { v3._propStart = ((new Color(v3._targ)).getTransform()).ba; } else { if (v3._prop == '__special_mc_bb__') { v3._propStart = ((new Color(v3._targ)).getTransform()).bb; } else { if (v3._prop == '__special_mc_aa__') { v3._propStart = ((new Color(v3._targ)).getTransform()).aa; } else { if (v3._prop == '__special_mc_ab__') { v3._propStart = ((new Color(v3._targ)).getTransform()).ab; } else { if (v3._prop == '__special_text_r__') { v3._propStart = v3._targ.textColor >> 16; } else { if (v3._prop == '__special_text_g__') { v3._propStart = (v3._targ.textColor & 65280) >> 8; } else { if (v3._prop == '__special_text_b__') { v3._propStart = v3._targ.textColor & 255; } else { if (v3._prop == '__special_sound_volume__') { v3._propStart = v3._targ.getVolume(); } else { if (v3._prop == '__special_sound_pan__') { v3._propStart = v3._targ.getPan(); } else { if (v3._prop == '__special_bst_t__') { v3._propStart = 0; v3._extras.__special_bst_ix__ = v3._targ._x; v3._extras.__special_bst_iy__ = v3._targ._y; } else { if (v3._prop == '__special_blur_x__') { var v5 = 0; while (v5 < v3._targ.filters.length) { if (v3._targ.filters[v5] instanceof flash.filters.BlurFilter) { v3._propStart = v3._targ.filters[v5].blurX; } ++v5; } if (v3._propStart == undefined) { v3._propStart = 0; } } else { if (v3._prop == '__special_blur_y__') { var v5 = 0; while (v5 < v3._targ.filters.length) { if (v3._targ.filters[v5] instanceof flash.filters.BlurFilter) { v3._propStart = v3._targ.filters[v5].blurY; } ++v5; } if (v3._propStart == undefined) { v3._propStart = 0; } } else { if (v3._prop == '__special_glow_color__') { var v5 = 0; while (v5 < v3._targ.filters.length) { if (v3._targ.filters[v5] instanceof flash.filters.GlowFilter) { v3._propStart = v3._targ.filters[v5].color; } ++v5; } if (v3._propStart == undefined) { v3._propStart = 16777215; } } else { if (v3._prop == '__special_glow_alpha__') { var v5 = 0; while (v5 < v3._targ.filters.length) { if (v3._targ.filters[v5] instanceof flash.filters.GlowFilter) { v3._propStart = v3._targ.filters[v5].alpha; } ++v5; } if (v3._propStart == undefined) { v3._propStart = 1; } } else { if (v3._prop == '__special_glow_blurX__') { var v5 = 0; while (v5 < v3._targ.filters.length) { if (v3._targ.filters[v5] instanceof flash.filters.GlowFilter) { v3._propStart = v3._targ.filters[v5].blurX; } ++v5; } if (v3._propStart == undefined) { v3._propStart = 0; } } else { if (v3._prop == '__special_glow_blurY__') { var v5 = 0; while (v5 < v3._targ.filters.length) { if (v3._targ.filters[v5] instanceof flash.filters.GlowFilter) { v3._propStart = v3._targ.filters[v5].blurY; } ++v5; } if (v3._propStart == undefined) { v3._propStart = 0; } } else { if (v3._prop == '__special_glow_strength__') { var v5 = 0; while (v5 < v3._targ.filters.length) { if (v3._targ.filters[v5] instanceof flash.filters.GlowFilter) { v3._propStart = v3._targ.filters[v5].strength; } ++v5; } if (v3._propStart == undefined) { v3._propStart = 1; } } else { if (v3._prop == '__special_bevel_distance__') { var v5 = 0; while (v5 < v3._targ.filters.length) { if (v3._targ.filters[v5] instanceof flash.filters.BevelFilter) { v3._propStart = v3._targ.filters[v5].distance; } ++v5; } if (v3._propStart == undefined) { v3._propStart = 0; } } else { if (v3._prop == '__special_bevel_angle__') { var v5 = 0; while (v5 < v3._targ.filters.length) { if (v3._targ.filters[v5] instanceof flash.filters.BevelFilter) { v3._propStart = v3._targ.filters[v5].angle; } ++v5; } if (v3._propStart == undefined) { v3._propStart = 45; } } else { if (v3._prop == '__special_bevel_highlightColor__') { var v5 = 0; while (v5 < v3._targ.filters.length) { if (v3._targ.filters[v5] instanceof flash.filters.BevelFilter) { v3._propStart = v3._targ.filters[v5].highlightColor; } ++v5; } if (v3._propStart == undefined) { v3._propStart = 16777215; } } else { if (v3._prop == '__special_bevel_highlightAlpha__') { var v5 = 0; while (v5 < v3._targ.filters.length) { if (v3._targ.filters[v5] instanceof flash.filters.BevelFilter) { v3._propStart = v3._targ.filters[v5].highlightAlpha; } ++v5; } if (v3._propStart == undefined) { v3._propStart = 1; } } else { if (v3._prop == '__special_bevel_shadowColor__') { var v5 = 0; while (v5 < v3._targ.filters.length) { if (v3._targ.filters[v5] instanceof flash.filters.BevelFilter) { v3._propStart = v3._targ.filters[v5].shadowColor; } ++v5; } if (v3._propStart == undefined) { v3._propStart = 0; } } else { if (v3._prop == '__special_bevel_shadowAlpha__') { var v5 = 0; while (v5 < v3._targ.filters.length) { if (v3._targ.filters[v5] instanceof flash.filters.BevelFilter) { v3._propStart = v3._targ.filters[v5].shadowAlpha; } ++v5; } if (v3._propStart == undefined) { v3._propStart = 1; } } else { if (v3._prop == '__special_bevel_blurX__') { var v5 = 0; while (v5 < v3._targ.filters.length) { if (v3._targ.filters[v5] instanceof flash.filters.BevelFilter) { v3._propStart = v3._targ.filters[v5].blurX; } ++v5; } if (v3._propStart == undefined) { v3._propStart = 0; } } else { if (v3._prop == '__special_bevel_blurY__') { var v5 = 0; while (v5 < v3._targ.filters.length) { if (v3._targ.filters[v5] instanceof flash.filters.BevelFilter) { v3._propStart = v3._targ.filters[v5].blurY; } ++v5; } if (v3._propStart == undefined) { v3._propStart = 0; } } else { if (v3._prop == '__special_bevel_strength__') { var v5 = 0; while (v5 < v3._targ.filters.length) { if (v3._targ.filters[v5] instanceof flash.filters.BevelFilter) { v3._propStart = v3._targ.filters[v5].strength; } ++v5; } if (v3._propStart == undefined) { v3._propStart = 1; } } else { v3._propStart = v3._targ[v3._prop]; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } else { v3._propStart = v3._targ[v3._prop]; } } var v10 = v3._timeDest + v3._delay * 1000; if (v10 <= v8) { var v4 = v3._propDest; } else { var v4 = _global.findTweenValue(v3._propStart, v3._propDest, v3._timeStart, v8 - v3._delay * 1000, v3._timeDest, v3._animType, v3._extra1, v3._extra2); } v3._targ[v3._prop] = v3._extras.mustRound ? Math.round(v4) : v4; if (v3._prop == '__special_mc_frame__') { v3._targ.gotoAndStop(Math.round(v4)); } else { if (v3._prop == '__special_mc_ra__') { (new Color(v3._targ)).setTransform({'ra': v4}); } else { if (v3._prop == '__special_mc_rb__') { (new Color(v3._targ)).setTransform({'rb': v4}); } else { if (v3._prop == '__special_mc_ga__') { (new Color(v3._targ)).setTransform({'ga': v4}); } else { if (v3._prop == '__special_mc_gb__') { (new Color(v3._targ)).setTransform({'gb': v4}); } else { if (v3._prop == '__special_mc_ba__') { (new Color(v3._targ)).setTransform({'ba': v4}); } else { if (v3._prop == '__special_mc_bb__') { (new Color(v3._targ)).setTransform({'bb': v4}); } else { if (v3._prop == '__special_mc_aa__') { (new Color(v3._targ)).setTransform({'aa': v4}); } else { if (v3._prop == '__special_mc_ab__') { (new Color(v3._targ)).setTransform({'ab': v4}); } } } } } } } } } if (v3._prop == '__special_bst_t__') { var v7 = v3._extras; var v9 = _global.findPointOnCurve(v7.__special_bst_ix__, v7.__special_bst_iy__, v7.__special_bst_cx__, v7.__special_bst_cy__, v7.__special_bst_dx__, v7.__special_bst_dy__, v4); if (v3._extras.mustRound) { v3._targ._x = Math.round(v9.x); v3._targ._y = Math.round(v9.y); } else { v3._targ._x = v9.x; v3._targ._y = v9.y; } } if (typeof v3._targ != 'movieclip' && v3._prop == '__special_text_b__') { v3._targ.textColor = (v3._targ.__special_text_r__ << 16) + (v3._targ.__special_text_g__ << 8) + v3._targ.__special_text_b__; } if (v3._prop == '__special_sound_volume__') { v3._targ.setVolume(v4); } if (v3._prop == '__special_sound_pan__') { v3._targ.setPan(v4); } if (v3._prop == '__special_blur_x__') { _global.$setFilterProperty(v3._targ, 'blur_blurX', v4, v3._extras); } if (v3._prop == '__special_blur_y__') { _global.$setFilterProperty(v3._targ, 'blur_blurY', v4, v3._extras); } if (v3._prop == '__special_glow_color__') { _global.$setFilterProperty(v3._targ, 'glow_color', _global.findTweenColor(v3, v8), v3._extras); } if (v3._prop == '__special_glow_alpha__') { _global.$setFilterProperty(v3._targ, 'glow_alpha', v4, v3._extras); } if (v3._prop == '__special_glow_blurX__') { _global.$setFilterProperty(v3._targ, 'glow_blurX', v4, v3._extras); } if (v3._prop == '__special_glow_blurY__') { _global.$setFilterProperty(v3._targ, 'glow_blurY', v4, v3._extras); } if (v3._prop == '__special_glow_strength__') { _global.$setFilterProperty(v3._targ, 'glow_strength', v4, v3._extras); } if (v3._prop == '__special_bevel_distance__') { _global.$setFilterProperty(v3._targ, 'bevel_distance', v4, v3._extras); } if (v3._prop == '__special_bevel_angle__') { _global.$setFilterProperty(v3._targ, 'bevel_angle', v4, v3._extras); } if (v3._prop == '__special_bevel_highlightColor__') { _global.$setFilterProperty(v3._targ, 'bevel_highlightColor', _global.findTweenColor(v3, v8), v3._extras); } if (v3._prop == '__special_bevel_highlightAlpha__') { _global.$setFilterProperty(v3._targ, 'bevel_highlightAlpha', v4, v3._extras); } if (v3._prop == '__special_bevel_shadowColor__') { _global.$setFilterProperty(v3._targ, 'bevel_shadowColor', _global.findTweenColor(v3, v8), v3._extras); } if (v3._prop == '__special_bevel_shadowAlpha__') { _global.$setFilterProperty(v3._targ, 'bevel_shadowAlpha', v4, v3._extras); } if (v3._prop == '__special_bevel_blurX__') { _global.$setFilterProperty(v3._targ, 'bevel_blurX', v4, v3._extras); } if (v3._prop == '__special_bevel_blurY__') { _global.$setFilterProperty(v3._targ, 'bevel_blurY', v4, v3._extras); } if (v3._prop == '__special_bevel_strength__') { _global.$setFilterProperty(v3._targ, 'bevel_strength', v4, v3._extras); } if (v3._targ.onTweenUpdate != undefined) { v3._targ.onTweenUpdate(v3._prop); } if (v10 <= v8) { if (v3._targ.onTweenComplete != undefined) { v3._targ.onTweenComplete(v3._prop); } _global.$stopTween(v3._targ, [v3._prop], false); --v6; if (v3._callback != undefined) { if (_global.backwardCallbackTweening) { var v11 = v3._targ.createEmptyMovieClip('__child__', 122344); v3._callback.apply(v11, null); v11.removeMovieClip(); } else { v3._callback.apply(v3._targ, null); } } } } } ++v6; } if (this.$_tweenPropList.length == 0) { _global.$removeTweenController(); } }; ASSetPropFlags(_global, '$updateTween', 1, 0); _global.$stopTween = function (mtarget, props, wipeFuture) { var v4 = _root.__tweenController__.$_tweenPropList; var v7; for (var v9 in v4) { v7 = v4[v9]._prop; var v5 = 0; for (;;) { if (!(v5 < props.length || v5 < 1 && props == undefined)) break; if (v4[v9]._targ == mtarget && (v7 == props[v5] || props == undefined) && (wipeFuture || v4[v9]._timeDest + v4[v9]._delay * 1000 <= getTimer())) { switch (v7) { case '__special_mc_frame__': case '__special_mc_ra__': case '__special_mc_rb__': case '__special_mc_ga__': case '__special_mc_gb__': case '__special_mc_ba__': case '__special_mc_bb__': case '__special_mc_aa__': case '__special_mc_ab__': case '__special_sound_volume__': case '__special_bst_t__': delete mtarget[v7]; break; case '__special_text_b__': delete mtarget.__special_text_r__; delete mtarget.__special_text_g__; delete mtarget.__special_text_b__; } v4.splice(v9, 1); } ++v5; } } if (props == undefined) { delete mtarget.$_tweenCount; } else { mtarget.$_tweenCount = 0; for (v9 in v4) { if (v4[v9]._targ == mtarget) { ++mtarget.$_tweenCount; } } if (mtarget.$_tweenCount == 0) { delete mtarget.$_tweenCount; } } if (v4.length == 0) { _global.$removeTweenController(); } }; ASSetPropFlags(_global, '$stopTween', 1, 0); _global.$setFilterProperty = function (mtarget, propName, propValue, extras) { var v1; var v7 = false; var v3 = []; v1 = 0; while (v1 < mtarget.filters.length) { v3.push(mtarget.filters[v1]); ++v1; } if (propName.substr(0, 5) == 'blur_') { v1 = 0; while (v1 < mtarget.filters.length) { if (v3[v1] instanceof flash.filters.BlurFilter) { v3[v1][propName.substr(5)] = propValue; if (extras.__special_blur_quality__ != undefined) { v3[v1].quality = extras.__special_blur_quality__; } v7 = true; break; } ++v1; } if (!v7) { var v9; var v8 = (extras.__special_blur_quality__ == undefined) ? 2 : extras.__special_blur_quality__; if (propName == 'blur_blurX') { v9 = new flash.filters.BlurFilter(propValue, 0, v8); } if (propName == 'blur_blurY') { v9 = new flash.filters.BlurFilter(0, propValue, v8); } v3.push(v9); } } else { if (propName.substr(0, 5) == 'glow_') { v1 = 0; while (v1 < mtarget.filters.length) { if (v3[v1] instanceof flash.filters.GlowFilter) { v3[v1][propName.substr(5)] = propValue; if (extras.__special_glow_quality__ != undefined) { v3[v1].quality = extras.__special_glow_quality__; } if (extras.__special_glow_inner__ != undefined) { v3[v1].inner = extras.__special_glow_inner__; } if (extras.__special_glow_knockout__ != undefined) { v3[v1].knockout = extras.__special_glow_knockout__; } v7 = true; break; } ++v1; } if (!v7) { var v8 = (extras.__special_glow_quality__ == undefined) ? 2 : extras.__special_glow_quality__; var v12 = (extras.__special_glow_inner__ == undefined) ? false : extras.__special_glow_inner__; var v10 = (extras.__special_glow_knockout__ == undefined) ? false : extras.__special_glow_knockout__; if (propName == 'glow_color') { var v9 = new flash.filters.GlowFilter(propValue, 1, 0, 0, 1, v8, v12, v10); } if (propName == 'glow_alpha') { v9 = new flash.filters.GlowFilter(16777215, propValue, 0, 0, 1, v8, v12, v10); } if (propName == 'glow_blurX') { v9 = new flash.filters.GlowFilter(16777215, 1, propValue, 0, 1, v8, v12, v10); } if (propName == 'glow_blurY') { v9 = new flash.filters.GlowFilter(16777215, 1, 0, propValue, 1, v8, v12, v10); } if (propName == 'glow_strength') { v9 = new flash.filters.GlowFilter(16777215, 1, 0, 0, propValue, v8, v12, v10); } v3.push(v9); } } else { if (propName.substr(0, 6) == 'bevel_') { v1 = 0; while (v1 < mtarget.filters.length) { if (v3[v1] instanceof flash.filters.BevelFilter) { v3[v1][propName.substr(6)] = propValue; if (extras.__special_bevel_quality__ != undefined) { v3[v1].quality = extras.__special_bevel_quality__; } if (extras.__special_bevel_type__ != undefined) { v3[v1].inner = extras.__special_bevel_type__; } if (extras.__special_bevel_knockout__ != undefined) { v3[v1].knockout = extras.__special_bevel_knockout__; } v7 = true; break; } ++v1; } if (!v7) { var v8 = (extras.__special_bevel_quality__ == undefined) ? 2 : extras.__special_bevel_quality__; var v11 = (extras.__special_bevel_type__ == undefined) ? 'inner' : extras.__special_bevel_type__; var v10 = (extras.__special_bevel_knockout__ == undefined) ? false : extras.__special_bevel_knockout__; if (propName == 'bevel_distance') { var v9 = new flash.filters.BevelFilter(propValue, 45, 16777215, 1, 0, 1, 0, 0, 1, v8, v11, v10); } if (propName == 'bevel_angle') { v9 = new flash.filters.BevelFilter(0, propValue, 16777215, 1, 0, 1, 0, 0, 1, v8, v11, v10); } if (propName == 'bevel_highlightColor') { v9 = new flash.filters.BevelFilter(0, 45, propValue, 1, 0, 1, 0, 0, 1, v8, v11, v10); } if (propName == 'bevel_highlightAlpha') { v9 = new flash.filters.BevelFilter(0, 45, 16777215, propValue, 0, 1, 0, 0, 1, v8, v11, v10); } if (propName == 'bevel_shadowColor') { v9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, propValue, 1, 0, 0, 1, v8, v11, v10); } if (propName == 'bevel_shadowAlpha') { v9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, propValue, 0, 0, 1, v8, v11, v10); } if (propName == 'bevel_blurX') { v9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, 1, propValue, 0, 1, v8, v11, v10); } if (propName == 'bevel_blurY') { v9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, 1, 0, propValue, 1, v8, v11, v10); } if (propName == 'bevel_strength') { v9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, 1, 0, 0, propValue, v8, v11, v10); } v3.push(v9); } } else { return undefined; } } } mtarget.filters = v3; }; Sound.prototype.tween = function (prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2); }; TextField.prototype.tween = Sound.prototype.tween; MovieClip.prototype.tween = Sound.prototype.tween; ASSetPropFlags(MovieClip.prototype, 'tween', 1, 0); ASSetPropFlags(TextField.prototype, 'tween', 1, 0); ASSetPropFlags(Sound.prototype, 'tween', 1, 0); Sound.prototype.roundedTween = function (prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2, {'mustRound': true}); }; TextField.prototype.roundedTween = Sound.prototype.roundedTween; MovieClip.prototype.roundedTween = Sound.prototype.roundedTween; ASSetPropFlags(MovieClip.prototype, 'roundedTween', 1, 0); ASSetPropFlags(TextField.prototype, 'roundedTween', 1, 0); ASSetPropFlags(Sound.prototype, 'roundedTween', 1, 0); Sound.prototype.stopTween = function (props) { if (typeof props == 'string') { props = [props]; } if (props != undefined) { var v4 = 1; while (v4 < arguments.length) { props.push(arguments[v4]); ++v4; } } _global.$stopTween(this, props, true); }; TextField.prototype.stopTween = Sound.prototype.stopTween; MovieClip.prototype.stopTween = Sound.prototype.stopTween; ASSetPropFlags(MovieClip.prototype, 'stopTween', 1, 0); ASSetPropFlags(TextField.prototype, 'stopTween', 1, 0); ASSetPropFlags(Sound.prototype, 'stopTween', 1, 0); Sound.prototype.pauseTween = function (props) { if (props != undefined) { if (typeof props == 'string') { props = [props]; } var v6 = 1; while (v6 < Arguments.length) { props.push(Arguments[v6]); ++v6; } } var v4 = _root.__tweenController__.$_tweenPropList; var v5; for (var v7 in v4) { if (v4[v7]._targ == this && !v4[v7]._isPaused) { if (props != undefined) { v5 = false; for (v6 in props) { if (props[v6] == v4[v7]._prop) { v5 = true; break; } } } if (props == undefined || v5) { v4[v7]._isPaused = true; v4[v7]._timePaused = _root.__tweenController__.$_tTime; } } } }; TextField.prototype.pauseTween = Sound.prototype.pauseTween; MovieClip.prototype.pauseTween = Sound.prototype.pauseTween; ASSetPropFlags(MovieClip.prototype, 'pauseTween', 1, 0); ASSetPropFlags(TextField.prototype, 'pauseTween', 1, 0); ASSetPropFlags(Sound.prototype, 'pauseTween', 1, 0); Sound.prototype.resumeTween = function (props) { if (props != undefined) { if (typeof props == 'string') { props = [props]; } var v7 = 1; while (v7 < Arguments.length) { props.push(Arguments[v7]); ++v7; } } var v3 = _root.__tweenController__.$_tweenPropList; var v5; var v6; for (var v8 in v3) { if (v3[v8]._targ == this && v3[v8]._isPaused) { if (props != undefined) { v5 = false; for (v7 in props) { if (props[v7] == v3[v8]._prop) { v5 = true; break; } } } if (props == undefined || v5) { v3[v8]._isPaused = false; v6 = _root.__tweenController__.$_tTime - v3[v8]._timePaused; v3[v8]._timeStart += v6; v3[v8]._timeDest += v6; v3[v8]._timePaused = 0; } } } }; TextField.prototype.resumeTween = Sound.prototype.resumeTween; MovieClip.prototype.resumeTween = Sound.prototype.resumeTween; ASSetPropFlags(MovieClip.prototype, 'resumeTween', 1, 0); ASSetPropFlags(TextField.prototype, 'resumeTween', 1, 0); ASSetPropFlags(Sound.prototype, 'resumeTween', 1, 0); Sound.prototype.lockTween = function () { this.$_isTweenLocked = true; ASSetPropFlags(this, 'this.$_isTweenLocked', 1, 0); }; TextField.prototype.lockTween = Sound.prototype.lockTween; MovieClip.prototype.lockTween = Sound.prototype.lockTween; ASSetPropFlags(MovieClip.prototype, 'lockTween', 1, 0); ASSetPropFlags(TextField.prototype, 'lockTween', 1, 0); ASSetPropFlags(Sound.prototype, 'lockTween', 1, 0); Sound.prototype.unlockTween = function () { delete this.$_isTweenLocked; }; TextField.prototype.unlockTween = Sound.prototype.unlockTween; MovieClip.prototype.unlockTween = Sound.prototype.unlockTween; ASSetPropFlags(MovieClip.prototype, 'unlockTween', 1, 0); ASSetPropFlags(TextField.prototype, 'unlockTween', 1, 0); ASSetPropFlags(Sound.prototype, 'unlockTween', 1, 0); Sound.prototype.getTweens = function () { return this.$_tweenCount; }; TextField.prototype.getTweens = Sound.prototype.getTweens; MovieClip.prototype.getTweens = Sound.prototype.getTweens; ASSetPropFlags(MovieClip.prototype, 'getTweens', 1, 0); ASSetPropFlags(TextField.prototype, 'getTweens', 1, 0); ASSetPropFlags(Sound.prototype, 'getTweens', 1, 0); Sound.prototype.isTweening = function () { return this.$_tweenCount > 0 ? true : false; }; TextField.prototype.isTweening = Sound.prototype.isTweening; MovieClip.prototype.isTweening = Sound.prototype.isTweening; ASSetPropFlags(MovieClip.prototype, 'isTweening', 1, 0); ASSetPropFlags(TextField.prototype, 'isTweening', 1, 0); ASSetPropFlags(Sound.prototype, 'isTweening', 1, 0); TextField.prototype.alphaTo = function (propDest_a, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, '_alpha', propDest_a, timeSeconds, animType, delay, callback, extra1, extra2); }; MovieClip.prototype.alphaTo = TextField.prototype.alphaTo; ASSetPropFlags(MovieClip.prototype, 'alphaTo', 1, 0); ASSetPropFlags(TextField.prototype, 'alphaTo', 1, 0); MovieClip.prototype.frameTo = function (propDest_frame, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, '__special_mc_frame__', propDest_frame, timeSeconds, animType, delay, callback, extra1, extra2); }; ASSetPropFlags(MovieClip.prototype, 'frameTo', 1, 0); TextField.prototype.resizeTo = function (propDest_width, propDest_height, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, ['_width', '_height'], [propDest_width, propDest_height], timeSeconds, animType, delay, callback, extra1, extra2); }; MovieClip.prototype.resizeTo = TextField.prototype.resizeTo; ASSetPropFlags(MovieClip.prototype, 'resizeTo', 1, 0); ASSetPropFlags(TextField.prototype, 'resizeTo', 1, 0); TextField.prototype.rotateTo = function (propDest_rotation, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, '_rotation', propDest_rotation, timeSeconds, animType, delay, callback, extra1, extra2); }; MovieClip.prototype.rotateTo = TextField.prototype.rotateTo; ASSetPropFlags(MovieClip.prototype, 'rotateTo', 1, 0); ASSetPropFlags(TextField.prototype, 'rotateTo', 1, 0); TextField.prototype.scaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, ['_xscale', '_yscale'], [propDest_scale, propDest_scale], timeSeconds, animType, delay, callback, extra1, extra2); }; MovieClip.prototype.scaleTo = TextField.prototype.scaleTo; ASSetPropFlags(MovieClip.prototype, 'scaleTo', 1, 0); ASSetPropFlags(TextField.prototype, 'scaleTo', 1, 0); TextField.prototype.xScaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, '_xscale', propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2); }; MovieClip.prototype.xScaleTo = TextField.prototype.xScaleTo; ASSetPropFlags(MovieClip.prototype, 'xScaleTo', 1, 0); ASSetPropFlags(TextField.prototype, 'xScaleTo', 1, 0); TextField.prototype.yScaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, '_yscale', propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2); }; MovieClip.prototype.yScaleTo = TextField.prototype.yScaleTo; ASSetPropFlags(MovieClip.prototype, 'yScaleTo', 1, 0); ASSetPropFlags(TextField.prototype, 'yScaleTo', 1, 0); TextField.prototype.scrollTo = function (propDest_scroll, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, 'scroll', propDest_scroll, timeSeconds, animType, delay, callback, extra1, extra2); }; ASSetPropFlags(TextField.prototype, 'scrollTo', 1, 0); TextField.prototype.slideTo = function (propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, ['_x', '_y'], [propDest_x, propDest_y], timeSeconds, animType, delay, callback, extra1, extra2); }; MovieClip.prototype.slideTo = TextField.prototype.slideTo; ASSetPropFlags(MovieClip.prototype, 'slideTo', 1, 0); ASSetPropFlags(TextField.prototype, 'slideTo', 1, 0); TextField.prototype.roundedSlideTo = function (propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, ['_x', '_y'], [propDest_x, propDest_y], timeSeconds, animType, delay, callback, extra1, extra2, {'mustRound': true}); }; MovieClip.prototype.roundedSlideTo = TextField.prototype.roundedSlideTo; ASSetPropFlags(MovieClip.prototype, 'roundedSlideTo', 1, 0); ASSetPropFlags(TextField.prototype, 'roundedSlideTo', 1, 0); TextField.prototype.xSlideTo = function (propDest_x, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, '_x', propDest_x, timeSeconds, animType, delay, callback, extra1, extra2); }; MovieClip.prototype.xSlideTo = TextField.prototype.xSlideTo; ASSetPropFlags(MovieClip.prototype, 'xSlideTo', 1, 0); ASSetPropFlags(TextField.prototype, 'xSlideTo', 1, 0); TextField.prototype.roundedXSlideTo = function (propDest_x, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, '_x', propDest_x, timeSeconds, animType, delay, callback, extra1, extra2, {'mustRound': true}); }; MovieClip.prototype.roundedXSlideTo = TextField.prototype.roundedXSlideTo; ASSetPropFlags(MovieClip.prototype, 'roundedXSlideTo', 1, 0); ASSetPropFlags(TextField.prototype, 'roundedXSlideTo', 1, 0); TextField.prototype.ySlideTo = function (propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, '_y', propDest_y, timeSeconds, animType, delay, callback, extra1, extra2); }; MovieClip.prototype.ySlideTo = TextField.prototype.ySlideTo; ASSetPropFlags(MovieClip.prototype, 'ySlideTo', 1, 0); ASSetPropFlags(TextField.prototype, 'ySlideTo', 1, 0); TextField.prototype.roundedYSlideTo = function (propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, '_y', propDest_y, timeSeconds, animType, delay, callback, extra1, extra2, {'mustRound': true}); }; MovieClip.prototype.roundedYSlideTo = TextField.prototype.roundedYSlideTo; ASSetPropFlags(MovieClip.prototype, 'roundedYSlideTo', 1, 0); ASSetPropFlags(TextField.prototype, 'roundedYSlideTo', 1, 0); TextField.prototype.bezierSlideTo = function (cpoint_x, cpoint_y, propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) { var v3 = new Object(); v3.__special_bst_ix__ = undefined; v3.__special_bst_iy__ = undefined; v3.__special_bst_cx__ = cpoint_x; v3.__special_bst_cy__ = cpoint_y; v3.__special_bst_dx__ = propDest_x; v3.__special_bst_dy__ = propDest_y; _global.$addTween(this, '__special_bst_t__', 1, timeSeconds, animType, delay, callback, extra1, extra2, v3); }; MovieClip.prototype.bezierSlideTo = TextField.prototype.bezierSlideTo; ASSetPropFlags(MovieClip.prototype, 'bezierSlideTo', 1, 0); ASSetPropFlags(TextField.prototype, 'bezierSlideTo', 1, 0); TextField.prototype.roundedBezierSlideTo = function (cpoint_x, cpoint_y, propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) { var v3 = new Object(); v3.__special_bst_ix__ = undefined; v3.__special_bst_iy__ = undefined; v3.__special_bst_cx__ = cpoint_x; v3.__special_bst_cy__ = cpoint_y; v3.__special_bst_dx__ = propDest_x; v3.__special_bst_dy__ = propDest_y; v3.mustRound = true; _global.$addTween(this, '__special_bst_t__', 1, timeSeconds, animType, delay, callback, extra1, extra2, v3); }; MovieClip.prototype.roundedBezierSlideTo = TextField.prototype.roundedBezierSlideTo; ASSetPropFlags(MovieClip.prototype, 'roundedBezierSlideTo', 1, 0); ASSetPropFlags(TextField.prototype, 'roundedBezierSlideTo', 1, 0); Sound.prototype.volumeTo = function (propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, '__special_sound_volume__', propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2); }; ASSetPropFlags(Sound.prototype, 'volumeTo', 1, 0); Sound.prototype.panTo = function (propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, '__special_sound_pan__', propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2); }; ASSetPropFlags(Sound.prototype, 'panTo', 1, 0); MovieClip.prototype.colorTo = function (propDest_color, timeSeconds, animType, delay, callback, extra1, extra2) { if (propDest_color == null) { this.colorTransformTo(100, 0, 100, 0, 100, 0, undefined, undefined, timeSeconds, animType, delay, callback, extra1, extra2); } else { var v3 = propDest_color >> 16; var v5 = (propDest_color & 65280) >> 8; var v4 = propDest_color & 255; this.colorTransformTo(0, v3, 0, v5, 0, v4, undefined, undefined, timeSeconds, animType, delay, callback, extra1, extra2); } }; ASSetPropFlags(MovieClip.prototype, 'colorTo', 1, 0); TextField.prototype.colorTo = function (propDest_color, timeSeconds, animType, delay, callback, extra1, extra2) { var v3 = propDest_color >> 16; var v6 = (propDest_color & 65280) >> 8; var v4 = propDest_color & 255; _global.$addTween(this, ['__special_text_r__', '__special_text_g__', '__special_text_b__'], [v3, v6, v4], timeSeconds, animType, delay, callback, extra1, extra2); }; ASSetPropFlags(TextField.prototype, 'colorTo', 1, 0); MovieClip.prototype.colorTransformTo = function () { if (typeof arguments[0] == 'object' && arguments[0] != undefined) { _global.$addTween(this, ['__special_mc_ra__', '__special_mc_rb__', '__special_mc_ga__', '__special_mc_gb__', '__special_mc_ba__', '__special_mc_bb__', '__special_mc_aa__', '__special_mc_ab__'], [arguments[0].ra, arguments[0].rb, arguments[0].ga, arguments[0].gb, arguments[0].ba, arguments[0].bb, arguments[0].aa, arguments[0].ab], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6]); } else { _global.$addTween(this, ['__special_mc_ra__', '__special_mc_rb__', '__special_mc_ga__', '__special_mc_gb__', '__special_mc_ba__', '__special_mc_bb__', '__special_mc_aa__', '__special_mc_ab__'], [arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[7]], arguments[8], arguments[9], arguments[10], arguments[11], arguments[12], arguments[13]); } }; ASSetPropFlags(MovieClip.prototype, 'colorTransformTo', 1, 0); TextField.prototype.blurTo = function () { if (typeof arguments[0] == 'object' && arguments[0] != undefined) { _global.$addTween(this, ['__special_blur_x__', '__special_blur_y__'], [arguments[0].blurX, arguments[0].blurY], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], {'__special_blur_quality__': arguments[0].quality}); } else { _global.$addTween(this, ['__special_blur_x__', '__special_blur_y__'], [arguments[0], arguments[0]], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[7], {'__special_blur_quality__': arguments[1]}); } }; MovieClip.prototype.blurTo = TextField.prototype.blurTo; ASSetPropFlags(MovieClip.prototype, 'blurTo', 1, 0); ASSetPropFlags(TextField.prototype, 'blurTo', 1, 0); TextField.prototype.xyBlurTo = function (propDest_blurX, propDest_blurY, quality, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, ['__special_blur_x__', '__special_blur_y__'], [propDest_blurX, propDest_blurY], timeSeconds, animType, delay, callback, extra1, extra2, {'__special_blur_quality__': quality}); }; MovieClip.prototype.xyBlurTo = TextField.prototype.xyBlurTo; ASSetPropFlags(MovieClip.prototype, 'xyBlurTo', 1, 0); ASSetPropFlags(TextField.prototype, 'xyBlurTo', 1, 0); TextField.prototype.xBlurTo = function (propDest_blur, quality, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, '__special_blur_x__', propDest_blur, timeSeconds, animType, delay, callback, extra1, extra2, {'__special_blur_quality__': quality}); }; MovieClip.prototype.xBlurTo = TextField.prototype.xBlurTo; ASSetPropFlags(MovieClip.prototype, 'xBlurTo', 1, 0); ASSetPropFlags(TextField.prototype, 'xBlurTo', 1, 0); TextField.prototype.yBlurTo = function (propDest_blur, quality, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, '__special_blur_y__', propDest_blur, timeSeconds, animType, delay, callback, extra1, extra2, {'__special_blur_quality__': quality}); }; MovieClip.prototype.yBlurTo = TextField.prototype.yBlurTo; ASSetPropFlags(MovieClip.prototype, 'yBlurTo', 1, 0); ASSetPropFlags(TextField.prototype, 'yBlurTo', 1, 0); TextField.prototype.glowTo = function () { if (typeof arguments[0] == 'object' && arguments[0] != undefined) { _global.$addTween(this, ['__special_glow_color__', '__special_glow_alpha__', '__special_glow_blurX__', '__special_glow_blurY__', '__special_glow_strength__'], [arguments[0].color, arguments[0].alpha, arguments[0].blurX, arguments[0].blurY, arguments[0].strength], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], {'__special_glow_quality__': arguments[0].quality, '__special_glow_inner__': arguments[0].inner, '__special_glow_knockout__': arguments[0].knockout}); } else { _global.$addTween(this, ['__special_glow_color__', '__special_glow_alpha__', '__special_glow_blurX__', '__special_glow_blurY__', '__special_glow_strength__'], [arguments[0], arguments[1], arguments[2], arguments[2], arguments[3]], arguments[7], arguments[8], arguments[9], arguments[10], arguments[11], arguments[12], {'__special_glow_quality__': arguments[4], '__special_glow_inner__': arguments[5], '__special_glow_knockout__': arguments[6]}); } }; MovieClip.prototype.glowTo = TextField.prototype.glowTo; ASSetPropFlags(MovieClip.prototype, 'glowTo', 1, 0); ASSetPropFlags(TextField.prototype, 'glowTo', 1, 0); TextField.prototype.xyGlowTo = function (propDest_color, propDest_alpha, propDest_blurX, propDest_blurY, propDest_strength, quality, inner, knockout, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, ['__special_glow_color__', '__special_glow_alpha__', '__special_glow_blurX__', '__special_glow_blurY__', '__special_glow_strength__'], [propDest_color, propDest_alpha, propDest_blurX, propDest_blurY, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {'__special_glow_quality__': quality, '__special_glow_inner__': inner, '__special_glow_knockout__': knockout}); }; MovieClip.prototype.xyGlowTo = TextField.prototype.xyGlowTo; ASSetPropFlags(MovieClip.prototype, 'xyGlowTo', 1, 0); ASSetPropFlags(TextField.prototype, 'xyGlowTo', 1, 0); TextField.prototype.xGlowTo = function (propDest_color, propDest_alpha, propDest_blur, propDest_strength, quality, inner, knockout, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, ['__special_glow_color__', '__special_glow_alpha__', '__special_glow_blurX__', '__special_glow_strength__'], [propDest_color, propDest_alpha, propDest_blur, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {'__special_glow_quality__': quality, '__special_glow_inner__': inner, '__special_glow_knockout__': knockout}); }; MovieClip.prototype.xGlowTo = TextField.prototype.xGlowTo; ASSetPropFlags(MovieClip.prototype, 'xGlowTo', 1, 0); ASSetPropFlags(TextField.prototype, 'xGlowTo', 1, 0); TextField.prototype.yGlowTo = function (propDest_color, propDest_alpha, propDest_blur, propDest_strength, quality, inner, knockout, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, ['__special_glow_color__', '__special_glow_alpha__', '__special_glow_blurY__', '__special_glow_strength__'], [propDest_color, propDest_alpha, propDest_blur, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {'__special_glow_quality__': quality, '__special_glow_inner__': inner, '__special_glow_knockout__': knockout}); }; MovieClip.prototype.yGlowTo = TextField.prototype.yGlowTo; ASSetPropFlags(MovieClip.prototype, 'yGlowTo', 1, 0); ASSetPropFlags(TextField.prototype, 'yGlowTo', 1, 0); TextField.prototype.bevelTo = function () { if (typeof arguments[0] == 'object' && arguments[0] != undefined) { _global.$addTween(this, ['__special_bevel_distance__', '__special_bevel_angle__', '__special_bevel_highlightColor__', '__special_bevel_highlightAlpha__', '__special_bevel_shadowColor__', '__special_bevel_shadowAlpha__', '__special_bevel_blurX__', '__special_bevel_blurY__', '__special_bevel_strength__'], [arguments[0].distance, arguments[0].angle, arguments[0].highlightColor, arguments[0].highlightAlpha * 100, arguments[0].shadowColor, arguments[0].shadowAlpha * 100, arguments[0].blurX, arguments[0].blurY, arguments[0].strength], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], {'__special_bevel_quality__': arguments[0].quality, '__special_bevel_type__': arguments[0].type, '__special_bevel_knockout__': arguments[0].knockout}); } else { _global.$addTween(this, ['__special_bevel_distance__', '__special_bevel_angle__', '__special_bevel_highlightColor__', '__special_bevel_highlightAlpha__', '__special_bevel_shadowColor__', '__special_bevel_shadowAlpha__', '__special_bevel_blurX__', '__special_bevel_blurY__', '__special_bevel_strength__'], [arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[6], arguments[7]], arguments[11], arguments[12], arguments[13], arguments[14], arguments[15], arguments[16], {'__special_bevel_quality__': arguments[8], '__special_bevel_type__': arguments[9], '__special_bevel_knockout__': arguments[10]}); } }; MovieClip.prototype.bevelTo = TextField.prototype.bevelTo; ASSetPropFlags(MovieClip.prototype, 'bevelTo', 1, 0); ASSetPropFlags(TextField.prototype, 'bevelTo', 1, 0); TextField.prototype.xyBevelTo = function (propDest_distance, propDest_angle, propDest_highlightColor, propDest_highlightAlpha, propDest_shadowColor, propDest_shadowAlpha, propDest_blurX, propDest_blurY, propDest_strength, quality, type, knockout, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, ['__special_bevel_distance__', '__special_bevel_angle__', '__special_bevel_highlightColor__', '__special_bevel_highlightAlpha__', '__special_bevel_shadowColor__', '__special_bevel_shadowAlpha__', '__special_bevel_blurX__', '__special_bevel_blurY__', '__special_bevel_blurY__', '__special_bevel_strength__'], [propDest_distance, propDest_angle, propDest_highlightColor, propDest_highlightAlpha, propDest_shadowColor, propDest_shadowAlpha, propDest_blur, propDest_blur, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {'__special_bevel_quality__': quality, '__special_bevel_type__': type, '__special_bevel_knockout__': knockout}); }; MovieClip.prototype.xyBevelTo = TextField.prototype.xyBevelTo; ASSetPropFlags(MovieClip.prototype, 'xyBevelTo', 1, 0); ASSetPropFlags(TextField.prototype, 'xyBevelTo', 1, 0); _global.findPointOnCurve = function (p1x, p1y, cx, cy, p2x, p2y, t) { return {'x': p1x + t * (2 * (1 - t) * (cx - p1x) + t * (p2x - p1x)), 'y': p1y + t * (2 * (1 - t) * (cy - p1y) + t * (p2y - p1y))}; }; ASSetPropFlags(_global, 'findPointOnCurve', 1, 0); _global.findTweenColor = function (objProp, tTime) { var v8 = objProp._propStart >> 16; var v4 = objProp._propDest >> 16; var v5 = objProp._propStart >> 8 & 255; var v6 = objProp._propDest >> 8 & 255; var v9 = objProp._propStart & 255; var v7 = objProp._propDest & 255; var v12 = Math.round(_global.findTweenValue(v8, v4, objProp._timeStart, tTime - objProp._delay * 1000, objProp._timeDest, objProp._animType, objProp._extra1, objProp._extra2)); var v10 = Math.round(_global.findTweenValue(v5, v6, objProp._timeStart, tTime - objProp._delay * 1000, objProp._timeDest, objProp._animType, objProp._extra1, objProp._extra2)); var v3 = Math.round(_global.findTweenValue(v9, v7, objProp._timeStart, tTime - objProp._delay * 1000, objProp._timeDest, objProp._animType, objProp._extra1, objProp._extra2)); return (v12 << 16) + (v10 << 8) + v3; }; _global.findTweenValue = function (_propStart, _propDest, _timeStart, _timeNow, _timeDest, _animType, _extra1, _extra2) { var v1 = _timeNow - _timeStart; var v4 = _propStart; var v2 = _propDest - _propStart; var v3 = _timeDest - _timeStart; var v6 = _extra1; var v7 = _extra2; var v5 = _extra1; switch (_animType.toLowerCase()) { trace('MC TWEEN ### Error on transition: there\'s no "' + _animType + '" animation type.'); return 0; case 'linear': return v2 * v1 / v3 + v4; case 'easeinquad': v1 /= v3; return v2 * v1 * v1 + v4; case 'easeoutquad': v1 /= v3; return -v2 * v1 * (v1 - 2) + v4; case 'easeinoutquad': v1 /= v3 / 2; if (v1 < 1) { return (v2 / 2) * v1 * v1 + v4; } return (-v2 / 2) * (--v1 * (v1 - 2) - 1) + v4; case 'easeoutinquad': if (v1 < v3 / 2) { return findTweenValue(0, v2, 0, v1 * 2, v3, 'easeOutQuad') * 0.5 + v4; } return findTweenValue(0, v2, 0, v1 * 2 - v3, v3, 'easeInQuad') * 0.5 + v2 * 0.5 + v4; case 'easeincubic': v1 /= v3; return v2 * v1 * v1 * v1 + v4; case 'easeoutcubic': v1 = v1 / v3 - 1; return v2 * (v1 * v1 * v1 + 1) + v4; case 'easeinoutcubic': v1 /= v3 / 2; if (v1 < 1) { return (v2 / 2) * v1 * v1 * v1 + v4; } v1 -= 2; return (v2 / 2) * (v1 * v1 * v1 + 2) + v4; case 'easeoutincubic': if (v1 < v3 / 2) { return findTweenValue(0, v2, 0, v1 * 2, v3, 'easeOutCubic') * 0.5 + v4; } return findTweenValue(0, v2, 0, v1 * 2 - v3, v3, 'easeInCubic') * 0.5 + v2 * 0.5 + v4; case 'easeinquart': v1 /= v3; return v2 * v1 * v1 * v1 * v1 + v4; case 'easeoutquart': v1 = v1 / v3 - 1; return -v2 * (v1 * v1 * v1 * v1 - 1) + v4; case 'easeinoutquart': v1 /= v3 / 2; if (v1 < 1) { return (v2 / 2) * v1 * v1 * v1 * v1 + v4; } v1 -= 2; return (-v2 / 2) * (v1 * v1 * v1 * v1 - 2) + v4; case 'easeoutinquart': if (v1 < v3 / 2) { return findTweenValue(0, v2, 0, v1 * 2, v3, 'easeOutQuart') * 0.5 + v4; } return findTweenValue(0, v2, 0, v1 * 2 - v3, v3, 'easeInQuart') * 0.5 + v2 * 0.5 + v4; case 'easeinquint': v1 /= v3; return v2 * v1 * v1 * v1 * v1 * v1 + v4; case 'easeoutquint': v1 = v1 / v3 - 1; return v2 * (v1 * v1 * v1 * v1 * v1 + 1) + v4; case 'easeinoutquint': v1 /= v3 / 2; if (v1 < 1) { return (v2 / 2) * v1 * v1 * v1 * v1 * v1 + v4; } v1 -= 2; return (v2 / 2) * (v1 * v1 * v1 * v1 * v1 + 2) + v4; case 'easeoutinquint': if (v1 < v3 / 2) { return findTweenValue(0, v2, 0, v1 * 2, v3, 'easeOutQuint') * 0.5 + v4; } return findTweenValue(0, v2, 0, v1 * 2 - v3, v3, 'easeInQuint') * 0.5 + v2 * 0.5 + v4; case 'easeinsine': return -v2 * Math.cos((v1 / v3) * 1.570796326794897) + v2 + v4; case 'easeoutsine': return v2 * Math.sin((v1 / v3) * 1.570796326794897) + v4; case 'easeinoutsine': return (-v2 / 2) * (Math.cos(Math.PI * v1 / v3) - 1) + v4; case 'easeoutinsine': if (v1 < v3 / 2) { return findTweenValue(0, v2, 0, v1 * 2, v3, 'easeOutSine') * 0.5 + v4; } return findTweenValue(0, v2, 0, v1 * 2 - v3, v3, 'easeInSine') * 0.5 + v2 * 0.5 + v4; case 'easeinexpo': return (v1 == 0) ? v4 : v2 * Math.pow(2, 10 * (v1 / v3 - 1)) + v4; case 'easeoutexpo': return (v1 == v3) ? v4 + v2 : v2 * (-Math.pow(2, -10 * v1 / v3) + 1) + v4; case 'easeinoutexpo': if (v1 == 0) { return v4; } if (v1 == v3) { return v4 + v2; } v1 /= v3 / 2; if (v1 < 1) { return (v2 / 2) * Math.pow(2, 10 * (v1 - 1)) + v4; } return (v2 / 2) * (-Math.pow(2, -10 * --v1) + 2) + v4; case 'easeoutinexpo': if (v1 == 0) { return v4; } if (v1 == v3) { return v4 + v2; } v1 /= v3 / 2; if (v1 < 1) { return (v2 / 2) * (-Math.pow(2, -10 * v1 / 1) + 1) + v4; } return (v2 / 2) * (Math.pow(2, 10 * (v1 - 2) / 1) + 1) + v4; case 'easeincirc': v1 /= v3; return -v2 * (Math.sqrt(1 - v1 * v1) - 1) + v4; case 'easeoutcirc': v1 = v1 / v3 - 1; return v2 * Math.sqrt(1 - v1 * v1) + v4; case 'easeinoutcirc': v1 /= v3 / 2; if (v1 < 1) { return (-v2 / 2) * (Math.sqrt(1 - v1 * v1) - 1) + v4; } v1 -= 2; return (v2 / 2) * (Math.sqrt(1 - v1 * v1) + 1) + v4; case 'easeoutincirc': if (v1 < v3 / 2) { return findTweenValue(0, v2, 0, v1 * 2, v3, 'easeOutCirc') * 0.5 + v4; } return findTweenValue(0, v2, 0, v1 * 2 - v3, v3, 'easeInCirc') * 0.5 + v2 * 0.5 + v4; case 'easeinelastic': if (v1 == 0) { return v4; } v1 /= v3; if (v1 == 1) { return v4 + v2; } if (!v7) { v7 = v3 * 0.3; } if (!v6 || v6 < Math.abs(v2)) { v6 = v2; v5 = v7 / 4; } else { v5 = (v7 / 6.283185307179586) * Math.asin(v2 / v6); } v1 -= 1; return -(v6 * Math.pow(2, 10 * v1) * Math.sin((v1 * v3 - v5) * 6.283185307179586 / v7)) + v4; case 'easeoutelastic': if (v1 == 0) { return v4; } v1 /= v3; if (v1 == 1) { return v4 + v2; } if (!v7) { v7 = v3 * 0.3; } if (!v6 || v6 < Math.abs(v2)) { v6 = v2; v5 = v7 / 4; } else { v5 = (v7 / 6.283185307179586) * Math.asin(v2 / v6); } return v6 * Math.pow(2, -10 * v1) * Math.sin((v1 * v3 - v5) * 6.283185307179586 / v7) + v2 + v4; case 'easeinoutelastic': if (v1 == 0) { return v4; } v1 /= v3 / 2; if (v1 == 2) { return v4 + v2; } if (!v7) { v7 = v3 * 0.45; } if (!v6 || v6 < Math.abs(v2)) { v6 = v2; v5 = v7 / 4; } else { v5 = (v7 / 6.283185307179586) * Math.asin(v2 / v6); } if (v1 < 1) { v1 -= 1; return -0.5 * (v6 * Math.pow(2, 10 * v1) * Math.sin((v1 * v3 - v5) * 6.283185307179586 / v7)) + v4; } v1 -= 1; return v6 * Math.pow(2, -10 * v1) * Math.sin((v1 * v3 - v5) * 6.283185307179586 / v7) * 0.5 + v2 + v4; case 'easeoutinelastic': if (v1 < v3 / 2) { return findTweenValue(0, v2, 0, v1 * 2, v3, 'easeOutElastic') * 0.5 + v4; } return findTweenValue(0, v2, 0, v1 * 2 - v3, v3, 'easeInElastic') * 0.5 + v2 * 0.5 + v4; case 'easeinback': if (v5 == undefined) { v5 = 1.70158; } v1 /= v3; return v2 * v1 * v1 * ((v5 + 1) * v1 - v5) + v4; case 'easeoutback': if (v5 == undefined) { v5 = 1.70158; } v1 = v1 / v3 - 1; return v2 * (v1 * v1 * ((v5 + 1) * v1 + v5) + 1) + v4; case 'easeinoutback': if (v5 == undefined) { v5 = 1.70158; } v1 /= v3 / 2; if (v1 < 1) { v5 *= 1.525; return (v2 / 2) * (v1 * v1 * ((v5 + 1) * v1 - v5)) + v4; } v1 -= 2; v5 *= 1.525; return (v2 / 2) * (v1 * v1 * ((v5 + 1) * v1 + v5) + 2) + v4; case 'easeoutinback': if (v1 < v3 / 2) { return findTweenValue(0, v2, 0, v1 * 2, v3, 'easeOutBack') * 0.5 + v4; } return findTweenValue(0, v2, 0, v1 * 2 - v3, v3, 'easeInBack') * 0.5 + v2 * 0.5 + v4; case 'easeinbounce': return v2 - findTweenValue(0, v2, 0, v3 - v1, v3, 'easeOutBounce') + v4; case 'easeoutbounce': v1 /= v3; if (v1 < 0.3636363636363637) { return v2 * (7.5625 * v1 * v1) + v4; } else { if (v1 < 0.7272727272727273) { v1 -= 0.5454545454545454; return v2 * (7.5625 * v1 * v1 + 0.75) + v4; } else { if (v1 < 0.9090909090909091) { v1 -= 0.8181818181818182; return v2 * (7.5625 * v1 * v1 + 0.9375) + v4; } else { v1 -= 0.9545454545454546; return v2 * (7.5625 * v1 * v1 + 0.984375) + v4; } } } case 'easeinoutbounce': if (v1 < v3 / 2) { return findTweenValue(0, v2, 0, v1 * 2, v3, 'easeInBounce') * 0.5 + v4; } return findTweenValue(0, v2, 0, v1 * 2 - v3, v3, 'easeOutBounce') * 0.5 + v2 * 0.5 + v4; case 'easeoutinbounce': if (v1 < v3 / 2) { return findTweenValue(0, v2, 0, v1 * 2, v3, 'easeOutBounce') * 0.5 + v4; } return findTweenValue(0, v2, 0, v1 * 2 - v3, v3, 'easeInBounce') * 0.5 + v2 * 0.5 + v4; } trace('MC TWEEN ### Error on transition: there\'s no "' + _animType + '" animation type.'); return 0; }; ASSetPropFlags(_global, 'findTweenValue', 1, 0); _root.onEnterFrame = function () { preloader = (this.getBytesLoaded() / this.getBytesTotal()) * 100; if (preloader < 100) { bar.glowTo(0, 1, 5, 1, 2, undefined, undefined, 2); bar.text_loader.txt = Math.round(preloader) + '%'; bar.loader.fogo.xSlideTo(2 * preloader, 1, 'easeoutexpo'); } else { delete _root.onEnterFrame; pn._visible = true; bar._visible = false; if (_root.onAG) { _root.nextFrame(); } } }; stop(); pn._visible = false; pn.onRollOver = function () { this.gotoAndStop(2); }; pn.onRollOut = function () { this.gotoAndStop(1); }; pn.onRelease = function () { _root.nextFrame(); }; var CPMStarContentSpotID = '9976Q1737A78A'; System.security.allowDomain('server.cpmstar.com'); trace('onAG: ' + _root.onAG); if (!_root.onAG) { trace('loading advert'); _root.adbox.gotoAndStop(1); _root.adbox.loadMovie('http://server.cpmstar.com/adviewas2.swf?contentspotid=' + CPMStarContentSpotID); } else { trace('bypassing advert'); _root.adbox.gotoAndStop(2); } agLink.onRelease = function () { getURL('http://armor.ag/MoreGames', '_blank'); }; } movieClip 19 { } movieClip 22 { } movieClip 24 { } movieClip 28 { } movieClip 29 { frame 1 { stop(); } } movieClip 30 { frame 1 { stop(); } } movieClip 32 { } movieClip 34 { } movieClip 35 { } movieClip 37 { } movieClip 39 { } movieClip 40 { } movieClip 41 { } movieClip 43 { } movieClip 44 { } movieClip 45 { frame 12 { _parent.removeMovieClip(); } } movieClip 46 { frame 5 { _root.playsfx('slash'); } frame 10 { _parent.gotoAndStop(1); } } movieClip 47 creep2 { frame 1 { stop(); } } movieClip 49 { } movieClip 50 { } movieClip 51 { } movieClip 52 { frame 12 { _parent.removeMovieClip(); } } movieClip 53 { frame 5 { _root.playsfx('blast'); } frame 10 { _parent.gotoAndStop(1); } } movieClip 54 creep24 { frame 1 { stop(); } } movieClip 56 { } movieClip 59 { } movieClip 60 { } movieClip 61 { } movieClip 63 { } movieClip 65 { } movieClip 67 { } movieClip 69 { } movieClip 70 { } movieClip 71 { } movieClip 73 { } movieClip 74 { } movieClip 75 { frame 12 { _parent.removeMovieClip(); } } movieClip 76 { frame 5 { _root.playsfx('bash'); } frame 10 { _parent.gotoAndStop(1); } } movieClip 77 creep16 { frame 1 { stop(); } } // unknown tag 88 length 94 movieClip 89 { frame 1 { stop(); } } frame 3 { intro.onRelease = function () { getURL('http://armor.ag/MoreGames', '_blank'); }; } movieClip 94 { } movieClip 100 { } movieClip 103 { frame 1 { _root.stop(); gotoAndPlay(2); } frame 225 { _root.gotoAndStop(10); } } frame 4 { _root.gotoAndSop(10); } movieClip 105 blackout { } movieClip 108 location1 { } movieClip 111 location2 { } movieClip 114 location3 { } movieClip 117 location4 { } movieClip 120 location5 { } movieClip 123 location6 { } movieClip 126 location7 { } movieClip 129 location8 { } movieClip 132 location9 { } movieClip 135 location10 { } movieClip 138 location11 { } movieClip 141 location12 { } movieClip 144 location13 { } movieClip 147 location14 { } movieClip 150 location15 { } movieClip 153 location16 { } movieClip 156 location17 { } movieClip 159 location18 { } movieClip 162 location19 { } movieClip 165 location20 { } movieClip 168 location21 { } movieClip 171 location22 { } movieClip 174 location23 { } movieClip 177 location24 { } movieClip 180 location25 { } movieClip 183 location26 { } movieClip 186 location27 { } movieClip 189 location28 { } movieClip 192 location29 { } movieClip 195 location30 { } movieClip 198 location31 { } movieClip 201 location32 { } movieClip 204 location33 { } movieClip 207 location34 { } movieClip 210 location35 { } movieClip 213 location36 { } movieClip 216 location37 { } movieClip 219 location38 { } movieClip 222 location39 { } movieClip 225 location40 { } movieClip 228 location41 { } movieClip 231 location42 { } movieClip 234 location43 { } movieClip 237 location44 { } movieClip 240 { } movieClip 241 skullrank { frame 1 { stop(); } } movieClip 244 { } movieClip 245 { } movieClip 246 dungeonrank { frame 1 { stop(); } } movieClip 251 { } movieClip 252 { } movieClip 253 location45 { } movieClip 256 { } movieClip 257 location46 { } movieClip 260 { } movieClip 261 location47 { } movieClip 264 { } movieClip 265 location48 { } movieClip 268 { } movieClip 269 location49 { } movieClip 272 questmarker { } movieClip 274 { } movieClip 276 { } movieClip 279 { } movieClip 280 { } movieClip 281 { } movieClip 282 { } movieClip 283 { frame 12 { _parent.removeMovieClip(); } } movieClip 284 { frame 5 { _root.playsfx('bash'); } frame 10 { _parent.gotoAndStop(1); } } movieClip 285 creep32 { frame 1 { stop(); } } movieClip 287 { } movieClip 289 { } movieClip 291 { } movieClip 292 { } movieClip 293 { } movieClip 295 { } movieClip 297 { } movieClip 298 { } movieClip 299 { frame 10 { _parent.removeMovieClip(); } } movieClip 300 { frame 5 { _root.playsfx('bash'); } frame 10 { _parent.gotoAndStop(1); } } movieClip 301 creep1 { frame 1 { stop(); } } movieClip 302 { } movieClip 303 { } movieClip 304 { } movieClip 306 { } movieClip 308 { } movieClip 309 { } movieClip 310 { } movieClip 312 { } movieClip 313 { } movieClip 314 { frame 5 { _root.playsfx('bash'); } frame 10 { _parent.gotoAndStop(1); } } movieClip 315 creep3 { frame 1 { stop(); } } movieClip 317 { } movieClip 319 { } movieClip 321 { } movieClip 323 { } movieClip 324 { frame 1 { stop(); } } movieClip 325 { } movieClip 327 { } movieClip 328 { } movieClip 329 { frame 12 { _parent.removeMovieClip(); } } movieClip 335 { frame 8 { _root.playsfx('pierce'); } frame 15 { _parent.gotoAndStop(1); } } movieClip 336 creep4 { frame 1 { stop(); } } movieClip 338 { } movieClip 340 { } movieClip 342 { } movieClip 343 { } movieClip 345 { } movieClip 347 { } movieClip 348 { } movieClip 349 { frame 12 { _parent.removeMovieClip(); } } movieClip 350 { frame 5 { _root.playsfx('pierce'); } frame 10 { _parent.gotoAndStop(1); } } movieClip 351 creep5 { frame 1 { stop(); } } movieClip 353 { } movieClip 354 { } movieClip 356 { } movieClip 358 { } movieClip 360 { } movieClip 361 { } movieClip 362 { } movieClip 364 { } movieClip 365 { } movieClip 366 { frame 12 { _parent.removeMovieClip(); } } movieClip 367 { frame 7 { _root.playsfx('pierce'); } frame 10 { _parent.gotoAndStop(1); } } movieClip 368 creep6 { frame 1 { stop(); } } movieClip 369 { } movieClip 371 { } movieClip 373 { } movieClip 375 { } movieClip 377 { } movieClip 378 { } movieClip 379 { } movieClip 381 { } movieClip 382 { } movieClip 383 { frame 12 { _parent.removeMovieClip(); } } movieClip 384 { frame 5 { _root.playsfx('slash'); } frame 10 { _parent.gotoAndStop(1); } } movieClip 385 creep7 { frame 1 { stop(); } } movieClip 387 { } movieClip 389 { } movieClip 390 { } movieClip 391 { } movieClip 393 { } movieClip 394 { } movieClip 395 { frame 12 { _parent.removeMovieClip(); } } movieClip 396 { frame 4 { _root.playsfx('shoot'); } frame 10 { _parent.gotoAndStop(1); } } movieClip 397 creep8 { frame 1 { stop(); } } movieClip 399 { } movieClip 401 { } movieClip 402 { } movieClip 403 { } movieClip 404 { } movieClip 405 { frame 12 { _parent.removeMovieClip(); } } movieClip 406 { frame 5 { _root.playsfx('shoot'); } frame 10 { _parent.gotoAndStop(1); } } movieClip 407 creep9 { frame 1 { stop(); } } movieClip 409 { } movieClip 411 { } movieClip 413 { } movieClip 415 { } movieClip 416 { } movieClip 417 { } movieClip 419 { } movieClip 420 { } movieClip 421 { frame 12 { _parent.removeMovieClip(); } } movieClip 422 { frame 4 { _root.playsfx('blast'); } frame 10 { _parent.gotoAndStop(1); } } movieClip 423 creep11 { frame 1 { stop(); } } movieClip 425 { } movieClip 427 { } movieClip 429 { } movieClip 431 { } movieClip 432 { } movieClip 433 { } movieClip 435 { } movieClip 436 { } movieClip 437 { frame 12 { _parent.removeMovieClip(); } } movieClip 438 { frame 5 { _root.playsfx('blast'); } frame 10 { _parent.gotoAndStop(1); } } movieClip 439 creep12 { frame 1 { stop(); } } movieClip 441 { } movieClip 443 { } movieClip 445 { } movieClip 447 { } movieClip 448 { } movieClip 449 { } movieClip 451 { } movieClip 452 { } movieClip 453 { frame 12 { _parent.removeMovieClip(); } } movieClip 454 { frame 5 { _root.playsfx('lightning'); } frame 10 { _parent.gotoAndStop(1); } } movieClip 455 creep13 { frame 1 { stop(); } } movieClip 457 { } movieClip 459 { } movieClip 461 { } movieClip 463 { } movieClip 464 { } movieClip 465 { } movieClip 467 { } movieClip 468 { } movieClip 469 { frame 12 { _parent.removeMovieClip(); } } movieClip 470 { frame 5 { _root.playsfx('bash'); } frame 10 { _parent.gotoAndStop(1); } } movieClip 471 creep14 { frame 1 { stop(); } } movieClip 473 { } movieClip 475 { } movieClip 477 { } movieClip 479 { } movieClip 480 { } movieClip 481 { } movieClip 483 { } movieClip 484 { } movieClip 485 { frame 12 { _parent.removeMovieClip(); } } movieClip 486 { frame 5 { _root.playsfx('bash'); } frame 10 { _parent.gotoAndStop(1); } } movieClip 487 creep15 { frame 1 { stop(); } } movieClip 489 { } movieClip 491 { } movieClip 493 { } movieClip 495 { } movieClip 496 { } movieClip 497 { } movieClip 499 { } movieClip 500 { } movieClip 501 { frame 12 { _parent.removeMovieClip(); } } movieClip 502 { frame 6 { _root.playsfx('bash'); } frame 10 { _parent.gotoAndStop(1); } } movieClip 503 creep17 { frame 1 { stop(); } } movieClip 505 { } movieClip 506 { } movieClip 508 { } movieClip 510 { } movieClip 512 { } movieClip 513 { } movieClip 514 { } movieClip 516 { } movieClip 517 { } movieClip 518 { frame 12 { _parent.removeMovieClip(); } } movieClip 519 { frame 5 { _root.playsfx('slash'); } frame 16 { _parent.gotoAndStop(1); } } movieClip 520 creep18 { frame 1 { stop(); } } movieClip 522 { } movieClip 524 { } movieClip 526 { } movieClip 528 { } movieClip 529 { } movieClip 530 { } movieClip 532 { } movieClip 533 { } movieClip 534 { frame 12 { _parent.removeMovieClip(); } } movieClip 535 { frame 4 { _root.playsfx('blast'); } frame 10 { _parent.gotoAndStop(1); } } movieClip 536 creep19 { frame 1 { stop(); } } movieClip 538 { } movieClip 539 { } movieClip 540 { } movieClip 541 { } movieClip 542 { frame 12 { _parent.removeMovieClip(); } } movieClip 543 { frame 5 { _root.playsfx('bash'); } frame 10 { _parent.gotoAndStop(1); } } movieClip 544 creep20 { frame 1 { stop(); } } movieClip 546 { } movieClip 547 { } movieClip 548 { } movieClip 549 { } movieClip 550 { frame 12 { _parent.removeMovieClip(); } } movieClip 551 { frame 5 { _root.playsfx('bash'); } frame 10 { _parent.gotoAndStop(1); } } movieClip 552 creep21 { frame 1 { stop(); } } movieClip 554 { } movieClip 556 { } movieClip 558 { } movieClip 560 { } movieClip 562 { } movieClip 563 { } movieClip 564 { } movieClip 566 { } movieClip 567 { } movieClip 568 { frame 12 { _parent.removeMovieClip(); } } movieClip 571 { frame 6 { _root.playsfx('slash'); } frame 10 { _parent.gotoAndStop(1); } } movieClip 572 creep23 { frame 1 { stop(); } } movieClip 573 creep2s { frame 1 { stop(); } } movieClip 574 creep31 { frame 1 { stop(); } } movieClip 576 { } movieClip 577 { } movieClip 578 { } movieClip 579 { frame 5 { _root.playsfx('shoot'); } frame 10 { _parent.gotoAndStop(1); } } movieClip 580 creep25 { frame 1 { stop(); } } movieClip 581 creep29 { frame 1 { stop(); } } movieClip 583 { } movieClip 584 { } movieClip 585 { } movieClip 586 { frame 5 { _root.playsfx('blast'); } frame 10 { _parent.gotoAndStop(1); } } movieClip 587 creep26 { frame 1 { stop(); } } movieClip 588 creep4s { frame 1 { stop(); } } movieClip 589 creep11s { frame 1 { stop(); } } movieClip 590 creep43 { frame 1 { stop(); } } movieClip 591 creep34 { frame 1 { stop(); } } movieClip 592 creep42 { frame 1 { stop(); } } movieClip 593 creep35 { frame 1 { stop(); } } movieClip 597 creeplevel { } movieClip 603 { } movieClip 606 { } movieClip 607 { frame 25 { stop(); } } movieClip 608 gravestone { frame 1 { stop(); } } movieClip 610 damagesign { } movieClip 625 slashz { frame 1 { if (random(3) == 1) { _root.playsfx('slash'); } else { if (random(3) == 1) { _root.playsfx('pierce'); } else { _root.playsfx('bash'); } } } frame 15 { this.removeMovieClip(); } } movieClip 628 { } movieClip 629 bowarrow { frame 1 { _root.playsfx('shoot'); } frame 15 { this.removeMovieClip(); } } movieClip 670 magicblast { frame 1 { _root.playsfx('blast'); } frame 21 { this.removeMovieClip(); } } movieClip 671 creep27 { frame 1 { stop(); } } movieClip 672 creep28 { frame 1 { stop(); } } movieClip 673 creep30 { frame 1 { stop(); } } movieClip 674 creep33 { frame 1 { stop(); } } movieClip 676 { } movieClip 677 { } movieClip 679 { } movieClip 681 { } movieClip 683 { } movieClip 684 { } movieClip 685 { } movieClip 687 { } movieClip 688 { } movieClip 690 { } movieClip 692 { } movieClip 694 { } movieClip 696 { } movieClip 697 { } movieClip 698 { frame 2 { if (random(10) < 5) { _root.playsfx('demondie'); } } frame 12 { _parent.removeMovieClip(); } } movieClip 699 { frame 10 { _root.playsfx('blast'); } frame 20 { _parent.gotoAndStop(1); } } movieClip 700 creep36 { frame 1 { stop(); } } movieClip 701 creep37 { frame 1 { stop(); } } movieClip 702 creep38 { frame 1 { stop(); } } movieClip 703 creep39 { frame 1 { stop(); } } movieClip 704 creep40 { frame 1 { stop(); } } movieClip 705 creep41 { frame 1 { stop(); } } movieClip 706 creep44 { frame 1 { stop(); } } movieClip 707 creep45 { frame 1 { stop(); } } movieClip 708 creep46 { frame 1 { stop(); } } movieClip 709 creep47 { frame 1 { stop(); } } movieClip 710 creep48 { frame 1 { stop(); } } movieClip 712 healsign { } movieClip 713 { frame 5 { _root.playsfx('bash'); } frame 10 { _parent.gotoAndStop(1); } } movieClip 714 creep22 { frame 1 { stop(); } } movieClip 717 { } movieClip 718 dungeonskull { frame 1 { stop(); } } movieClip 722 { } movieClip 725 { } movieClip 741 { frame 1 { stop(); } } movieClip 760 { frame 1 { stop(); } } movieClip 776 { } movieClip 782 { } movieClip 784 { } movieClip 787 { } movieClip 813 { } movieClip 817 { } movieClip 819 { } movieClip 821 { } movieClip 827 { } movieClip 828 { frame 1 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } frame 10 { stop(); } frame 11 { stop(); gotoAndStop(_root.weaponstyle); } frame 12 { stop(); gotoAndStop(_root.weaponstyle); } frame 13 { stop(); gotoAndStop(_root.weaponstyle); } frame 14 { stop(); } frame 15 { stop(); gotoAndStop(_root.weaponstyle); } frame 16 { stop(); gotoAndStop(_root.weaponstyle); } frame 17 { stop(); } frame 18 { stop(); } frame 19 { stop(); } frame 20 { stop(); gotoAndStop(_root.weaponstyle); } frame 21 { stop(); } frame 22 { stop(); } frame 23 { stop(); } frame 24 { stop(); } frame 25 { stop(); gotoAndStop(_root.weaponstyle); } frame 26 { stop(); gotoAndStop(_root.weaponstyle); } frame 27 { stop(); gotoAndStop(_root.weaponstyle); } frame 28 { stop(); gotoAndStop(_root.weaponstyle); } frame 29 { stop(); gotoAndStop(_root.weaponstyle); } frame 30 { stop(); gotoAndStop(_root.weaponstyle); } frame 31 { stop(); gotoAndStop(_root.weaponstyle); } frame 32 { stop(); } frame 33 { stop(); gotoAndStop(_root.weaponstyle); } frame 34 { stop(); gotoAndStop(_root.weaponstyle); } frame 35 { stop(); } frame 36 { stop(); } frame 37 { stop(); gotoAndStop(_root.weaponstyle); } frame 38 { stop(); } frame 39 { stop(); gotoAndStop(_root.weaponstyle); } frame 62 { stop(); } } movieClip 848 { frame 1 { stop(); } } movieClip 872 { } movieClip 873 { frame 1 { stop(); } } movieClip 874 { } movieClip 895 { frame 1 { stop(); } } movieClip 896 { } movieClip 914 { frame 1 { stop(); } } movieClip 915 { } movieClip 916 { frame 8 { _parent.nextFrame(); } } movieClip 917 { frame 8 { _parent.nextFrame(); } } movieClip 918 { frame 8 { _parent.nextFrame(); } } movieClip 919 { } movieClip 920 { frame 5 { stop(); } } movieClip 921 { } movieClip 922 { } movieClip 923 { } movieClip 924 { frame 10 { _parent.gotoAndStop('knockedout'); } } movieClip 925 { } movieClip 926 { } movieClip 927 { frame 1 { if (_parent._parent.wepnum > 0) { cha.wep.gotoAndStop(_parent._parent.wepnum); cha.wep._visible = true; } else { cha.wep._visible = false; } cha.leg1.gotoAndStop(_parent._parent.armnum); cha.leg2.gotoAndStop(_parent._parent.armnum); cha.body.gotoAndStop(_parent._parent.armnum); cha.arm1.gotoAndStop(_parent._parent.armnum); cha.arm2.gotoAndStop(_parent._parent.armnum); cha.head.gotoAndStop(_parent._parent.armnum); } frame 1 { stop(); } frame 2 { if (_parent._parent.wepnum > 0) { cha.wep.gotoAndStop(_parent._parent.wepnum); cha.wep._visible = true; } else { cha.wep._visible = false; } cha.leg1.gotoAndStop(_parent._parent.armnum); cha.leg2.gotoAndStop(_parent._parent.armnum); cha.body.gotoAndStop(_parent._parent.armnum); cha.arm1.gotoAndStop(_parent._parent.armnum); cha.arm2.gotoAndStop(_parent._parent.armnum); cha.head.gotoAndStop(_parent._parent.armnum); } frame 3 { if (_parent._parent.wepnum > 0) { cha.wep.gotoAndStop(_parent._parent.wepnum); cha.wep._visible = true; } else { cha.wep._visible = false; } cha.leg1.gotoAndStop(_parent._parent.armnum); cha.leg2.gotoAndStop(_parent._parent.armnum); cha.body.gotoAndStop(_parent._parent.armnum); cha.arm1.gotoAndStop(_parent._parent.armnum); cha.arm2.gotoAndStop(_parent._parent.armnum); cha.head.gotoAndStop(_parent._parent.armnum); } frame 4 { if (_parent._parent.wepnum > 0) { cha.wep.gotoAndStop(_parent._parent.wepnum); cha.wep._visible = true; } else { cha.wep._visible = false; } cha.leg1.gotoAndStop(_parent._parent.armnum); cha.leg2.gotoAndStop(_parent._parent.armnum); cha.body.gotoAndStop(_parent._parent.armnum); cha.arm1.gotoAndStop(_parent._parent.armnum); cha.arm2.gotoAndStop(_parent._parent.armnum); cha.head.gotoAndStop(_parent._parent.armnum); } frame 5 { stop(); if (_parent._parent.wepnum > 0) { cha.wep.gotoAndStop(_parent._parent.wepnum); cha.wep._visible = true; } else { cha.wep._visible = false; } cha.leg1.gotoAndStop(_parent._parent.armnum); cha.leg2.gotoAndStop(_parent._parent.armnum); cha.body.gotoAndStop(_parent._parent.armnum); cha.arm1.gotoAndStop(_parent._parent.armnum); cha.arm2.gotoAndStop(_parent._parent.armnum); cha.head.gotoAndStop(_parent._parent.armnum); } frame 6 { stop(); if (_parent._parent.wepnum > 0) { cha.wep.gotoAndStop(_parent._parent.wepnum); cha.wep._visible = true; } else { cha.wep._visible = false; } cha.leg1.gotoAndStop(_parent._parent.armnum); cha.leg2.gotoAndStop(_parent._parent.armnum); cha.body.gotoAndStop(_parent._parent.armnum); cha.arm1.gotoAndStop(_parent._parent.armnum); cha.arm2.gotoAndStop(_parent._parent.armnum); cha.head.gotoAndStop(_parent._parent.armnum); } frame 7 { stop(); if (_parent._parent.wepnum > 0) { cha.wep.gotoAndStop(_parent._parent.wepnum); cha.wep._visible = true; } else { cha.wep._visible = false; } cha.leg1.gotoAndStop(_parent._parent.armnum); cha.leg2.gotoAndStop(_parent._parent.armnum); cha.body.gotoAndStop(_parent._parent.armnum); cha.arm1.gotoAndStop(_parent._parent.armnum); cha.arm2.gotoAndStop(_parent._parent.armnum); cha.head.gotoAndStop(_parent._parent.armnum); } frame 8 { stop(); if (_parent._parent.wepnum > 0) { cha.wep.gotoAndStop(_parent._parent.wepnum); cha.wep._visible = true; } else { cha.wep._visible = false; } cha.leg1.gotoAndStop(_parent._parent.armnum); cha.leg2.gotoAndStop(_parent._parent.armnum); cha.body.gotoAndStop(_parent._parent.armnum); cha.arm1.gotoAndStop(_parent._parent.armnum); cha.arm2.gotoAndStop(_parent._parent.armnum); cha.head.gotoAndStop(_parent._parent.armnum); } frame 9 { stop(); if (_parent._parent.wepnum > 0) { cha.wep.gotoAndStop(_parent._parent.wepnum); cha.wep._visible = true; } else { cha.wep._visible = false; } cha.leg1.gotoAndStop(_parent._parent.armnum); cha.leg2.gotoAndStop(_parent._parent.armnum); cha.body.gotoAndStop(_parent._parent.armnum); cha.arm1.gotoAndStop(_parent._parent.armnum); cha.arm2.gotoAndStop(_parent._parent.armnum); cha.head.gotoAndStop(_parent._parent.armnum); stop(); } frame 10 { stop(); if (_parent._parent.wepnum > 0) { cha.wep.gotoAndStop(_parent._parent.wepnum); cha.wep._visible = true; } else { cha.wep._visible = false; } cha.leg1.gotoAndStop(_parent._parent.armnum); cha.leg2.gotoAndStop(_parent._parent.armnum); cha.body.gotoAndStop(_parent._parent.armnum); cha.arm1.gotoAndStop(_parent._parent.armnum); cha.arm2.gotoAndStop(_parent._parent.armnum); cha.head.gotoAndStop(_parent._parent.armnum); stop(); } frame 11 { stop(); if (_parent._parent.wepnum > 0) { cha.wep.gotoAndStop(_parent._parent.wepnum); cha.wep._visible = true; } else { cha.wep._visible = false; } cha.leg1.gotoAndStop(_parent._parent.armnum); cha.leg2.gotoAndStop(_parent._parent.armnum); cha.body.gotoAndStop(_parent._parent.armnum); cha.arm1.gotoAndStop(_parent._parent.armnum); cha.arm2.gotoAndStop(_parent._parent.armnum); cha.head.gotoAndStop(_parent._parent.armnum); stop(); } frame 12 { stop(); if (_parent._parent.wepnum > 0) { cha.wep.gotoAndStop(_parent._parent.wepnum); cha.wep._visible = true; } else { cha.wep._visible = false; } cha.leg1.gotoAndStop(_parent._parent.armnum); cha.leg2.gotoAndStop(_parent._parent.armnum); cha.body.gotoAndStop(_parent._parent.armnum); cha.arm1.gotoAndStop(_parent._parent.armnum); cha.arm2.gotoAndStop(_parent._parent.armnum); cha.head.gotoAndStop(_parent._parent.armnum); stop(); } frame 13 { stop(); if (_parent._parent.wepnum > 0) { cha.wep.gotoAndStop(_parent._parent.wepnum); cha.wep._visible = true; } else { cha.wep._visible = false; } cha.leg1.gotoAndStop(_parent._parent.armnum); cha.leg2.gotoAndStop(_parent._parent.armnum); cha.body.gotoAndStop(_parent._parent.armnum); cha.arm1.gotoAndStop(_parent._parent.armnum); cha.arm2.gotoAndStop(_parent._parent.armnum); cha.head.gotoAndStop(_parent._parent.armnum); stop(); } frame 14 { stop(); if (_parent._parent.wepnum > 0) { cha.wep.gotoAndStop(_parent._parent.wepnum); cha.wep._visible = true; } else { cha.wep._visible = false; } cha.leg1.gotoAndStop(_parent._parent.armnum); cha.leg2.gotoAndStop(_parent._parent.armnum); cha.body.gotoAndStop(_parent._parent.armnum); cha.arm1.gotoAndStop(_parent._parent.armnum); cha.arm2.gotoAndStop(_parent._parent.armnum); cha.head.gotoAndStop(_parent._parent.armnum); stop(); } frame 15 { stop(); if (_parent._parent.wepnum > 0) { cha.wep.gotoAndStop(_parent._parent.wepnum); cha.wep._visible = true; } else { cha.wep._visible = false; } cha.leg1.gotoAndStop(_parent._parent.armnum); cha.leg2.gotoAndStop(_parent._parent.armnum); cha.body.gotoAndStop(_parent._parent.armnum); cha.arm1.gotoAndStop(_parent._parent.armnum); cha.arm2.gotoAndStop(_parent._parent.armnum); cha.head.gotoAndStop(_parent._parent.armnum); stop(); } frame 16 { stop(); if (_parent._parent.wepnum > 0) { cha.wep.gotoAndStop(_parent._parent.wepnum); cha.wep._visible = true; } else { cha.wep._visible = false; } cha.leg1.gotoAndStop(_parent._parent.armnum); cha.leg2.gotoAndStop(_parent._parent.armnum); cha.body.gotoAndStop(_parent._parent.armnum); cha.arm1.gotoAndStop(_parent._parent.armnum); cha.arm2.gotoAndStop(_parent._parent.armnum); cha.head.gotoAndStop(_parent._parent.armnum); stop(); } frame 17 { stop(); if (_parent._parent.wepnum > 0) { cha.wep.gotoAndStop(_parent._parent.wepnum); cha.wep._visible = true; } else { cha.wep._visible = false; } cha.leg1.gotoAndStop(_parent._parent.armnum); cha.leg2.gotoAndStop(_parent._parent.armnum); cha.body.gotoAndStop(_parent._parent.armnum); cha.arm1.gotoAndStop(_parent._parent.armnum); cha.arm2.gotoAndStop(_parent._parent.armnum); cha.head.gotoAndStop(_parent._parent.armnum); stop(); } frame 18 { stop(); if (_parent._parent.wepnum > 0) { cha.wep.gotoAndStop(_parent._parent.wepnum); cha.wep._visible = true; } else { cha.wep._visible = false; } cha.leg1.gotoAndStop(_parent._parent.armnum); cha.leg2.gotoAndStop(_parent._parent.armnum); cha.body.gotoAndStop(_parent._parent.armnum); cha.arm1.gotoAndStop(_parent._parent.armnum); cha.arm2.gotoAndStop(_parent._parent.armnum); cha.head.gotoAndStop(_parent._parent.armnum); stop(); } frame 19 { if (_parent._parent.wepnum > 0) { cha.wep.gotoAndStop(_parent._parent.wepnum); cha.wep._visible = true; } else { cha.wep._visible = false; } cha.leg1.gotoAndStop(_parent._parent.armnum); cha.leg2.gotoAndStop(_parent._parent.armnum); cha.body.gotoAndStop(_parent._parent.armnum); cha.arm1.gotoAndStop(_parent._parent.armnum); cha.arm2.gotoAndStop(_parent._parent.armnum); cha.head.gotoAndStop(_parent._parent.armnum); } frame 19 { stop(); } frame 20 { if (_parent._parent.wepnum > 0) { cha.wep.gotoAndStop(_parent._parent.wepnum); cha.wep._visible = true; } else { cha.wep._visible = false; } cha.leg1.gotoAndStop(_parent._parent.armnum); cha.leg2.gotoAndStop(_parent._parent.armnum); cha.body.gotoAndStop(_parent._parent.armnum); cha.arm1.gotoAndStop(_parent._parent.armnum); cha.arm2.gotoAndStop(_parent._parent.armnum); cha.head.gotoAndStop(_parent._parent.armnum); } frame 21 { stop(); if (_parent._parent.wepnum > 0) { cha.wep.gotoAndStop(_parent._parent.wepnum); cha.wep._visible = true; } else { cha.wep._visible = false; } cha.leg1.gotoAndStop(_parent._parent.armnum); cha.leg2.gotoAndStop(_parent._parent.armnum); cha.body.gotoAndStop(_parent._parent.armnum); cha.arm1.gotoAndStop(_parent._parent.armnum); cha.arm2.gotoAndStop(_parent._parent.armnum); cha.head.gotoAndStop(_parent._parent.armnum); stop(); } frame 22 { stop(); if (_parent._parent.wepnum > 0) { cha.wep.gotoAndStop(_parent._parent.wepnum); cha.wep._visible = true; } else { cha.wep._visible = false; } cha.leg1.gotoAndStop(_parent._parent.armnum); cha.leg2.gotoAndStop(_parent._parent.armnum); cha.body.gotoAndStop(_parent._parent.armnum); cha.arm1.gotoAndStop(_parent._parent.armnum); cha.arm2.gotoAndStop(_parent._parent.armnum); cha.head.gotoAndStop(_parent._parent.armnum); stop(); } frame 23 { stop(); if (_parent._parent.wepnum > 0) { cha.wep.gotoAndStop(_parent._parent.wepnum); cha.wep._visible = true; } else { cha.wep._visible = false; } cha.leg1.gotoAndStop(_parent._parent.armnum); cha.leg2.gotoAndStop(_parent._parent.armnum); cha.body.gotoAndStop(_parent._parent.armnum); cha.arm1.gotoAndStop(_parent._parent.armnum); cha.arm2.gotoAndStop(_parent._parent.armnum); cha.head.gotoAndStop(_parent._parent.armnum); stop(); } frame 24 { stop(); if (_parent._parent.wepnum > 0) { cha.wep.gotoAndStop(_parent._parent.wepnum); cha.wep._visible = true; } else { cha.wep._visible = false; } cha.leg1.gotoAndStop(_parent._parent.armnum); cha.leg2.gotoAndStop(_parent._parent.armnum); cha.body.gotoAndStop(_parent._parent.armnum); cha.arm1.gotoAndStop(_parent._parent.armnum); cha.arm2.gotoAndStop(_parent._parent.armnum); cha.head.gotoAndStop(_parent._parent.armnum); stop(); } } movieClip 928 { } movieClip 929 sprite { } movieClip 932 { } movieClip 937 { } movieClip 943 { } movieClip 947 { } movieClip 953 { } movieClip 957 { } movieClip 961 { } movieClip 963 { } movieClip 973 { } movieClip 982 { frame 1 { stop(); } frame 2 { _root.playsfx('hover'); } } movieClip 987 { frame 1 { stop(); } frame 2 { _root.playsfx('hover'); } } movieClip 992 { frame 1 { stop(); } frame 2 { _root.playsfx('hover'); } } movieClip 995 { } movieClip 999 { } movieClip 1000 dungeonwindow { frame 1 { if (_root.doingfirstdungeon) { firstdungeon.onRelease = function () { this._visible = false; _root.doingfirstdungeon = false; }; } else { firstdungeon._visible = false; } } frame 1 { function tellnews(msg) { news.line5.text = news.line4.text; news.line4.text = news.line3.text; news.line3.text = news.line2.text; news.line2.text = news.line1.text; news.line1.text = msg; } var i = 0; while (i < 5) { tellnews(''); ++i; } exit.onRollOver = function () { this.gotoAndStop(2); }; exit.onRollOut = function () { this.gotoAndStop(1); }; exit.onReleaseOutside = function () { this.gotoAndStop(1); }; exit.onRelease = function () { busy = true; _root.playsfx('click'); _root.dungeonwindow.attachMovie('rusure', 'rusure', _root.dungeonwindow.getNextHighestDepth(), {'_x': 100, '_y': 800}); com.greensock.TweenLite.to(_root.dungeonwindow.rusure, 0.2, {'_y': 0}); _root.dungeonwindow.rusure.yes.onRelease = function () { _root.dungeonwindow.enddungeon(false); }; _root.dungeonwindow.rusure.no.onRelease = function () { _root.dungeonwindow.busy = false; _root.dungeonwindow.rusure.removeMovieClip(); }; }; equip.onRollOver = function () { this.gotoAndStop(2); }; equip.onRollOut = function () { this.gotoAndStop(1); }; equip.onReleaseOutside = function () { this.gotoAndStop(1); }; equip.onRelease = function () { if (!busy) { _root.playsfx('click'); _root.window.gotoAndStop(1); _root.window.gotoAndStop(2); _root.window.swapDepths(_root.getNextHighestDepth()); com.greensock.TweenLite.to(_root.window, 0.2, {'_x': -5}); } }; rest.onRollOver = function () { this.gotoAndStop(2); }; rest.onRollOut = function () { this.gotoAndStop(1); }; rest.onReleaseOutside = function () { this.gotoAndStop(1); }; rest.onRelease = function () { _root.playsfx('click'); var v3 = random(10) + 5; tellnews('We took a little rest for 1 turn and recovered ' + v3 + ' health'); --_root.turnsleft; --_root.playerstuff.questturns; _root.partybar['f' + _root.playerstuff.questinghero].ttext.text = _root.playerstuff.questturns; _root.ttext.text = 'Turns: ' + _root.turnsleft; var v2 = 0; while (v2 < _root.playerstuff.party.length) { _root.playerstuff.party[v2][3][0] += v3; if (_root.playerstuff.party[v2][3][0] > _root.playerstuff.party[v2][3][1]) { _root.playerstuff.party[v2][3][0] = _root.playerstuff.party[v2][3][1]; } ++v2; } _root.checkquest(); }; } frame 1 { function drawlayout() { var v4 = 0; while (v4 < 7) { var v3 = 0; while (v3 < 4) { delete this['r_' + v4 + '_' + v3].onRollOver; delete this['r_' + v4 + '_' + v3].onRollOut; delete this['r_' + v4 + '_' + v3].onRelease; if (this.dungeonexplored[v3][v4] > 0) { this['r_' + v4 + '_' + v3].gotoAndStop(this.dungeonlayout[v3][v4]); } else { this['r_' + v4 + '_' + v3].gotoAndStop(2); } if (ploc[0] >= v4) { if (this.dungeonexplored[v3][v4] > 0) { this['r_' + v4 + '_' + v3].gotoAndStop(this.dungeonlayout[v3][v4]); } else { this['r_' + v4 + '_' + v3].gotoAndStop(1); } } this['r_' + v4 + '_' + v3].myx = v4; this['r_' + v4 + '_' + v3].myy = v3; this['r_' + v4 + '_' + v3].sprite.armnum = _root.playerstuff.heroavatar; this['r_' + v4 + '_' + v3].sprite.wepnum = _root.playerstuff.heroweapon; this['c_' + v4 + '_' + v3 + '_' + (v4 + 1) + '_' + v3]._visible = false; this['c_' + v4 + '_' + (v3 - 1) + '_' + (v4 + 1) + '_' + v3]._visible = false; this['c_' + v4 + '_' + (v3 + 1) + '_' + (v4 + 1) + '_' + v3]._visible = false; this['r_' + v4 + '_' + v3].sprite._visible = false; ++v3; } ++v4; } this['r_' + ploc[0] + '_' + ploc[1]].sprite._visible = true; this['c_' + ploc[0] + '_' + ploc[1] + '_' + (ploc[0] + 1) + '_' + ploc[1]]._visible = true; this['c_' + ploc[0] + '_' + ploc[1] + '_' + (ploc[0] + 1) + '_' + (ploc[1] - 1)]._visible = true; this['c_' + ploc[0] + '_' + ploc[1] + '_' + (ploc[0] + 1) + '_' + (ploc[1] + 1)]._visible = true; this['r_' + ploc[0] + '_' + ploc[1]].onRollOver = function () { trace('I AM ROOM ' + this.myx + ', ' + this.myy); _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip('CURRENT ROOM<new_line>Explored<new_line>' + gettextforroom(dungeonlayout[this.myy][this.myx]) + '<new_line>', '0xFFFFFF|0xCC5100|0xFF0000|0xFDE724|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xCCB700', '22|14|16|16'); _root.myTooltip.show({'delay': 0.5, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; this['r_' + ploc[0] + '_' + ploc[1]].onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; this['r_' + ploc[0] + '_' + ploc[1]].onRelease = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; this['r_' + (ploc[0] + 1) + '_' + ploc[1]].onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip('NEXT ROOM<new_line>Unexplored<new_line>Click to move to this room<new_line>', '0xFFFFFF|0xCC5100|0xFF0000|0xFDE724|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xCCB700', '22|14|16|16'); _root.myTooltip.show({'delay': 0.5, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; this['r_' + (ploc[0] + 1) + '_' + ploc[1]].onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; this['r_' + (ploc[0] + 1) + '_' + ploc[1]].onRelease = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); if (!busy) { _root.playsfx('click'); movetoroom(ploc[0] + 1, ploc[1]); } }; this['r_' + (ploc[0] + 1) + '_' + (ploc[1] - 1)].onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip('NEXT ROOM<new_line>Unexplored<new_line>Click to move to this room<new_line>', '0xFFFFFF|0xCC5100|0xFF0000|0xFDE724|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xCCB700', '22|14|16|16'); _root.myTooltip.show({'delay': 0.5, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; this['r_' + (ploc[0] + 1) + '_' + (ploc[1] - 1)].onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; this['r_' + (ploc[0] + 1) + '_' + (ploc[1] - 1)].onRelease = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); if (!busy) { _root.playsfx('click'); movetoroom(ploc[0] + 1, ploc[1] - 1); } }; this['r_' + (ploc[0] + 1) + '_' + (ploc[1] + 1)].onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip('NEXT ROOM<new_line>Unexplored<new_line>Click to move to this room<new_line>', '0xFFFFFF|0xCC5100|0xFF0000|0xFDE724|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xCCB700', '22|14|16|16'); _root.myTooltip.show({'delay': 0.5, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; this['r_' + (ploc[0] + 1) + '_' + (ploc[1] + 1)].onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; this['r_' + (ploc[0] + 1) + '_' + (ploc[1] + 1)].onRelease = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); if (!busy) { _root.playsfx('click'); movetoroom(ploc[0] + 1, ploc[1] + 1); } }; } function movetoroom(why, ex) { ploc[0] = why; ploc[1] = ex; this.dungeonexplored[ex][why] = 1; drawlayout(); processtileevent(); } function processtileevent() { if (this.dungeonlayout[ploc[1]][ploc[0]] == 4) { trace('DO BOSS'); tellnews('It\'s the boss! Let\'s get him!'); _root.dungeonfight = true; _root.bossbattle = true; if (_root.dungeoninfo[10]) { _root.astralchest = true; } else { _root.astralchest = false; } var v16 = _root.dungeonbossfights[_root.dungeoninfo[5]]; trace('dungeon details: ' + _root.dungeoninfo); trace('Creating Enemy: ' + v16 + ' at ' + _root.dungeonloc[0] + ', ' + _root.dungeonloc[1]); _root.detailmap[_root.dungeonloc[0]][_root.dungeonloc[1]] = v16.slice(); _root.initiatebattle(_root.dungeonloc[0], _root.dungeonloc[1]); trace('Checking for battle window: ' + _root.bw); trace('checking for healths: ' + _root.healths); _root.bw.swapDepths(_root.getNextHighestDepth()); _root.healths.swapDepths(_root.getNextHighestDepth()); } else { if (this.dungeonlayout[ploc[1]][ploc[0]] == 5) { trace('DO CHEST'); var v13 = 1; if (_root.dungeoninfo[4] == 1) { v13 += random(2); } else { if (_root.dungeoninfo[4] == 2) { v13 += 2 + random(2); } else { if (_root.dungeoninfo[4] == 3) { v13 += 3 + random(3); } else { if (_root.dungeoninfo[4] == 4) { v13 += 4 + random(4); } else { if (_root.dungeoninfo[4] == 5) { v13 += 5 + random(5); } } } } } var v14 = _root.createtreasure(v13); tellnews('You found a chest, inside was ' + v14[0]); _root.playerstuff.inventory.push(v14.slice()); trace('Passing itm: ' + v14); _root.openchest(v14); _root.playsfx('gotit'); } else { if (this.dungeonlayout[ploc[1]][ploc[0]] == 6) { trace('DO FIGHT'); tellnews('You were ambushed by some minions!'); _root.dungeonfight = true; var v6 = _root.dungeoninfo[3]; var v4 = _root.dungeoninfo[4]; if (v4 == 1) { v4 = random(2) + 1; } else { if (v4 == 2) { v4 = random(2) + 3; } else { if (v4 == 3) { v4 = random(2) + 4; } else { if (v4 == 4) { v4 = random(2) + 6; } else { if (v4 == 5) { v4 = random(2) + 8; } } } } } var v8 = random(_root.creeps[v6 + '_' + v4].length); var v16 = _root.creeps[v6 + '_' + v4][v8].slice(); var v12 = ''; if (v6 == 'undead') { v12 = 'Undead Party'; } else { if (v6 == 'chaos') { v12 = 'Chaotic Party'; } else { if (v6 == 'slimes') { v12 = 'Creature Party'; } else { if (v6 == 'elementals') { v12 = 'Elemental Party'; } else { v12 = 'Orckin Party'; } } } } var v10 = ''; var v7 = 1; if (v4 == 1) { v10 = 'Very Easy'; v7 += random(3) + 1; } else { if (v4 == 2) { v10 = 'Easy'; v7 += random(3) + 2; } else { if (v4 == 3) { v10 = 'Easy'; v7 += random(4) + 4; } else { if (v4 == 4) { v10 = 'Fairly Difficult'; v7 += random(5) + 4; } else { if (v4 == 5) { v10 = 'Challenging'; v7 += random(6) + 6; } else { if (v4 == 6) { v10 = 'Tough'; v7 += random(4) + 8; } else { if (v4 == 7) { v10 = 'Hard'; v7 += random(4) + 8; } else { if (v4 == 8) { v10 = 'Very Hard'; v7 += random(3) + 9; } else { v10 = 'Supremely Hard'; v7 += 11; } } } } } } } } var v5 = []; var v3 = 0; while (v3 < v7) { v8 = random(_root.creeps['list_' + v6].length); v5.push(_root.creeps['list_' + v6][v8] + '_' + v4); ++v3; } var v9 = [v12, v10, v7, v4, 0]; v3 = 0; while (v3 < v5.length) { v9.push(v5[v3]); ++v3; } v9[4] = _root.bestiary[v9[5]][1]; trace('Created monster group: ' + v9); trace('dungeon details: ' + _root.dungeoninfo); trace('Creating Enemy: ' + v16 + ' at ' + _root.dungeonloc[0] + ', ' + _root.dungeonloc[1]); _root.detailmap[_root.dungeonloc[0]][_root.dungeonloc[1]] = v9.slice(); _root.initiatebattle(_root.dungeonloc[0], _root.dungeonloc[1]); trace('Checking for battle window: ' + _root.bw); trace('checking for healths: ' + _root.healths); _root.bw.swapDepths(_root.getNextHighestDepth()); _root.healths.swapDepths(_root.getNextHighestDepth()); } else { if (this.dungeonlayout[ploc[1]][ploc[0]] == 7) { var v15 = random(5); if (v15 == 0) { tellnews('You came across and empty room'); } else { if (v15 == 1) { tellnews('You walked straight into an empty room'); } else { if (v15 == 2) { tellnews('Phew. Nothing scary in here.'); } else { if (v15 == 3) { tellnews('Weapons away, nothing in this room.'); } else { tellnews('You found a completely empty room. How unremarkable.'); } } } } trace('DO NOTHING'); } else { if (this.dungeonlayout[ploc[1]][ploc[0]] == 8) { var v11 = _root.dungeoninfo[6]; _root.playerstuff.wealth += v11; tellnews('Now who left this pile of ' + v11 + ' gold pieces laying around?'); trace('DO GOLD'); _root.playsfx('gold'); _root.playerstuff.tracker[6] += v11; } else { if (this.dungeonlayout[ploc[1]][ploc[0]] == 9) { if (_root.dungeoninfo[8] == 1) { tellnews('While searching you found a couple of healing potion'); ++_root.playerstuff.potions; var v3 = 0; while (v3 < 5) { if (random(100) < 50) { ++_root.playerstuff.potions; ++_root.playerstuff.tracker[5]; } ++v3; } ++_root.playerstuff.tracker[5]; } else { tellnews('While searching you found a small pouch of ' + _root.dungeoninfo[8] + ' healing potions'); _root.playerstuff.potions += _root.dungeoninfo[8]; var v3 = 0; while (v3 < 5) { if (random(100) < 50) { ++_root.playerstuff.potions; ++_root.playerstuff.tracker[5]; } ++v3; } _root.playerstuff.tracker[5] += _root.dungeoninfo[8]; } trace('DO POTION'); _root.playsfx('gotit'); } else { if (this.dungeonlayout[ploc[1]][ploc[0]] == 10) { var v11 = random(5) + 1; v11 += _root.dungeoninfo[4]; tellnews('Wow, that\'s lucky! You found ' + v11 + ' mana gem just laying around'); _root.playerstuff.managems += v11; ++_root.playerstuff.tracker[7]; trace('DO MANA GEM'); _root.playsfx('gotit'); } else { if (this.dungeonlayout[ploc[1]][ploc[0]] == 11) { var v11 = _root.dungeoninfo[7]; var v3 = 0; while (v3 < _root.playerstuff.party.length) { _root.playerstuff.party[v3][3][0] += v11; if (_root.playerstuff.party[v3][3][0] > _root.playerstuff.party[v3][3][1]) { _root.playerstuff.party[v3][3][0] = _root.playerstuff.party[v3][3][1]; } ++v3; } tellnews('You found a healing fountain! Everyone took a sip and healed ' + v11 + ' hit points!'); trace('DO HEAL'); _root.playsfx('heal'); } } } } } } } } } function gettextforroom(num) { if (num == 1) { return 'NOT ACCESABLE'; } else { if (num == 2) { return 'UNEXPLORED'; } else { if (num == 3) { return 'Dungeon Entrance'; } else { if (num == 4) { return 'Boss Battle'; } else { if (num == 5) { return 'Treasure Chest'; } else { if (num == 6) { return 'Enemy Units'; } else { if (num == 7) { return 'Empty Room'; } else { if (num == 8) { return 'Pile of Gold'; } else { if (num == 9) { return 'Potion'; } else { if (num == 10) { return 'Mana Gem'; } else { if (num == 11) { return 'Healing Fountain'; } } } } } } } } } } } } function enddungeon(victory) { _root.inadungeon = false; if (victory) { _root.contentmap[_root.dungeonloc[0]][_root.dungeonloc[1]] = 0; _root.busy = false; _root.drawmap(); var v3 = 1; if (_root.dungeoninfo[4] == 1) { v3 = 3; } else { if (_root.dungeoninfo[4] == 2) { v3 = 8; } else { if (_root.dungeoninfo[4] == 3) { v3 = 10; } else { if (_root.dungeoninfo[4] == 4) { v3 = 15; } else { if (_root.dungeoninfo[4] == 5) { v3 = 20; } else { v3 = 40; } } } } } var v2 = 0; while (v2 < _root.playerstuff.party.length) { _root.playerstuff.party[v2][9][0] += v3; ++v2; } trace('prev dungeons cleared: ' + _root.playerstuff.tracker[1]); ++_root.playerstuff.tracker[1]; trace('dungeons cleared now: ' + _root.playerstuff.tracker[1]); _root.setuppartybar(); _root.attachMovie('dungeonwon', 'dungeonwon', _root.getNextHighestDepth(), {'_x': 62, '_y': -60}); _root.checkquest(); _root.dungeonwindow.removeMovieClip(); } else { _root.contentmap[_root.dungeonloc[0]][_root.dungeonloc[1]] = 0; _root.busy = false; _root.drawmap(); _root.attachMovie('dungeonfailed', 'dungeonfailed', _root.getNextHighestDepth(), {'_x': 70, '_y': -60}); _root.dungeonwindow.removeMovieClip(); _root.setuppartybar(); } } bg.onRelease = function () {}; bg.useHandCursor = false; _root.inadungeon = true; ploc = [0, 1]; busy = false; _root.bossbattle = false; this.dungeonlayout = [[0, 1, 1, 1, 1, 1, 0], [3, 1, 1, 1, 1, 1, 4], [0, 1, 1, 1, 1, 1, 0]]; this.dungeoncontent = [[0, 0, 0, 0, 0, 0, 0], [98, 0, 0, 0, 0, 0, 99], [0, 0, 0, 0, 0, 0, 0]]; this.dungeonexplored = [[0, 0, 0, 0, 0, 0, 0], [1, 0, 0, 0, 0, 0, 1], [0, 0, 0, 0, 0, 0, 0]]; var numchests = _root.dungeoninfo[1]; var numcreeps = _root.dungeoninfo[2]; while (numchests > 0) { var d1 = random(5) + 1; var d2 = random(3); if (this.dungeoncontent[d2][d1] == 0) { this.dungeoncontent[d2][d1] = 1; this.dungeonlayout[d2][d1] = 5; --numchests; } } while (numcreeps > 0) { var d1 = random(5) + 1; var d2 = random(3); if (this.dungeoncontent[d2][d1] == 0) { this.dungeoncontent[d2][d1] = 2; this.dungeonlayout[d2][d1] = 6; --numcreeps; } } var i = 1; while (i < 6) { var j = 0; while (j < 3) { if (this.dungeoncontent[j][i] == 0) { var d100 = random(100); if (d100 < 35) { this.dungeoncontent[j][i] = 3; this.dungeonlayout[j][i] = 7; } else { if (d100 < 50) { this.dungeoncontent[j][i] = 3; this.dungeonlayout[j][i] = 8; } else { if (d100 < 70) { this.dungeoncontent[j][i] = 3; this.dungeonlayout[j][i] = 9; } else { if (d100 < 90) { this.dungeoncontent[j][i] = 3; this.dungeonlayout[j][i] = 10; } else { this.dungeoncontent[j][i] = 3; this.dungeonlayout[j][i] = 11; } } } } } ++j; } ++i; } if (_root.playerstuff.hasdungeonreveal) { numreveals = 3; while (numreveals > 0) { var d1 = random(3); var d2 = random(5) + 1; if (this.dungeonexplored[d1][d2] == 0) { this.dungeonexplored[d1][d2] = 1; --numreveals; } } } drawlayout(); } } movieClip 1002 { } movieClip 1009 { frame 1 { stop(); } frame 2 { _root.playsfx('hover'); } } movieClip 1014 { frame 1 { stop(); } frame 2 { _root.playsfx('hover'); } } movieClip 1015 rusure { frame 1 { bg.onRelease = function () {}; bg.useHandCursor = false; } } movieClip 1022 lvlupwindow { frame 1 { bg.onRelease = function () {}; bg.useHandCursor = false; } } movieClip 1024 expreward { frame 1 { this.ttl = 12; this.onEnterFrame = function () { --this.ttl; if (this.ttl <= 0) { this.removeMovieClip(); } }; } } movieClip 1318 { } movieClip 1321 openchest { frame 1 { bg.onRelease = function () {}; bg.useHandCursor = false; } } movieClip 1330 { frame 1 { stop(); } } movieClip 1331 herowindow { } movieClip 1336 questover { frame 1 { bg.onRelease = function () {}; bg.useHandCursor = false; stop(); _root.playsfx('cheer'); } frame 2 { bg.onRelease = function () {}; bg.useHandCursor = false; stop(); _root.playsfx('boo'); } } movieClip 1337 { frame 1 { stop(); } } movieClip 1341 spawnerwindow { } movieClip 1349 { } movieClip 1352 { } movieClip 1353 { } movieClip 1355 housewindow { } movieClip 1362 { frame 1 { stop(); } frame 2 { _root.playsfx('hover'); } } movieClip 1367 { frame 1 { stop(); } frame 2 { _root.playsfx('hover'); } } movieClip 1385 alchemistwindow { } movieClip 1387 infotext { } movieClip 1392 astralchest { frame 1 { bg.onRelease = function () {}; bg.useHandCursor = false; } } movieClip 1395 teleported { frame 1 { bg.onRelease = function () {}; bg.useHandCursor = false; } } movieClip 1398 { } movieClip 1399 dungeonfailed { frame 30 { _root.playsfx('boo'); } frame 60 { this.removeMovieClip(); } } movieClip 1402 { } movieClip 1403 dungeonwon { frame 30 { _root.playsfx('cheer'); } frame 60 { this.removeMovieClip(); } } movieClip 1404 { } movieClip 1406 golden { } movieClip 1409 { frame 1 { stop(); } } movieClip 1410 potionpop { } movieClip 1412 { } movieClip 1413 manapop { } movieClip 1415 { } movieClip 1418 { } movieClip 1425 { frame 1 { stop(); } } movieClip 1432 { } movieClip 1437 { } movieClip 1442 { } movieClip 1445 { } movieClip 1454 { frame 1 { stop(); } } movieClip 1458 { } movieClip 1461 { } movieClip 1465 { } movieClip 1468 { } movieClip 1471 { } movieClip 1474 { } movieClip 1478 { } movieClip 1481 { } movieClip 1484 { } movieClip 1487 { } movieClip 1489 { } movieClip 1490 { frame 80 { this.gotoAndStop(1); } } movieClip 1491 { } movieClip 1493 { } movieClip 1494 { frame 36 { this.gotoAndStop(1); } } movieClip 1495 { } movieClip 1498 { } movieClip 1501 { } movieClip 1503 { } movieClip 1504 { frame 35 { this.gotoAndStop(1); } } movieClip 1505 { } movieClip 1508 { } movieClip 1510 { } movieClip 1511 { frame 20 { this.gotoAndStop(1); } } movieClip 1514 { } movieClip 1516 { } movieClip 1517 { frame 45 { this.gotoAndStop(1); } } movieClip 1520 { } movieClip 1522 { } movieClip 1523 { frame 45 { this.gotoAndStop(1); } } movieClip 1524 { } movieClip 1527 { } movieClip 1529 { } movieClip 1530 { frame 45 { this.gotoAndStop(1); } } movieClip 1531 { } movieClip 1534 { } movieClip 1536 { } movieClip 1537 { frame 40 { this.gotoAndStop(1); } } movieClip 1538 { } movieClip 1541 { } movieClip 1543 { } movieClip 1544 { frame 40 { this.gotoAndStop(1); } } movieClip 1545 { } movieClip 1546 { } movieClip 1547 { frame 60 { this.gotoAndStop(1); } } movieClip 1550 { } movieClip 1555 { } movieClip 1556 battle_window { frame 1 { if (_root.doingbattletutorial) { _root.doingbattletutorial = false; battletut.onRelease = function () { this._visible = false; }; } else { battletut._visible = false; } } frame 1 { function dospellbuttons() { manaline.text = _root.playerstuff.managems; bcast._visible = false; if (_root.bw.bounty) { bcast._visible = true; } digcast._visible = false; if (_root.bw.diggin) { digcast._visible = true; } tutcast._visible = false; if (_root.bw.tutting) { tutcast._visible = true; } shieldcast._visible = false; if (_root.bw.bonusmag > 0) { shieldcast._visible = true; } physshieldcast._visible = false; if (_root.bw.bonusphys > 0) { physshieldcast._visible = true; } vampcast._visible = false; if (_root.bw.vamps > 0) { vampcast._visible = true; } powerupcast._visible = false; if (_root.bw.powerups > 0) { powerupcast._visible = true; } if (_root.playerstuff.spellbook[1] == 0) { spell1._visible = false; } else { spell1.mynum = 1; spell1.mycost = 5; spell1.onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip(_root.spellbook['spell' + this.mynum][0] + '<new_line>' + _root.spellbook['spell' + this.mynum][1] + '<new_line><new_line>', '0xFFFFFF|0xFDE724|0x22FFFF|0xFFFFFF|0x66FF00|0xFFFFFF', '22|16|14|14|18'); _root.myTooltip.show({'delay': 0.1, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; spell1.onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; if (_root.playerstuff.managems < 5) { spell1._alpha = 35; spell1.enabled = false; } else { spell1._alpha = 100; spell1.enabled = true; spell1.onRelease = function () { castspell(1); _root.playerstuff.managems -= this.mycost; dospellbuttons(); }; } } if (_root.playerstuff.spellbook[2] == 0) { spell2._visible = false; } else { spell2.mynum = 2; spell2.mycost = 5; spell2.onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip(_root.spellbook['spell' + this.mynum][0] + '<new_line>' + _root.spellbook['spell' + this.mynum][1] + '<new_line><new_line>', '0xFFFFFF|0xFDE724|0x22FFFF|0xFFFFFF|0x66FF00|0xFFFFFF', '22|16|14|14|18'); _root.myTooltip.show({'delay': 0.1, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; spell2.onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; if (_root.playerstuff.managems < 5) { spell2._alpha = 35; spell2.enabled = false; } else { spell2._alpha = 100; spell2.enabled = true; spell2.onRelease = function () { castspell(2); _root.playerstuff.managems -= this.mycost; dospellbuttons(); }; } } if (_root.playerstuff.spellbook[3] == 0) { spell3._visible = false; } else { spell3.mynum = 3; spell3.mycost = 6; spell3.onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip(_root.spellbook['spell' + this.mynum][0] + '<new_line>' + _root.spellbook['spell' + this.mynum][1] + '<new_line><new_line>', '0xFFFFFF|0xFDE724|0x22FFFF|0xFFFFFF|0x66FF00|0xFFFFFF', '22|16|14|14|18'); _root.myTooltip.show({'delay': 0.1, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; spell3.onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; if (_root.playerstuff.managems < 6) { spell3._alpha = 35; spell3.enabled = false; } else { spell3._alpha = 100; spell3.enabled = true; spell3.onRelease = function () { castspell(3); _root.playerstuff.managems -= this.mycost; dospellbuttons(); }; } } if (_root.playerstuff.spellbook[4] == 0) { spell4._visible = false; } else { spell4.mynum = 4; spell4.mycost = 6; spell4.onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip(_root.spellbook['spell' + this.mynum][0] + '<new_line>' + _root.spellbook['spell' + this.mynum][1] + '<new_line><new_line>', '0xFFFFFF|0xFDE724|0x22FFFF|0xFFFFFF|0x66FF00|0xFFFFFF', '22|16|14|14|18'); _root.myTooltip.show({'delay': 0.1, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; spell4.onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; if (_root.playerstuff.managems < 6) { spell4._alpha = 35; spell4.enabled = false; } else { spell4._alpha = 100; spell4.enabled = true; spell4.onRelease = function () { castspell(4); _root.playerstuff.managems -= this.mycost; dospellbuttons(); }; } } if (_root.playerstuff.spellbook[5] == 0) { spell5._visible = false; } else { spell5.mynum = 5; spell5.mycost = 6; spell5.onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip(_root.spellbook['spell' + this.mynum][0] + '<new_line>' + _root.spellbook['spell' + this.mynum][1] + '<new_line><new_line>', '0xFFFFFF|0xFDE724|0x22FFFF|0xFFFFFF|0x66FF00|0xFFFFFF', '22|16|14|14|18'); _root.myTooltip.show({'delay': 0.1, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; spell5.onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; if (_root.playerstuff.managems < 6) { spell5._alpha = 35; spell5.enabled = false; } else { spell5._alpha = 100; spell5.enabled = true; spell5.onRelease = function () { castspell(5); _root.playerstuff.managems -= this.mycost; dospellbuttons(); }; } } if (_root.playerstuff.spellbook[6] == 0) { spell6._visible = false; } else { spell6.mynum = 6; spell6.mycost = 6; spell6.onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip(_root.spellbook['spell' + this.mynum][0] + '<new_line>' + _root.spellbook['spell' + this.mynum][1] + '<new_line><new_line>', '0xFFFFFF|0xFDE724|0x22FFFF|0xFFFFFF|0x66FF00|0xFFFFFF', '22|16|14|14|18'); _root.myTooltip.show({'delay': 0.1, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; spell6.onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; if (_root.playerstuff.managems < 6) { spell6._alpha = 35; spell6.enabled = false; } else { spell6._alpha = 100; spell6.enabled = true; spell6.onRelease = function () { castspell(6); _root.playerstuff.managems -= this.mycost; dospellbuttons(); }; } } if (_root.playerstuff.spellbook[7] == 0) { spell7._visible = false; } else { spell7.mynum = 7; spell7.mycost = 7; spell7.onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip(_root.spellbook['spell' + this.mynum][0] + '<new_line>' + _root.spellbook['spell' + this.mynum][1] + '<new_line><new_line>', '0xFFFFFF|0xFDE724|0x22FFFF|0xFFFFFF|0x66FF00|0xFFFFFF', '22|16|14|14|18'); _root.myTooltip.show({'delay': 0.1, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; spell7.onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; if (_root.playerstuff.managems < 7) { spell7._alpha = 35; spell7.enabled = false; } else { spell7._alpha = 100; spell7.enabled = true; spell7.onRelease = function () { castspell(7); _root.playerstuff.managems -= this.mycost; dospellbuttons(); }; } } if (_root.playerstuff.spellbook[8] == 0) { spell8._visible = false; } else { spell8.mynum = 8; spell8.mycost = 7; spell8.onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip(_root.spellbook['spell' + this.mynum][0] + '<new_line>' + _root.spellbook['spell' + this.mynum][1] + '<new_line><new_line>', '0xFFFFFF|0xFDE724|0x22FFFF|0xFFFFFF|0x66FF00|0xFFFFFF', '22|16|14|14|18'); _root.myTooltip.show({'delay': 0.1, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; spell8.onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; if (_root.playerstuff.managems < 7 || _root.bw.tutting) { spell8._alpha = 35; spell8.enabled = false; } else { spell8._alpha = 100; spell8.enabled = true; spell8.onRelease = function () { castspell(8); _root.playerstuff.managems -= this.mycost; dospellbuttons(); }; } } if (_root.playerstuff.spellbook[9] == 0) { spell9._visible = false; } else { spell9.mynum = 9; spell9.mycost = 5; spell9.onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip(_root.spellbook['spell' + this.mynum][0] + '<new_line>' + _root.spellbook['spell' + this.mynum][1] + '<new_line><new_line>', '0xFFFFFF|0xFDE724|0x22FFFF|0xFFFFFF|0x66FF00|0xFFFFFF', '22|16|14|14|18'); _root.myTooltip.show({'delay': 0.1, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; spell9.onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; if (_root.playerstuff.managems < 5 || _root.bw.diggin) { spell9._alpha = 35; spell9.enabled = false; } else { spell9._alpha = 100; spell9.enabled = true; spell9.onRelease = function () { castspell(9); _root.playerstuff.managems -= this.mycost; dospellbuttons(); }; } } if (_root.playerstuff.spellbook[10] == 0) { spell10._visible = false; } else { spell10.mynum = 10; spell10.mycost = 6; spell10.onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip(_root.spellbook['spell' + this.mynum][0] + '<new_line>' + _root.spellbook['spell' + this.mynum][1] + '<new_line><new_line>', '0xFFFFFF|0xFDE724|0x22FFFF|0xFFFFFF|0x66FF00|0xFFFFFF', '22|16|14|14|18'); _root.myTooltip.show({'delay': 0.1, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; spell10.onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; if (_root.playerstuff.managems < 6 || _root.bw.bounty) { spell10._alpha = 35; spell10.enabled = false; } else { spell10._alpha = 100; spell10.enabled = true; spell10.onRelease = function () { castspell(10); _root.playerstuff.managems -= this.mycost; dospellbuttons(); }; } } } function castspell(which) { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); if (which == 1) { _root.bw.healspell.swapDepths(_root.bw.getNextHighestDepth()); _root.bw.healspell.play(); _root.bw.dohealspell(); } else { if (which == 2) { _root.bw.powerups = 10; _root.bw.powerupspell.swapDepths(_root.bw.getNextHighestDepth()); _root.bw.powerupspell.play(); _root.playsfx('roar'); } else { if (which == 3) { _root.bw.vamps = 10; _root.bw.vampspell.swapDepths(_root.bw.getNextHighestDepth()); _root.bw.vampspell.play(); _root.playsfx('vamp'); } else { if (which == 4) { _root.bw.bonusphys += 3; _root.bw.physshieldspell.swapDepths(_root.bw.getNextHighestDepth()); _root.bw.physshieldspell.play(); _root.playsfx('explode'); } else { if (which == 5) { _root.bw.bonusmag += 3; _root.bw.shieldspell.swapDepths(_root.bw.getNextHighestDepth()); _root.bw.shieldspell.play(); _root.playsfx('shield'); } else { if (which == 6) { _root.bw.coldspell.swapDepths(_root.bw.getNextHighestDepth()); _root.bw.coldspell.play(); _root.bw.docoldsnap(); _root.playsfx('coldsnap'); } else { if (which == 7) { _root.bw.firespell.swapDepths(_root.bw.getNextHighestDepth()); _root.bw.firespell.play(); _root.bw.dofirespelldamage(); _root.playsfx('explode'); } else { if (which == 8) { _root.bw.tutting = true; _root.bw.tutspell.play(); _root.playsfx('shield'); } else { if (which == 9) { _root.bw.diggin = true; _root.bw.digspell.play(); _root.playsfx('gold'); } else { if (which == 10) { _root.bw.bounty = true; _root.bw.bountyspell.play(); _root.playsfx('gotit'); } } } } } } } } } } } function dofirespelldamage() { var v3 = 0; while (v3 < _root.bw.enemyarray.length) { if (_root.bw.enemyarray[v3][4][0] > 0) { var v4 = 60; v4 -= _root.bw.enemyarray[v3][6]; if (v4 >= _root.bw.enemyarray[v3][4][0]) { v4 = _root.bw.enemyarray[v3][4][0] - 1; } _root.bw.enemyarray[v3][4][0] -= v4; var v5 = random(100000); _root.bw.attachMovie('damagesign', 'damagesign' + v5, _root.bw.getNextHighestDepth(), {'_x': _root.bw.enemyarray[v3][8][0], '_y': _root.bw.enemyarray[v3][8][1]}); if (random(2) == 1) { var v6 = _root.bw.enemyarray[v3][8][0] + random(50); } else { var v6 = _root.bw.enemyarray[v3][8][0] - random(50); } com.greensock.TweenLite.to(_root.bw['damagesign' + v5], 1.5, {'_x': v6, '_y': -25, '_alpha': 0}); _root.bw['damagesign' + v5].line1.text = '-' + v4; _root.bw['damagesign' + v5].ttl = 45; _root.bw['damagesign' + v5].onEnterFrame = function () { --this.ttl; if (this.ttl == 0) { this.removeMovieClip(); } }; tellnews('Your Fire Rain spell Blasted ' + _root.bw.enemyarray[v3][0] + ' for ' + v4 + ' Damage.'); } ++v3; } } function docoldsnap() { _root.playsfx('coldsnap'); var v3 = 0; while (v3 < _root.bw.enemyarray.length) { if (_root.bw.enemyarray[v3][4][0] > 0) { if (random(100) < 50) { _root.bw.enemyarray[v3][16] = true; var v4 = random(100000); _root.bw.attachMovie('damagesign', 'damagesign' + v4, _root.bw.getNextHighestDepth(), {'_x': _root.bw.enemyarray[v3][8][0], '_y': _root.bw.enemyarray[v3][8][1]}); if (random(2) == 1) { var v5 = _root.bw.enemyarray[v3][8][0] + random(50); } else { var v5 = _root.bw.enemyarray[v3][8][0] - random(50); } com.greensock.TweenLite.to(_root.bw['damagesign' + v4], 1.5, {'_x': v5, '_y': -25, '_alpha': 0}); _root.bw['damagesign' + v4].line1.text = 'STUN'; _root.bw['damagesign' + v4].ttl = 45; _root.bw['damagesign' + v4].onEnterFrame = function () { --this.ttl; if (this.ttl == 0) { this.removeMovieClip(); } }; tellnews('Your Cold Sanp stunned ' + _root.bw.enemyarray[v3][0]); } } ++v3; } } function dohealspell() { _root.playsfx('heal'); var v3 = 0; while (v3 < _root.playerstuff.party.length) { if (_root.playerstuff.party[v3][3][0] > 0) { var v6 = 50; if (_root.playerstuff.party[v3][3][0] + v6 > _root.playerstuff.party[v3][3][1]) { v6 = _root.playerstuff.party[v3][3][1] - _root.playerstuff.party[v3][3][0]; } _root.playerstuff.party[v3][3][0] += v6; if (_root.playerstuff.party[v3][3][0] > _root.playerstuff.party[v3][3][1]) { _root.playerstuff.party[v3][3][0] = _root.playerstuff.party[v3][3][1]; } var v4 = v3; var v5 = random(100000); _root.bw.attachMovie('healsign', 'healsign' + v5, _root.bw.getNextHighestDepth(), {'_x': _root.bw['field' + _root.playerstuff.party[v4][8]]['unit_' + v4]._x + 10, '_y': _root.bw['field' + _root.playerstuff.party[v4][8]]['unit_' + v4]._y}); if (random(2) == 1) { var v7 = _root.bw['field' + _root.playerstuff.party[v4][8]]['unit_' + v4]._x + random(50); } else { var v7 = _root.bw['field' + _root.playerstuff.party[v4][8]]['unit_' + v4]._x - random(50); } com.greensock.TweenLite.to(_root.bw['healsign' + v5], 1.5, {'_x': v7, '_y': -25, '_alpha': 0}); _root.bw['healsign' + v5].line1.text = '+' + v6; _root.bw['healsign' + v5].ttl = 45; _root.bw['healsign' + v5].onEnterFrame = function () { --this.ttl; if (this.ttl == 0) { this.removeMovieClip(); } }; } ++v3; } } function healhero(who, amt) { if (_root.playerstuff.party[who][3][0] > 0) { var v6 = amt; if (_root.playerstuff.party[who][3][0] + v6 > _root.playerstuff.party[who][3][1]) { v6 = _root.playerstuff.party[who][3][1] - _root.playerstuff.party[who][3][0]; } _root.playerstuff.party[who][3][0] += v6; if (_root.playerstuff.party[who][3][0] > _root.playerstuff.party[who][3][1]) { _root.playerstuff.party[who][3][0] = _root.playerstuff.party[who][3][1]; } var v4 = who; var v5 = random(100000); _root.bw.attachMovie('healsign', 'healsign' + v5, _root.bw.getNextHighestDepth(), {'_x': _root.bw['field' + _root.playerstuff.party[v4][8]]['unit_' + v4]._x + 10, '_y': _root.bw['field' + _root.playerstuff.party[v4][8]]['unit_' + v4]._y}); if (random(2) == 1) { var v7 = _root.bw['field' + _root.playerstuff.party[v4][8]]['unit_' + v4]._x + random(50); } else { var v7 = _root.bw['field' + _root.playerstuff.party[v4][8]]['unit_' + v4]._x - random(50); } com.greensock.TweenLite.to(_root.bw['healsign' + v5], 1.5, {'_x': v7, '_y': -25, '_alpha': 0}); _root.bw['healsign' + v5].line1.text = '+' + v6; _root.bw['healsign' + v5].ttl = 45; _root.bw['healsign' + v5].onEnterFrame = function () { --this.ttl; if (this.ttl == 0) { this.removeMovieClip(); } }; } } bcast.onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip('Bounty Cast<new_line>If you win this battle you will definitely receive a chest<new_line><new_line>', '0xFFFFFF|0xFDE724|0x22FFFF|0xFFFFFF|0x66FF00|0xFFFFFF', '22|16|14|14|18'); _root.myTooltip.show({'delay': 0.1, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; bcast.onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; digcast.onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip('Gold Diggin\' Cast<new_line>All defeated enemies will drop double normal gold during this battle<new_line><new_line>', '0xFFFFFF|0xFDE724|0x22FFFF|0xFFFFFF|0x66FF00|0xFFFFFF', '22|16|14|14|18'); _root.myTooltip.show({'delay': 0.1, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; digcast.onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; tutcast.onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip('Tuition Cast<new_line>All heroes receive double normal experience during this battle<new_line><new_line>', '0xFFFFFF|0xFDE724|0x22FFFF|0xFFFFFF|0x66FF00|0xFFFFFF', '22|16|14|14|18'); _root.myTooltip.show({'delay': 0.1, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; tutcast.onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; shieldcast.onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip('Magical Shield<new_line>All heroes receive an additional ' + _root.bw.bonusmag + ' magical protection<new_line><new_line>', '0xFFFFFF|0xFDE724|0x22FFFF|0xFFFFFF|0x66FF00|0xFFFFFF', '22|16|14|14|18'); _root.myTooltip.show({'delay': 0.1, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; shieldcast.onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; physshieldcast.onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip('Magical Shield<new_line>All heroes receive an additional ' + _root.bw.bonusphys + ' physical & ranged protection<new_line><new_line>', '0xFFFFFF|0xFDE724|0x22FFFF|0xFFFFFF|0x66FF00|0xFFFFFF', '22|16|14|14|18'); _root.myTooltip.show({'delay': 0.1, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; physshieldcast.onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; vampcast.onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip('Vampirism<new_line>Heroes will heal when they strike for the next ' + _root.bw.vamps + ' attacks.<new_line><new_line>', '0xFFFFFF|0xFDE724|0x22FFFF|0xFFFFFF|0x66FF00|0xFFFFFF', '22|16|14|14|18'); _root.myTooltip.show({'delay': 0.1, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; vampcast.onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; powerupcast.onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip('Powered Up<new_line>Heroes will deal double damage when they strike for the next ' + _root.bw.powerups + ' attacks.<new_line><new_line>', '0xFFFFFF|0xFDE724|0x22FFFF|0xFFFFFF|0x66FF00|0xFFFFFF', '22|16|14|14|18'); _root.myTooltip.show({'delay': 0.1, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; powerupcast.onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; autobutton.onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip('Hyperspeed Combat<new_line>Combat will progress extremely fast<new_line><new_line>', '0xFFFFFF|0xFDE724|0x22FFFF|0xFFFFFF|0x66FF00|0xFFFFFF', '22|16|14|14|18'); _root.myTooltip.show({'delay': 0.5, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; autobutton.onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; dblbutton.onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip('Double Speed Combat<new_line>Combat will progress at twice normal speed<new_line><new_line>', '0xFFFFFF|0xFDE724|0x22FFFF|0xFFFFFF|0x66FF00|0xFFFFFF', '22|16|14|14|18'); _root.myTooltip.show({'delay': 0.5, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; dblbutton.onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; normbutton.onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip('Normal Speed Combat<new_line>Combat will progress at normal speed<new_line><new_line>', '0xFFFFFF|0xFDE724|0x22FFFF|0xFFFFFF|0x66FF00|0xFFFFFF', '22|16|14|14|18'); _root.myTooltip.show({'delay': 0.5, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; normbutton.onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; dospellbuttons(); } frame 1 { function tellnews(msg) { news.line5.text = news.line4.text; news.line4.text = news.line3.text; news.line3.text = news.line2.text; news.line2.text = news.line1.text; news.line1.text = msg; } function displayspeed() { speed.s1.gotoAndStop(1); speed.s2.gotoAndStop(1); speed.s3.gotoAndStop(1); if (_root.bw.dbl) { speed.s2.gotoAndStop(2); } else { if (_root.bw.speedy) { speed.s3.gotoAndStop(2); } else { speed.s1.gotoAndStop(2); } } } gobutton.onRollOver = function () { this.gotoAndStop(2); }; gobutton.onRollOut = function () { this.gotoAndStop(1); }; gobutton.onReleaseOutside = function () { this.gotoAndStop(1); }; displayspeed(); } frame 1 { function initializethis(why, ex) { this.bwhy = why; this.bex = ex; var v3 = 0; while (v3 < 6) { tellnews(''); ++v3; } bounty = false; diggin = false; tutting = false; bonusphys = 0; bonusmag = 0; vamps = 0; powerups = 0; this.paused = false; this.dbl = false; dospellbuttons(); this.processing = false; gobutton._alpha = 100; gobutton.enabled = true; this.pspot1 = [1, 100, 45]; this.pspot2 = [2, 100, 70]; this.pspot3 = [3, 100, 95]; this.pspot4 = [4, 100, 120]; this.pspot5 = [1, 60, 45]; this.pspot6 = [2, 60, 70]; this.pspot7 = [3, 60, 95]; this.pspot8 = [4, 60, 120]; this.pspot9 = [1, 20, 45]; this.pspot10 = [1, 20, 70]; this.pspot11 = [1, 20, 95]; this.pspot12 = [1, 20, 120]; this.espot1 = [1, 500, 45]; this.espot2 = [2, 500, 70]; this.espot3 = [3, 500, 95]; this.espot4 = [4, 500, 120]; this.espot5 = [1, 540, 45]; this.espot6 = [2, 540, 70]; this.espot7 = [3, 540, 95]; this.espot8 = [4, 540, 120]; this.espot9 = [1, 580, 45]; this.espot10 = [1, 580, 70]; this.espot11 = [1, 580, 95]; this.espot12 = [1, 580, 120]; this.battlespeed = 1; this.unitcount = 1; this.enemycount = 1; this.pplacefield = 1; this.eplacefield = 4; var v6 = 1; while (v6 < 5) { v3 = 0; while (v3 < 100) { _root.bw['field' + v6]['unit_' + v3].removeMovieClip(); _root.bw['field' + v6]['enemy_' + v3].removeMovieClip(); _root.bw['field' + v6]['gravestone_' + v3].removeMovieClip(); _root.bw['field' + v6]['egravestone_' + v3].removeMovieClip(); ++v3; } ++v6; } trace('creating enemy array: ' + _root.detailmap[why][ex].length); this.enemyarray = []; this.enemylocations = []; v3 = 5; while (v3 < _root.detailmap[why][ex].length) { var v9 = [_root.bestiary[_root.detailmap[why][ex][v3]][0], _root.bestiary[_root.detailmap[why][ex][v3]][1], _root.bestiary[_root.detailmap[why][ex][v3]][2], _root.bestiary[_root.detailmap[why][ex][v3]][3], _root.bestiary[_root.detailmap[why][ex][v3]][4].slice(), _root.bestiary[_root.detailmap[why][ex][v3]][5], _root.bestiary[_root.detailmap[why][ex][v3]][6], _root.bestiary[_root.detailmap[why][ex][v3]][7], 0, _root.bestiary[_root.detailmap[why][ex][v3]][9], _root.bestiary[_root.detailmap[why][ex][v3]][10], 0, _root.bestiary[_root.detailmap[why][ex][v3]][11], _root.bestiary[_root.detailmap[why][ex][v3]][12] + random(_root.bestiary[_root.detailmap[why][ex][v3]][13])]; var v8 = (_root.globalstuff.difficulty / 100) * 2; v9[4][0] += Math.round(v9[4][0] * v8); v9[4][1] += Math.round(v9[4][1] * v8); if (v8 > 10) { ++v9[5]; ++v9[6]; } if (v8 > 18) { ++v9[5]; ++v9[6]; } if (v8 > 22) { ++v9[5]; ++v9[6]; } this.enemyarray.push(v9.slice()); trace('Added ' + v9 + ' to enemy array'); ++v3; } trace(this.enemyarray); this.playerarray = []; this.playerlocations = []; _root.bw.hasscholar = false; v3 = 0; while (v3 < _root.playerstuff.party.length) { v9 = _root.playerstuff.party[v3].slice(); this.playerarray.push(v9.slice()); trace('Added ' + v9 + ' to player array'); if (v9[12] == 7) { _root.bw.hasscholar = true; } ++v3; } v3 = 0; while (v3 < playerarray.length) { _root.healths['php' + (v3 + 1)].line1.text = _root.playerstuff.party[v3][0]; var v7 = this['pspot' + (v3 + 1)][0]; _root.playerstuff.party[v3][8] = this['pspot' + (v3 + 1)][0]; var v11 = this['pspot' + (v3 + 1)][1]; var v10 = this['pspot' + (v3 + 1)][2]; trace('attaching hero ' + v3 + ' to field ' + v7 + ' at location ' + v11 + ', ' + v10); this['field' + v7].attachMovie('sprite', 'unit_' + v3, this['field' + v7].getNextHighestDepth(), {'_x': v11, '_y': v10}); this['field' + v7]['unit_' + v3].myfield = v7; this['field' + v7]['unit_' + v3].mydetails = _root.playerstuff.party[v3]; this['field' + v7]['unit_' + v3].myhealth = _root.playerstuff.party[v3][3].slice(); this['field' + v7]['unit_' + v3].mynum = v3; this['field' + v7]['unit_' + v3].fighting = false; this['field' + v7]['unit_' + v3].swingdelay = 0; this['field' + v7]['unit_' + v3].wepnum = _root.playerstuff.party[v3][6][1]; this['field' + v7]['unit_' + v3].armnum = _root.playerstuff.party[v3][1]; this['field' + v7]['unit_' + v3].internal.sprite.gotoAndStop('right'); this['field' + v7]['unit_' + v3].extradamage = 0; ++v3; } v3 = 0; while (v3 < enemyarray.length) { _root.healths['ehp' + (v3 + 1)].line1.text = enemyarray[v3][0]; v7 = this['espot' + (v3 + 1)][0]; enemyarray[v3][8] = [this['espot' + (v3 + 1)][1], this['espot' + (v3 + 1)][2]]; enemyarray[v3][11] = this['espot' + (v3 + 1)][0]; enemyarray[v3].push(false); trace(enemyarray[v3]); v11 = this['espot' + (v3 + 1)][1]; v10 = this['espot' + (v3 + 1)][2]; trace('attaching enemy ' + v3 + ' to field ' + v7 + ' at location ' + v11 + ', ' + v10); this['field' + v7].attachMovie('creep' + enemyarray[v3][1], 'enemy_' + v3, this['field' + v7].getNextHighestDepth(), {'_x': v11, '_y': v10}); this['field' + v7]['enemy_' + v3].mydetails = enemyarray[v3].slice(); this['field' + v7]['enemy_' + v3].mynum = v3; this['field' + v7]['enemy_' + v3].myhealth = enemyarray[v3][4].slice(); this['field' + v7]['enemy_' + v3].fighting = false; this['field' + v7]['enemy_' + v3].swingdelay = 0; this['field' + v7]['enemy_' + v3].myfield = v7; ++v3; } battleready = true; tellnews('Ready for Battle! Click Start Battle to begin.'); } function createturnarray() { _root.bw.turnarray = []; var v2 = 0; while (v2 < enemyarray.length) { if (enemyarray[v2][4][0] > 0) { if (enemyarray[v2][16]) { tellnews('Haha, ' + enemyarray[v2][0] + ' is stunned and misses this turn!'); enemyarray[v2][16] = false; } else { _root.bw.turnarray.push({'type': 'e', 'num': v2, 'speed': enemyarray[v2][7]}); } } ++v2; } v2 = 0; while (v2 < playerarray.length) { if (_root.playerstuff.party[v2][3][0] > 0) { _root.bw.turnarray.push({'type': 'p', 'num': v2, 'speed': _root.playerstuff.party[v2][4]}); } ++v2; } _root.bw.turnarray.sortOn('speed', Array.DESCENDING); v2 = 0; while (v2 < turnarray.length) { trace('Entry: ' + turnarray[v2].speed + ' - ' + turnarray[v2].type + ' - ' + turnarray[v2].num); ++v2; } trace(_root.bw.turnarray); } function startbattle() { createturnarray(); _root.bw.createEmptyMovieClip('controller', _root.bw.getNextHighestDepth()); var v4 = 0; var v3 = 0; while (v3 < _root.bw.turnarray.length) { if (_root.bw.turnarray[v3].speed > v4) { v4 = _root.bw.turnarray[v3].speed; } ++v3; } _root.bw.controller.highpoint = v4 + 1; _root.bw.controller.ttl = v4 + 1; _root.bw.controller.onEnterFrame = function () { if (!_root.bw.paused && !_root.bw.processing) { trace('Processing: ' + this.ttl); var v5 = -1; var v3 = 0; while (v3 < _root.bw.turnarray.length) { if (_root.bw.turnarray[v3].speed == this.ttl) { v5 = v3; } ++v3; } if (v5 > -1) { performturn(v5); } else { if (this.ttl > 0) { if (_root.bw.turnarray.length > 0) { var v4 = 0; v3 = 0; while (v3 < _root.bw.turnarray.length) { if (_root.bw.turnarray[v3].speed > v4) { v4 = _root.bw.turnarray[v3].speed; } ++v3; } --this.ttl; if (_root.bw.speedy) { this.ttl = v4; } } else { this.ttl = 0; } } else { createturnarray(); this.ttl = this.highpoint; } } } }; } function performturn(who) { _root.bw.processing = true; trace('processing turn for turnarray element ' + who); var num = _root.bw.turnarray[who].num; if (_root.bw.turnarray[who].type == 'p') { var obj = _root.playerstuff.party[num]; } else { var obj = _root.bw.enemyarray[num]; } trace('Which is: ' + obj); if (_root.bw.turnarray[who].type == 'p') { if (obj[7] == 'melee') { trace('I\'m a melee unit so I\'m going to swipe and attack an enemy'); var v3 = []; var v4 = 0; while (v4 < 4) { if (_root.bw.enemyarray[v4][4][0] > 0) { v3.push(v4); } ++v4; } if (v3.length < 1) { v4 = 0; while (v4 < 8) { if (_root.bw.enemyarray[v4][4][0] > 0) { v3.push(v4); } ++v4; } } if (v3.length < 1) { v4 = 0; while (v4 < 12) { if (_root.bw.enemyarray[v4][4][0] > 0) { v3.push(v4); } ++v4; } } var v6 = random(v3.length); var tnum = v3[v6]; trace('I picked enemy number ' + tnum); var mob = _root.bw['field' + obj[8]]['unit_' + num]; trace('I am : ' + mob); mob.obj = obj; if (!_root.bw.speedy) { if (_root.bw.dbl) { mob.ttl = 4; } else { mob.ttl = 9; } } else { mob.ttl = 1; } mob.num = who; mob.orig = mob._x; mob.origy = mob._y; if (obj[12] == 25 && random(100) < 5) { mob.dbl = true; } else { if (obj[6][6] == 10 && random(100) < 5) { mob.dbl = true; } else { mob.dbl = false; } } if (!_root.bw.speedy) { if (_root.bw.dbl) { com.greensock.TweenLite.to(mob, 0.1, {'_x': 250, '_y': 75, '_xscale': 150, '_yscale': 150}); } else { com.greensock.TweenLite.to(mob, 0.2, {'_x': 250, '_y': 75, '_xscale': 150, '_yscale': 150}); } } else { com.greensock.TweenLite.to(mob, 0.01, {'_x': 250, '_y': 75, '_xscale': 150, '_yscale': 150}); } mob.played = false; mob.moved = false; mob.onEnterFrame = function () { --this.ttl; trace(this.ttl); if (this.ttl <= 0) { if (!this.played) { this.internal.sprite.gotoAndStop('swiperight'); this.played = true; if (!_root.bw.speedy) { if (_root.bw.dbl) { this.ttl = 4; } else { this.ttl = 9; } } else { this.ttl = 1; } } else { if (this.played && this.moved) { this.moved = false; this.played = false; _root.bw.processing = false; trace('turning off sprite'); if (!this.dbl) { _root.bw.turnarray.splice(this.num, 1); } delete this.onEnterFrame; } else { if (!this.moved) { _root.bw.doattack(this.obj, tnum); if (!_root.bw.speedy) { if (_root.bw.dbl) { com.greensock.TweenLite.to(mob, 0.1, {'_x': this.orig, '_y': this.origy, '_xscale': 100, '_yscale': 100}); this.ttl = 4; } else { com.greensock.TweenLite.to(mob, 0.2, {'_x': this.orig, '_y': this.origy, '_xscale': 100, '_yscale': 100}); this.ttl = 9; } } else { com.greensock.TweenLite.to(mob, 0.01, {'_x': this.orig, '_y': this.origy, '_xscale': 100, '_yscale': 100}); this.ttl = 1; } this.moved = true; } } } } }; } else { if (obj[7] == 'ranged') { trace('I\'m a ranged unit so I\'m going to shoot and attack an enemy'); var v3 = []; var v4 = 0; while (v4 < _root.bw.enemyarray.length) { if (_root.bw.enemyarray[v4][4][0] > 0) { v3.push(v4); } ++v4; } var v6 = random(v3.length); var tnum = v3[v6]; trace('I picked enemy number ' + tnum); var mob = _root.bw['field' + obj[8]]['unit_' + num]; trace('I am : ' + mob); mob.obj = obj; if (!_root.bw.speedy) { if (_root.bw.dbl) { mob.ttl = 4; } else { mob.ttl = 9; } } else { mob.ttl = 1; } mob.num = who; mob.orig = mob._x; mob.origy = mob._y; if (!_root.bw.speedy) { if (_root.bw.dbl) { com.greensock.TweenLite.to(mob, 0.1, {'_x': 250, '_y': 75, '_xscale': 150, '_yscale': 150}); } else { com.greensock.TweenLite.to(mob, 0.2, {'_x': 250, '_y': 75, '_xscale': 150, '_yscale': 150}); } } else { com.greensock.TweenLite.to(mob, 0.01, {'_x': 250, '_y': 75, '_xscale': 150, '_yscale': 150}); } mob.played = false; mob.moved = false; mob.onEnterFrame = function () { --this.ttl; trace(this.ttl); if (this.ttl <= 0) { if (!this.played) { this.internal.sprite.gotoAndStop('shootright'); this.played = true; if (!_root.bw.speedy) { if (_root.bw.dbl) { this.ttl = 4; } else { this.ttl = 9; } } else { this.ttl = 1; } } else { if (this.played && this.moved) { this.moved = false; this.played = false; _root.bw.processing = false; _root.bw.turnarray.splice(this.num, 1); delete this.onEnterFrame; } else { if (!this.moved) { _root.bw.doattack(this.obj, tnum); if (!_root.bw.speedy) { if (_root.bw.dbl) { com.greensock.TweenLite.to(mob, 0.1, {'_x': this.orig, '_y': this.origy, '_xscale': 100, '_yscale': 100}); this.ttl = 4; } else { com.greensock.TweenLite.to(mob, 0.2, {'_x': this.orig, '_y': this.origy, '_xscale': 100, '_yscale': 100}); this.ttl = 9; } } else { com.greensock.TweenLite.to(mob, 0.01, {'_x': this.orig, '_y': this.origy, '_xscale': 100, '_yscale': 100}); this.ttl = 1; } this.moved = true; } } } } }; } else { trace('I\'m a magical unit so I\'m going to shoot and attack an enemy'); var v3 = []; var v4 = 0; while (v4 < 8) { if (_root.bw.enemyarray[v4][4][0] > 0) { v3.push(v4); } ++v4; } if (v3.length < 1) { v4 = 0; while (v4 < 12) { if (_root.bw.enemyarray[v4][4][0] > 0) { v3.push(v4); } ++v4; } } var v6 = random(v3.length); var tnum = v3[v6]; trace('I picked enemy number ' + tnum); var mob = _root.bw['field' + obj[8]]['unit_' + num]; trace('I am : ' + mob); mob.obj = obj; if (!_root.bw.speedy) { if (_root.bw.dbl) { mob.ttl = 4; } else { mob.ttl = 9; } } else { mob.ttl = 1; } mob.num = who; mob.orig = mob._x; mob.origy = mob._y; if (!_root.bw.speedy) { if (_root.bw.dbl) { com.greensock.TweenLite.to(mob, 0.1, {'_x': 250, '_y': 75, '_xscale': 150, '_yscale': 150}); } else { com.greensock.TweenLite.to(mob, 0.2, {'_x': 250, '_y': 75, '_xscale': 150, '_yscale': 150}); } } else { com.greensock.TweenLite.to(mob, 0.01, {'_x': 250, '_y': 75, '_xscale': 150, '_yscale': 150}); } mob.played = false; mob.moved = false; mob.onEnterFrame = function () { --this.ttl; trace(this.ttl); if (this.ttl <= 0) { if (!this.played) { this.internal.sprite.gotoAndStop('castright'); this.played = true; if (!_root.bw.speedy) { if (_root.bw.dbl) { this.ttl = 4; } else { this.ttl = 9; } } else { this.ttl = 1; } } else { if (this.played && this.moved) { this.moved = false; this.played = false; _root.bw.processing = false; _root.bw.turnarray.splice(this.num, 1); delete this.onEnterFrame; } else { if (!this.moved) { _root.bw.doattack(this.obj, tnum); if (!_root.bw.speedy) { if (_root.bw.dbl) { com.greensock.TweenLite.to(mob, 0.1, {'_x': this.orig, '_y': this.origy, '_xscale': 100, '_yscale': 100}); this.ttl = 4; } else { com.greensock.TweenLite.to(mob, 0.2, {'_x': this.orig, '_y': this.origy, '_xscale': 100, '_yscale': 100}); this.ttl = 9; } } else { com.greensock.TweenLite.to(mob, 0.01, {'_x': this.orig, '_y': this.origy, '_xscale': 100, '_yscale': 100}); this.ttl = 1; } this.moved = true; } } } } }; } } } else { trace('I\'m a monster so I\'m going to attack a player unit'); var v3 = []; if (obj[10] == 'melee') { var v4 = 0; while (v4 < 4) { if (_root.playerstuff.party[v4][3][0] > 0) { v3.push(v4); if (_root.playerstuff.party[v4][12] != 16) { v3.push(v4); } if (_root.playerstuff.party[v4][12] == 15) { v3.push(v4); v3.push(v4); if (_root.playerstuff.party.length > 3) { v3.push(v4); } if (_root.playerstuff.party.length > 6) { v3.push(v4); } if (_root.playerstuff.party.length > 10) { v3.push(v4); } if (_root.playerstuff.party.length > 11) { v3.push(v4); } } } ++v4; } trace('AFTER MELEE CHOICES, MY POSSSIBLE TARGETS ARE: ' + v3); if (v3.length < 1) { v4 = 0; while (v4 < 8) { if (_root.playerstuff.party[v4][3][0] > 0) { v3.push(v4); if (_root.playerstuff.party[v4][12] != 16) { v3.push(v4); } if (_root.playerstuff.party[v4][12] == 15) { v3.push(v4); v3.push(v4); if (_root.playerstuff.party.length > 3) { v3.push(v4); } if (_root.playerstuff.party.length > 6) { v3.push(v4); } if (_root.playerstuff.party.length > 10) { v3.push(v4); } if (_root.playerstuff.party.length > 11) { v3.push(v4); } } } ++v4; } } if (v3.length < 1) { v4 = 0; while (v4 < 12) { if (_root.playerstuff.party[v4][3][0] > 0) { v3.push(v4); if (_root.playerstuff.party[v4][12] != 16) { v3.push(v4); } if (_root.playerstuff.party[v4][12] == 15) { v3.push(v4); v3.push(v4); if (_root.playerstuff.party.length > 3) { v3.push(v4); } if (_root.playerstuff.party.length > 6) { v3.push(v4); } if (_root.playerstuff.party.length > 10) { v3.push(v4); } if (_root.playerstuff.party.length > 11) { v3.push(v4); } } } ++v4; } } } else { if (obj[10] == 'ranged') { var v4 = 0; while (v4 < 12) { if (_root.playerstuff.party[v4][3][0] > 0) { v3.push(v4); if (_root.playerstuff.party[v4][12] != 16) { v3.push(v4); } if (_root.playerstuff.party[v4][12] == 15) { v3.push(v4); v3.push(v4); if (_root.playerstuff.party.length > 3) { v3.push(v4); } if (_root.playerstuff.party.length > 6) { v3.push(v4); } if (_root.playerstuff.party.length > 10) { v3.push(v4); } if (_root.playerstuff.party.length > 11) { v3.push(v4); } } } ++v4; } } else { var v4 = 0; while (v4 < 8) { if (_root.playerstuff.party[v4][3][0] > 0) { v3.push(v4); if (_root.playerstuff.party[v4][12] != 16) { v3.push(v4); } if (_root.playerstuff.party[v4][12] == 15) { v3.push(v4); v3.push(v4); if (_root.playerstuff.party.length > 3) { v3.push(v4); } if (_root.playerstuff.party.length > 6) { v3.push(v4); } if (_root.playerstuff.party.length > 10) { v3.push(v4); } if (_root.playerstuff.party.length > 11) { v3.push(v4); } } } ++v4; } if (v3.length < 1) { v4 = 0; while (v4 < 12) { if (_root.playerstuff.party[v4][3][0] > 0) { v3.push(v4); if (_root.playerstuff.party[v4][12] != 16) { v3.push(v4); } if (_root.playerstuff.party[v4][12] == 15) { v3.push(v4); v3.push(v4); if (_root.playerstuff.party.length > 3) { v3.push(v4); } if (_root.playerstuff.party.length > 6) { v3.push(v4); } if (_root.playerstuff.party.length > 10) { v3.push(v4); } if (_root.playerstuff.party.length > 11) { v3.push(v4); } } } ++v4; } } } } trace('possible targets: ' + v3); var v6 = random(v3.length); var tnum = v3[v6]; trace('I picked hero number ' + tnum); trace('I\'m on field ' + obj[11] + ' and I\'m enemy number ' + num); var mob = _root.bw['field' + obj[11]]['enemy_' + num]; trace('I am : ' + mob); mob.obj = obj; if (!_root.bw.speedy) { if (_root.bw.dbl) { mob.ttl = 4; } else { mob.ttl = 9; } } else { mob.ttl = 1; } mob.num = who; mob.orig = mob._x; mob.origy = mob._y; if (!_root.bw.speedy) { if (_root.bw.dbl) { com.greensock.TweenLite.to(mob, 0.1, {'_x': 350, '_y': 75, '_xscale': 150, '_yscale': 150}); } else { com.greensock.TweenLite.to(mob, 0.2, {'_x': 350, '_y': 75, '_xscale': 150, '_yscale': 150}); } } else { com.greensock.TweenLite.to(mob, 0.01, {'_x': 350, '_y': 75, '_xscale': 150, '_yscale': 150}); } mob.played = false; mob.moved = false; mob.onEnterFrame = function () { --this.ttl; trace(this.ttl); if (this.ttl <= 0) { if (!this.played) { this.gotoAndStop('attack'); this.played = true; if (!_root.bw.speedy) { if (_root.bw.dbl) { this.ttl = 4; } else { this.ttl = 9; } } else { this.ttl = 1; } } else { if (this.played && this.moved) { this.moved = false; this.played = false; _root.bw.processing = false; trace('turning off sprite'); _root.bw.turnarray.splice(this.num, 1); delete this.onEnterFrame; } else { if (!this.moved) { _root.bw.doenemyattack(this.obj, tnum); if (!_root.bw.speedy) { if (_root.bw.dbl) { com.greensock.TweenLite.to(mob, 0.1, {'_x': this.orig, '_y': this.origy, '_xscale': 100, '_yscale': 100}); this.ttl = 4; } else { com.greensock.TweenLite.to(mob, 0.2, {'_x': this.orig, '_y': this.origy, '_xscale': 100, '_yscale': 100}); this.ttl = 9; } } else { com.greensock.TweenLite.to(mob, 0.01, {'_x': this.orig, '_y': this.origy, '_xscale': 100, '_yscale': 100}); this.ttl = 1; } this.moved = true; } } } } }; } } function doenemyattack(obj, mob) { dospellbuttons(); trace('Doing actual attack for obj: ' + obj + ' against hero ' + mob); var v9 = obj[3]; var v10 = _root.playerstuff.party[mob][12]; var v7 = _root.playerstuff.party[mob][5][3]; trace('BASE DAMAGE: ' + v9); if (v10 == 19 && random(100) < 2) { tellnews(_root.playerstuff.party[mob][0] + ' avoided the enemy attack completely'); } else { if (v7 == 7 && random(100) < 2) { tellnews(_root.playerstuff.party[mob][0] + ' avoided the enemy attack completely thanks to their ' + _root.playerstuff.party[mob][5][0]); } else { if (obj[9] == 'physical') { var v6 = v9 - _root.playerstuff.party[mob][5][1]; tellnews(obj[0] + ' attacked ' + _root.playerstuff.party[mob][0] + ' dealing ' + v9 + ' physical damage. ' + _root.playerstuff.party[mob][5][0] + ' absorbed ' + _root.playerstuff.party[mob][5][1] + '.'); if (_root.bw.bonusphys > 0) { v6 -= _root.bw.bonusphys; tellnews('Your spell reduced damage by a further ' + _root.bw.bonusphys); } if (random(2) == 1) { _root.bw.attachMovie('slashz', 'slasher', _root.bw.getNextHighestDepth(), {'_x': _root.bw['field' + _root.playerstuff.party[mob][8]]['unit_' + mob]._x + 10, '_y': _root.bw['field' + _root.playerstuff.party[mob][8]]['unit_' + mob]._y, '_xscale': 65, '_yscale': 65}); } else { _root.bw.attachMovie('slashz', 'slasher', _root.bw.getNextHighestDepth(), {'_x': _root.bw['field' + _root.playerstuff.party[mob][8]]['unit_' + mob]._x + 20, '_y': _root.bw['field' + _root.playerstuff.party[mob][8]]['unit_' + mob]._y, '_xscale': -65, '_yscale': 65}); } if (v10 == 23) { v6 -= v6 / 2; } if (v7 == 2) { var v12 = Math.round(v6 / 5); if (v12 > 0) { tellnews(_root.playerstuff.party[mob][0] + '\'s ' + _root.playerstuff.party[mob][5][0] + ' healed ' + v12 + ' damage.'); _root.playerstuff.party[mob][3][0] += v12; if (_root.playerstuff.party[mob][3][0] > _root.playerstuff.party[mob][3][1]) { _root.playerstuff.party[mob][3][0] = _root.playerstuff.party[mob][3][1]; } var v11 = random(100000); _root.bw.attachMovie('healsign', 'healsign' + v11, _root.bw.getNextHighestDepth(), {'_x': _root.bw['field' + _root.playerstuff.party[mob][8]]['unit_' + mob]._x + 10, '_y': _root.bw['field' + _root.playerstuff.party[mob][8]]['unit_' + mob]._y}); if (random(2) == 1) { var v14 = _root.bw['field' + _root.playerstuff.party[mob][8]]['unit_' + mob]._x + random(50); } else { var v14 = _root.bw['field' + _root.playerstuff.party[mob][8]]['unit_' + mob]._x - random(50); } com.greensock.TweenLite.to(_root.bw['healsign' + v11], 1.5, {'_x': v14, '_y': -25, '_alpha': 0}); _root.bw['healsign' + v11].line1.text = '+' + v12; _root.bw['healsign' + v11].ttl = 45; _root.bw['healsign' + v11].onEnterFrame = function () { --this.ttl; if (this.ttl == 0) { this.removeMovieClip(); } }; } } if (v7 == 4) { var v13 = Math.round(v6 / 5); tellnews(_root.playerstuff.party[mob][0] + '\'s ' + _root.playerstuff.party[mob][5][0] + ' reflected ' + v13 + ' damage.'); obj[4][0] -= v13; if (obj[4][0] <= 0) { obj[4][0] = 1; } v11 = random(100000); _root.bw.attachMovie('damagesign', 'damagesign' + v11, _root.bw.getNextHighestDepth(), {'_x': obj[8][0], '_y': obj[8][1]}); if (random(2) == 1) { v14 = obj[8][0] + random(50); } else { v14 = obj[8][0] - random(50); } com.greensock.TweenLite.to(_root.bw['damagesign' + v11], 1.5, {'_x': v14, '_y': -25, '_alpha': 0}); _root.bw['damagesign' + v11].line1.text = '-' + v13; _root.bw['damagesign' + v11].ttl = 45; _root.bw['damagesign' + v11].onEnterFrame = function () { --this.ttl; if (this.ttl == 0) { this.removeMovieClip(); } }; } } else { if (obj[9] == 'ranged') { var v6 = v9 - _root.playerstuff.party[mob][5][1]; if (v10 == 24) { v6 -= v6 / 2; } if (v7 == 2) { var v12 = Math.round(v6 / 5); if (v12 > 0) { tellnews(_root.playerstuff.party[mob][0] + '\'s ' + _root.playerstuff.party[mob][5][0] + ' healed ' + v12 + ' damage.'); _root.playerstuff.party[mob][3][0] += v12; if (_root.playerstuff.party[mob][3][0] > _root.playerstuff.party[mob][3][1]) { _root.playerstuff.party[mob][3][0] = _root.playerstuff.party[mob][3][1]; } var v11 = random(100000); _root.bw.attachMovie('healsign', 'healsign' + v11, _root.bw.getNextHighestDepth(), {'_x': _root.bw['field' + _root.playerstuff.party[mob][8]]['unit_' + mob]._x + 10, '_y': _root.bw['field' + _root.playerstuff.party[mob][8]]['unit_' + mob]._y}); if (random(2) == 1) { var v14 = _root.bw['field' + _root.playerstuff.party[mob][8]]['unit_' + mob]._x + random(50); } else { var v14 = _root.bw['field' + _root.playerstuff.party[mob][8]]['unit_' + mob]._x - random(50); } com.greensock.TweenLite.to(_root.bw['healsign' + v11], 1.5, {'_x': v14, '_y': -25, '_alpha': 0}); _root.bw['healsign' + v11].line1.text = '+' + v12; _root.bw['healsign' + v11].ttl = 45; _root.bw['healsign' + v11].onEnterFrame = function () { --this.ttl; if (this.ttl == 0) { this.removeMovieClip(); } }; } } if (v7 == 4) { var v13 = Math.round(v6 / 5); tellnews(_root.playerstuff.party[mob][0] + '\'s ' + _root.playerstuff.party[mob][5][0] + ' reflected ' + v13 + ' damage.'); obj[4][0] -= v13; if (obj[4][0] <= 0) { obj[4][0] = 1; } v11 = random(100000); _root.bw.attachMovie('damagesign', 'damagesign' + v11, _root.bw.getNextHighestDepth(), {'_x': obj[8][0], '_y': obj[8][1]}); if (random(2) == 1) { v14 = obj[8][0] + random(50); } else { v14 = obj[8][0] - random(50); } com.greensock.TweenLite.to(_root.bw['damagesign' + v11], 1.5, {'_x': v14, '_y': -25, '_alpha': 0}); _root.bw['damagesign' + v11].line1.text = '-' + v13; _root.bw['damagesign' + v11].ttl = 45; _root.bw['damagesign' + v11].onEnterFrame = function () { --this.ttl; if (this.ttl == 0) { this.removeMovieClip(); } }; } tellnews(obj[0] + ' shot at ' + _root.playerstuff.party[mob][0] + ' dealing ' + v9 + ' ranged physical damage. ' + _root.playerstuff.party[mob][5][0] + ' absorbed ' + _root.playerstuff.party[mob][5][1] + '.'); if (_root.bw.bonusphys > 0) { v6 -= _root.bw.bonusphys; tellnews('Your spell reduced damage by a further ' + _root.bw.bonusphys); } } else { var v6 = v9 - _root.playerstuff.party[mob][5][2]; if (v10 == 22) { v6 -= v6 / 2; } if (v7 == 1) { actdam -= v6 / 5; Math.round(actdam); } if (v7 == 3) { var v12 = Math.round(v6 / 5); if (v12 > 0) { tellnews(_root.playerstuff.party[mob][0] + '\'s ' + _root.playerstuff.party[mob][5][0] + ' healed ' + v12 + ' damage.'); _root.playerstuff.party[mob][3][0] += v12; if (_root.playerstuff.party[mob][3][0] > _root.playerstuff.party[mob][3][1]) { _root.playerstuff.party[mob][3][0] = _root.playerstuff.party[mob][3][1]; } var v11 = random(100000); _root.bw.attachMovie('healsign', 'healsign' + v11, _root.bw.getNextHighestDepth(), {'_x': _root.bw['field' + _root.playerstuff.party[mob][8]]['unit_' + mob]._x + 10, '_y': _root.bw['field' + _root.playerstuff.party[mob][8]]['unit_' + mob]._y}); if (random(2) == 1) { var v14 = _root.bw['field' + _root.playerstuff.party[mob][8]]['unit_' + mob]._x + random(50); } else { var v14 = _root.bw['field' + _root.playerstuff.party[mob][8]]['unit_' + mob]._x - random(50); } com.greensock.TweenLite.to(_root.bw['healsign' + v11], 1.5, {'_x': v14, '_y': -25, '_alpha': 0}); _root.bw['healsign' + v11].line1.text = '+' + v12; _root.bw['healsign' + v11].ttl = 45; _root.bw['healsign' + v11].onEnterFrame = function () { --this.ttl; if (this.ttl == 0) { this.removeMovieClip(); } }; } } if (v7 == 5) { var v13 = Math.round(v6 / 5); tellnews(_root.playerstuff.party[mob][0] + '\'s ' + _root.playerstuff.party[mob][5][0] + ' reflected ' + v13 + ' damage.'); obj[4][0] -= v13; if (obj[4][0] <= 0) { obj[4][0] = 1; } v11 = random(100000); _root.bw.attachMovie('damagesign', 'damagesign' + v11, _root.bw.getNextHighestDepth(), {'_x': obj[8][0], '_y': obj[8][1]}); if (random(2) == 1) { v14 = obj[8][0] + random(50); } else { v14 = obj[8][0] - random(50); } com.greensock.TweenLite.to(_root.bw['damagesign' + v11], 1.5, {'_x': v14, '_y': -25, '_alpha': 0}); _root.bw['damagesign' + v11].line1.text = '-' + v13; _root.bw['damagesign' + v11].ttl = 45; _root.bw['damagesign' + v11].onEnterFrame = function () { --this.ttl; if (this.ttl == 0) { this.removeMovieClip(); } }; } tellnews(obj[0] + ' blasted ' + _root.playerstuff.party[mob][0] + ' dealing ' + v9 + ' magical damage. ' + _root.playerstuff.party[mob][5][0] + ' absorbed ' + _root.playerstuff.party[mob][5][2] + '.'); _root.bw.attachMovie('magicblast', 'magicblast', _root.bw.getNextHighestDepth(), {'_x': _root.bw['field' + _root.playerstuff.party[mob][8]]['unit_' + mob]._x + 10, '_y': _root.bw['field' + _root.playerstuff.party[mob][8]]['unit_' + mob]._y, '_xscale': -65, '_yscale': 65}); } } if (_root.bw.bonusmag > 0) { v6 -= _root.bw.bonusmag; tellnews('Your spell reduced damage by a further ' + _root.bw.bonusmag); } if (v10 == 14) { v6 -= 3; tellnews(_root.playerstuff.party[mob][0] + '\'s special skill absorbs a further 3 damage'); } if (v6 <= 0) { v6 = 1; } _root.playerstuff.party[mob][3][0] -= v6; v11 = random(100000); _root.bw.attachMovie('damagesign', 'damagesign' + v11, _root.bw.getNextHighestDepth(), {'_x': _root.bw['field' + _root.playerstuff.party[mob][8]]['unit_' + mob]._x, '_y': _root.bw['field' + _root.playerstuff.party[mob][8]]['unit_' + mob]._y}); if (random(2) == 1) { v14 = _root.bw['field' + _root.playerstuff.party[mob][8]]['unit_' + mob]._x + random(50); } else { v14 = _root.bw['field' + _root.playerstuff.party[mob][8]]['unit_' + mob]._x - random(50); } com.greensock.TweenLite.to(_root.bw['damagesign' + v11], 1.5, {'_x': v14, '_y': -25, '_alpha': 0}); _root.bw['damagesign' + v11].line1.text = '-' + v6; _root.bw['damagesign' + v11].ttl = 45; _root.bw['damagesign' + v11].onEnterFrame = function () { --this.ttl; if (this.ttl == 0) { this.removeMovieClip(); } }; trace('target\'s health is now ' + _root.playerstuff.party[mob][3][0]); } } if (_root.playerstuff.party[mob][3][0] <= 0) { _root.playerstuff.party[mob][3][0] = 0; trace('KILLING HERO'); _root.playsfx('death'); tellnews('Oh No! ' + _root.playerstuff.party[mob][0] + ' was knocked out!'); var v4 = 0; while (v4 < _root.bw.turnarray.length) { if (_root.bw.turnarray[v4].type == 'p' && _root.bw.turnarray[v4].num == mob) { _root.bw.turnarray.splice(v4, 1); } ++v4; } _root.bw['field' + _root.playerstuff.party[mob][8]]['unit_' + mob].internal.sprite.gotoAndStop('die'); var v8 = 0; v4 = 0; while (v4 < _root.playerstuff.party.length) { if (_root.playerstuff.party[v4][3][0] > 0) { ++v8; } ++v4; } if (v8 == 0) { endbattle('lose'); _root.playsfx('lose'); _root.bw.paused = true; } } } function doattack(obj, mob) { dospellbuttons(); trace('Doing actual attack for obj: ' + obj + ' against mob ' + mob); var v6 = Math.round(obj[6][3] * obj[10]); trace('BASE DAMAGE: ' + v6); var v8 = obj[12]; var v16 = obj[6][6]; var v14 = obj[5][3]; if (v8 == 2 && _root.bw.enemyarray[mob][9] == 'magic') { v6 += Math.round(v6 * 0.25); } if (v8 == 6 && random(100) < 3) { v6 += v6; } if (v8 == 10 && _root.bw.enemyarray[mob][9] > 26) { v6 += Math.round(v6 / 2); } if (v8 == 11 && _root.dungeonfight) { v6 += Math.round(v6 * 0.25); } if (v8 == 13) { obj[3][0] += Math.round(obj[3][1] / 20); if (obj[3][0] > obj[3][1]) { obj[3][0] = obj[3][1]; } tellnews(obj[0] + ' regenerated ' + Math.round(obj[3][1] / 20) + ' health'); } if (v8 == 8) { var v5 = 0; while (v5 < _root.playerstuff.party.length) { if (obj[11] < 3) { healhero(v5, obj[11] + 1); } else { if (obj[11] < 8) { healhero(v5, Math.ceil(obj[11] / 2) + 1); } } ++v5; } tellnews(obj[0] + ' healed all party members for ' + (3 + obj[11]) + ' health!'); } if (wepspecial == 1 && random(100) < 3) { v6 += v6; } if (wepspecial == 7 && _root.bw.enemyarray[mob][9] > 26) { v6 += Math.round(v6 / 2); } if (wepspecial == 9 && _root.dungeonfight) { v6 += Math.round(v6 * 0.25); } if (v14 == 6) { obj[3][0] += Math.round(obj[3][1] / 20); if (obj[3][0] > obj[3][1]) { obj[3][0] = obj[3][1]; } tellnews(obj[0] + '\'s armour regenerated ' + Math.round(obj[3][1] / 20) + ' health'); } if (_root.bw.powerups > 0) { v6 += v6; --_root.bw.powerups; dospellbuttons(); } trace('My special attack is: ' + v8); if (obj[6][5] == 'physical') { if (v8 == 12) { if (wepspecial == 6) { var v10 = v6 - Math.round(_root.bw.enemyarray[mob][5] * 0.55); } else { var v10 = v6 - Math.round(_root.bw.enemyarray[mob][5] * 0.75); } } else { if (wepspecial == 6) { var v10 = v6 - Math.round(_root.bw.enemyarray[mob][5] * 0.8); } else { var v10 = v6 - _root.bw.enemyarray[mob][5]; } } tellnews(obj[0] + ' attacked ' + _root.bw.enemyarray[mob][0] + ' with ' + obj[6][0] + ' dealing ' + v6 + ' physical damage. Armour absorbed ' + _root.bw.enemyarray[mob][5] + '.'); if (random(2) == 1) { _root.bw.attachMovie('slashz', 'slasher', _root.bw.getNextHighestDepth(), {'_x': _root.bw.enemyarray[mob][8][0], '_y': _root.bw.enemyarray[mob][8][1], '_xscale': 65, '_yscale': 65}); } else { _root.bw.attachMovie('slashz', 'slasher', _root.bw.getNextHighestDepth(), {'_x': _root.bw.enemyarray[mob][8][0] + 10, '_y': _root.bw.enemyarray[mob][8][1], '_xscale': -65, '_yscale': 65}); } } else { if (obj[6][5] == 'ranged') { if (v8 == 12) { var v10 = v6 - Math.round(_root.bw.enemyarray[mob][5] * 0.75); } else { var v10 = v6 - _root.bw.enemyarray[mob][5]; } tellnews(obj[0] + ' shot ' + _root.bw.enemyarray[mob][0] + ' with ' + obj[6][0] + ' dealing ' + v6 + ' ranged physical damage. Armour absorbed ' + _root.bw.enemyarray[mob][5] + '.'); _root.bw.attachMovie('bowarrow', 'bowarrow', _root.bw.getNextHighestDepth(), {'_x': _root.bw.enemyarray[mob][8][0] - 10, '_y': _root.bw.enemyarray[mob][8][1], '_xscale': 80, '_yscale': 80}); } else { tellnews(obj[0] + ' blasted ' + _root.bw.enemyarray[mob][0] + ' with ' + obj[6][0] + ' dealing ' + v6 + ' magical damage. Armour absorbed ' + _root.bw.enemyarray[mob][6] + '.'); if (v8 == 12) { var v10 = v6 - Math.round(_root.bw.enemyarray[mob][6] * 0.75); } else { var v10 = v6 - _root.bw.enemyarray[mob][6]; } _root.bw.attachMovie('magicblast', 'magicblast', _root.bw.getNextHighestDepth(), {'_x': _root.bw.enemyarray[mob][8][0] + 10, '_y': _root.bw.enemyarray[mob][8][1], '_xscale': -65, '_yscale': 65}); } } if (v10 <= 0) { v10 = 1; } _root.bw.enemyarray[mob][4][0] -= v10; if (wepspecial == 2) { obj[3][0] += Math.round(v10 / 5); if (obj[3][0] > obj[3][1]) { obj[3][0] = obj[3][1]; } tellnews(obj[0] + ' Leeched ' + Math.round(v10 / 5) + ' hit points due to' + obj[6][0] + '\'s Ability.'); } if (_root.bw.vamps > 0) { obj[3][0] += v10; if (obj[3][0] > obj[3][1]) { obj[3][0] = obj[3][1]; } --_root.bw.vamps; tellnews(obj[0] + ' Sucked up ' + v10 + ' hit points due to Vampirism. ' + _root.bw.vamps + ' Vampiric attacks left.'); } var v13 = random(100000); _root.bw.attachMovie('damagesign', 'damagesign' + v13, _root.bw.getNextHighestDepth(), {'_x': _root.bw.enemyarray[mob][8][0], '_y': _root.bw.enemyarray[mob][8][1]}); if (random(2) == 1) { var v15 = _root.bw.enemyarray[mob][8][0] + random(50); } else { var v15 = _root.bw.enemyarray[mob][8][0] - random(50); } com.greensock.TweenLite.to(_root.bw['damagesign' + v13], 1.5, {'_x': v15, '_y': -25, '_alpha': 0}); _root.bw['damagesign' + v13].line1.text = '-' + v10; _root.bw['damagesign' + v13].ttl = 45; _root.bw['damagesign' + v13].onEnterFrame = function () { --this.ttl; if (this.ttl == 0) { this.removeMovieClip(); } }; if (wepspecial == 5 && random(100) < 3) { _root.bw.enemyarray[mob][16] = true; } trace('target\'s health is now ' + _root.bw.enemyarray[mob][4][0]); if (_root.bw.enemyarray[mob][4][0] <= 0) { _root.bw.enemyarray[mob][4][0] = 0; trace('KILLING ENEMY'); _root.playsfx('death'); if (v8 == 17) { obj[3][0] += Math.round(obj[3][1] * 0.2); if (obj[3][0] > obj[3][1]) { obj[3][0] = obj[3][1]; } } if (wepspecial == 8) { obj[3][0] += Math.round(obj[3][1] * 0.15); if (obj[3][0] > obj[3][1]) { obj[3][0] = obj[3][1]; } } var v7 = 0; while (v7 < _root.bw.turnarray.length) { if (_root.bw.turnarray[v7].type == 'e' && _root.bw.turnarray[v7].num == mob) { _root.bw.turnarray.splice(v7, 1); } ++v7; } var v9 = _root.bw.enemyarray[mob][13]; if (v14 == 9) { v9 += Math.round(v9 / 5); } if (v8 == 9) { v9 += Math.round(v9 / 2); } if (_root.bw.diggin) { v9 += v9; } if (_root.bw.hasscholar) { var v11 = _root.bw.enemyarray[mob][12] + Math.round(_root.bw.enemyarray[mob][12] * 0.2); } else { var v11 = _root.bw.enemyarray[mob][12]; } if (v14 == 10) { v11 += Math.round(v11 / 4); } if (_root.bw.tutting) { v11 += v11; } tellnews(_root.bw.enemyarray[mob][0] + ' was killed and dropped ' + v9 + 'gp! ' + obj[0] + ' earned ' + v11 + ' experience points!'); obj[9][0] += v11; _root.playerstuff.tracker[12] += v11; ++_root.playerstuff.tracker[0]; _root.playerstuff.wealth += v9; _root.playerstuff.tracker[6] += v9; com.greensock.TweenLite.to(_root.healths['ehp' + (mob + 1)], 0.2, {'_y': 200, '_alpha': 0}); _root.bw['field' + _root.bw.enemyarray[mob][11]]['enemy_' + mob].gotoAndStop('die'); _root.bw['field' + _root.bw.enemyarray[mob][11]].attachMovie('gravestone', 'egravestone_' + mob, _root.bw['field' + _root.bw.enemyarray[mob][11]].getNextHighestDepth(), {'_x': _root.bw.enemyarray[mob][8][0] + 14, '_y': _root.bw.enemyarray[mob][8][1] - 18}); var v12 = 0; v7 = 0; while (v7 < _root.bw.enemyarray.length) { if (_root.bw.enemyarray[v7][4][0] > 0) { ++v12; } ++v7; } if (v12 == 0) { endbattle('win'); _root.playsfx('win'); _root.playsfx('cheer'); _root.bw.paused = true; } } } function endbattle(stat) { var v4 = 0; while (v4 < _root.playerstuff.party.length) { var v3 = 1; while (v3 < 5) { if (_root.playerstuff.party[v4][3][0] > 0) { if (random(2) == 1) { _root.bw['field' + v3]['unit_' + v4].internal.sprite.gotoAndStop('yay'); } else { _root.bw['field' + v3]['unit_' + v4].internal.sprite.gotoAndStop('victory'); } } ++v3; } ++v4; } _root.bw.controller.removeMovieClip(); if (stat == 'win') { tellnews('We won the battle! Yippee!'); _root.bw.createEmptyMovieClip('winpause', _root.bw.getNextHighestDepth()); _root.bw.winpause.ttl = 60; var v5 = 0; if (_root.detailmap[bwhy][bex][3] == 1) { v5 = 10; } else { if (_root.detailmap[bwhy][bex][3] == 2) { v5 = 14; } else { if (_root.detailmap[bwhy][bex][3] == 3) { v5 = 18; } else { if (_root.detailmap[bwhy][bex][3] == 4) { v5 = 20; } else { if (_root.detailmap[bwhy][bex][3] == 5) { v5 = 22; } else { if (_root.detailmap[bwhy][bex][3] == 6) { v5 = 24; } else { if (_root.detailmap[bwhy][bex][3] == 7) { v5 = 25; } else { if (_root.detailmap[bwhy][bex][3] == 8) { v5 = 25; } else { if (_root.detailmap[bwhy][bex][3] == 9) { v5 = 25; } } } } } } } } } if (_root.bw.bounty) { v5 = 1000; _root.bw.bounty = false; } if (_root.playerstuff.hastreasurehunter) { v5 += 2; } if (random(100) + 1 < v5 && !_root.astralchest) { trace('GOT AN ITEM!!!'); var v6 = _root.createtreasure(_root.detailmap[bwhy][bex][3] + 1); _root.openchest(v6); _root.playerstuff.inventory.push(v6.slice()); } else { if (_root.astralchest) { trace('GOT AN ASTRAL CHEST!!!'); _root.openastralchest(); _root.astralchest = false; } } v4 = 0; while (v4 < _root.breederlist.length) { if (_root.detailmap[bwhy][bex][1][0] == _root.breederlist[v4][0] && _root.detailmap[bwhy][bex][1][1] == _root.breederlist[v4][1]) { trace('FOUND THE SPAWNER THIS GROUP CAME FROM, HAS SPAWNED ' + _root.contentdetailsmap[_root.breederlist[v4][0]][_root.breederlist[v4][1]][8]); --_root.contentdetailsmap[_root.breederlist[v4][0]][_root.breederlist[v4][1]][8]; trace('NOW SPAWNED ' + _root.contentdetailsmap[_root.breederlist[v4][0]][_root.breederlist[v4][1]][8]); } ++v4; } _root.creepmap[bwhy][bex] = 0; _root.detailmap[bwhy][bex] = 0; _root.bw.winpause.onEnterFrame = function () { --this.ttl; if (this.ttl == 0) { com.greensock.TweenLite.to(_root.bw, 0.25, {'_y': 880}); com.greensock.TweenLite.to(_root.bw.bg, 0.2, {'_alpha': 0}); com.greensock.TweenLite.to(_root.healths, 0.25, {'_y': -200}); _root.healths.ttl = 10; _root.healths.onEnterFrame = function () { --this.ttl; if (this.ttl <= 0) { this._visible = false; delete this.onEnterFrame; } }; if (!_root.dungeonfight && !_root.spawnfight) { _root.drawmap(true); _root.busy = false; _root.setuppartybar(); _root.checkquest(); } else { if (_root.dungeonfight) { _root.dungeonfight = false; _root.setuppartybar(); if (_root.bossbattle) { _root.bossbattle = false; _root.dungeonwindow.enddungeon(true); } } else { _root.setuppartybar(); _root.spawnfight = false; _root.endspawnfight(); _root.busy = false; } } this.removeMovieClip(); } }; v4 = 0; while (v4 < _root.playerstuff.party.length) { if (_root.playerstuff.party[v4][3][0] <= 0) { _root.playerstuff.party[v4][3][0] = 1; } ++v4; } _root.healths.disable(); trace('ENDING BATTLE - YOU WON!!'); } else { v4 = 0; while (v4 < _root.playerstuff.party.length) { if (_root.playerstuff.party[v4][3][0] <= 0) { _root.playerstuff.party[v4][3][0] = 1; } ++v4; } trace('ENDING BATTLE - YOU LOST!!'); _root.bw.createEmptyMovieClip('winpause', _root.bw.getNextHighestDepth()); _root.bw.winpause.ttl = 60; _root.bw.winpause.onEnterFrame = function () { --this.ttl; if (this.ttl == 0) { _root.dungeonfight = false; _root.spawnfight = false; _root.teleportplayer(); this.removeMovieClip(); } }; } } gobutton.onRelease = function () { if (battleready) { startbattle(); this._alpha = 50; this.enabled = false; this.gotoAndStop(1); } }; autobutton.onRelease = function () { var v2 = random(6); if (v2 == 0) { tellnews('Hold onto your hats! Hyperspeed Combat has been enabled!'); } else { if (v2 == 1) { tellnews('We\'re going into Hyperspeed Combat!'); } else { if (v2 == 2) { tellnews('No time to enjoy the aesthetics? Hyperspeed Combat is online.'); } else { if (v2 == 3) { tellnews('We\'ve turned on Hyperspeed Combat. ' + _root.playerstuff.party[random(_root.playerstuff.party.length)][0] + ' is a bit scared about it.'); } else { if (v2 == 4) { tellnews('Let\'s get this done fast. Hyperspeed Combat is ready and activated.'); } else { tellnews('Let\'s rock and roll, Hyperspeed Combat has been initiated.'); } } } } } _root.bw.speedy = true; _root.bw.dbl = false; displayspeed(); }; dblbutton.onRelease = function () { var v2 = random(6); if (v2 == 0) { tellnews('Hold onto your hats! Double Speed Combat has been enabled!'); } else { if (v2 == 1) { tellnews('We\'re going into Double SpeedCombat!'); } else { if (v2 == 2) { tellnews('No time to enjoy the aesthetics? Double Speed Combat is online.'); } else { if (v2 == 3) { tellnews('We\'ve turned on Double Speed Combat. ' + _root.playerstuff.party[random(_root.playerstuff.party.length)][0] + ' is a bit scared about it.'); } else { if (v2 == 4) { tellnews('Let\'s get this done fast. Double Speed Combat is ready and activated.'); } else { tellnews('Let\'s rock and roll, Double Speed Combat has been initiated.'); } } } } } _root.bw.dbl = true; _root.bw.speedy = false; displayspeed(); }; normbutton.onRelease = function () { tellnews('Returning to normal speed combat'); _root.bw.dbl = false; _root.bw.speedy = false; displayspeed(); }; bg.onRelease = function () {}; bg.useHandCursor = false; } } movieClip 1564 { } movieClip 1568 { } movieClip 1573 healths { frame 1 { function initializethis() { this._visible = true; this.ehp1._y = 23; this.ehp5._y = 23; this.ehp9._y = 23; this.php1._y = 23; this.php5._y = 23; this.php9._y = 23; this.ehp2._y = 59; this.ehp6._y = 59; this.ehp10._y = 59; this.php2._y = 59; this.php6._y = 59; this.php10._y = 59; this.ehp3._y = 95; this.ehp7._y = 95; this.ehp11._y = 95; this.php3._y = 95; this.php7._y = 95; this.php11._y = 95; this.ehp4._y = 131; this.ehp8._y = 131; this.ehp12._y = 131; this.php4._y = 131; this.php8._y = 131; this.php12._y = 131; trace('activatig health bars'); var v3 = 0; while (v3 < 13) { this['ehp' + v3].mynum = v3 - 1; this['ehp' + v3].onEnterFrame = function () { this.bar._width = Math.round(88 * (_root.bw.enemyarray[this.mynum][4][0] / _root.bw.enemyarray[this.mynum][4][1])); }; this['php' + v3].mynum = v3 - 1; this['php' + v3].onEnterFrame = function () { this.bar._width = Math.round(88 * (_root.playerstuff.party[this.mynum][3][0] / _root.playerstuff.party[this.mynum][3][1])); if (_root.playerstuff.party[this.mynum][3][0] <= 0) { this.potbut.gotoAndStop(2); } else { this.potbut.gotoAndStop(1); } }; ++v3; } } function disable() { var v2 = 0; while (v2 < 13) { delete this['ehp' + v2].onEnterFrame; delete this['php' + v2].onEnterFrame; ++v2; } } } } movieClip 1603 { } frame 10 { function playsfx(which) { effect = new Sound(sfxhold); effect.attachSound(which); effect.setVolume(_root.sfxvol); effect.start(0, 1); } savegame = SharedObject.getLocal('undefined_littleprotplanes', '/'); if (savegame.data.bgvol == undefined) { _root.bgvol = 30; _root.sfxvol = 60; savegame.data.bgvol = 30; savegame.data.sfxvol = 60; savegame.flush(); } else { _root.bgvol = savegame.data.bgvol; _root.sfxvol = savegame.data.sfxvol; } } frame 10 { function setuptip(stuff, cols, size) { myTooltip.setCustomVars({'myTexts': stuff, 'myFonts': 'my_font1', 'myColors': cols, 'mySizes': size, 'myLengths': '200|200|200|200|200|200|200|200', 'myVerticalSpaces': '3|2|2|2|2|2|2|2|2', 'textXPos': 3, 'farX': 3, 'strokeColor': '0xCCB700', 'strokeAlpha': 90, 'strokeWidth': 2, 'backgroundColor': '0x000000|0x000000|0x000000', 'backgroundAlpha': 90, 'backgroundWidth': 0, 'backgroundHeight': 0, 'addShadow': 'true', 'shadowAngleInDegrees': 45, 'shadowDistance': 5, 'shadowColor': '0x000000', 'shadowAlpha': '1', 'shadowBlurX': '5', 'shadowBlurY': '5', 'shadowStrength': '0.9', 'shadowQuality': '3', 'tipOrientation': 'right', 'tipWidth': 7, 'tipHeight': 40, 'tipInclination': -40, 'tipX': 68, 'tipAutoMove': 'true', 'XDistanceFromCursor': 40, 'YDistanceFromCursor': 82, 'alignHoriz': 'right', 'alignVerti': 'top', 'stageToleranceX': 10, 'stageToleranceY': 10}); } function setuptip2(stuff, cols, size) { myTooltip.setCustomVars({'myTexts': stuff, 'myFonts': 'my_font1', 'myColors': cols, 'mySizes': size, 'myLengths': '200|200|200|200|200|200|200|200', 'myVerticalSpaces': '0|0|2|2|2|2|2|2|2', 'textXPos': 3, 'farX': 3, 'strokeColor': '0xCCB700', 'strokeAlpha': 90, 'strokeWidth': 2, 'backgroundColor': '0x000000|0x000000|0x000000', 'backgroundAlpha': 90, 'backgroundWidth': 0, 'backgroundHeight': 0, 'addShadow': 'true', 'shadowAngleInDegrees': 45, 'shadowDistance': 5, 'shadowColor': '0x000000', 'shadowAlpha': '1', 'shadowBlurX': '5', 'shadowBlurY': '5', 'shadowStrength': '0.9', 'shadowQuality': '3', 'tipOrientation': 'right', 'tipWidth': 7, 'tipHeight': 40, 'tipInclination': -40, 'tipX': 68, 'tipAutoMove': 'true', 'XDistanceFromCursor': 40, 'YDistanceFromCursor': 82, 'alignHoriz': 'right', 'alignVerti': 'bottom', 'stageToleranceX': 10, 'stageToleranceY': 0}); } function setuptip3(stuff, cols, size) { myTooltip2.setCustomVars({'myTexts': stuff, 'myFonts': 'my_font1', 'myColors': cols, 'mySizes': size, 'myLengths': '200|200|200|200|200|200|200|200', 'myVerticalSpaces': '3|2|2|2|2|2|2|2|2', 'textXPos': 3, 'farX': 3, 'strokeColor': '0xCCB700', 'strokeAlpha': 90, 'strokeWidth': 2, 'backgroundColor': '0x000000|0x000000|0x000000', 'backgroundAlpha': 90, 'backgroundWidth': 0, 'backgroundHeight': 0, 'addShadow': 'true', 'shadowAngleInDegrees': 45, 'shadowDistance': 5, 'shadowColor': '0x000000', 'shadowAlpha': '1', 'shadowBlurX': '5', 'shadowBlurY': '5', 'shadowStrength': '0.9', 'shadowQuality': '3', 'tipOrientation': 'right', 'tipWidth': 7, 'tipHeight': 40, 'tipInclination': -40, 'tipX': 68, 'tipAutoMove': 'true', 'XDistanceFromCursor': 140, 'YDistanceFromCursor': 382, 'alignHoriz': 'right', 'alignVerti': 'top', 'stageToleranceX': 10, 'stageToleranceY': 10}); } var myTooltip = oxylus.Tooltip03.Tooltip.attach(); } frame 10 { optop = false; options.yes.onRollOver = function () { this.gotoAndStop(2); }; options.yes.onRollOut = function () { this.gotoAndStop(1); }; options.yes.onRelease = function () { this.gotoAndStop(1); com.greensock.TweenLite.to(_root.options, 0.2, {'_y': -465}); _root.optop = false; _root.playsfx('click'); }; stop(); plane.inn.sprite1.armnum = 2; plane.inn.sprite1.wepnum = 5; plane.inn.sprite1.internal.sprite.gotoAndStop('right'); plane.inn.sprite2.armnum = 12; plane.inn.sprite2.wepnum = 50; plane.inn.sprite2.internal.sprite.gotoAndStop('left'); plane.inn.sprite3.armnum = 3; plane.inn.sprite3.wepnum = 11; plane.inn.sprite4.armnum = 18; plane.inn.sprite4.wepnum = 66; plane.inn.sprite4.internal.sprite.gotoAndStop('right'); ccg.onRollOver = function () { if (!optop) { this.gotoAndStop(2); } }; ccg.onRollOut = function () { if (!optop) { this.gotoAndStop(1); } }; ccg.onRelease = function () { if (!optop) { _root.gotoAndStop(11); _root.playsfx('click'); } }; sang.onRollOver = function () { if (!optop) { this.gotoAndStop(2); } }; sang.onRollOut = function () { if (!optop) { this.gotoAndStop(1); } }; sang.onRelease = function () { if (!optop) { if (_root.savegame.data.inprogress) { this.gotoAndStop(1); _root.optop = true; _root.attachMovie('rusure', 'rusure', _root.getNextHighestDepth(), {'_x': 120, '_y': -150}); _root.rusure.line1.text = 'Are you sure?'; _root.rusure.line2.text = 'Starting a new game will overwrite your old one'; _root.rusure.no.onRollOver = function () { this.gotoAndStop(2); }; _root.rusure.no.onRollOut = function () { this.gotoAndStop(1); }; _root.rusure.yes.onRollOver = function () { this.gotoAndStop(2); }; _root.rusure.yes.onRollOut = function () { this.gotoAndStop(1); }; _root.rusure.no.onRelease = function () { _root.playsfx('click'); _root.optop = false; _root.rusure.removeMovieClip(); }; _root.rusure.yes.onRelease = function () { _root.playsfx('click'); _root.optop = false; _root.newgame = true; _root.gotoAndStop(11); _root.playsfx('click'); _root.rusure.removeMovieClip(); }; com.greensock.TweenLite.to(_root.rusure, 0.25, {'_y': 220}); } else { _root.newgame = true; _root.gotoAndStop(11); _root.playsfx('click'); } } }; go.onRollOver = function () { if (!optop) { this.gotoAndStop(2); } }; go.onRollOut = function () { if (!optop) { this.gotoAndStop(1); } }; go.onRelease = function () { if (!optop) { this.gotoAndStop(1); options.runit(); _root.optop = true; _root.playsfx('open'); com.greensock.TweenLite.to(_root.options, 0.5, {'_y': 51}); } }; vpw.onRollOver = function () { if (!optop) { this.gotoAndStop(2); } }; vpw.onRollOut = function () { if (!optop) { this.gotoAndStop(1); } }; vpw.onRelease = function () { if (!optop) { _root.playsfx('click'); getURL('http://www.facebook.com/ArmorGames', '_blank'); } }; pmg.onRollOver = function () { if (!optop) { this.gotoAndStop(2); } }; pmg.onRollOut = function () { if (!optop) { this.gotoAndStop(1); } }; pmg.onRelease = function () { if (!optop) { _root.playsfx('click'); getURL('http://armor.ag/MoreGames', '_blank'); } }; twitter.onRollOver = function () { if (!optop) { this.gotoAndStop(2); } }; twitter.onRollOut = function () { if (!optop) { this.gotoAndStop(1); } }; twitter.onRelease = function () { if (!optop) { this.gotoAndStop(1); getURL('https://twitter.com/intent/user?screen_name=UndefinedT', '_blank'); } }; if (_root.ret2men) { trace('RET 2 MEN'); _root.ret2men = false; _root.attachMovie('blackout', 'blackoutz', _root.getNextHighestDepth()); _root.blackoutz.onRelease = function () {}; _root.blackoutz.useHandCursor = false; _root.blackoutz.ttl = 10; _root.ret2men = true; _root.blackoutz.onEnterFrame = function () { --this.ttl; if (this.ttl == 0) { this.removeMovieClip(); } }; com.greensock.TweenLite.to(_root.blackoutz, 0.2, {'_alpha': 0}); } else { _root.playsfx('click'); bgmusic = new Sound(bghold); bgmusic.attachSound('bgmusic'); bgmusic.setVolume(_root.bgvol); bgmusic.start(0, 9999); } } frame 10 { if (_root.savegame.data.inprogress == undefined) { ccg._alpha = 25; ccg.enabled = false; } else { ccg._alpha = 100; ccg.enabled = true; } trace('inprogress: ' + _root.savegame.data.inprogress); agLink.onRelease = function () { getURL('http://armor.ag/MoreGames', '_blank'); }; } // unknown tag 88 length 79 movieClip 1606 { } movieClip 1607 { } movieClip 1609 { } movieClip 1611 { } movieClip 1613 { } movieClip 1614 { } movieClip 1615 { } movieClip 1616 { } movieClip 1617 { frame 1 { if (random(2) == 0) { anim1._visible = false; } else { anim2._visible = false; } textbutton.onRelease = function () { getURL('http://underscoreundefined.net/', '_blank'); }; } } movieClip 1621 { } movieClip 1622 { } movieClip 1623 { } movieClip 1626 { } movieClip 1628 { frame 1 { stop(); } frame 2 { _root.playsfx('hover'); } } movieClip 1631 { frame 1 { stop(); } frame 2 { _root.playsfx('hover'); } } movieClip 1634 { frame 1 { stop(); } frame 2 { _root.playsfx('hover'); } } movieClip 1637 { frame 1 { stop(); } frame 2 { _root.playsfx('hover'); } } movieClip 1640 { frame 1 { stop(); } frame 2 { _root.playsfx('hover'); } } movieClip 1645 { frame 1 { stop(); } } movieClip 1647 { } movieClip 1652 { } movieClip 1661 { } movieClip 1668 { } movieClip 1670 { frame 1 { function updategfx() { var v3 = 1; while (v3 < 11) { this['m' + v3].gotoAndStop(1); this['s' + v3].gotoAndStop(1); this['m' + v3].myvol = v3 * 10; this['s' + v3].myvol = v3 * 10; this['m' + v3].onRelease = function () { _root.playsfx('click'); _root.bgvol = this.myvol; _root.bgmusic.setVolume(this.myvol); _root.savegame.data.bgvol = this.myvol; _root.savegame.flush(); _root.options.updategfx(); }; this['s' + v3].onRelease = function () { _root.playsfx('click'); _root.sfxvol = this.myvol; _root.savegame.data.sfxvol = this.myvol; _root.savegame.flush(); _root.options.updategfx(); }; ++v3; } v3 = 1; while (v3 < _root.bgvol / 10 + 1) { this['m' + v3].gotoAndStop(2); ++v3; } v3 = 1; while (v3 < _root.sfxvol / 10 + 1) { this['s' + v3].gotoAndStop(2); ++v3; } } twit1._alpha = 0; twit2._alpha = 0; twit3._alpha = 0; twit1.onRelease = function () { getURL('https://twitter.com/intent/user?screen_name=UndefinedT', '_blank'); }; twit2.onRelease = function () { getURL('https://twitter.com/intent/user?screen_name=danctheduck', '_blank'); }; twit3.onRelease = function () { getURL('https://twitter.com/intent/user?screen_name=indiedeadpixel', '_blank'); }; twit4.onRelease = function () { getURL('https://twitter.com/intent/user?screen_name=DoctorKraft', '_blank'); }; mmute.onRelease = function () { _root.bgvol = 0; _root.bgmusic.setVolume(this.myvol); _root.savegame.data.bgvol = this.myvol; _root.savegame.flush(); _root.options.updategfx(); }; smute.onRelease = function () { _root.sfxvol = 0; _root.savegame.data.sfxvol = this.myvol; _root.savegame.flush(); _root.options.updategfx(); _root.playsfx('click'); }; updategfx(); } } movieClip 1672 { } frame 11 { function showwelcomewindow(embark, game) { _root.playsfx('open'); _root.welcomewindow._alpha = 0; _root.welcomewindow._y = 106; com.greensock.TweenLite.to(_root.welcomewindow, 0.5, {'_alpha': 100}); if (embark) { _root.welcomewindow.gotoAndStop(3); } else { if (game) { _root.welcomewindow.gotoAndStop(4); _root.busy = true; } } } function removewelcomewindow(tut) { com.greensock.TweenLite.to(_root.welcomewindow, 0.5, {'_alpha': 0, '_y': 750}); if (tut && _root.doingtutorial) { _root.tutstuff._visible = true; _root.busy = true; } else { _root.busy = false; } } function nextwelcome() { com.greensock.TweenLite.to(_root.welcomewindow, 0.3, {'_alpha': 0}); _root.welcomewindow.ttl = 8; _root.welcomewindow.onEnterFrame = function () { --this.ttl; if (this.ttl == 0) { _root.welcomewindow.gotoAndStop(2); com.greensock.TweenLite.to(this, 0.3, {'_alpha': 100}); } }; } _root.healths.removeMovieClip(); _root.bw.removeMovieClip(); } frame 11 { function startplane(size) { _root.worldsize = _root['plane' + size].worldsize.slice(); var v3 = 3; _root.selectedplane = size; if (size == 1) { v3 = 12; } else { if (size == 4) { v3 = 8; } else { if (size == 3) { v3 == 6; } else { if (size == 4) { v3 = 5; } } } } _root.generteinfo = [_root['plane' + size].basedungeons, _root['plane' + size].dungeonweight.slice(), _root['plane' + size].basebreeders, _root['plane' + size].basebreeddist.slice(), _root['plane' + size].numheroes, _root['plane' + size].numherotypes, _root['plane' + size].numascenders, _root['plane' + size].numshops, _root['plane' + size].numalchemists, _root['plane' + size].numhouses, _root['plane' + size].baseturns, v3]; trace('created Generation info as: ' + _root.generteinfo); _root.window.gotoAndStop(1); _root.window.gotoAndStop(3); _root.window.setup(); com.greensock.TweenLite.to(_root.window, 0.5, {'_x': -3}); } plane1.gotoAndPlay(random(380)); plane2.gotoAndPlay(random(380)); plane3.gotoAndPlay(random(380)); plane4.gotoAndPlay(random(380)); plane5.gotoAndPlay(random(380)); mainmenu.onRollOver = function () { this.gotoAndStop(2); }; mainmenu.onRollOut = function () { this.gotoAndStop(1); }; mainmenu.onRelease = function () { _root.playsfx('click'); _root.attachMovie('blackout', 'blackoutz', _root.getNextHighestDepth()); _root.blackoutz._alpha = 0; _root.blackoutz.onRelease = function () {}; _root.blackoutz.useHandCursor = false; _root.blackoutz.ttl = 15; _root.ret2men = true; _root.blackoutz.onEnterFrame = function () { --this.ttl; if (this.ttl == 0) { _root.gotoAndStop(10); this.removeMovieClip(); } }; com.greensock.TweenLite.to(_root.blackoutz, 0.5, {'_alpha': 100}); }; plane1.onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip('Plane of Extralargia<new_line>Extra Large Map<new_line>(70x70)<new_line><new_line>Base Turns: ' + this.baseturns + '<new_line>Click to Descend<new_line>Astral Chests: 12<new_line>', '0xFFFFFF|0xFDE724|0x22FFFF|0xFFFFFF|0x66FF00|0xFFFFFF', '22|16|14|14|18'); _root.myTooltip.show({'delay': 0.2, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; plane1.onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; plane1.onRelease = function () { _root.playsfx('click'); startplane(1); if (_root.newgame) { _root.showwelcomewindow(true); } _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; plane2.onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip('Plane of Largeria<new_line>Large Map<new_line>(55x55)<new_line><new_line>Base Turns: ' + this.baseturns + '<new_line>Astral Chests: 8<new_line>Click to Descend<new_line>', '0xFFFFFF|0xFDE724|0x22FFFF|0xFFFFFF|0x66FF00|0xFFFFFF', '22|16|14|14|18'); _root.myTooltip.show({'delay': 0.2, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; plane2.onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; plane2.onRelease = function () { _root.playsfx('click'); startplane(2); if (_root.newgame) { _root.showwelcomewindow(true); } _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; plane3.onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip('Plane of Mediumosa<new_line>Medium Map<new_line>(40x40)<new_line><new_line>Base Turns: ' + this.baseturns + '<new_line>Astral Chests: 6<new_line>Click to Descend<new_line>', '0xFFFFFF|0xFDE724|0x22FFFF|0xFFFFFF|0x66FF00|0xFFFFFF', '22|16|14|14|18'); _root.myTooltip.show({'delay': 0.2, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; plane3.onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; plane3.onRelease = function () { _root.playsfx('click'); startplane(3); if (_root.newgame) { _root.showwelcomewindow(true); } _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; plane4.onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip('Plane of Smalleria<new_line>Small Map<new_line>(30x30)<new_line><new_line>Base Turns: ' + this.baseturns + '<new_line>Astral Chests: 5<new_line>Click to Descend<new_line>', '0xFFFFFF|0xFDE724|0x22FFFF|0xFFFFFF|0x66FF00|0xFFFFFF', '22|16|14|14|18'); _root.myTooltip.show({'delay': 0.2, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; plane4.onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; plane4.onRelease = function () { startplane(4); _root.playsfx('click'); if (_root.newgame) { _root.showwelcomewindow(true); } _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; plane5.onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip('Plane of Tinia<new_line>Tiny Map<new_line>(20x20)<new_line><new_line>Base Turns: ' + this.baseturns + '<new_line>Astral Chests: 3<new_line>Click to Descend<new_line>', '0xFFFFFF|0xFDE724|0x22FFFF|0xFFFFFF|0x66FF00|0xFFFFFF', '22|16|14|14|18'); _root.myTooltip.show({'delay': 0.2, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; plane5.onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; plane5.onRelease = function () { startplane(5); _root.playsfx('click'); if (_root.newgame) { _root.showwelcomewindow(true); } _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; plane6.onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip('Plane of Tutoria<new_line>Miniscule Map<new_line>(10x10)<new_line><new_line>Astral Chests: 2<new_line>Click to Descend<new_line>', '0xFFFFFF|0xFDE724|0x22FFFF|0xFFFFFF|0x66FF00|0xFFFFFF', '22|16|14|14|18'); _root.myTooltip.show({'delay': 0.2, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; plane6.onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; plane6.onRelease = function () { _root.playsfx('click'); startplane(6); _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; diffi.onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip('Difficulty Level<new_line>While earning Astral Energy makes you more powerful it also drains it from the planes making them increasingly dangerous and less hospitable in the future.<new_line>', '0xFFFFFF|0xFDE724|0x22FFFF|0xFDE724', '22|16|16|16'); _root.myTooltip.show({'delay': 0.2, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; diffi.onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; astgem.onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip2('Astral Energy<new_line>Your current reserves of Astral Energy, you can spend this on advantages when you select a plane.<new_line>', '0xFFFFFF|0xFDE724|0x22FFFF|0xFDE724', '22|16|16|16'); _root.myTooltip.show({'delay': 0.2, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; astgem.onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; if (_root.returningtoastral) { trace('RETURNING TO ASTRAL PLANE'); _root.returningtoastral = false; _root.attachMovie('blackout', 'blackoutz', _root.getNextHighestDepth()); _root.blackoutz.onRelease = function () {}; _root.blackoutz.useHandCursor = false; _root.blackoutz.ttl = 15; _root.blackoutz.onEnterFrame = function () { --this.ttl; if (this.ttl == 0) { this.removeMovieClip(); } }; com.greensock.TweenLite.to(_root.blackoutz, 0.55, {'_alpha': 0}); } } frame 11 { if (_root.newgame) { _root.globalstuff = {}; _root.globalstuff.spell1 = true; _root.globalstuff.spell2 = true; _root.globalstuff.spell3 = false; _root.globalstuff.spell4 = false; _root.globalstuff.spell5 = false; _root.globalstuff.spell6 = false; _root.globalstuff.spell7 = false; _root.globalstuff.spell8 = false; _root.globalstuff.spell9 = false; _root.globalstuff.spell10 = false; _root.globalstuff.unlockedheroes = [99, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; _root.globalstuff.astralenergy = 50; _root.globalstuff.spentenergy = 0; _root.globalstuff.maxparty = 3; _root.globalstuff.maxitems = 2; _root.globalstuff.startinggold = 50; _root.globalstuff.goldcost = 30; _root.globalstuff.startingmana = 5; _root.globalstuff.manacost = 30; _root.globalstuff.startingpotions = 5; _root.globalstuff.potioncost = 20; _root.globalstuff.startingfeathers = 1; _root.globalstuff.feathercost = 100; _root.globalstuff.herocost = 10; _root.globalstuff.turncost = 100; _root.globalstuff.tracker = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; _root.globalstuff.astralarmoury = []; _root.globalstuff.astralarmourysize = 10; _root.globalstuff.maxspells = 2; _root.globalstuff.startexp = 0; _root.globalstuff.bonusturns = 0; _root.savegame.data.inprogress = true; _root.savegame.data.globalstuff = _root.globalstuff; _root.savegame.data.gameplaying = false; _root.savegame.flush(); _root.showwelcomewindow(); _root.doingtutorial = true; _root.plane1._visible = false; _root.plane2._visible = false; _root.plane3._visible = false; _root.plane4._visible = false; _root.plane5._visible = false; skipit.onRollOver = function () { this.gotoAndStop(2); }; skipit.onRollOut = function () { this.gotoAndStop(1); }; skipit.onRelease = function () { _root.playsfx('click'); _root.plane6._visible = false; _root.plane5._visible = true; _root.plane4._visible = true; _root.plane3._visible = true; _root.plane2._visible = true; _root.plane1._visible = true; _root.doingtutorial = false; this._visible = false; _root.globalstuff.astralenergy = 125; _root.energyline.text = _root.globalstuff.astralenergy; }; } else { _root.globalstuff = _root.savegame.data.globalstuff; _root.doingtutorial = false; trace('gameplaying: ' + _root.savegame.data.gameplaying); if (_root.savegame.data.gameplaying) { _root.gotoAndPlay(13); } _root.plane6._visible = false; skipit._visible = false; } stop(); energyline.text = _root.globalstuff.astralenergy; } frame 11 { function generatemap() { var v2 = 1; var v6 = _root.globalstuff.astralenergy + _root.globalstuff.spentenergy; if (v6 > 1000) { ++v2; } if (v6 > 2000) { ++v2; } if (v6 > 3000) { ++v2; } if (v6 > 5000) { ++v2; } if (v6 > 6500) { ++v2; } if (v6 > 9000) { ++v2; } if (v6 > 11000) { ++v2; } if (v6 > 14000) { ++v2; } if (v6 > 18000) { ++v2; } if (v6 > 22000) { ++v2; } if (v6 > 25000) { ++v2; } if (v6 > 30000) { ++v2; } if (v6 > 35000) { ++v2; } if (v6 > 40000) { ++v2; } if (v6 > 45000) { ++v2; } if (v6 > 52000) { ++v2; } if (v6 > 60000) { ++v2; } if (v6 > 70000) { ++v2; } if (v6 > 80000) { ++v2; } if (v6 > 90000) { ++v2; } if (v6 > 100000) { ++v2; } if (v6 > 125000) { ++v2; } if (v6 > 150000) { ++v2; } if (v6 > 200000) { ++v2; } plane6.baseturns = 1000; plane6.worldsize = [14, 14]; plane6.basedungeons = 2; plane6.dungeonweight = [2, 0, 0, 0, 0]; plane6.basebreeders = 2; plane6.basebreeddist = [2, 0, 0]; plane6.numheroes = 3; plane6.numherotypes = 20; plane6.numascenders = 1; plane6.numshops = 1; plane6.numalchemists = 1; plane6.numhouses = 1; plane1.worldsize = [70, 70]; plane1.baseturns = 950; var v15 = 90; if (v2 < 3) { var v4 = [35, 20, 15, 10, 10]; } else { if (v2 < 6) { var v4 = [32, 22, 16, 10, 10]; } else { if (v2 < 9) { var v4 = [30, 22, 16, 11, 11]; } else { if (v2 < 12) { var v4 = [30, 20, 18, 11, 11]; } else { if (v2 < 15) { var v4 = [30, 18, 18, 12, 12]; } else { if (v2 < 18) { var v4 = [28, 18, 18, 13, 13]; } else { if (v2 < 20) { var v4 = [28, 16, 18, 13, 15]; } else { if (v2 < 23) { var v4 = [28, 15, 17, 15, 15]; } else { var v4 = [25, 15, 15, 15, 20]; } } } } } } } } v15 += v2; var v5 = 35; var v7 = 60; var v13 = 80; var v12 = 90; var v3 = 0; while (v3 < v2) { if (v3 < 5) { v5 -= 2; } else { if (v3 < 10) { v5 -= 1; v7 -= 1; } else { if (v3 < 15) { v5 -= 1; v7 -= 1; } else { v5 -= 1; v7 -= 1; } } } var v8 = random(100) + 1; if (v8 < v5) { ++v4[0]; } else { if (v8 < v7) { ++v4[1]; } else { if (v8 < v13) { ++v4[2]; } else { if (v8 < v12) { ++v4[3]; } else { ++v4[4]; } } } } ++v3; } var v11 = 20; v5 = 35; v7 = 60; v13 = 80; v12 = 90; v3 = 0; while (v3 < v11) { if (v3 < 5) { v5 -= 2; } else { if (v3 < 10) { v5 -= 1; v7 -= 1; } else { if (v3 < 15) { v5 -= 1; v7 -= 1; } else { v5 -= 1; v7 -= 1; } } } v8 = random(100) + 1; if (v8 < v5) { ++v4[0]; } else { if (v8 < v7) { ++v4[1]; } else { if (v8 < v13) { ++v4[2]; } else { if (v8 < v12) { ++v4[3]; } else { ++v4[4]; } } } } ++v3; } plane1.dungeonweight = v4.slice(); plane1.basedungeons = v15; var v16 = 110; v16 += v2; var v10 = v2; plane1.basebreeders = v16; var v9 = [60, 30, 20]; v5 = 60; v7 = 85; v3 = 0; while (v3 < v10) { if (v3 < 5) { v5 -= 2; } else { if (v3 < 10) { v5 -= 1; v7 -= 1; } else { if (v3 < 15) { v5 -= 1; v7 -= 1; } else { v5 -= 2; v7 -= 2; } } } v8 = random(100) + 1; if (v8 < v5) { ++v9[0]; } else { if (v8 < v7) { ++v9[1]; } else { ++v9[2]; } } ++v3; } plane1.basebreeddist = v9.slice(); var v14 = 80; v14 -= Math.round(v2 / 2); plane1.numheroes = v14; plane1.numherotypes = 15; if (v2 > 6) { plane1.numherotypes = 17; } else { if (v2 > 12) { plane1.numherotypes = 16; } else { if (v2 > 16) { plane1.numherotypes = 15; } else { if (v2 > 20) { plane1.numherotypes = 14; } else { if (v2 > 23) { plane1.numherotypes = 13; } } } } } plane1.numascenders = 6; if (v2 > 6) { plane1.numascenders = 4; } else { if (v2 > 14) { plane1.numascenders = 3; } else { if (v2 > 20) { plane1.numascenders = 2; } } } plane1.numshops = 6; if (v2 > 6) { plane1.numshops = 4; } else { if (v2 > 14) { plane1.numshops = 3; } else { if (v2 > 20) { plane1.numshops = 2; } } } plane1.numalchemists = 6; if (v2 > 6) { plane1.numalchemists = 4; } else { if (v2 > 14) { plane1.numalchemists = 3; } else { if (v2 > 20) { plane1.numalchemists = 2; } } } plane1.numhouses = 5; if (v2 > 6) { plane1.numhouses = 4; } else { if (v2 > 14) { plane1.numhouses = 3; } else { if (v2 > 20) { plane1.numhouses = 2; } } } plane2.worldsize = [55, 55]; plane2.baseturns = 700; v15 = 55; if (v2 < 3) { v4 = [20, 15, 10, 5, 5]; } else { if (v2 < 6) { v4 = [19, 16, 10, 5, 5]; } else { if (v2 < 9) { v4 = [18, 16, 11, 5, 5]; } else { if (v2 < 12) { v4 = [18, 15, 12, 5, 5]; } else { if (v2 < 15) { v4 = [18, 14, 12, 6, 5]; } else { if (v2 < 18) { v4 = [18, 12, 12, 7, 6]; } else { if (v2 < 20) { v4 = [16, 12, 12, 8, 7]; } else { if (v2 < 23) { v4 = [15, 11, 11, 10, 8]; } else { v4 = [15, 10, 10, 10, 10]; } } } } } } } } v15 += Math.round(v2 / 1.5); v10 = Math.round(v2 / 1.5); v5 = 35; v7 = 60; v13 = 80; v12 = 90; v3 = 0; while (v3 < v10) { if (v3 < 5) { v5 -= 2; } else { if (v3 < 10) { v5 -= 1; v7 -= 1; } else { if (v3 < 15) { v5 -= 1; v7 -= 1; } else { v5 -= 1; v7 -= 1; } } } v8 = random(100) + 1; if (v8 < v5) { ++v4[0]; } else { if (v8 < v7) { ++v4[1]; } else { if (v8 < v13) { ++v4[2]; } else { if (v8 < v12) { ++v4[3]; } else { ++v4[4]; } } } } ++v3; } plane2.dungeonweight = v4.slice(); plane2.basedungeons = v15; v16 = 65; v16 += v2; v10 = Math.round(v2 / 1.5); plane2.basebreeders = v16; v9 = [35, 20, 10]; v5 = 60; v7 = 85; v3 = 0; while (v3 < v10) { if (v3 < 5) { v5 -= 2; } else { if (v3 < 10) { v5 -= 1; v7 -= 1; } else { if (v3 < 15) { v5 -= 1; v7 -= 1; } else { v5 -= 2; v7 -= 2; } } } v8 = random(100) + 1; if (v8 < v5) { ++v9[0]; } else { if (v8 < v7) { ++v9[1]; } else { ++v9[2]; } } ++v3; } plane2.basebreeddist = v9.slice(); v14 = 42; v14 -= Math.round(v2 / 2); plane2.numheroes = v14; plane2.numherotypes = 13; if (v2 > 6) { plane2.numherotypes = 17; } else { if (v2 > 12) { plane2.numherotypes = 16; } else { if (v2 > 16) { plane2.numherotypes = 15; } else { if (v2 > 20) { plane2.numherotypes = 14; } else { if (v2 > 23) { plane2.numherotypes = 13; } } } } } plane2.numascenders = 3; if (v2 > 6) { plane2.numascenders = 3; } else { if (v2 > 14) { plane2.numascenders = 2; } else { if (v2 > 20) { plane2.numascenders = 1; } } } plane2.numshops = 3; if (v2 > 6) { plane2.numshops = 3; } else { if (v2 > 14) { plane2.numshops = 2; } else { if (v2 > 20) { plane2.numshops = 1; } } } plane2.numalchemists = 3; if (v2 > 6) { plane2.numalchemists = 3; } else { if (v2 > 14) { plane2.numalchemists = 2; } else { if (v2 > 20) { plane2.numalchemists = 1; } } } plane2.numhouses = 3; if (v2 > 6) { plane2.numhouses = 3; } else { if (v2 > 14) { plane2.numhouses = 2; } else { if (v2 > 20) { plane2.numhouses = 1; } } } plane3.worldsize = [40, 40]; plane3.baseturns = 600; v15 = 35; if (v2 < 3) { v4 = [12, 8, 6, 5, 4]; } else { if (v2 < 6) { v4 = [11, 9, 6, 5, 4]; } else { if (v2 < 9) { v4 = [11, 8, 7, 5, 4]; } else { if (v2 < 12) { v4 = [10, 8, 8, 5, 4]; } else { if (v2 < 15) { v4 = [10, 7, 7, 6, 5]; } else { if (v2 < 18) { v4 = [10, 6, 7, 6, 6]; } else { if (v2 < 20) { v4 = [10, 5, 5, 8, 7]; } else { if (v2 < 23) { v4 = [10, 5, 5, 6, 9]; } else { v4 = [8, 5, 5, 8, 9]; } } } } } } } } v15 += Math.round(v2 / 2); v10 = Math.round(v2 / 2); v5 = 35; v7 = 60; v13 = 80; v12 = 90; v3 = 0; while (v3 < v10) { if (v3 < 5) { v5 -= 2; } else { if (v3 < 10) { v5 -= 1; v7 -= 1; } else { if (v3 < 15) { v5 -= 1; v7 -= 1; } else { v5 -= 1; v7 -= 1; } } } v8 = random(100) + 1; if (v8 < v5) { ++v4[0]; } else { if (v8 < v7) { ++v4[1]; } else { if (v8 < v13) { ++v4[2]; } else { if (v8 < v12) { ++v4[3]; } else { ++v4[4]; } } } } ++v3; } plane3.dungeonweight = v4.slice(); plane3.basedungeons = v15; v16 = 35; v16 += Math.round(v2 / 2); v10 = Math.round(v2 / 2); plane3.basebreeders = v16; v9 = [20, 10, 5]; v5 = 60; v7 = 85; v3 = 0; while (v3 < v10) { if (v3 < 5) { v5 -= 2; } else { if (v3 < 10) { v5 -= 1; v7 -= 1; } else { if (v3 < 15) { v5 -= 1; v7 -= 1; } else { v5 -= 2; v7 -= 2; } } } v8 = random(100) + 1; if (v8 < v5) { ++v9[0]; } else { if (v8 < v7) { ++v9[1]; } else { ++v9[2]; } } ++v3; } plane3.basebreeddist = v9.slice(); v14 = 32; v14 -= Math.round(v2 / 2.5); plane3.numheroes = v14; plane3.numherotypes = 12; if (v2 > 6) { plane3.numherotypes = 17; } else { if (v2 > 12) { plane3.numherotypes = 16; } else { if (v2 > 16) { plane3.numherotypes = 15; } else { if (v2 > 20) { plane3.numherotypes = 14; } else { if (v2 > 23) { plane3.numherotypes = 13; } } } } } plane3.numascenders = 3; if (v2 > 6) { plane3.numascenders = 2; } else { if (v2 > 14) { plane3.numascenders = 1; } else { if (v2 > 20) { plane3.numascenders = 1; } } } plane3.numshops = 3; if (v2 > 6) { plane3.numshops = 2; } else { if (v2 > 14) { plane3.numshops = 1; } else { if (v2 > 20) { plane3.numshops = 1; } } } plane3.numalchemists = 3; if (v2 > 6) { plane3.numalchemists = 2; } else { if (v2 > 14) { plane3.numalchemists = 1; } else { if (v2 > 20) { plane3.numalchemists = 1; } } } plane3.numhouses = 3; if (v2 > 6) { plane3.numhouses = 2; } else { if (v2 > 14) { plane3.numhouses = 1; } else { if (v2 > 20) { plane3.numhouses = 1; } } } plane4.worldsize = [30, 30]; plane4.baseturns = 550; v15 = 25; if (v2 < 3) { v4 = [9, 6, 5, 3, 2]; } else { if (v2 < 6) { v4 = [8, 7, 5, 3, 2]; } else { if (v2 < 9) { v4 = [8, 6, 6, 3, 2]; } else { if (v2 < 12) { v4 = [7, 6, 6, 4, 2]; } else { if (v2 < 15) { v4 = [7, 5, 5, 5, 3]; } else { if (v2 < 18) { v4 = [6, 5, 5, 5, 4]; } else { if (v2 < 20) { v4 = [6, 4, 5, 5, 5]; } else { if (v2 < 23) { v4 = [6, 3, 4, 6, 6]; } else { v4 = [6, 3, 3, 6, 7]; } } } } } } } } v15 += Math.round(v2 / 2); v10 = Math.round(v2 / 2); v5 = 35; v7 = 60; v13 = 80; v12 = 90; v3 = 0; while (v3 < v10) { if (v3 < 5) { v5 -= 2; } else { if (v3 < 10) { v5 -= 1; v7 -= 1; } else { if (v3 < 15) { v5 -= 1; v7 -= 1; } else { v5 -= 1; v7 -= 1; } } } v8 = random(100) + 1; if (v8 < v5) { ++v4[0]; } else { if (v8 < v7) { ++v4[1]; } else { if (v8 < v13) { ++v4[2]; } else { if (v8 < v12) { ++v4[3]; } else { ++v4[4]; } } } } ++v3; } plane4.dungeonweight = v4.slice(); plane4.basedungeons = v15; v16 = 20; v16 += Math.round(v2 / 2); v10 = Math.round(v2 / 2); plane4.basebreeders = v16; v9 = [12, 5, 3]; v5 = 60; v7 = 85; v3 = 0; while (v3 < v10) { if (v3 < 5) { v5 -= 2; } else { if (v3 < 10) { v5 -= 1; v7 -= 1; } else { if (v3 < 15) { v5 -= 1; v7 -= 1; } else { v5 -= 2; v7 -= 2; } } } v8 = random(100) + 1; if (v8 < v5) { ++v9[0]; } else { if (v8 < v7) { ++v9[1]; } else { ++v9[2]; } } ++v3; } plane4.basebreeddist = v9.slice(); v14 = 26; v14 -= Math.round(v2 / 3); plane4.numheroes = v14; plane4.numherotypes = 11; if (v2 > 6) { plane4.numherotypes = 17; } else { if (v2 > 12) { plane4.numherotypes = 16; } else { if (v2 > 16) { plane4.numherotypes = 15; } else { if (v2 > 20) { plane4.numherotypes = 14; } else { if (v2 > 23) { plane4.numherotypes = 13; } } } } } plane4.numascenders = 3; if (v2 > 6) { plane4.numascenders = 2; } else { if (v2 > 14) { plane4.numascenders = 1; } else { if (v2 > 20) { plane4.numascenders = 1; } } } plane4.numshops = 3; if (v2 > 6) { plane4.numshops = 2; } else { if (v2 > 14) { plane4.numshops = 1; } else { if (v2 > 20) { plane4.numshops = 1; } } } plane4.numalchemists = 3; if (v2 > 6) { plane4.numalchemists = 2; } else { if (v2 > 14) { plane4.numalchemists = 1; } else { if (v2 > 20) { plane4.numalchemists = 1; } } } plane4.numhouses = 3; if (v2 > 6) { plane4.numhouses = 2; } else { if (v2 > 14) { plane4.numhouses = 1; } else { if (v2 > 20) { plane4.numhouses = 1; } } } plane5.worldsize = [20, 20]; plane5.baseturns = 500; v15 = 15; if (v2 < 3) { v4 = [5, 3, 3, 3, 1]; } else { if (v2 < 6) { v4 = [4, 4, 3, 3, 1]; } else { if (v2 < 9) { v4 = [4, 3, 4, 3, 1]; } else { if (v2 < 12) { v4 = [4, 3, 3, 4, 1]; } else { if (v2 < 15) { v4 = [4, 2, 3, 4, 2]; } else { if (v2 < 18) { v4 = [4, 2, 2, 4, 3]; } else { if (v2 < 20) { v4 = [4, 2, 2, 3, 4]; } else { if (v2 < 23) { v4 = [4, 2, 2, 2, 5]; } else { v4 = [3, 2, 2, 3, 5]; } } } } } } } } v15 += Math.round(v2 / 3); v10 = Math.round(v2 / 3); v5 = 35; v7 = 60; v13 = 80; v12 = 90; v3 = 0; while (v3 < v10) { if (v3 < 5) { v5 -= 2; } else { if (v3 < 10) { v5 -= 1; v7 -= 1; } else { if (v3 < 15) { v5 -= 1; v7 -= 1; } else { v5 -= 1; v7 -= 1; } } } v8 = random(100) + 1; if (v8 < v5) { ++v4[0]; } else { if (v8 < v7) { ++v4[1]; } else { if (v8 < v13) { ++v4[2]; } else { if (v8 < v12) { ++v4[3]; } else { ++v4[4]; } } } } ++v3; } plane5.dungeonweight = v4.slice(); plane5.basedungeons = v15; v16 = 15; v16 += Math.round(v2 / 3); v10 = Math.round(v2 / 3); plane5.basebreeders = v16; v9 = [8, 4, 3]; v5 = 60; v7 = 85; v3 = 0; while (v3 < v10) { if (v3 < 5) { v5 -= 2; } else { if (v3 < 10) { v5 -= 1; v7 -= 1; } else { if (v3 < 15) { v5 -= 1; v7 -= 1; } else { v5 -= 2; v7 -= 2; } } } v8 = random(100) + 1; if (v8 < v5) { ++v9[0]; } else { if (v8 < v7) { ++v9[1]; } else { ++v9[2]; } } ++v3; } plane5.basebreeddist = v9.slice(); v14 = 20; v14 -= Math.round(v2 / 6); plane5.numheroes = v14; plane5.numherotypes = 10; if (v2 > 6) { plane5.numherotypes = 17; } else { if (v2 > 12) { plane5.numherotypes = 16; } else { if (v2 > 16) { plane5.numherotypes = 15; } else { if (v2 > 20) { plane5.numherotypes = 14; } else { if (v2 > 23) { plane5.numherotypes = 13; } } } } } plane5.numascenders = 2; if (v2 > 5) { plane5.numascenders = 1; } plane5.numshops = 2; if (v2 > 5) { plane5.numshops = 1; } plane5.numalchemists = 2; if (v2 > 5) { plane5.numalchemists = 1; } plane5.numhouses = 2; if (v2 > 5) { plane5.numhouses = 1; } } generatemap(); var diff = 1; var diffmod = _root.globalstuff.astralenergy + _root.globalstuff.spentenergy; if (diffmod > 1000) { ++diff; } if (diffmod > 2000) { ++diff; } if (diffmod > 3000) { ++diff; } if (diffmod > 5000) { ++diff; } if (diffmod > 6500) { ++diff; } if (diffmod > 9000) { ++diff; } if (diffmod > 11000) { ++diff; } if (diffmod > 14000) { ++diff; } if (diffmod > 18000) { ++diff; } if (diffmod > 22000) { ++diff; } if (diffmod > 25000) { ++diff; } if (diffmod > 30000) { ++diff; } if (diffmod > 35000) { ++diff; } if (diffmod > 40000) { ++diff; } if (diffmod > 45000) { ++diff; } if (diffmod > 52000) { ++diff; } if (diffmod > 60000) { ++diff; } if (diffmod > 70000) { ++diff; } if (diffmod > 80000) { ++diff; } if (diffmod > 90000) { ++diff; } if (diffmod > 100000) { ++diff; } if (diffmod > 125000) { ++diff; } if (diffmod > 150000) { ++diff; } if (diffmod > 200000) { ++diff; } _root.diffi.gotoAndStop(diff); _root.globalstuff.difficulty = diff; agLink.onRelease = function () { getURL('http://armor.ag/MoreGames', '_blank'); }; } frame 11 { function createherodetails(type) { trace('creating a ' + type); var v2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; v2[0] = _root.createaname(type); v2[1] = _root.roster[type][0]; v2[2] = _root.roster[type][7]; v2[3] = [_root.roster[type][1], _root.roster[type][1]]; v2[4] = _root.roster[type][8]; v2[5] = _root.armours[_root.roster[type][2] + '_1'].slice(); v2[6] = _root.weapons[_root.roster[type][2] + '_1'].slice(); v2[7] = _root.roster[type][2]; v2[8] = 0; v2[9] = [0, 10]; v2[10] = _root.roster[type][3]; v2[11] = 1; v2[12] = _root.roster[type][4]; v2[13] = _root.roster[type][5]; v2[14] = 1; v2[15] = type; trace('GENERATED HERO DETAILS: ' + v2); return [v2[0], v2[1], v2[2], [v2[3][0], v2[3][1]], v2[4], _root.armours[_root.roster[type][2] + '_1'].slice(), _root.weapons[_root.roster[type][2] + '_1'].slice(), v2[7], v2[8], [v2[9][0], v2[9][1]], v2[10], v2[11], v2[12], v2[13], v2[14], v2[15]]; } _root.createaname = function (type) { var v1 = random(10); if (type == 'fighter') { if (v1 == 0) { return 'Bob Basher'; } else { if (v1 == 1) { return 'Sam Smasher'; } else { if (v1 == 2) { return 'Fighter Frank'; } else { if (v1 == 3) { return 'Boxing Bruce'; } else { if (v1 == 4) { return 'Slicing Simon'; } else { if (v1 == 5) { return 'Mike Muscles'; } else { if (v1 == 6) { return 'Deadly Dave'; } else { if (v1 == 7) { return 'Prancing Pete'; } else { if (v1 == 8) { return 'Slasher Sid'; } else { return 'Grubby Greg'; } } } } } } } } } } else { if (type == 'knight') { if (v1 == 0) { return 'Count Karl'; } else { if (v1 == 1) { return 'Sir Samuel'; } else { if (v1 == 2) { return 'Sir George'; } else { if (v1 == 3) { return 'Lord Raynor'; } else { if (v1 == 4) { return 'Sir Simeon'; } else { if (v1 == 5) { return 'Captain Harold'; } else { if (v1 == 6) { return 'Lord Frederick'; } else { if (v1 == 7) { return 'Lord Jimmini'; } else { if (v1 == 8) { return 'Count Farnell'; } else { return 'Lord Reagen'; } } } } } } } } } } else { if (type == 'paladin') { if (v1 == 0) { return 'Derek Whiteblade'; } else { if (v1 == 1) { return 'Terry Blessedhand'; } else { if (v1 == 2) { return 'Pure Peter'; } else { if (v1 == 3) { return 'David the White'; } else { if (v1 == 4) { return 'Duncan Dogood'; } else { if (v1 == 5) { return 'Kevin Foesmiter'; } else { if (v1 == 6) { return 'Rightous Wayne'; } else { if (v1 == 7) { return 'Troy the Unyielding'; } else { if (v1 == 8) { return 'Drake Deadsmiter'; } else { return 'Eric the Noble'; } } } } } } } } } } else { if (type == 'barbarian') { if (v1 == 0) { return 'Crom'; } else { if (v1 == 1) { return 'Grawl'; } else { if (v1 == 2) { return 'Harkin'; } else { if (v1 == 3) { return 'Guntar'; } else { if (v1 == 4) { return 'Hornt'; } else { if (v1 == 5) { return 'Rawl'; } else { if (v1 == 6) { return 'Ortkin'; } else { if (v1 == 7) { return 'Estin'; } else { if (v1 == 8) { return 'Conon'; } else { return 'Gnarl'; } } } } } } } } } } else { if (type == 'dungeonmaster') { if (v1 == 0) { return 'Allseeing Alister'; } else { if (v1 == 1) { return 'Grumpy Dave'; } else { if (v1 == 2) { return 'Dorean Black'; } else { if (v1 == 3) { return 'Wrinkled Wurt'; } else { if (v1 == 4) { return 'Neverliving Ned'; } else { if (v1 == 5) { return 'Horned Harold'; } else { if (v1 == 6) { return 'Putrid Pete'; } else { if (v1 == 7) { return 'Kim the Torturer'; } else { if (v1 == 8) { return 'Hungry Frank'; } else { return 'Devilish Desmond'; } } } } } } } } } } else { if (type == 'boxman') { if (v1 == 0) { return 'Funny Fred'; } else { if (v1 == 1) { return 'Joker Jim'; } else { if (v1 == 2) { return 'Giggling Gregory'; } else { if (v1 == 3) { return 'Chan the Jester'; } else { if (v1 == 4) { return 'Fabulous Freddy'; } else { if (v1 == 5) { return 'Amazing Arnold'; } else { if (v1 == 6) { return 'Poor Liam'; } else { if (v1 == 7) { return 'Jockular'; } else { if (v1 == 8) { return 'Jingle Bellie'; } else { return 'Shimmering Sam'; } } } } } } } } } } else { if (type == 'chaoswarrior') { if (v1 == 0) { return 'Balthazar'; } else { if (v1 == 1) { return 'Barakiel'; } else { if (v1 == 2) { return 'Dai Gui'; } else { if (v1 == 3) { return 'Faquarl'; } else { if (v1 == 4) { return 'Hnikarr'; } else { if (v1 == 5) { return 'Milan Incubi'; } else { if (v1 == 6) { return 'Shendu'; } else { if (v1 == 7) { return 'Yaksha'; } else { if (v1 == 8) { return 'Vulpuz'; } else { return 'Varrigal'; } } } } } } } } } } else { if (type == 'centurion') { if (v1 == 0) { return 'Antonius'; } else { if (v1 == 1) { return 'Brutus'; } else { if (v1 == 2) { return 'Octavius'; } else { if (v1 == 3) { return 'Cornelius'; } else { if (v1 == 4) { return 'Fabius'; } else { if (v1 == 5) { return 'Iulius'; } else { if (v1 == 6) { return 'Lucius'; } else { if (v1 == 7) { return 'Maximus'; } else { if (v1 == 8) { return 'Valentius'; } else { return 'Tiberius'; } } } } } } } } } } else { if (type == 'merchant') { if (v1 == 0) { return 'Samus the Greedy'; } else { if (v1 == 1) { return 'Pennypinching Chad'; } else { if (v1 == 2) { return 'Robbing Rob'; } else { if (v1 == 3) { return 'Tight Ted'; } else { if (v1 == 4) { return 'Frugal Oliver'; } else { if (v1 == 5) { return 'Rich Richard'; } else { if (v1 == 6) { return 'Tod the Belly'; } else { if (v1 == 7) { return 'Trading Terry'; } else { if (v1 == 8) { return 'Bargaining Bill'; } else { return 'Harry the Haggler'; } } } } } } } } } } else { if (type == 'alchemist') { if (v1 == 0) { return 'Mixing Mike'; } else { if (v1 == 1) { return 'Herby Henry'; } else { if (v1 == 2) { return 'Jack the Mortar'; } else { if (v1 == 3) { return 'Flowery Frank'; } else { if (v1 == 4) { return 'Dandy the Seeker'; } else { if (v1 == 5) { return 'Clever Carl'; } else { if (v1 == 6) { return 'Scavanging Tim'; } else { if (v1 == 7) { return 'Gary the Mixologist'; } else { if (v1 == 8) { return 'Crazy Larry'; } else { return 'Wayne the Drunk'; } } } } } } } } } } else { if (type == 'treasurehunter') { if (v1 == 0) { return 'Schaffer'; } else { if (v1 == 1) { return 'Arkandia Jones'; } else { if (v1 == 2) { return 'Donner'; } else { if (v1 == 3) { return 'Lara'; } else { if (v1 == 4) { return 'Dan Magroo'; } else { if (v1 == 5) { return 'Bret'; } else { if (v1 == 6) { return 'Hunting Harry'; } else { if (v1 == 7) { return 'Eboneza'; } else { if (v1 == 8) { return 'Brighteyes'; } else { return 'Jumanji'; } } } } } } } } } } else { if (type == 'priest') { if (v1 == 0) { return 'Harry the Healer'; } else { if (v1 == 1) { return 'Oswald the Meek'; } else { if (v1 == 2) { return 'Pious Parvati'; } else { if (v1 == 3) { return 'Holy Harace'; } else { if (v1 == 4) { return 'Praying Percy'; } else { if (v1 == 5) { return 'Barney the Blasphemer'; } else { if (v1 == 6) { return 'Chaste Charlie'; } else { if (v1 == 7) { return 'Doctor Dan'; } else { if (v1 == 8) { return 'Marty the Medic'; } else { return 'Frank the Fixer'; } } } } } } } } } } else { if (type == 'archmage') { if (v1 == 0) { return 'Sparkling Simon'; } else { if (v1 == 1) { return 'Zed the Zapper'; } else { if (v1 == 2) { return 'Fireball Fred'; } else { if (v1 == 3) { return 'Blasting Bill'; } else { if (v1 == 4) { return 'George the Wizened'; } else { if (v1 == 5) { return 'Old Alphonso'; } else { if (v1 == 6) { return 'Manaloving Martin'; } else { if (v1 == 7) { return 'Professor Quin'; } else { if (v1 == 8) { return 'Ancient Alen'; } else { return 'Berty Bugslayer'; } } } } } } } } } } else { if (type == 'darkscholar') { if (v1 == 0) { return 'Mysterious Mike'; } else { if (v1 == 1) { return 'Clever Clayton'; } else { if (v1 == 2) { return 'Dark Dave'; } else { if (v1 == 3) { return 'Blackened Barry'; } else { if (v1 == 4) { return 'Twisted Trevor'; } else { if (v1 == 5) { return 'Studious Samuel'; } else { if (v1 == 6) { return 'Skinny Grimlock'; } else { if (v1 == 7) { return 'Xavier'; } else { if (v1 == 8) { return 'Always Scared Sam'; } else { return 'Bookworm Bob'; } } } } } } } } } } else { if (type == 'necromancer') { if (v1 == 0) { return 'Sanguis'; } else { if (v1 == 1) { return 'Bloody Bill'; } else { if (v1 == 2) { return 'Xesil'; } else { if (v1 == 3) { return 'Vivaniar the Depressed'; } else { if (v1 == 4) { return 'Krulina'; } else { if (v1 == 5) { return 'Sadistic Richard'; } else { if (v1 == 6) { return 'Boney Brad'; } else { if (v1 == 7) { return 'Mr Skulls'; } else { if (v1 == 8) { return 'Skelington'; } else { return 'Zombius Zomba'; } } } } } } } } } } else { if (type == 'bunnyman') { if (v1 == 0) { return 'Unknown'; } else { if (v1 == 1) { return 'Undiscovered'; } else { if (v1 == 2) { return 'Silence'; } else { if (v1 == 3) { return 'Shadow'; } else { if (v1 == 4) { return 'Untracable'; } else { if (v1 == 5) { return 'Invisible'; } else { if (v1 == 6) { return '?????'; } else { if (v1 == 7) { return 'Unseen'; } else { if (v1 == 8) { return 'Unplacable'; } else { return 'No Name'; } } } } } } } } } } else { if (type == 'bowman') { if (v1 == 0) { return 'Archy'; } else { if (v1 == 1) { return 'Bowie'; } else { if (v1 == 2) { return 'Shootie'; } else { if (v1 == 3) { return 'Archie'; } else { if (v1 == 4) { return 'Stringer'; } else { if (v1 == 5) { return 'Volley'; } else { if (v1 == 6) { return 'Ranger'; } else { if (v1 == 7) { return 'Sam Shootswell'; } else { if (v1 == 8) { return 'Barry the Bowmaker'; } else { return 'Archibald'; } } } } } } } } } } else { if (type == 'woodsman') { if (v1 == 0) { return 'Woody'; } else { if (v1 == 1) { return 'Woodie'; } else { if (v1 == 2) { return 'Jim of the Forest'; } else { if (v1 == 3) { return 'Green Greg'; } else { if (v1 == 4) { return 'Tucker'; } else { if (v1 == 5) { return 'Dale'; } else { if (v1 == 6) { return 'Chip'; } else { if (v1 == 7) { return 'Pointyeared Percy'; } else { if (v1 == 8) { return 'Bowstring Bob'; } else { return 'Tate the Treeclimber'; } } } } } } } } } } else { if (type == 'lumberjack') { if (v1 == 0) { return 'Furry Frank'; } else { if (v1 == 1) { return 'Timber'; } else { if (v1 == 2) { return 'Fabio the Feller'; } else { if (v1 == 3) { return 'Barking Bert'; } else { if (v1 == 4) { return 'Sappy Sidney'; } else { if (v1 == 5) { return 'Greenskinned Gary'; } else { if (v1 == 6) { return 'Arnold Axeswinger'; } else { if (v1 == 7) { return 'Woody'; } else { if (v1 == 8) { return 'Chappy the Chipper'; } else { return 'Olaf Oakenskull'; } } } } } } } } } } else { if (type == 'armouredarcher') { if (v1 == 0) { return 'Antonius'; } else { if (v1 == 1) { return 'Brutus'; } else { if (v1 == 2) { return 'Octavius'; } else { if (v1 == 3) { return 'Cornelius'; } else { if (v1 == 4) { return 'Fabius'; } else { if (v1 == 5) { return 'Iulius'; } else { if (v1 == 6) { return 'Lucius'; } else { if (v1 == 7) { return 'Maximus'; } else { if (v1 == 8) { return 'Valentius'; } else { return 'Tiberius'; } } } } } } } } } } else { if (type == 'commando') { if (v1 == 0) { return 'Undercover Eugene'; } else { if (v1 == 1) { return 'Darklight Dave'; } else { if (v1 == 2) { return 'Ivor the Infiltrator'; } else { if (v1 == 3) { return 'Bond'; } else { if (v1 == 4) { return 'Kamikaze Craig'; } else { if (v1 == 5) { return 'Pete Sabotage'; } else { if (v1 == 6) { return 'Spying Simon'; } else { if (v1 == 7) { return 'Armold Schwazanogger'; } else { if (v1 == 8) { return 'Silent Simon'; } else { return 'Hidden Tigger'; } } } } } } } } } } else { if (type == 'sniper') { if (v1 == 0) { return 'Berty Longshot'; } else { if (v1 == 1) { return 'Deadeye Dave'; } else { if (v1 == 2) { return 'Jack the Spotter'; } else { if (v1 == 3) { return 'Archie Nevermiss'; } else { if (v1 == 4) { return 'Liam the Crackshot'; } else { if (v1 == 5) { return 'Bowman Bert'; } else { if (v1 == 6) { return 'Reliable old Pete'; } else { if (v1 == 7) { return 'Sureshot Shamus'; } else { if (v1 == 8) { return 'Peter Puresight'; } else { return 'Eagleye Sidgewell'; } } } } } } } } } } else { if (type == 'miner') { if (v1 == 0) { return 'Dirty Derek'; } else { if (v1 == 1) { return 'Smelly Simon'; } else { if (v1 == 2) { return 'Rocky'; } else { if (v1 == 3) { return 'Dilbert the Digger'; } else { if (v1 == 4) { return 'Fred Holedigger'; } else { if (v1 == 5) { return 'Martin of the Mountain'; } else { if (v1 == 6) { return 'Damian Dwarfhands'; } else { if (v1 == 7) { return 'Ironside Eric'; } else { if (v1 == 8) { return 'Coal-Coated Colin'; } else { return 'Dorian the Beard'; } } } } } } } } } } else { if (v1 == 0) { return 'Bob Basher'; } else { if (v1 == 1) { return 'Sam Smasher'; } else { if (v1 == 2) { return 'Fighter Frank'; } else { if (v1 == 3) { return 'Boxing Bruce'; } else { if (v1 == 4) { return 'Slicing Simon'; } else { if (v1 == 5) { return 'Mike Muscles'; } else { if (v1 == 6) { return 'Deadly Dave'; } else { if (v1 == 7) { return 'Prancing Pete'; } else { if (v1 == 8) { return 'Sid the Slaher'; } else { return 'Grubby Greg'; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }; _root.roster = {}; _root.roster.fighter = [1, 70, 'melee', 1.15, 0, 0, 'Fighters aren\'t the fanciest of heroes with no special abilities but they can take and deal a classic beating better than anyone.', 'Fighter', 30]; _root.roster.fighterlvlup = [[80, 1.2, 0, 0, 25, 1], [90, 1.25, 0, 0, 45, 1], [100, 1.3, 0, 0, 65, 1], [110, 1.4, 0, 0, 90, 1], [120, 1.45, 0, 0, 120, 1], [130, 1.55, 0, 0, 150, 2], [140, 1.6, 0, 0, 185, 2], [150, 1.7, 0, 0, 220, 2], [160, 1.8, 0, 0, 250, 2]]; _root.roster.knight = [2, 50, 'melee', 1, 0, 0, 'Knights are trained to withstand damage and take the heat of battle better than other heroes', 'Knight', 26]; _root.roster.knightlvlup = [[60, 1.05, 14, 0, 25, 1], [70, 1.1, 14, 0, 45, 0], [80, 1.15, 14, 0, 65, 1], [90, 1.2, 23, 0, 90, 0], [100, 1.25, 23, 0, 120, 1], [110, 1.3, 23, 0, 150, 1], [120, 1.35, 23, 0, 185, 1], [130, 1.4, 23, 0, 220, 1], [150, 1.4, 23, 0, 250, 1]]; _root.roster.paladin = [3, 50, 'melee', 1, 0, 0, 'Paladins are the eternal protector, they help a party stay alive much longer', 'Paladin', 26]; _root.roster.paladinlvlup = [[60, 1.05, 0, 0, 25, 1], [70, 1.1, 2, 0, 45, 0], [80, 1.15, 2, 0, 65, 1], [90, 1.15, 2, 0, 90, 0], [100, 1.2, 2, 0, 120, 1], [110, 1.25, 2, 0, 150, 1], [120, 1.3, 2, 0, 185, 1], [130, 1.35, 2, 0, 220, 1], [150, 1.4, 2, 0, 250, 1]]; _root.roster.barbarian = [4, 25, 'melee', 1.25, 0, 0, 'Barbarians are filled with rage and sheer power, they can dish out a lot of damage but can\'t take much', 'Barbarian', 33]; _root.roster.barbarianlvlup = [[30, 1.3, 0, 0, 25, 1], [35, 1.35, 6, 0, 45, 1], [40, 1.45, 6, 0, 65, 1], [45, 1.55, 6, 0, 90, 1], [50, 1.6, 6, 0, 120, 1], [60, 1.65, 6, 0, 150, 1], [70, 1.75, 6, 0, 185, 1], [80, 1.8, 6, 0, 220, 2], [90, 1.9, 6, 0, 250, 3]]; _root.roster.dungeonmaster = [5, 50, 'melee', 0.9, 0, 0, 'The dungeon master is a champion when it comes to dealing with dungeons', 'Dungeon Master', 28]; _root.roster.dungeonmasterlvlup = [[60, 0.95, 0, 0, 25, 1], [65, 1, 11, 7, 45, 1], [75, 1.05, 11, 7, 65, 0], [80, 1.1, 11, 7, 90, 1], [90, 1.1, 11, 7, 120, 1], [100, 1.1, 11, 7, 150, 1], [110, 1.15, 11, 7, 185, 0], [120, 1.2, 11, 7, 220, 0], [130, 1.25, 11, 7, 250, 1]]; _root.roster.boxman = [6, 40, 'melee', 1, 0, 0, 'The Boxman while unconventional is a great source of amusement for the party', 'Boxman', 24]; _root.roster.boxmanlvlup = [[50, 1.05, 0, 0, 25, 3], [60, 1.1, 14, 0, 45, 2], [70, 1.15, 14, 0, 65, 1], [85, 1.2, 14, 0, 90, 2], [100, 1.25, 14, 0, 120, 3], [120, 1.35, 14, 0, 150, 5], [140, 1.45, 23, 0, 185, 2], [160, 1.5, 23, 0, 220, 3], [200, 1.55, 23, 0, 250, 5]]; _root.roster.chaoswarrior = [7, 50, 'melee', 1, 0, 0, 'The Chaos Warrior can sometimes be used for much good as well as evil', 'Chaos Warrior', 27]; _root.roster.chaoswarriorlvlup = [[60, 1.05, 0, 0, 25, 1], [70, 1.1, 14, 0, 45, 0], [80, 1.15, 14, 14, 65, 1], [90, 1.2, 14, 14, 90, 0], [100, 1.25, 14, 14, 120, 1], [110, 1.3, 14, 14, 150, 1], [120, 1.35, 14, 14, 185, 1], [130, 1.4, 14, 14, 220, 1], [150, 1.4, 14, 14, 250, 1]]; _root.roster.centurion = [8, 50, 'melee', 1, 0, 0, 'Centurions are known for their ability to come through on quests', 'Centurion', 27]; _root.roster.centurionlvlup = [[60, 1.05, 0, 0, 25, 1], [70, 1.1, 14, 0, 45, 0], [80, 1.15, 14, 11, 65, 1], [90, 1.2, 14, 11, 90, 0], [100, 1.25, 14, 11, 120, 1], [110, 1.3, 14, 11, 150, 1], [120, 1.35, 14, 11, 185, 1], [130, 1.4, 14, 11, 220, 1], [150, 1.45, 14, 11, 250, 1]]; _root.roster.merchant = [9, 30, 'magic', 0.75, 0, 0, 'While not the strongest of combatents, merchants can be useful members of any party', 'Merchant', 32]; _root.roster.merchantlvlup = [[40, 0.8, 0, 0, 25, 1], [50, 0.85, 9, 8, 45, 1], [60, 0.95, 9, 8, 65, 1], [75, 1, 9, 8, 90, 1], [90, 1.05, 9, 8, 120, 2], [100, 1.1, 9, 8, 150, 2], [110, 1.15, 9, 8, 185, 2], [120, 1.2, 9, 8, 220, 2], [130, 1.25, 9, 8, 250, 2]]; _root.roster.alchemist = [10, 40, 'magic', 0.8, 0, 0, 'Having an Alchemist in the party can be a huge boost to life expectency', 'Alchemist', 30]; _root.roster.alchemistlvlup = [[50, 0.85, 0, 0, 25, 1], [60, 0.9, 18, 4, 45, 1], [70, 0.95, 18, 4, 65, 1], [85, 1, 18, 4, 90, 1], [100, 1.05, 18, 4, 120, 2], [105, 1.1, 18, 4, 150, 2], [110, 1.15, 18, 4, 185, 2], [120, 1.2, 18, 4, 220, 2], [130, 1.25, 18, 4, 250, 2]]; _root.roster.treasurehunter = [11, 45, 'magic', 1, 0, 0, 'Treasure Hunters have a knack for finding some very valuable items', 'Treasure Hunter', 30]; _root.roster.treasurehunterlvlup = [[55, 1.05, 0, 6, 25, 1], [65, 1.1, 0, 6, 45, 1], [75, 1.15, 16, 6, 65, 1], [85, 1.2, 16, 6, 90, 1], [100, 1.25, 16, 6, 120, 2], [105, 1.3, 16, 6, 150, 2], [110, 1.35, 16, 6, 185, 2], [120, 1.4, 16, 6, 220, 2], [130, 1.5, 16, 6, 250, 2]]; _root.roster.priest = [12, 30, 'magic', 0.25, 0, 0, 'You\'re gonna have to look after him but if you do the priest is a lifesaver', 'Priest', 36]; _root.roster.priestlvlup = [[32, 0.3, 8, 0, 25, 1], [35, 0.35, 8, 5, 45, 1], [38, 0.4, 8, 5, 65, 1], [40, 0.45, 8, 5, 90, 1], [44, 0.5, 8, 5, 120, 2], [48, 0.55, 8, 5, 150, 2], [55, 0.6, 8, 5, 185, 2], [60, 0.64, 8, 5, 220, 2], [65, 0.7, 8, 5, 250, 2]]; _root.roster.archmage = [13, 40, 'magic', 1.1, 0, 0, 'Brimming over with destruction, the Archmage is a magical powerhouse', 'Archmage', 30]; _root.roster.archmagelvlup = [[45, 1.15, 0, 0, 25, 1], [50, 1.2, 7, 0, 45, 1], [55, 1.25, 7, 0, 65, 1], [60, 1.3, 7, 13, 90, 1], [70, 1.35, 7, 13, 120, 2], [80, 1.4, 7, 13, 150, 2], [90, 1.5, 7, 13, 185, 2], [100, 1.55, 7, 13, 220, 2], [110, 1.6, 7, 13, 250, 2]]; _root.roster.darkscholar = [14, 40, 'magic', 1, 0, 0, 'The Dark Scholar is a master of the dark arts and forbidden curses', 'Dark Scholar', 30]; _root.roster.darkscholarlvlup = [[45, 1.05, 0, 0, 25, 1], [50, 1.1, 13, 0, 45, 1], [55, 1.15, 13, 12, 65, 1], [60, 1.2, 13, 12, 90, 1], [70, 1.25, 13, 12, 120, 2], [80, 1.3, 13, 12, 150, 2], [90, 1.35, 13, 12, 185, 2], [100, 1.4, 13, 12, 220, 2], [110, 1.45, 13, 12, 250, 2]]; _root.roster.necromancer = [15, 40, 'magic', 1, 0, 0, 'The Necromancer is fascinated by rather than afraid of death in all forms', 'Necromancer', 30]; _root.roster.necromancerlvlup = [[45, 1.05, 0, 0, 25, 1], [50, 1.1, 17, 0, 45, 1], [55, 1.15, 17, 10, 65, 1], [60, 1.2, 17, 10, 90, 1], [70, 1.25, 17, 10, 120, 2], [80, 1.3, 17, 10, 150, 2], [90, 1.35, 17, 10, 185, 2], [100, 1.4, 17, 10, 220, 2], [110, 1.45, 17, 10, 250, 2]]; _root.roster.bunnyman = [16, 50, 'magic', 1.1, 0, 0, 'The Bunny Mages are the fastest and most nimble spellcasters to ever be seen', 'Bunny Mage', 40]; _root.roster.bunnymanlvlup = [[60, 1.15, 0, 0, 25, 2], [70, 1.2, 25, 0, 45, 2], [80, 1.25, 25, 9, 65, 3], [85, 1.3, 25, 9, 90, 2], [90, 1.35, 25, 9, 120, 3], [95, 1.4, 25, 9, 150, 2], [100, 1.5, 25, 9, 185, 3], [110, 1.6, 25, 9, 220, 2], [120, 1.75, 25, 9, 250, 2]]; _root.roster.bowman = [17, 50, 'ranged', 1, 0, 0, 'The Bowman is an expert in ranged combat, able to dodge attacks with ease', 'Bowman', 34]; _root.roster.bowmanlvlup = [[55, 1.05, 0, 0, 25, 2], [60, 1.1, 19, 0, 45, 1], [65, 1.15, 19, 0, 65, 2], [75, 1.2, 19, 0, 90, 1], [80, 1.25, 19, 0, 120, 2], [90, 1.3, 19, 0, 150, 2], [105, 1.35, 19, 0, 185, 2], [120, 1.4, 19, 0, 220, 2], [130, 1.45, 19, 0, 250, 2]]; _root.roster.woodsman = [18, 50, 'ranged', 1, 0, 0, 'The Woodsman is an expert at knowing just where to hit to cause the most damage', 'Woodsman', 30]; _root.roster.woodsmanlvlup = [[55, 1.05, 0, 1, 25, 1], [60, 1.1, 0, 1, 45, 1], [65, 1.15, 12, 1, 65, 1], [75, 1.2, 12, 1, 90, 1], [80, 1.25, 12, 1, 120, 1], [90, 1.3, 12, 1, 150, 2], [105, 1.35, 12, 1, 185, 2], [120, 1.4, 12, 1, 220, 2], [130, 1.45, 12, 1, 250, 2]]; _root.roster.lumberjack = [19, 50, 'melee', 0.8, 0, 0, 'The Lumberjack isn\'t the strongest warrior, but his talents could be useful', 'Lumberjack', 30]; _root.roster.lumberjacklvlup = [[60, 0.85, 0, 3, 25, 1], [70, 0.9, 0, 3, 45, 0], [80, 1, 0, 3, 65, 1], [90, 1.05, 10, 3, 90, 0], [100, 1.1, 10, 3, 120, 1], [110, 1.15, 10, 3, 150, 1], [120, 1.2, 10, 3, 185, 1], [130, 1.3, 10, 3, 220, 1], [150, 1.4, 10, 3, 250, 1]]; _root.roster.armouredarcher = [20, 50, 'ranged', 1, 0, 0, 'The Armoured archer may not move fast but he\'s far better protected than most', 'Armoured Archer', 15]; _root.roster.armouredarcherlvlup = [[55, 1.05, 0, 0, 25, 1], [60, 1.1, 14, 0, 45, 1], [65, 1.15, 14, 0, 65, 1], [75, 1.2, 23, 0, 90, 1], [80, 1.25, 23, 0, 120, 1], [90, 1.3, 23, 0, 150, 2], [105, 1.35, 23, 0, 185, 2], [120, 1.4, 23, 0, 220, 2], [130, 1.45, 23, 0, 250, 2]]; _root.roster.commando = [21, 50, 'ranged', 1, 0, 0, 'The Commando is an expert at stealth and infiltration', 'Commando', 38]; _root.roster.commandolvlup = [[55, 1.05, 24, 7, 25, 1], [60, 1.15, 24, 7, 45, 1], [65, 1.2, 24, 7, 65, 2], [75, 1.25, 24, 7, 90, 1], [80, 1.35, 24, 7, 120, 2], [90, 1.4, 24, 7, 150, 2], [105, 1.5, 24, 7, 185, 2], [120, 1.55, 24, 7, 220, 2], [130, 1.65, 24, 7, 250, 2]]; _root.roster.sniper = [22, 30, 'ranged', 1.25, 0, 0, 'The Sniper never fires until he\'s sure of his shot, an expert at deealing massive damage', 'Sniper', 14]; _root.roster.sniperlvlup = [[35, 1.3, 6, 0, 25, 0], [40, 1.4, 6, 0, 45, 0], [50, 1.5, 6, 0, 65, 0], [55, 1.55, 6, 0, 90, 0], [60, 1.6, 6, 0, 120, 1], [70, 1.7, 6, 0, 150, 1], [80, 1.8, 6, 0, 185, 1], [90, 1.9, 6, 0, 220, 1], [100, 2, 6, 0, 250, 1]]; _root.roster.miner = [23, 50, 'melee', 0.8, 0, 0, 'The Miner loves to diggy diggy hole', 'Miner', 30]; _root.roster.minerlvlup = [[60, 0.85, 0, 2, 25, 1], [70, 0.9, 0, 2, 45, 0], [80, 1, 22, 2, 65, 1], [90, 1.05, 22, 2, 90, 0], [100, 1.1, 22, 2, 120, 1], [110, 1.15, 22, 2, 150, 1], [120, 1.2, 22, 2, 185, 1], [130, 1.3, 22, 2, 220, 1], [150, 1.4, 22, 2, 250, 1]]; _root.possibleheroes = ['fighter', 'knight', 'paladin', 'barbarian', 'dungeonmaster', 'boxman', 'chaoswarrior', 'centurion', 'merchant', 'alchemist', 'treasurehunter', 'priest', 'archmage', 'darkscholar', 'necromancer', 'bunnyman', 'bowman', 'woodsman', 'lumberjack', 'armouredarcher', 'commando', 'sniper', 'miner']; } frame 11 { function getarmourspecialname(which) { if (which == 0) { return 'None'; } else { if (which == 1) { return 'Warm Glow'; } else { if (which == 2) { return 'Physically Absorbent'; } else { if (which == 3) { return 'Magically Absorbent'; } else { if (which == 4) { return 'Spikes'; } else { if (which == 5) { return 'Magical Reflection'; } else { if (which == 6) { return 'Regenerative'; } else { if (which == 7) { return 'Phasing'; } else { if (which == 8) { return 'Cerebral Boost'; } else { if (which == 9) { return 'Gold Magnet'; } else { if (which == 10) { return 'Brutality'; } else { if (which == 11) { return 'Quickening'; } } } } } } } } } } } } } function getarmourspecialblurb(which) { if (which == 0) { return ''; } else { if (which == 1) { return 'Magical attacks deal 20% less damage'; } else { if (which == 2) { return 'Converts a portion of incoming physical damage into health'; } else { if (which == 3) { return 'Converts a portion of incoming magical damage into health'; } else { if (which == 4) { return 'Reflects a portion of incoming physical damage back to attacker'; } else { if (which == 5) { return 'Reflects a portion of incoming magical damage back to attacker'; } else { if (which == 6) { return 'Regenerates health each turn during combat'; } else { if (which == 7) { return 'Small chance of avoiding an incoming attack completely'; } else { if (which == 8) { return 'Increases a hero\'s experience gain from combat'; } else { if (which == 9) { return 'Increases the amount of gold dropped during combat'; } else { if (which == 10) { return 'Increases a hero\'s damage multiplier'; } else { if (which == 11) { return 'Increases a hero\'s initiative'; } } } } } } } } } } } } } function getweaponspecialname(which) { if (which == 0) { return 'None'; } else { if (which == 1) { return 'Critical Hitter'; } else { if (which == 2) { return 'Life Leecher'; } else { if (which == 3) { return 'Smunching'; } else { if (which == 4) { return 'Brutality'; } else { if (which == 5) { return 'Stunning'; } else { if (which == 6) { return 'Armour Piercing'; } else { if (which == 7) { return 'Boss Killer'; } else { if (which == 8) { return 'Death Eater'; } else { if (which == 9) { return 'Dungeon Friend'; } else { if (which == 10) { return 'Timewarping'; } } } } } } } } } } } } function getweaponspecialblurb(which) { if (which == 0) { return ''; } else { if (which == 1) { return 'Has a small chance of inflicing double regular damage each hit'; } else { if (which == 2) { return 'Converts 20% of damage dealt into health and heals attacker'; } else { if (which == 3) { return 'Reduces an opponents physical armour everytime it hits'; } else { if (which == 4) { return 'Increases a hero\'s damage multiplier by 0.1'; } else { if (which == 5) { return 'Has a small chance of stunning an enemy making them miss their next turn'; } else { if (which == 6) { return 'Ignores 20% of an opponents armour'; } else { if (which == 7) { return 'Deals 50% extra damage to dungeon bosses and shrine guardians'; } else { if (which == 8) { return 'Heals 15% max health whenever an enemy is slain with this weapon'; } else { if (which == 9) { return 'Deals 25% extra damage when inside a dungeon'; } else { if (which == 10) { return 'Has a small chance of allowing a hero to attack again'; } } } } } } } } } } } } _root.armours = {}; _root.weapons = {}; _root.armours.melee_1 = ['Fighter Leathers', 2, 1, 0, 1, 0, 50, 0]; _root.armours.melee_2 = ['Studded Leathers', 3, 1, 0, 2, 0, 80, 0]; _root.armours.melee_3 = ['Chain Armour', 4, 2, 0, 3, 0, 100, 0]; _root.armours.melee_4 = ['Hardened Chain', 5, 2, 0, 4, 0, 125, 0]; _root.armours.melee_5 = ['Platemail Armour', 8, 1, 0, 5, 0, 140, 0]; _root.armours.melee_6 = ['Hellhound Leather', 5, 4, 0, 6, 0, 180, 0]; _root.armours.melee_7 = ['Firewoven Leather', 6, 5, 1, 7, 0, 200, 0]; _root.armours.melee_8 = ['Guardian Platemail', 10, 1, 8, 8, 0, 210, 0]; _root.armours.melee_9 = ['Royal Armour', 9, 5, 2, 9, 0, 230, 0]; _root.armours.melee_10 = ['Vengeance Armour', 10, 6, 4, 10, 0, 240, 0]; _root.armours.melee_11 = ['Wispskin Armour', 11, 6, 11, 11, 0, 250, 0]; _root.armours.melee_12 = ['Trollbone Armour', 10, 6, 6, 12, 0, 280, 0]; _root.armours.melee_13 = ['Ancient Platemail', 14, 4, 0, 13, 0, 300, 0]; _root.armours.melee_14 = ['Frosted Platemail', 12, 8, 1, 14, 0, 310, 0]; _root.armours.melee_15 = ['Mageforged Platemail', 12, 10, 0, 15, 0, 325, 0]; _root.armours.melee_16 = ['Blessed Armour', 14, 8, 10, 16, 0, 340, 0]; _root.armours.melee_17 = ['Darkness Mail', 14, 12, 3, 17, 0, 350, 0]; _root.armours.melee_18 = ['Bounty Hunter Armour', 14, 8, 9, 18, 0, 375, 0]; _root.armours.melee_19 = ['Icelink Armour', 15, 10, 0, 19, 0, 400, 0]; _root.armours.melee_20 = ['Brutal Armour', 16, 12, 10, 20, 0, 430, 0]; _root.armours.melee_21 = ['Ancient Mithril', 17, 10, 8, 21, 0, 460, 0]; _root.armours.melee_22 = ['Demonskin Doublet', 18, 18, 1, 22, 0, 500, 0]; _root.armours.melee_23 = ['Platemail of Purity', 19, 16, 7, 23, 0, 650, 0]; _root.armours.melee_24 = ['Heavenly Armour', 22, 20, 6, 24, 0, 1000, 0]; _root.armours.ranged_1 = ['Leather Boots', 2, 1, 0, 25, 0, 50, 1]; _root.armours.ranged_2 = ['Forest Boots', 2, 2, 0, 26, 0, 80, 1]; _root.armours.ranged_3 = ['Armoured Boots', 3, 3, 0, 27, 0, 100, 1]; _root.armours.ranged_4 = ['Heavy Boots', 4, 3, 0, 28, 0, 125, 1]; _root.armours.ranged_5 = ['Gilded Boots', 5, 4, 0, 29, 0, 140, 1]; _root.armours.ranged_6 = ['Darklight Boots', 4, 5, 0, 30, 0, 180, 1]; _root.armours.ranged_7 = ['Ninja Boots', 6, 6, 7, 31, 0, 200, 1]; _root.armours.ranged_8 = ['Icicle Boots', 7, 8, 1, 32, 0, 210, 1]; _root.armours.ranged_9 = ['Windwalkers', 8, 8, 11, 33, 0, 230, 1]; _root.armours.ranged_10 = ['Veteran Boots', 8, 8, 2, 34, 0, 240, 1]; _root.armours.ranged_11 = ['Brutal Boots', 9, 8, 4, 35, 0, 250, 1]; _root.armours.ranged_12 = ['Grounding Boots', 6, 12, 3, 36, 0, 280, 1]; _root.armours.ranged_13 = ['Boots of Sparking', 8, 10, 5, 37, 0, 300, 1]; _root.armours.ranged_14 = ['Hellish Boots', 10, 10, 10, 38, 0, 310, 1]; _root.armours.ranged_15 = ['Pheonix Boots', 10, 12, 1, 39, 0, 325, 1]; _root.armours.ranged_16 = ['Drakeskin Boots', 14, 8, 9, 40, 0, 340, 1]; _root.armours.ranged_17 = ['Dark Ore Boots', 12, 13, 6, 41, 0, 350, 1]; _root.armours.ranged_18 = ['Lightstep Boots', 12, 12, 11, 42, 0, 375, 1]; _root.armours.ranged_19 = ['Bouncing Boots', 10, 16, 7, 43, 0, 400, 1]; _root.armours.ranged_20 = ['Earthroot Boots', 10, 18, 2, 44, 0, 430, 1]; _root.armours.ranged_21 = ['Dimensional Boots', 14, 14, 7, 45, 0, 460, 1]; _root.armours.ranged_22 = ['Prince\'s Patters', 16, 16, 8, 46, 0, 500, 1]; _root.armours.ranged_23 = ['Pure Boots', 18, 18, 6, 47, 0, 650, 1]; _root.armours.ranged_24 = ['Boots of Legend', 20, 20, 10, 48, 0, 1000, 1]; _root.armours.magic_1 = ['Leather Gloves', 1, 2, 0, 49, 0, 50, 2]; _root.armours.magic_2 = ['Banded Gloves', 1, 3, 0, 50, 0, 80, 2]; _root.armours.magic_3 = ['Enchanted Gloves', 2, 4, 0, 51, 0, 100, 2]; _root.armours.magic_4 = ['Wizardly Gloves', 2, 5, 0, 52, 0, 125, 2]; _root.armours.magic_5 = ['Armoured Gloves', 4, 5, 0, 53, 0, 140, 2]; _root.armours.magic_6 = ['Wargskin Gloves', 3, 7, 0, 54, 0, 180, 2]; _root.armours.magic_7 = ['Airwalker Gloves', 4, 8, 11, 55, 0, 200, 2]; _root.armours.magic_8 = ['Ninja Gloves', 5, 8, 7, 56, 0, 210, 2]; _root.armours.magic_9 = ['Warmage\'s Gloves', 8, 8, 8, 57, 0, 220, 2]; _root.armours.magic_10 = ['Dragonskin Gloves', 6, 10, 1, 58, 0, 240, 2]; _root.armours.magic_11 = ['Reflective Gloves', 6, 12, 5, 59, 0, 250, 2]; _root.armours.magic_12 = ['Manalash Gloves', 7, 12, 10, 60, 0, 280, 2]; _root.armours.magic_13 = ['Toxic Gloves', 8, 12, 3, 61, 0, 300, 2]; _root.armours.magic_14 = ['Blessed Gloves', 8, 13, 9, 62, 0, 310, 2]; _root.armours.magic_15 = ['Bladed Gloves', 10, 12, 4, 63, 0, 325, 2]; _root.armours.magic_16 = ['Firetouch Gloves', 8, 16, 10, 64, 0, 340, 2]; _root.armours.magic_17 = ['Raging Gloves', 10, 16, 10, 65, 0, 350, 2]; _root.armours.magic_18 = ['Bubbling Gloves', 10, 17, 2, 66, 0, 370, 2]; _root.armours.magic_19 = ['Chrono-Gloves', 10, 18, 11, 67, 0, 400, 2]; _root.armours.magic_20 = ['Lavatouched Gloves', 11, 18, 1, 68, 0, 430, 2]; _root.armours.magic_21 = ['Angelic Gloves', 11, 20, 6, 69, 0, 460, 2]; _root.armours.magic_22 = ['Mountainheart Gloves', 12, 25, 5, 70, 0, 500, 2]; _root.armours.magic_23 = ['Gloves of Purity', 12, 26, 7, 71, 0, 650, 2]; _root.armours.magic_24 = ['Manastorming Gloves', 14, 28, 10, 72, 0, 1000, 2]; _root.weapons.melee_1 = ['Dagger', 6, 50, 5, 30, 'physical', 0, 73, 1, 20, 0]; _root.weapons.melee_2 = ['Battle Knife', 28, 50, 6, 30, 'physical', 0, 74, 1, 40, 0]; _root.weapons.melee_3 = ['Sword', 1, 50, 7, 30, 'physical', 0, 75, 1, 80, 0]; _root.weapons.melee_4 = ['Longsword', 21, 50, 8, 30, 'physical', 0, 76, 1, 120, 0]; _root.weapons.melee_5 = ['Broadsword', 11, 50, 9, 30, 'physical', 0, 77, 1, 140, 0]; _root.weapons.melee_6 = ['Big Mace', 7, 50, 10, 30, 'physical', 0, 78, 1, 160, 0]; _root.weapons.melee_7 = ['Sharp Hatchet', 12, 50, 12, 30, 'physical', 0, 79, 1, 185, 0]; _root.weapons.melee_8 = ['Deadly Spear', 4, 50, 13, 30, 'physical', 0, 80, 1, 200, 0]; _root.weapons.melee_9 = ['Mythril Sword', 19, 50, 14, 30, 'physical', 0, 81, 1, 240, 0]; _root.weapons.melee_10 = ['Striking Sword', 22, 50, 14, 30, 'physical', 4, 82, 1, 280, 0]; _root.weapons.melee_11 = ['Clobberer', 5, 50, 15, 30, 'physical', 0, 83, 1, 260, 0]; _root.weapons.melee_12 = ['Piercing Spear', 69, 50, 16, 30, 'physical', 6, 84, 1, 280, 0]; _root.weapons.melee_13 = ['Lifestealer', 19, 50, 17, 30, 'physical', 2, 85, 1, 280, 0]; _root.weapons.melee_14 = ['Blinding Hatchet', 70, 50, 18, 30, 'physical', 5, 86, 1, 300, 0]; _root.weapons.melee_15 = ['Royal Sword', 71, 50, 20, 30, 'physical', 0, 87, 1, 300, 0]; _root.weapons.melee_16 = ['Iced Axe', 34, 50, 20, 30, 'physical', 6, 88, 1, 300, 0]; _root.weapons.melee_17 = ['Earth Shaker', 8, 50, 21, 30, 'physical', 5, 89, 1, 350, 0]; _root.weapons.melee_18 = ['Cold Cutter', 2, 50, 22, 30, 'physical', 6, 90, 1, 400, 0]; _root.weapons.melee_19 = ['Arcing Blade', 10, 50, 22, 30, 'physical', 8, 91, 1, 400, 0]; _root.weapons.melee_20 = ['Frozen Fury', 24, 50, 23, 30, 'physical', 6, 92, 1, 420, 0]; _root.weapons.melee_21 = ['Vampiric Axe', 35, 50, 23, 30, 'physical', 2, 93, 1, 500, 0]; _root.weapons.melee_22 = ['Lightning Lance', 18, 50, 24, 30, 'physical', 1, 94, 1, 600, 0]; _root.weapons.melee_23 = ['Flamelash', 23, 50, 25, 30, 'physical', 4, 95, 1, 750, 0]; _root.weapons.melee_24 = ['God Blade', 9, 50, 30, 30, 'physical', 8, 96, 1, 900, 0]; _root.weapons.ranged_1 = ['Shortbow', 62, 50, 5, 30, 'ranged', 0, 97, 1, 20, 1]; _root.weapons.ranged_2 = ['Longbow', 63, 50, 6, 30, 'ranged', 0, 98, 1, 40, 1]; _root.weapons.ranged_3 = ['Composite Bow', 64, 50, 7, 30, 'ranged', 0, 99, 1, 80, 1]; _root.weapons.ranged_4 = ['Master Bow', 65, 50, 8, 30, 'ranged', 0, 100, 1, 120, 1]; _root.weapons.ranged_5 = ['Pro Bow', 68, 50, 9, 30, 'ranged', 0, 101, 1, 140, 1]; _root.weapons.ranged_6 = ['Venom Bow', 72, 50, 10, 30, 'ranged', 0, 102, 1, 160, 1]; _root.weapons.ranged_7 = ['Swiftwood Bow', 73, 50, 12, 30, 'ranged', 0, 103, 1, 185, 1]; _root.weapons.ranged_8 = ['Firewood Bow', 67, 50, 13, 30, 'ranged', 0, 104, 1, 200, 1]; _root.weapons.ranged_9 = ['Frostwood Bow', 74, 50, 14, 30, 'ranged', 0, 105, 1, 240, 1]; _root.weapons.ranged_10 = ['Deadly Bow', 66, 50, 15, 30, 'ranged', 1, 106, 1, 280, 1]; _root.weapons.ranged_11 = ['Leech Bow', 68, 50, 15, 30, 'ranged', 2, 107, 1, 260, 1]; _root.weapons.ranged_12 = ['Sun Bow', 65, 50, 16, 30, 'ranged', 5, 108, 1, 280, 1]; _root.weapons.ranged_13 = ['Air Bow', 67, 50, 17, 30, 'ranged', 4, 109, 1, 280, 1]; _root.weapons.ranged_14 = ['Wave Bow', 75, 50, 18, 30, 'ranged', 4, 110, 1, 300, 1]; _root.weapons.ranged_15 = ['Misty Bow', 77, 50, 20, 30, 'ranged', 1, 111, 1, 300, 1]; _root.weapons.ranged_16 = ['Phased Bow', 78, 50, 20, 30, 'ranged', 8, 112, 1, 300, 1]; _root.weapons.ranged_17 = ['Chaotic Bow', 79, 50, 21, 30, 'ranged', 8, 113, 1, 350, 1]; _root.weapons.ranged_18 = ['Breaching Bow', 80, 50, 22, 30, 'ranged', 6, 114, 1, 400, 1]; _root.weapons.ranged_19 = ['Flowing Bow', 81, 50, 22, 30, 'ranged', 4, 115, 1, 400, 1]; _root.weapons.ranged_20 = ['Blessed Bow', 82, 50, 23, 30, 'ranged', 6, 116, 1, 420, 1]; _root.weapons.ranged_21 = ['Bow of Death', 83, 50, 24, 30, 'ranged', 1, 117, 1, 500, 1]; _root.weapons.ranged_22 = ['Ice Popper', 84, 50, 25, 30, 'ranged', 6, 118, 1, 600, 1]; _root.weapons.ranged_23 = ['Life Stealer', 85, 50, 25, 30, 'ranged', 2, 119, 1, 750, 1]; _root.weapons.ranged_24 = ['God Bow', 86, 50, 30, 30, 'ranged', 8, 120, 1, 900, 1]; _root.weapons.magic_1 = ['Minor Spellbook', 43, 50, 5, 30, 'magic', 0, 121, 1, 20, 2]; _root.weapons.magic_2 = ['Spellbook', 44, 50, 6, 30, 'magic', 0, 122, 1, 40, 2]; _root.weapons.magic_3 = ['Mage Staff', 51, 50, 7, 30, 'magic', 0, 123, 1, 80, 2]; _root.weapons.magic_4 = ['Cracked Orb', 55, 50, 8, 30, 'magic', 0, 124, 1, 120, 2]; _root.weapons.magic_5 = ['Gilded Spellbook', 87, 50, 9, 30, 'magic', 0, 125, 1, 140, 2]; _root.weapons.magic_6 = ['Wizard\'s Staff', 46, 50, 10, 30, 'magic', 0, 126, 1, 160, 2]; _root.weapons.magic_7 = ['Master\'s Book', 88, 50, 12, 30, 'magic', 0, 127, 1, 185, 2]; _root.weapons.magic_8 = ['Fire Orb', 52, 50, 13, 30, 'magic', 0, 128, 1, 200, 2]; _root.weapons.magic_9 = ['Snake Staff', 57, 50, 14, 30, 'magic', 0, 129, 1, 240, 2]; _root.weapons.magic_10 = ['Book of Life', 89, 50, 15, 30, 'magic', 2, 130, 1, 280, 2]; _root.weapons.magic_11 = ['Blessed Book', 44, 50, 15, 30, 'magic', 1, 131, 1, 260, 2]; _root.weapons.magic_12 = ['Mystic Cane', 61, 50, 16, 30, 'magic', 4, 132, 1, 280, 2]; _root.weapons.magic_13 = ['Holy Staff', 49, 50, 17, 30, 'magic', 6, 133, 1, 280, 2]; _root.weapons.magic_14 = ['Firebrand Book', 44, 50, 18, 30, 'magic', 1, 134, 1, 300, 2]; _root.weapons.magic_15 = ['Warmage\'s Book', 43, 50, 20, 30, 'magic', 6, 135, 1, 300, 2]; _root.weapons.magic_16 = ['Orb of Power', 54, 50, 20, 30, 'magic', 6, 136, 1, 300, 2]; _root.weapons.magic_17 = ['Stunning Staff', 59, 50, 21, 30, 'magic', 5, 137, 1, 350, 2]; _root.weapons.magic_18 = ['Staff of Dark', 59, 50, 22, 30, 'magic', 6, 138, 1, 400, 2]; _root.weapons.magic_19 = ['Life Staff', 49, 50, 22, 30, 'magic', 2, 139, 1, 400, 2]; _root.weapons.magic_20 = ['Archmage\'s Tome', 89, 50, 23, 30, 'magic', 5, 140, 1, 420, 2]; _root.weapons.magic_21 = ['Tome of Devastation', 87, 50, 24, 30, 'magic', 8, 141, 1, 500, 2]; _root.weapons.magic_22 = ['Ancient Hero Staff', 60, 50, 25, 30, 'magic', 6, 142, 1, 600, 2]; _root.weapons.magic_23 = ['Heaven\'s Cantrips', 87, 50, 25, 30, 'magic', 2, 143, 1, 750, 2]; _root.weapons.magic_24 = ['God Staff', 61, 50, 30, 30, 'magic', 8, 144, 1, 900, 2]; _root.spellbook = {}; _root.spellbook.spell1 = ['Mass Heal', 'Immediatly heals all allied heroes during battle']; _root.spellbook.spell2 = ['Power Up', 'For the next 10 turns any hero who attacks will deal double normal damage']; _root.spellbook.spell3 = ['Vampiric Power', 'For the next 10 turns any hero who attacks will be healed for the amount of damage dealt']; _root.spellbook.spell4 = ['Earth Barrier', 'All allied heroes are gifted additional stackable physical protection for the rest of the battle']; _root.spellbook.spell5 = ['Magical Shield', 'All allied heroes are gifted additional stackable magical protection for the rest of the battle']; _root.spellbook.spell6 = ['Cold Snap', 'Immediatly strikes all enemies with Cold Energy granting a 50% chance to make them miss their next turn']; _root.spellbook.spell7 = ['Fire Rain', 'Immediatly rains down high amounts of magical damage on all enemies. Can\'t be used to kill enemies.']; _root.spellbook.spell8 = ['Tuition', 'Heroes will receive double normal Experience for this battle']; _root.spellbook.spell9 = ['Gold Diggin\'', 'Enemies drop double the normal amount of gold during this battle']; _root.spellbook.spell10 = ['Bounty Hunting', 'Ensures that you will receive a treasure chest from the current battle']; } movieClip 1673 { } movieClip 1676 { } movieClip 1677 { } movieClip 1680 { } movieClip 1681 { } movieClip 1684 { } movieClip 1685 { } movieClip 1688 { } movieClip 1689 { } movieClip 1694 { frame 1 { stop(); } frame 2 { _root.playsfx('hover'); } } movieClip 1697 { } movieClip 1700 { } movieClip 1703 { } movieClip 1706 { } movieClip 1708 { } movieClip 1711 { frame 1 { stop(); } frame 2 { _root.playsfx('hover'); } } movieClip 1717 { } movieClip 1723 { frame 1 { stop(); } frame 2 { _root.playsfx('hover'); } } movieClip 1729 { frame 1 { stop(); } frame 2 { _root.playsfx('hover'); } } movieClip 1740 { frame 1 { stop(); } frame 2 { _root.playsfx('hover'); } } movieClip 1745 { frame 1 { stop(); } frame 2 { _root.playsfx('hover'); } } movieClip 1751 { frame 1 { stop(); } frame 2 { _root.playsfx('hover'); } } movieClip 1757 { frame 1 { stop(); } frame 2 { _root.playsfx('hover'); } } movieClip 1763 { frame 1 { stop(); } frame 2 { _root.playsfx('hover'); } } movieClip 1769 { frame 1 { stop(); } frame 2 { _root.playsfx('hover'); } } movieClip 1776 { frame 1 { stop(); } frame 2 { _root.playsfx('hover'); } } movieClip 1780 { } movieClip 1782 { } movieClip 1784 { } movieClip 1788 { frame 1 { stop(); } frame 2 { _root.playsfx('hover'); } } movieClip 1789 { } movieClip 1791 { } movieClip 1793 { } movieClip 1797 { } movieClip 1798 { } movieClip 1801 { } movieClip 1805 { } movieClip 1808 { } movieClip 1810 { frame 1 { bg.onRelease = function () {}; bg.useHandCursor = false; } frame 3 { bg.onRelease = function () { _root.window.tutorial.nextFrame(); }; } frame 4 { bg.onRelease = function () {}; bg.useHandCursor = false; } frame 5 { bg.onRelease = function () {}; bg.useHandCursor = false; } } movieClip 1813 { frame 1 { sprite1.myclass = 'fighter'; sprite2.myclass = 'knight'; sprite3.myclass = 'paladin'; sprite4.myclass = 'barbarian'; sprite5.myclass = 'dungeonmaster'; sprite6.myclass = 'boxman'; sprite7.myclass = 'chaoswarrior'; sprite8.myclass = 'centurion'; sprite9.myclass = 'merchant'; sprite10.myclass = 'alchemist'; sprite11.myclass = 'treasurehunter'; sprite12.myclass = 'priest'; sprite13.myclass = 'archmage'; sprite14.myclass = 'darkscholar'; sprite15.myclass = 'necromancer'; sprite16.myclass = 'bunnyman'; sprite17.myclass = 'bowman'; sprite18.myclass = 'woodsman'; sprite19.myclass = 'lumberjack'; sprite20.myclass = 'armouredarcher'; sprite21.myclass = 'commando'; sprite22.myclass = 'sniper'; sprite23.myclass = 'miner'; var i = 1; while (i < 24) { this['sprite' + i].armnum = i; this['sprite' + i].wepnum = 0; this['sprite' + i].internal.sprite.gotoAndStop(2); this['sprite' + i].internal.sprite.gotoAndStop(1); if (_root.globalstuff.unlockedheroes[i] == 0) { this['sprite' + i]._visible = false; } this['sprite' + i].onRollOver = function () { _root.playsfx('hover'); _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip(_root.roster[this.myclass][7] + '<new_line>' + _root.roster[this.myclass][6] + '<new_line>Click to Add to Party<new_line>', '0xFFFFFF|0xFDE724|0x22FFFF|0xFFFFFF|0x66FF00|0xFFFFFF', '22|16|14|14|18'); _root.myTooltip.show({'delay': 0.1, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; this['sprite' + i].onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; this['sprite' + i].onRelease = function () { _root.playsfx('heal'); _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); _root.window.addheroes.push(_root.createherodetails(this.myclass)); _root.window.spentenergy += _root.window.increasecosts[5]; _root.globalstuff.astralenergy -= _root.window.increasecosts[5]; if (_root.window.addheroes.length == 1) { _root.window.increasecosts[5] = 50; } else { if (_root.window.addheroes.length == 2) { _root.window.increasecosts[5] = 150; } else { if (_root.window.addheroes.length == 3) { _root.window.increasecosts[5] = 400; } else { if (_root.window.addheroes.length == 4) { _root.window.increasecosts[5] = 800; } else { if (_root.window.addheroes.length == 5) { _root.window.increasecosts[5] = 1500; } else { if (_root.window.addheroes.length == 6) { _root.window.increasecosts[5] = 2000; } else { if (_root.window.addheroes.length == 7) { _root.window.increasecosts[5] = 2800; } else { _root.window.increasecosts[5] = 3500; } } } } } } } com.greensock.TweenLite.to(_root.window.selectbox, 0.35, {'_y': -480}); _root.window.setup(); }; ++i; } close.onRollOver = function () { this.gotoAndStop(2); }; close.onRollOut = function () { this.gotoAndStop(1); }; close.onRelease = function () { _root.playsfx('click'); com.greensock.TweenLite.to(_root.window.selectbox, 0.35, {'_y': -480}); }; bg.onRelease = function () {}; bg.useHandCursor = false; stop(); } frame 2 { close.onRollOver = function () { this.gotoAndStop(2); }; close.onRollOut = function () { this.gotoAndStop(1); }; close.onRelease = function () { com.greensock.TweenLite.to(_root.window.selectbox, 0.35, {'_y': -480}); }; bg.onRelease = function () {}; bg.useHandCursor = false; stop(); var i = 0; while (i < 60) { if (_root.globalstuff.astralarmoury[i] != undefined) { this['i' + (i + 1)].mydetails = _root.globalstuff.astralarmoury[i]; this['i' + (i + 1)].mynum = i; if (_root.globalstuff.astralarmoury[i][5] == 0) { this['i' + (i + 1)].gotoAndStop(_root.globalstuff.astralarmoury[i][4]); } else { this['i' + (i + 1)].gotoAndStop(_root.globalstuff.astralarmoury[i][7]); } } else { this['i' + (i + 1)].gotoAndStop(145); } if (_root.globalstuff.astralarmourysize <= i) { this['i' + (i + 1)]._visible = false; } this['i' + (i + 1)].onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; this['i' + (i + 1)].onReleaseOutside = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; this['i' + (i + 1)].onRollOver = function () { if (_root.globalstuff.astralarmoury[this.mynum] != undefined) { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); if (this.mydetails[5] == 0) { _root.setuptip(this.mydetails[0] + '<new_line>Protection' + '<new_line>Physical: ' + this.mydetails[1] + '<new_line>Magical: ' + this.mydetails[2] + '<new_line> <new_line>Special Ability<new_line><new_line>' + _root.getarmourspecialname(this.mydetails[3]) + '<new_line>' + _root.getarmourspecialblurb(this.mydetails[3]) + '<new_line><new_line>Value: ' + this.mydetails[6] + 'gp<new_line>', '0xCCB700|0xCC5100|0x946538|0x008FCC|0xFFFFFF|0xCC5100|0xCC5100|0xF7AC00|0x7B7B7B|0xFFFFFF|0xDEF700', '22|14|20|20|16|14|16|16|16|12'); } else { if (this.mydetails[5] == 'physical' || this.mydetails[5] == 'ranged') { _root.setuptip(this.mydetails[0] + '<new_line>Physical Damage<new_line>' + this.mydetails[3] + '<new_line><new_line> <new_line>Special Ability<new_line><new_line>' + _root.getweaponspecialname(this.mydetails[6]) + '<new_line>' + _root.getweaponspecialblurb(this.mydetails[6]) + '<new_line><new_line>Value: ' + this.mydetails[9] + 'gp<new_line>', '0xCCB700|0x946538|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xCC5100|0xCC5100|0xF7AC00|0x7B7B7B|0xFFFFFF|0xDEF700', '22|14|28|16|16|14|16|16|16|12'); } else { _root.setuptip(this.mydetails[0] + '<new_line>Magical Damage<new_line>' + this.mydetails[3] + '<new_line><new_line> <new_line>Special Ability<new_line><new_line>' + _root.getweaponspecialname(this.mydetails[6]) + '<new_line>' + _root.getweaponspecialblurb(this.mydetails[6]) + '<new_line><new_line>Value: ' + this.mydetails[9] + 'gp<new_line>', '0xCCB700|0x008FCC|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xCC5100|0xCC5100|0xF7AC00|0x7B7B7B|0xFFFFFF|0xDEF700', '22|14|28|16|16|14|16|16|16|12'); } } _root.myTooltip.show({'delay': 0.25, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); } }; this['i' + (i + 1)].onRelease = function () { trace('clicked me: ' + _root.globalstuff.astralarmoury[this.mynum]); if (_root.globalstuff.astralarmoury[this.mynum] != undefined) { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); _root.window.itemchoices.push(this.mynum); com.greensock.TweenLite.to(_root.window.selectbox, 0.35, {'_y': -480}); _root.window.setup(); } }; var j = 0; while (j < _root.window.itemchoices.length) { if (_root.window.itemchoices[j] == i) { this['i' + (i + 1)]._alpha = 50; this['i' + (i + 1)].enabled = false; } ++j; } ++i; } } } movieClip 1814 { frame 1 { stop(); } frame 2 { bg.onRelease = function () {}; bg.useHandCursor = false; close.onRollOver = function () { this.gotoAndStop(2); }; close.onRollOut = function () { this.gotoAndStop(1); }; close.onRelease = function () { this.gotoAndStop(1); com.greensock.TweenLite.to(_root.window, 0.35, {'_x': 655}); }; } frame 3 { if (_root.doingtutorial) { tutprog = 1; tutorial._visible = true; tutorial.gotoAndStop(1); } else { tutorial._visible = false; } } frame 3 { function setup() { if (_root.doingtutorial && tutprog == 1 && addheroes.length == 1) { _root.window.tutorial.nextFrame(); } else { if (_root.doingtutorial && tutprog == 1 && addheroes.length == 2) { _root.window.tutorial.nextFrame(); tutprog = 2; } } if (addheroes.length < 1) { descend.enabled = false; descend._alpha = 50; } else { descend.enabled = true; descend._alpha = 100; } spellchoicestext.text = _root.globalstuff.maxspells - spellschosen + ' Choices Remaining'; if (_root.doingtutorial && tutprog == 2 && spellschosen == 2) { _root.window.tutorial.nextFrame(); tutprog = 3; } var v9 = 0; var v3 = 1; while (v3 < 11) { if (_root.globalstuff['spell' + v3] && spellchoices[v3] == 0) { ++v9; } ++v3; } if (v9 == 0) { spellchoicestext.text = 'No Known Spells Left to Pick'; } nrgyspent.text = spentenergy; astralenergy.text = _root.globalstuff.astralenergy; goldline.text = startinfo[0]; goldcostline.text = increasecosts[0]; manaline.text = startinfo[1]; manacostline.text = increasecosts[1]; potionline.text = startinfo[2]; potioncostline.text = increasecosts[2]; featherline.text = startinfo[3]; feathercostline.text = increasecosts[3]; turnline.text = startinfo[4] + ' Turns'; turncostline.text = increasecosts[4]; partytext.text = 'Initial Party (' + _root.globalstuff.maxparty + ' Max)'; itemmaxline.text = _root.globalstuff.maxitems + ' Max'; herocostline.text = increasecosts[5]; trace(addheroes); v3 = 1; while (v3 < 13) { if (_root.globalstuff['spell' + v3] && spellchoices[v3] == 0) { this['spell' + v3]._alpha = 50; this['spell' + v3].enabled = true; this['spell' + v3].mynum = v3; this['spell' + v3].onRelease = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); if (_root.globalstuff.maxspells - spellschosen > 0) { _root.playsfx('click'); spellchoices[this.mynum] = 1; ++spellschosen; setup(); } }; } else { if (spellchoices[v3] == 1) { this['spell' + v3]._alpha = 100; } else { this['spell' + v3]._alpha = 0; this['spell' + v3].enabled = false; } } this['spell' + v3].onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip(_root.spellbook['spell' + this.mynum][0] + '<new_line>' + _root.spellbook['spell' + this.mynum][1] + '<new_line><new_line>', '0xFFFFFF|0xFDE724|0x22FFFF|0xFFFFFF|0x66FF00|0xFFFFFF', '22|16|14|14|18'); _root.myTooltip.show({'delay': 0.1, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; this['spell' + v3].onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; if (addheroes[v3 - 1] != undefined) { this['sprite' + v3]._visible = true; this['sprite' + v3].mydetails = addheroes[v3 - 1]; this['sprite' + v3].armnum = addheroes[v3 - 1][1]; this['sprite' + v3].wepnum = addheroes[v3 - 1][6][1]; this['sprite' + v3].internal.sprite.gotoAndStop(2); this['sprite' + v3].internal.sprite.gotoAndStop(1); this['sprite' + v3].onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip('Ascended Soul<new_line>' + this.mydetails[2] + '<new_line>Health: ' + this.mydetails[3][0] + ' / ' + this.mydetails[3][1] + '<new_line>Initiative: ' + this.mydetails[4] + '<new_line><new_line><new_line>' + this.mydetails[5][0] + '<new_line> Physical: ' + this.mydetails[5][1] + ' Magical: ' + this.mydetails[5][2] + '<new_line><new_line><new_line>' + this.mydetails[6][0] + '<new_line>' + 'Damage: ' + this.mydetails[6][3] + 'x' + this.mydetails[10] + ' DPS: ' + Math.round(this.mydetails[6][3] * (this.mydetails[6][4] / 30) * this.mydetails[10]) + '<new_line><new_line>Level ' + this.mydetails[11] + '<new_line>' + this.mydetails[9][0] + ' Exp. ' + (this.mydetails[9][1] - this.mydetails[9][0]) + ' more needed.<new_line>', '0xFFFFFF|0xCC5100|0xFF0000|0xFDE724|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xCCB700', '22|14|16|16'); _root.myTooltip.show({'delay': 0.2, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; this['sprite' + v3].onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; this['sprite' + v3].onRelease = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; } else { this['sprite' + v3]._visible = false; } ++v3; } v3 = 0; while (v3 < 21) { if (_root.globalstuff.maxitems >= v3 + 1) { if (_root.window.itemchoices[v3] != undefined) { var v4 = _root.window.itemchoices[v3]; this['i' + (v3 + 1)].mydetails = _root.globalstuff.astralarmoury[v4]; this['i' + (v3 + 1)].mynum = v3; if (_root.globalstuff.astralarmoury[v4][5] == 0) { this['i' + (v3 + 1)].gotoAndStop(_root.globalstuff.astralarmoury[v4][4]); } else { this['i' + (v3 + 1)].gotoAndStop(_root.globalstuff.astralarmoury[v4][7]); } this['i' + (v3 + 1)].onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; this['i' + (v3 + 1)].onReleaseOutside = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; this['i' + (v3 + 1)].onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); if (this.mydetails[5] == 0) { _root.setuptip(this.mydetails[0] + '<new_line>Protection' + '<new_line>Physical: ' + this.mydetails[1] + '<new_line>Magical: ' + this.mydetails[2] + '<new_line> <new_line>Special Ability<new_line><new_line>' + _root.getarmourspecialname(this.mydetails[3]) + '<new_line>' + _root.getarmourspecialblurb(this.mydetails[3]) + '<new_line><new_line>Value: ' + this.mydetails[6] + 'gp<new_line>', '0xCCB700|0xCC5100|0x946538|0x008FCC|0xFFFFFF|0xCC5100|0xCC5100|0xF7AC00|0x7B7B7B|0xFFFFFF|0xDEF700', '22|14|20|20|16|14|16|16|16|12'); } else { if (this.mydetails[5] == 'physical' || this.mydetails[5] == 'ranged') { _root.setuptip(this.mydetails[0] + '<new_line>Physical Damage<new_line>' + this.mydetails[3] + '<new_line><new_line> <new_line>Special Ability<new_line><new_line>' + _root.getweaponspecialname(this.mydetails[6]) + '<new_line>' + _root.getweaponspecialblurb(this.mydetails[6]) + '<new_line><new_line>Value: ' + this.mydetails[9] + 'gp<new_line>', '0xCCB700|0x946538|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xCC5100|0xCC5100|0xF7AC00|0x7B7B7B|0xFFFFFF|0xDEF700', '22|14|28|16|16|14|16|16|16|12'); } else { _root.setuptip(this.mydetails[0] + '<new_line>Magical Damage<new_line>' + this.mydetails[3] + '<new_line><new_line> <new_line>Special Ability<new_line><new_line>' + _root.getweaponspecialname(this.mydetails[6]) + '<new_line>' + _root.getweaponspecialblurb(this.mydetails[6]) + '<new_line><new_line>Value: ' + this.mydetails[9] + 'gp<new_line>', '0xCCB700|0x008FCC|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xCC5100|0xCC5100|0xF7AC00|0x7B7B7B|0xFFFFFF|0xDEF700', '22|14|28|16|16|14|16|16|16|12'); } } _root.myTooltip.show({'delay': 0.25, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; } else { this['i' + (v3 + 1)].gotoAndStop(145); } } else { this['i' + (v3 + 1)]._visible = false; } ++v3; } if (_root.globalstuff.maxitems <= itemchoices.length) { additem._alpha = 25; additem.enabled = false; } if (_root.globalstuff.astralenergy < increasecosts[0]) { addgold._alpha = 25; addgold.enabled = false; } if (_root.globalstuff.astralenergy < increasecosts[1]) { addmana._alpha = 25; addmana.enabled = false; } if (_root.globalstuff.astralenergy < increasecosts[2]) { addpotions._alpha = 25; addpotions.enabled = false; } if (_root.globalstuff.astralenergy < increasecosts[3]) { addfeathers._alpha = 25; addfeathers.enabled = false; } if (_root.globalstuff.astralenergy < increasecosts[4]) { addturns._alpha = 25; addturns.enabled = false; } if (addheroes.length >= _root.globalstuff.maxparty || _root.globalstuff.astralenergy < increasecosts[5]) { addhero._alpha = 25; addhero.enabled = false; } if (additems.length >= _root.globalstuff.maxitems) { additem._alpha = 25; additem.enabled = false; } } startinfo = [_root.globalstuff.startinggold, _root.globalstuff.startingmana, _root.globalstuff.startingpotions, _root.globalstuff.startingfeathers, _root.generteinfo[10] + _root.globalstuff.bonusturns]; increasecosts = [_root.globalstuff.goldcost, _root.globalstuff.manacost, _root.globalstuff.potioncost, _root.globalstuff.feathercost, _root.globalstuff.turncost, 0]; additems = []; addheroes = []; spentenergy = 0; spellschosen = 0; spellchoices = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; itemchoices = []; setup(); bg.onRelease = function () {}; bg.useHandCursor = false; astgemo.onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip2('Astral Energy<new_line>Your current reserves of Astral Energy, you can spend this on advantages when you select a plane.<new_line>', '0xFFFFFF|0xFDE724|0x22FFFF|0xFDE724', '22|16|16|16'); _root.myTooltip.show({'delay': 0.2, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; astgemo.onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; wealtho.onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip2('Mundane Wealth<new_line>The amount of gold coins you will have. Gold is used to buy many things on the Lower Planes<new_line>', '0xFFFFFF|0xFDE724|0x22FFFF|0xFDE724', '22|16|16|16'); _root.myTooltip.show({'delay': 0.2, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; wealtho.onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; manao.onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip2('Mana Gems<new_line>The amount of mana gems you will have. Mana is used to cast battle spells.<new_line>', '0xFFFFFF|0xFDE724|0x22FFFF|0xFDE724', '22|16|16|16'); _root.myTooltip.show({'delay': 0.2, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; manao.onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; potso.onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip2('Healing Potions<new_line>The amount of healing potions you will have. Healing potions are used during battle to recover health.<new_line>', '0xFFFFFF|0xFDE724|0x22FFFF|0xFDE724', '22|16|16|16'); _root.myTooltip.show({'delay': 0.2, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; potso.onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; featherso.onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip2('Life Feathers<new_line>The amount of feathers you will have. Feathers are used during battle to recover knocked out heroes.<new_line>', '0xFFFFFF|0xFDE724|0x22FFFF|0xFDE724', '22|16|16|16'); _root.myTooltip.show({'delay': 0.2, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; featherso.onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; if (_root.globalstuff.astralarmoury.length == 0) { noitms._visible = true; noitms.onRelease = function () {}; noitms.useHandCursor = false; } else { noitms._visible = false; } } frame 3 { function descendtoplane() { if (!_root.doingtutorial) { _root.globalstuff.spentenergy += spentenergy; } _root.generteinfo[10] = startinfo[4]; _root.resinfo = []; _root.playerstuff = {}; _root.playerstuff.wealth = startinfo[0]; _root.playerstuff.spirit = 0; _root.playerstuff.potions = startinfo[2]; _root.playerstuff.feathers = startinfo[3]; _root.playerstuff.managems = startinfo[1]; _root.playerstuff.hastreasurehunter = false; _root.playerstuff.hasscout = false; _root.playerstuff.hasdungeonscout = false; _root.playerstuff.hasminer = false; _root.playerstuff.haslumberjack = false; _root.playerstuff.hasalchemist = false; _root.playerstuff.hasmerchant = false; _root.playerstuff.hashealer = false; _root.playerstuff.hasdetectevil = false; _root.playerstuff.hasdungeonreveal = false; _root.playerstuff.hasspawninfo = false; _root.playerstuff.hasmanaonmove = false; _root.playerstuff.hasresthealer = false; _root.playerstuff.hasrestmana = false; _root.playerstuff.haseasyquests = false; _root.playerstuff.onquest = false; _root.playerstuff.currentquest = []; _root.playerstuff.tracker = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; _root.playerstuff.inventory = []; trace('was: ' + _root.globalstuff.astralarmoury); var v4 = 0; while (v4 < itemchoices.length) { _root.playerstuff.inventory.push(_root.globalstuff.astralarmoury[itemchoices[v4]]); _root.globalstuff.astralarmoury.splice(itemchoices[v4], 1); var v3 = 0; while (v3 < itemchoices.length) { if (itemchoices[v3] > itemchoices[v4]) { itemchoices[v3] -= 1; } ++v3; } ++v4; } trace('now: ' + _root.globalstuff.astralarmoury); _root.playerstuff.turncost = 1500; _root.playerstuff.party = []; _root.playerstuff.spellbook = spellchoices.slice(); v4 = 0; while (v4 < addheroes.length) { _root.playerstuff.party.push(_root.createherodetails(addheroes[v4][15])); if (_root.globalstuff.startexp > 0) { _root.playerstuff.party[_root.playerstuff.party.length][9] += _root.globalstuff.startexp; } ++v4; } _root.playsfx('descend'); com.greensock.TweenLite.to(_root.window, 0.25, {'_x': 800}); _root.energyline.text = _root.globalstuff.astralenergy; _root.createEmptyMovieClip('transitional', _root.getNextHighestDepth()); _root.plane1.enabled = false; _root.plane2.enabled = false; _root.plane3.enabled = false; _root.plane4.enabled = false; _root.plane5.enabled = false; _root.plane6.enabled = false; _root.mainmenu.enabled = false; _root.stats.enabled = false; _root.transitional.ttl = 12; _root.transitional.stat = 0; _root.transitional.onEnterFrame = function () { --this.ttl; if (this.ttl == 0 && this.stat == 0) { com.greensock.TweenLite.to(_root.mainmenu, 0.3, {'_y': 800}); com.greensock.TweenLite.to(_root.skipit, 0.3, {'_y': -600}); com.greensock.TweenLite.to(_root.stats, 0.3, {'_y': 800}); com.greensock.TweenLite.to(_root.astgem, 0.5, {'_y': 800}); com.greensock.TweenLite.to(_root.energyline, 0.5, {'_y': 800}); com.greensock.TweenLite.to(_root.selplan, 0.5, {'_x': 800}); com.greensock.TweenLite.to(_root.astplane, 0.5, {'_y': -100}); com.greensock.TweenLite.to(_root.diffi, 0.5, {'_y': -100, '_xscale': 500, '_yscale': 500, '_alpha': 0}); this.stat = 1; this.ttl = 8; } else { if (this.ttl == 0 && this.stat == 1) { if (_root.selectedplane != 1) { com.greensock.TweenLite.to(_root.plane1, 0.5, {'_y': -600}); } if (_root.selectedplane != 2) { com.greensock.TweenLite.to(_root.plane2, 0.5, {'_y': -600}); } if (_root.selectedplane != 3) { com.greensock.TweenLite.to(_root.plane3, 0.5, {'_y': -600}); } if (_root.selectedplane != 4) { com.greensock.TweenLite.to(_root.plane4, 0.5, {'_y': -600}); } if (_root.selectedplane != 5) { com.greensock.TweenLite.to(_root.plane5, 0.5, {'_y': -600}); } com.greensock.TweenLite.to(_root['plane' + _root.selectedplane], 0.5, {'_y': 100, '_x': 100}); this.stat = 2; this.ttl = 45; com.greensock.TweenLite.to(_root.planedescend, 0.5, {'_y': 300}); com.greensock.TweenLite.to(_root.agLink, 0.5, {'_y': 800}); } else { if (this.ttl == 0 && this.stat == 2) { _root.playsfx('descend'); com.greensock.TweenLite.to(_root.planedescend, 1, {'_x': -100, '_alpha': 0, '_yscale': 250, '_xscale': 250}); com.greensock.TweenLite.to(_root['plane' + _root.selectedplane], 1, {'_y': 0, '_x': -200, '_xscale': 500, '_yscale': 500, '_alpha': 0}); this.ttl = 32; this.stat = 3; } else { if (this.ttl == 0 && this.stat == 3) { this.removeMovieClip(); _root.play(); } } } } }; } addhero.onRollOver = function () { this.gotoAndStop(2); }; addhero.onRollOut = function () { this.gotoAndStop(1); }; addhero.onRelease = function () { _root.playsfx('click'); this.gotoAndStop(1); _root.window.selectbox.gotoAndStop(2); _root.window.selectbox.gotoAndStop(1); com.greensock.TweenLite.to(_root.window.selectbox, 0.35, {'_y': 50}); }; additem.onRollOver = function () { this.gotoAndStop(2); }; additem.onRollOut = function () { this.gotoAndStop(1); }; additem.onRelease = function () { _root.playsfx('click'); this.gotoAndStop(1); _root.window.selectbox.gotoAndStop(1); _root.window.selectbox.gotoAndStop(2); com.greensock.TweenLite.to(_root.window.selectbox, 0.35, {'_y': 50}); }; addturns.onRollOver = function () { this.gotoAndStop(2); }; addturns.onRollOut = function () { this.gotoAndStop(1); }; addturns.onRelease = function () { _root.playsfx('click'); _root.globalstuff.astralenergy -= increasecosts[4]; spentenergy += increasecosts[4]; startinfo[4] += 20; increasecosts[4] += Math.round(increasecosts[4] / 4); setup(); }; addgold.onRollOver = function () { this.gotoAndStop(2); }; addgold.onRollOut = function () { this.gotoAndStop(1); }; addgold.onRelease = function () { _root.playsfx('click'); _root.globalstuff.astralenergy -= increasecosts[0]; spentenergy += increasecosts[0]; startinfo[0] += 20; increasecosts[0] += Math.round(increasecosts[0] / 4); setup(); }; addmana.onRollOver = function () { this.gotoAndStop(2); }; addmana.onRollOut = function () { this.gotoAndStop(1); }; addmana.onRelease = function () { _root.playsfx('click'); _root.globalstuff.astralenergy -= increasecosts[1]; spentenergy += increasecosts[1]; startinfo[1] += 5; increasecosts[1] += Math.round(increasecosts[1] / 4); setup(); }; addpotions.onRollOver = function () { this.gotoAndStop(2); }; addpotions.onRollOut = function () { this.gotoAndStop(1); }; addpotions.onRelease = function () { _root.playsfx('click'); _root.globalstuff.astralenergy -= increasecosts[2]; spentenergy += increasecosts[2]; startinfo[2] += 1; increasecosts[2] += Math.round(increasecosts[2] / 4); setup(); }; addfeathers.onRollOver = function () { this.gotoAndStop(2); }; addfeathers.onRollOut = function () { this.gotoAndStop(1); }; addfeathers.onRelease = function () { _root.playsfx('click'); _root.globalstuff.astralenergy -= increasecosts[3]; spentenergy += increasecosts[3]; startinfo[3] += 1; increasecosts[3] += Math.round(increasecosts[3] / 4); setup(); }; descend.onRollOver = function () { this.gotoAndStop(2); }; descend.onRollOut = function () { this.gotoAndStop(1); }; descend.onRelease = function () { descendtoplane(); _root.playsfx('click'); }; resetit.onRollOver = function () { this.gotoAndStop(2); }; resetit.onRollOut = function () { this.gotoAndStop(1); }; resetit.onRelease = function () { _root.playsfx('click'); _root.globalstuff.astralenergy += spentenergy; spentenergy = 0; _root.window.gotoAndStop(1); _root.window.gotoAndStop(3); }; closeit.onRollOver = function () { this.gotoAndStop(2); }; closeit.onRollOut = function () { this.gotoAndStop(1); }; closeit.onRelease = function () { _root.playsfx('click'); this.gotoAndStop(1); com.greensock.TweenLite.to(_root.window, 0.25, {'_x': 800}); _root.globalstuff.astralenergy += spentenergy; spentenergy = 0; _root.window.gotoAndStop(1); _root.window.gotoAndStop(3); }; } } movieClip 1822 { frame 1 { yes.onRollOver = function () { this.gotoAndStop(2); }; yes.onRollOut = function () { this.gotoAndStop(1); }; yes.onRelease = function () { _root.nextwelcome(); _root.playsfx('click'); }; bg.onRelease = function () {}; bg.useHandCursor = false; stop(); } frame 2 { yes.onRollOver = function () { this.gotoAndStop(2); }; yes.onRollOut = function () { this.gotoAndStop(1); }; yes.onRelease = function () { _root.playsfx('click'); _root.removewelcomewindow(); }; } frame 3 { yes.onRollOver = function () { this.gotoAndStop(2); }; yes.onRollOut = function () { this.gotoAndStop(1); }; yes.onRelease = function () { _root.playsfx('click'); _root.removewelcomewindow(); }; } frame 4 { yes.onRollOver = function () { this.gotoAndStop(2); }; yes.onRollOut = function () { this.gotoAndStop(1); }; yes.onRelease = function () { _root.playsfx('click'); _root.removewelcomewindow(true); }; } } frame 13 { _root.dungeonbossfights = {}; _root.dungeonbossfights.skeletoar = ['Skeletoar\'s Army', 'Easy', 4, 2, 24, 'skeletoar', 'skeleton_1', 'skeleton_1', 'skeleton_mage_1']; _root.dungeonbossfights.rotgut = ['Gutrot\'s Army', 'Easy', 4, 2, 24, 'rotgut', 'zombie_1', 'zombie_1', 'zombie_1']; _root.dungeonbossfights.goblin_boss = ['Goblin\'s Army', 'Easy', 4, 2, 24, 'goblin_boss', 'goblin_1', 'goblin_1', 'goblin_archer_1']; _root.dungeonbossfights.stoneface = ['Stoneface\'s Army', 'Easy', 4, 2, 24, 'stoneface', 'earth_elemental_1', 'earth_elemental_1', 'earth_elemental_1']; _root.dungeonbossfights.chaos_master = ['Chaos Army', 'Easy', 4, 2, 24, 'chaos_master', 'chaos_warrior_1', 'chaos_warrior_1', 'chaos_warrior_1']; _root.dungeonbossfights.slime_prince = ['Slime Prince\'s Army', 'Easy', 4, 2, 24, 'slime_prince', 'slime_1', 'slime_1', 'slime_1']; _root.dungeonbossfights.orc_commander = ['Orc Commander\'s Army', 'Easy', 4, 2, 24, 'orc_commander', 'orc_1', 'orc_1', 'orc_shaman_1']; _root.dungeonbossfights.sparkz = ['Sparkz\'s Army', 'Easy', 4, 2, 24, 'sparkz', 'lightning_elemental_1', 'fire_elemental_1', 'ice_elemental_1']; _root.dungeonbossfights.bad_sheep = ['Bad Sheep\'s Army', 'Easy', 4, 2, 24, 'bad_sheep', 'sheep_1', 'sheep_1', 'sheep_1']; _root.dungeonbossfights.badbones = ['Bad Bones\' Army', 'Easy', 9, 3, 24, 'badbones', 'skeleton_3', 'skeleton_3', 'skeleton_3', 'skeleton_mage_2', 'skeleton_mage_2', 'skeleton_mage_2', 'skeleton_mage_2', 'skeleton_mage_2']; _root.dungeonbossfights.skincrust = ['Skincrust\'s Army', 'Easy', 10, 3, 24, 'skincrust', 'zombie_3', 'zombie_3', 'zombie_3', 'zombie_3', 'zombie_3', 'zombie_3', 'zombie_3', 'zombie_3', 'zombie_3']; _root.dungeonbossfights.headshrinker = ['Headshrinker\'s Army', 'Easy', 9, 3, 24, 'headshrinker', 'orc_3', 'orc_3', 'orc_3', 'goblin_archer_3', 'goblin_archer_3', 'goblin_archer_3', 'goblin_archer_3', 'goblin_archer_3']; _root.dungeonbossfights.grogbow = ['Grogbow\'s Army', 'Easy', 10, 3, 24, 'grogbow', 'goblin_3', 'goblin_3', 'goblin_3', 'goblin_archer_2', 'goblin_archer_2', 'goblin_archer_2', 'goblin_archer_2', 'goblin_archer_3', 'goblin_archer_2']; _root.dungeonbossfights.lowdown = ['Lowdown\'s Army', 'Easy', 12, 3, 24, 'lowdown', 'chaos_warrior_3', 'chaos_warrior_3', 'chaos_warrior_3', 'demon_2', 'demon_2', 'demon_2', 'demon_2', 'demon_2', 'demon_2', 'demon_2', 'demon_2']; _root.dungeonbossfights.grimshaw = ['Chaos Army', 'Easy', 9, 3, 24, 'grimshaw', 'chaos_warrior_3', 'chaos_warrior_3', 'chaos_warrior_3', 'chaos_warrior_3', 'chaos_warrior_3', 'chaos_warrior_3', 'chaos_warrior_3', 'chaos_warrior_3']; _root.dungeonbossfights.bonehead = ['Bonehead\'s Army', 'Easy', 8, 3, 24, 'bonehead', 'bone_elemental_3', 'bone_elemental_3', 'bone_elemental_3', 'bone_elemental_3', 'bone_elemental_3', 'bone_elemental_3', 'bone_elemental_3']; _root.dungeonbossfights.coldsnap = ['Coldsnap\'s Army', 'Easy', 8, 3, 24, 'coldsnap', 'earth_elemental_3', 'earth_elemental_3', 'ice_elemental_3', 'ice_elemental_3', 'ice_elemental_3', 'ice_elemental_3', 'ice_elemental_3']; _root.dungeonbossfights.pingwing = ['Pingwing\'s Army', 'Easy', 10, 3, 24, 'pingwing', 'penguin_3', 'penguin_3', 'penguin_3', 'mushroom_3', 'mushroom_3', 'penguin_3', 'penguin_3', 'penguin_3', 'penguin_3']; _root.dungeonbossfights.snakey = ['Snakey\'s Army', 'Easy', 10, 3, 24, 'snakey', 'snake_3', 'snake_3', 'snake_3', 'snake_3', 'snake_3', 'snake_3', 'snake_3', 'snake_3', 'snake_3']; _root.dungeonbossfights.risenreginald = ['Reginald\'s Army', 'Easy', 10, 5, 24, 'risenreginald', 'skeleton_5', 'skeleton_5', 'skeleton_5', 'skeleton_mage_4', 'skeleton_mage_4', 'skeleton_mage_4', 'skeleton_mage_4', 'skeleton_mage_5', 'skeleton_mage_5']; _root.dungeonbossfights.kaotica = ['Kaotica\'s Army', 'Easy', 10, 5, 24, 'kaotica', 'chaos_warrior_5', 'chaos_warrior_5', 'chaos_warrior_5', 'demon_4', 'demon_4', 'demon_4', 'demon_4', 'demon_4', 'demon_4']; _root.dungeonbossfights.sparklez = ['Sparklez', 'Easy', 10, 5, 24, 'sparklez', 'crystal_elemental_5', 'crystal_elemental_5', 'crystal_elemental_5', 'lightning_elemental_4', 'lightning_elemental_4', 'lightning_elemental_4', 'lightning_elemental_4', 'lightning_elemental_4', 'lightning_elemental_4']; _root.dungeonbossfights.goomba = ['Goomba\'s Army', 'Easy', 10, 5, 24, 'goomba', 'mushroom_5', 'mushroom_5', 'mushroom_5', 'penguin_4', 'slime_4', 'slime_4', 'penguin_4', 'mushroom_5', 'mushroom_5']; _root.dungeonbossfights.crazycorvix = ['Crazy Corvix', 'Easy', 10, 5, 24, 'crazycorvix', 'goblin_5', 'goblin_5', 'goblin_5', 'orc_shaman_4', 'goblin_archer_4', 'goblin_archer_4', 'orc_shaman_4', 'orc_shaman_4', 'orc_shaman_5']; _root.dungeonbossfights.elderthantos = ['Thantos\' Army', 'Easy', 10, 7, 24, 'elderthantos', 'skeleton_7', 'skeleton_7', 'skeleton_7', 'skeleton_7', 'skeleton_mage_6', 'skeleton_mage_6', 'skeleton_7', 'skeleton_mage_6', 'skeleton_mage_6']; _root.dungeonbossfights.ancientthoraz = ['Thaoraz\' Army', 'Easy', 10, 7, 24, 'ancientthoraz', 'chaos_warrior_7', 'chaos_warrior_7', 'chaos_warrior_7', 'chaos_warrior_7', 'demon_6', 'demon_6', 'chaos_warrior_7', 'demon_6', 'demon_6']; _root.dungeonbossfights.bubblegum = ['Bubblegum\'s Army', 'Easy', 10, 7, 24, 'bubblegum', 'sheep_7', 'sheep_7', 'slime_7', 'slime_7', 'mushroom_6', 'mushroom_6', 'slime_7', 'penguin_6', 'penguin_6']; _root.dungeonbossfights.devorix = ['Devorix\'s Army', 'Easy', 10, 7, 24, 'devorix', 'orc_7', 'orc_7', 'goblin_7', 'orc_7', 'goblin_archer_6', 'goblin_archer_6', 'orc_7', 'orc_shaman_6', 'orc_shaman_6']; _root.dungeonbossfights.rockyballbowa = ['Rocky\'s Army', 'Easy', 10, 7, 24, 'rockyballbowa', 'rock_elemental_7', 'rock_elemental_7', 'rock_elemental_7', 'rock_elemental_7', 'rock_elemental_7', 'rock_elemental_7', 'rock_elemental_7', 'rock_elemental_7', 'rock_elemental_7']; _root.dungeonbossfights.necroninja = ['Necroninja\'s Army', 'Easy', 12, 9, 24, 'necroninja', 'ninja_8', 'ninja_8', 'skeleton_9', 'skeleton_9', 'skeleton_mage_8', 'skeleton_mage_8', 'skeleton_9', 'skeleton_9', 'skeleton_mage_8', 'skeleton_mage_8', 'skeleton_9']; _root.dungeonbossfights.kaosninja = ['Kaosninja\'s Army', 'Easy', 12, 9, 24, 'kaosninja', 'ninja_8', 'ninja_8', 'chaos_warrior_9', 'chaos_warrior_9', 'demon_8', 'demon_8', 'chaos_warrior_9', 'chaos_warrior_9', 'demon_8', 'demon_8', 'chaos_warrior_9']; _root.dungeonbossfights.critterninja = ['Critterninja\'s Army', 'Easy', 12, 9, 24, 'critterninja', 'ninja_8', 'ninja_8', 'sheep_9', 'sheep_9', 'mushroom_8', 'mushroom_8', 'sheep_9', 'slime_9', 'penguin_8', 'penguin_8', 'slime_9']; _root.dungeonbossfights.ogrishninja = ['Ogrishninja\'s Army', 'Easy', 12, 9, 24, 'ogrishninja', 'ninja_8', 'ninja_8', 'orc_9', 'goblin_9', 'goblin_archer_8', 'goblin_archer_8', 'goblin_9', 'orc_9', 'orc_shaman_8', 'orc_shaman_8', 'orc_9']; _root.dungeonbossfights.elementninja = ['Elementninja\'s Army', 'Easy', 12, 9, 24, 'elementninja', 'ninja_8', 'ninja_8', 'earth_elemental_9', 'crystal_elemental_9', 'fire_elemental_8', 'ice_elemental_8', 'crystal_elemental_9', 'bone_elemental_9', 'lightning_elemental_8', 'lightning_elemental_8', 'bone_elemental_9']; _root.spawnerbossfights = {}; _root.spawnerbossfights.undead_1 = ['Skeletoar\'s Army', 'Easy', 4, 2, 24, 'skeletoar', 'skeleton_1', 'skeleton_1', 'skeleton_mage_1']; _root.spawnerbossfights.chaos_1 = ['Chaos Army', 'Easy', 4, 2, 24, 'chaos_master', 'chaos_warrior_1', 'chaos_warrior_1', 'chaos_warrior_1']; _root.spawnerbossfights.orcs_1 = ['Orc Commander\'s Army', 'Easy', 4, 2, 24, 'orc_commander', 'orc_1', 'orc_1', 'orc_shaman_1']; _root.spawnerbossfights.slimes_1 = ['Bad Sheep\'s Army', 'Easy', 4, 2, 24, 'bad_sheep', 'sheep_1', 'sheep_1', 'sheep_1']; _root.spawnerbossfights.elementals_1 = ['Stoneface\'s Army', 'Easy', 4, 2, 24, 'stoneface', 'earth_elemental_1', 'earth_elemental_1', 'earth_elemental_1']; _root.spawnerbossfights.undead_2 = ['Skeletoar\'s Army', 'Easy', 4, 2, 24, 'skeletoar', 'skeleton_2', 'skeleton_2', 'skeleton_mage_2']; _root.spawnerbossfights.chaos_2 = ['Chaos Army', 'Easy', 4, 2, 24, 'chaos_master', 'chaos_warrior_2', 'chaos_warrior_2', 'chaos_warrior_2']; _root.spawnerbossfights.orcs_2 = ['Orc Commander\'s Army', 'Easy', 4, 2, 24, 'orc_commander', 'orc_2', 'orc_2', 'orc_shaman_2']; _root.spawnerbossfights.slimes_2 = ['Bad Sheep\'s Army', 'Easy', 4, 2, 24, 'bad_sheep', 'sheep_2', 'sheep_2', 'sheep_2']; _root.spawnerbossfights.elementals_2 = ['Stoneface\'s Army', 'Easy', 4, 2, 24, 'stoneface', 'earth_elemental_2', 'earth_elemental_2', 'earth_elemental_2']; _root.spawnerbossfights.undead_3 = ['Skincrust\'s Army', 'Easy', 6, 3, 24, 'skincrust', 'zombie_3', 'zombie_3', 'zombie_3', 'zombie_3', 'zombie_3']; _root.spawnerbossfights.chaos_3 = ['Lowdown\'s Army', 'Easy', 8, 3, 24, 'lowdown', 'demon_2', 'demon_2', 'demon_2', 'demon_2', 'demon_2', 'demon_2', 'demon_2']; _root.spawnerbossfights.orcs_3 = ['Grogbow\'s Army', 'Easy', 7, 3, 24, 'grogbow', 'goblin_3', 'goblin_3', 'goblin_3', 'goblin_archer_2', 'goblin_archer_2', 'goblin_archer_2']; _root.spawnerbossfights.slimes_3 = ['Pingwing\'s Army', 'Easy', 6, 3, 24, 'pingwing', 'penguin_3', 'penguin_3', 'penguin_3', 'mushroom_3', 'mushroom_3']; _root.spawnerbossfights.elementals_3 = ['Coldsnap\'s Army', 'Easy', 6, 3, 24, 'coldsnap', 'earth_elemental_3', 'earth_elemental_3', 'ice_elemental_3', 'ice_elemental_3', 'ice_elemental_3']; _root.spawnerbossfights.undead_4 = ['Skincrust\'s Army', 'Easy', 6, 4, 24, 'skincrust', 'zombie_4', 'zombie_4', 'zombie_4', 'zombie_4', 'zombie_4']; _root.spawnerbossfights.chaos_4 = ['Lowdown\'s Army', 'Easy', 8, 4, 24, 'lowdown', 'demon_3', 'demon_3', 'demon_3', 'demon_3', 'demon_3', 'demon_3', 'demon_3']; _root.spawnerbossfights.orcs_4 = ['Grogbow\'s Army', 'Easy', 7, 4, 24, 'grogbow', 'goblin_4', 'goblin_4', 'goblin_4', 'goblin_archer_3', 'goblin_archer_3', 'goblin_archer_3']; _root.spawnerbossfights.slimes_4 = ['Pingwing\'s Army', 'Easy', 6, 4, 24, 'pingwing', 'penguin_4', 'penguin_4', 'penguin_4', 'mushroom_4', 'mushroom_4']; _root.spawnerbossfights.elementals_4 = ['Coldsnap\'s Army', 'Easy', 6, 4, 24, 'coldsnap', 'earth_elemental_4', 'earth_elemental_4', 'ice_elemental_4', 'ice_elemental_4', 'ice_elemental_4']; _root.spawnerbossfights.undead_5 = ['Reginald\'s Army', 'Easy', 8, 5, 24, 'risenreginald', 'skeleton_5', 'skeleton_5', 'skeleton_5', 'skeleton_mage_4', 'skeleton_mage_4', 'skeleton_mage_4', 'skeleton_mage_4']; _root.spawnerbossfights.chaos_5 = ['Kaotica\'s Army', 'Easy', 8, 5, 24, 'kaotica', 'chaos_warrior_5', 'chaos_warrior_5', 'chaos_warrior_5', 'demon_4', 'demon_4', 'demon_4', 'demon_4']; _root.spawnerbossfights.orcs_5 = ['Crazy Corvix', 'Easy', 8, 5, 24, 'crazycorvix', 'goblin_5', 'goblin_5', 'goblin_5', 'orc_shaman_4', 'goblin_archer_4', 'goblin_archer_4', 'orc_shaman_4']; _root.spawnerbossfights.slimes_5 = ['Goomba\'s Army', 'Easy', 8, 5, 24, 'goomba', 'mushroom_5', 'mushroom_5', 'mushroom_5', 'penguin_4', 'slime_4', 'slime_4', 'penguin_4']; _root.spawnerbossfights.elementals_5 = ['Sparklez', 'Easy', 8, 5, 24, 'sparklez', 'crystal_elemental_5', 'crystal_elemental_5', 'crystal_elemental_5', 'lightning_elemental_4', 'lightning_elemental_4', 'lightning_elemental_4', 'lightning_elemental_4']; _root.spawnerbossfights.undead_6 = ['Reginald\'s Army', 'Easy', 8, 6, 24, 'risenreginald', 'skeleton_6', 'skeleton_6', 'skeleton_6', 'skeleton_mage_5', 'skeleton_mage_5', 'skeleton_mage_5', 'skeleton_mage_5']; _root.spawnerbossfights.chaos_6 = ['Kaotica\'s Army', 'Easy', 8, 6, 24, 'kaotica', 'chaos_warrior_6', 'chaos_warrior_6', 'chaos_warrior_6', 'demon_5', 'demon_5', 'demon_5', 'demon_5']; _root.spawnerbossfights.orcs_6 = ['Crazy Corvix', 'Easy', 8, 6, 24, 'crazycorvix', 'goblin_6', 'goblin_6', 'goblin_6', 'orc_shaman_5', 'goblin_archer_5', 'goblin_archer_5', 'orc_shaman_5']; _root.spawnerbossfights.slimes_6 = ['Goomba\'s Army', 'Easy', 8, 6, 24, 'goomba', 'mushroom_6', 'mushroom_6', 'mushroom_6', 'penguin_5', 'slime_5', 'slime_5', 'penguin_5']; _root.spawnerbossfights.elementals_6 = ['Sparklez', 'Easy', 8, 6, 24, 'sparklez', 'crystal_elemental_6', 'crystal_elemental_6', 'crystal_elemental_6', 'lightning_elemental_5', 'lightning_elemental_5', 'lightning_elemental_5', 'lightning_elemental_5']; _root.spawnerbossfights.undead_7 = ['Thantos\' Army', 'Easy', 10, 7, 24, 'elderthantos', 'skeleton_7', 'skeleton_7', 'skeleton_7', 'skeleton_7', 'skeleton_mage_6', 'skeleton_mage_6', 'skeleton_7', 'skeleton_mage_6', 'skeleton_mage_6']; _root.spawnerbossfights.chaos_7 = ['Thaoraz\' Army', 'Easy', 10, 7, 24, 'ancientthoraz', 'chaos_warrior_7', 'chaos_warrior_7', 'chaos_warrior_7', 'chaos_warrior_7', 'demon_6', 'demon_6', 'chaos_warrior_7', 'demon_6', 'demon_6']; _root.spawnerbossfights.orcs_7 = ['Devorix\'s Army', 'Easy', 10, 7, 24, 'devorix', 'orc_7', 'orc_7', 'goblin_7', 'orc_7', 'goblin_archer_6', 'goblin_archer_6', 'orc_7', 'orc_shaman_6', 'orc_shaman_6']; _root.spawnerbossfights.slimes_7 = ['Bubblegum\'s Army', 'Easy', 10, 7, 24, 'bubblegum', 'sheep_7', 'sheep_7', 'slime_7', 'slime_7', 'mushroom_6', 'mushroom_6', 'slime_7', 'penguin_6', 'penguin_6']; _root.spawnerbossfights.elementals_7 = ['Rocky\'s Army', 'Easy', 10, 7, 24, 'rockyballbowa', 'rock_elemental_7', 'rock_elemental_7', 'rock_elemental_7', 'rock_elemental_7', 'rock_elemental_7', 'rock_elemental_7', 'rock_elemental_7', 'rock_elemental_7', 'rock_elemental_7']; _root.spawnerbossfights.undead_8 = ['Thantos\' Army', 'Easy', 10, 8, 24, 'elderthantos', 'skeleton_8', 'skeleton_8', 'skeleton_8', 'skeleton_8', 'skeleton_mage_7', 'skeleton_mage_7', 'skeleton_8', 'skeleton_mage_7', 'skeleton_mage_7']; _root.spawnerbossfights.chaos_8 = ['Thaoraz\' Army', 'Easy', 10, 8, 24, 'ancientthoraz', 'chaos_warrior_8', 'chaos_warrior_8', 'chaos_warrior_8', 'chaos_warrior_8', 'demon_7', 'demon_7', 'chaos_warrior_8', 'demon_7', 'demon_7']; _root.spawnerbossfights.orcs_8 = ['Devorix\'s Army', 'Easy', 10, 8, 24, 'devorix', 'orc_8', 'orc_8', 'goblin_8', 'orc_8', 'goblin_archer_7', 'goblin_archer_7', 'orc_8', 'orc_shaman_7', 'orc_shaman_7']; _root.spawnerbossfights.slimes_8 = ['Bubblegum\'s Army', 'Easy', 10, 8, 24, 'bubblegum', 'sheep_8', 'sheep_8', 'slime_8', 'slime_8', 'mushroom_7', 'mushroom_7', 'slime_8', 'penguin_7', 'penguin_7']; _root.spawnerbossfights.elementals_8 = ['Rocky\'s Army', 'Easy', 10, 8, 24, 'rockyballbowa', 'rock_elemental_8', 'rock_elemental_8', 'rock_elemental_8', 'rock_elemental_8', 'rock_elemental_8', 'rock_elemental_8', 'rock_elemental_8', 'rock_elemental_8', 'rock_elemental_8']; _root.spawnerbossfights.undead_9 = ['Thantos\' Army', 'Easy', 10, 9, 24, 'elderthantos', 'skeleton_9', 'skeleton_9', 'skeleton_9', 'skeleton_9', 'skeleton_mage_8', 'skeleton_mage_8', 'skeleton_9', 'skeleton_mage_8', 'skeleton_mage_8']; _root.spawnerbossfights.chaos_9 = ['Thaoraz\' Army', 'Easy', 10, 9, 24, 'ancientthoraz', 'chaos_warrior_9', 'chaos_warrior_9', 'chaos_warrior_9', 'chaos_warrior_9', 'demon_8', 'demon_8', 'chaos_warrior_9', 'demon_8', 'demon_8']; _root.spawnerbossfights.orcs_9 = ['Devorix\'s Army', 'Easy', 10, 9, 24, 'devorix', 'orc_9', 'orc_9', 'goblin_9', 'orc_9', 'goblin_archer_8', 'goblin_archer_8', 'orc_9', 'orc_shaman_8', 'orc_shaman_8']; _root.spawnerbossfights.slimes_9 = ['Bubblegum\'s Army', 'Easy', 10, 9, 24, 'bubblegum', 'sheep_9', 'sheep_9', 'slime_9', 'slime_9', 'mushroom_8', 'mushroom_8', 'slime_9', 'penguin_8', 'penguin_8']; _root.spawnerbossfights.elementals_9 = ['Rocky\'s Army', 'Easy', 10, 9, 24, 'rockyballbowa', 'rock_elemental_9', 'rock_elemental_9', 'rock_elemental_9', 'rock_elemental_9', 'rock_elemental_9', 'rock_elemental_9', 'rock_elemental_9', 'rock_elemental_9', 'rock_elemental_9']; _root.spawnerbossfights.undead_10 = ['Necroninja\'s Army', 'Easy', 12, 9, 24, 'necroninja', 'ninja_8', 'ninja_8', 'skeleton_9', 'skeleton_9', 'skeleton_mage_8', 'skeleton_mage_8', 'skeleton_9', 'skeleton_9', 'skeleton_mage_8', 'skeleton_mage_8', 'skeleton_9']; _root.spawnerbossfights.chaos_10 = ['Kaosninja\'s Army', 'Easy', 12, 9, 24, 'kaosninja', 'ninja_8', 'ninja_8', 'chaos_warrior_9', 'chaos_warrior_9', 'demon_8', 'demon_8', 'chaos_warrior_9', 'chaos_warrior_9', 'demon_8', 'demon_8', 'chaos_warrior_9']; _root.spawnerbossfights.slimes_10 = ['Critterninja\'s Army', 'Easy', 12, 9, 24, 'critterninja', 'ninja_8', 'ninja_8', 'sheep_9', 'sheep_9', 'mushroom_8', 'mushroom_8', 'sheep_9', 'slime_9', 'penguin_8', 'penguin_8', 'slime_9']; _root.spawnerbossfights.orcs_10 = ['Ogrishninja\'s Army', 'Easy', 12, 9, 24, 'ogrishninja', 'ninja_8', 'ninja_8', 'orc_9', 'goblin_9', 'goblin_archer_8', 'goblin_archer_8', 'goblin_9', 'orc_9', 'orc_shaman_8', 'orc_shaman_8', 'orc_9']; _root.spawnerbossfights.elementals_10 = ['Elementninja\'s Army', 'Easy', 12, 9, 24, 'elementninja', 'ninja_8', 'ninja_8', 'earth_elemental_9', 'crystal_elemental_9', 'fire_elemental_8', 'ice_elemental_8', 'crystal_elemental_9', 'bone_elemental_9', 'lightning_elemental_8', 'lightning_elemental_8', 'bone_elemental_9']; _root.dungeonstuffs = {}; _root.dungeonstuffs.undeadbosses1 = ['rotgut', 'skeletoar']; _root.dungeonstuffs.orcsbosses1 = ['goblin_boss', 'orc_commander']; _root.dungeonstuffs.chaosbosses1 = ['chaos_master', 'chaos_master']; _root.dungeonstuffs.slimesbosses1 = ['slime_prince', 'bad_sheep']; _root.dungeonstuffs.elementalsbosses1 = ['stoneface', 'sparkz']; _root.dungeonstuffs.undeadbosses2 = ['badbones', 'skincrust']; _root.dungeonstuffs.orcsbosses2 = ['headshrinker', 'grogbow']; _root.dungeonstuffs.chaosbosses2 = ['grimshaw', 'lowdown']; _root.dungeonstuffs.slimesbosses2 = ['pingwing', 'snakey']; _root.dungeonstuffs.elementalsbosses2 = ['bonehead', 'coldsnap']; _root.dungeonstuffs.undeadbosses3 = ['risenreginald', 'risenreginald']; _root.dungeonstuffs.orcsbosses3 = ['crazycorvix', 'crazycorvix']; _root.dungeonstuffs.chaosbosses3 = ['kaotica', 'kaotica']; _root.dungeonstuffs.slimesbosses3 = ['goomba', 'goomba']; _root.dungeonstuffs.elementalsbosses3 = ['sparklez', 'sparklez']; _root.dungeonstuffs.undeadbosses4 = ['elderthantos', 'elderthantos']; _root.dungeonstuffs.orcsbosses4 = ['devorix', 'devorix']; _root.dungeonstuffs.chaosbosses4 = ['ancientthoraz', 'ancientthoraz']; _root.dungeonstuffs.slimesbosses4 = ['bubblegum', 'bubblegum']; _root.dungeonstuffs.elementalsbosses4 = ['rockyballbowa', 'rockyballbowa']; _root.dungeonstuffs.undeadbosses5 = ['necroninja', 'necroninja']; _root.dungeonstuffs.orcsbosses5 = ['ogrishninja', 'ogrishninja']; _root.dungeonstuffs.chaosbosses5 = ['kaosninja', 'kaosninja']; _root.dungeonstuffs.slimesbosses5 = ['critterninja', 'critterninja']; _root.dungeonstuffs.elementalsbosses5 = ['elementninja', 'elementninja']; _root.dungeonstuffs.undeadnames = ['Skeleton Cave', 'Underground Graveyard', 'Musty Tomb', 'Ancient Crypt', 'Lair of Restless Bones']; _root.dungeonstuffs.orcsnames = ['Orc Hideout', 'Orcish Barracks', 'Orc Warhall', 'Clan Warcamp', 'Orcish Factory', 'Abandoned Warehouse']; _root.dungeonstuffs.elementalsnames = ['Standing Stones', 'Cave of Elements', 'Hall of the Elements', 'Stone Fortress', 'Abandoned Mine', 'Destroyed Stones']; _root.dungeonstuffs.slimesnames = ['Old Cave', 'Gloomy Pit', 'Overgrown Ruins']; _root.dungeonstuffs.chaosnames = ['Chaos Pit', 'Stairway of Chaos', 'Unpronouncable Area', 'Chaotic Arena']; _root.dungeonstuffs.dungeons1 = [['Skeleton Cave', 4, 4, 'undead', 1, 'skeletoar', random(20) + 20, random(10) + 10, 1, 1], ['Ancient Burial Site', 4, 4, 'undead', 1, 'gutrot', random(20) + 20, random(10) + 10, 1, 1], ['Goblin Shacks', 4, 4, 'orcs', 1, 'goblin_boss', random(20) + 20, random(10) + 10, 1, 1], ['Elemental Caverns', 4, 4, 'elementals', 1, 'stoneface', random(20) + 20, random(10) + 10, 1, 1], ['Chaos Pit', 4, 4, 'chaos', 1, 'chaos_master', random(20) + 20, random(10) + 10, 1, 1], ['Overgrown Opening', 4, 4, 'slimes', 1, 'slime_prince', random(20) + 20, random(10) + 10, 1, 1], ['Orc Hideout', 4, 4, 'orcs', 1, 'orc_commander', random(20) + 20, random(10) + 10, 1, 1], ['Abandoned Mine', 4, 4, 'elementals', 1, 'sparkz', random(20) + 20, random(10) + 10, 1, 1], ['Scary Rocks', 4, 4, 'slimes', 1, 'bad_sheep', random(20) + 20, random(10) + 10, 1, 1]]; _root.dungeonstuffs.dungeons2 = []; _root.dungeonstuffs.dungeons3 = []; _root.dungeonstuffs.dungeons4 = []; _root.dungeonstuffs.dungeons5 = []; _root.quests = {}; _root.quests.quest_1 = [1, 'I\'d love to join you on your amazing adventure, but my family is sick and I need to buy them medicine, if you paid for it I would join you.']; _root.quests.quest_2 = [2, 'Hey, have you been inside a dungeon? They look super scary, but also super exciting, I\'ll join your party, but if I do I want you to clear a dungeon with me.']; _root.quests.quest_3 = [3, 'Join you? Sure thing! One catch though, if I do join you I\'d like us to go out and kill a ton of monsters!']; _root.quests.quest_4 = [4, 'Joining your party would amazing, but, I\'ve been hired to destroy a monster shrine already. If you promise to destroy one with me I\'m all yours!']; _root.quests.quest_5 = [5, 'I just LOVE gold, if I join up with you I want to be well paid, I\'ll stick around as long as you can gather plenty of gold.']; _root.quests.quest_6 = [6, 'My equipment sucks, I\'ll join your awesome adventuring party but only if you promise to get me some better armour as soon as you can.']; _root.quests.quest_7 = [7, 'Join up? Sure thing! But my weapon is so useless, I\'ll come along for now, but I really need my weapon upgraded if I\'m going to stay for good.']; _root.quests.quest_8 = [8, '*Hic* Woah dude, I want to chill with you guys, do you got any healing potions? If you drink enough of them you get all spacey. I\'ll join but only if you find more potions.']; _root.quests.quest_9 = [9, 'One day I plan to be a mighty adventurer, I want to join up with you for a while, if our party gains this much experience then I\'ll stay for good!']; _root.numquests = 9; } frame 13 { _root.creeps = {}; _root.creeps.list_undead = ['skeleton', 'skeleton_knight', 'zombie', 'skeleton_mage', 'necromancer']; _root.creeps.list_elementals = ['earth_elemental', 'bone_elemental', 'rock_elemental', 'crystal_elemental', 'lightning_elemental', 'ice_elemental']; _root.creeps.list_chaos = ['chaos_warrior', 'demon']; _root.creeps.list_slimes = ['slime', 'sheep', 'mushroom', 'snake', 'penguin']; _root.creeps.list_orcs = ['orc', 'orc_shaman', 'goblin', 'goblin_archer']; _root.bestiary = {}; _root.bestiary.skeletoar = ['Skeletoar', 27, 100, 10, [75, 75], 6, 5, 32, 50, 'physical', 'melee', 10, 35, 25]; _root.bestiary.rotgut = ['Rotgut', 28, 100, 12, [90, 90], 4, 4, 20, 50, 'physical', 'melee', 10, 35, 25]; _root.bestiary.goblin_boss = ['Gobbo', 29, 100, 10, [70, 70], 5, 4, 36, 50, 'physical', 'melee', 10, 35, 25]; _root.bestiary.stoneface = ['Stoneface', 30, 100, 10, [40, 40], 12, 2, 26, 50, 'ranged', 'ranged', 10, 35, 25]; _root.bestiary.chaos_master = ['Chaos Master', 31, 100, 16, [50, 50], 8, 4, 26, 50, 'physical', 'melee', 10, 35, 25]; _root.bestiary.slime_prince = ['Slime Prince', 32, 100, 10, [60, 60], 6, 6, 32, 50, 'physical', 'melee', 10, 35, 25]; _root.bestiary.orc_commander = ['Ghazk', 33, 100, 14, [80, 80], 4, 2, 36, 50, 'physical', 'melee', 10, 35, 25]; _root.bestiary.sparkz = ['Sparkz', 34, 50, 9, [60, 60], 4, 12, 29, 50, 'magic', 'magic', 10, 35, 25]; _root.bestiary.bad_sheep = ['Bad Sheep', 35, 100, 8, [70, 70], 6, 6, 42, 50, 'physical', 'melee', 10, 35, 25]; _root.bestiary.badbones = ['Bad Bones', 37, 100, 15, [95, 95], 8, 5, 36, 50, 'physical', 'melee', 15, 45, 30]; _root.bestiary.skincrust = ['Skincrust', 28, 100, 12, [110, 110], 6, 4, 20, 50, 'physical', 'melee', 15, 45, 30]; _root.bestiary.headshrinker = ['Headshrinker', 39, 100, 10, [75, 75], 5, 8, 32, 50, 'magic', 'magic', 15, 45, 30]; _root.bestiary.grogbow = ['Grogbow', 38, 100, 10, [90, 90], 7, 7, 45, 50, 'ranged', 'ranged', 15, 45, 30]; _root.bestiary.grimshaw = ['Grimshaw', 40, 100, 18, [70, 70], 15, 4, 24, 50, 'physical', 'melee', 15, 45, 30]; _root.bestiary.lowdown = ['Lowdown', 31, 100, 12, [95, 95], 4, 14, 36, 50, 'magic', 'magic', 15, 45, 30]; _root.bestiary.bonehead = ['Bonehead', 41, 100, 20, [130, 130], 0, 0, 28, 50, 'physical', 'melee', 15, 45, 30]; _root.bestiary.coldsnap = ['Coldsnap', 43, 100, 14, [90, 90], 8, 8, 39, 50, 'magic', 'magic', 15, 45, 30]; _root.bestiary.pingwing = ['Pingwing', 42, 100, 14, [85, 85], 5, 10, 42, 50, 'ranged', 'ranged', 15, 45, 30]; _root.bestiary.snakey = ['Snakey', 44, 100, 18, [90, 90], 7, 7, 39, 50, 'physical', 'melee', 15, 45, 30]; _root.bestiary.risenreginald = ['Risen Reginald', 27, 100, 19, [120, 120], 10, 7, 40, 50, 'physical', 'melee', 20, 60, 40]; _root.bestiary.kaotica = ['Kaotica', 40, 100, 20, [80, 80], 20, 6, 28, 50, 'physical', 'melee', 20, 60, 40]; _root.bestiary.sparklez = ['Sparklez', 45, 100, 20, [110, 110], 5, 16, 39, 50, 'ranged', 'ranged', 20, 60, 40]; _root.bestiary.goomba = ['Goomba', 46, 100, 18, [130, 130], 9, 9, 39, 50, 'ranged', 'ranged', 20, 60, 40]; _root.bestiary.crazycorvix = ['Crazy Corvix', 29, 100, 18, [100, 100], 15, 12, 39, 50, 'physical', 'melee', 20, 60, 40]; _root.bestiary.elderthantos = ['Elder Thantos', 47, 50, 28, [190, 190], 10, 18, 32, 50, 'magic', 'magic', 50, 80, 50]; _root.bestiary.ancientthoraz = ['Ancient Thoraz', 40, 50, 32, [140, 140], 30, 1, 30, 50, 'physical', 'melee', 50, 80, 50]; _root.bestiary.bubblegum = ['Bubblegum', 32, 50, 22, [140, 140], 20, 20, 35, 50, 'physical', 'melee', 50, 80, 50]; _root.bestiary.devorix = ['Devorix', 29, 50, 24, [130, 130], 18, 4, 50, 50, 'physical', 'melee', 50, 80, 50]; _root.bestiary.rockyballbowa = ['Rocky Ballbowa', 14, 50, 28, [150, 150], 50, 3, 34, 50, 'ranged', 'ranged', 50, 80, 50]; _root.bestiary.necroninja = ['Necro Ninja', 48, 50, 60, [250, 250], 40, 40, 52, 50, 'physical', 'melee', 90, 150, 100]; _root.bestiary.kaosninja = ['Kaos Ninja', 48, 50, 60, [250, 250], 40, 40, 52, 50, 'physical', 'melee', 90, 150, 100]; _root.bestiary.critterninja = ['Critter Ninja', 48, 50, 60, [250, 250], 40, 40, 52, 50, 'physical', 'melee', 90, 150, 100]; _root.bestiary.ogrishninja = ['Ogrish Ninja', 48, 50, 60, [250, 250], 40, 40, 52, 50, 'physical', 'melee', 90, 150, 100]; _root.bestiary.elementninja = ['Element Ninja', 48, 50, 60, [250, 250], 40, 40, 52, 50, 'physical', 'melee', 90, 150, 100]; _root.bestiary.skeleton_1 = ['Crippled Skeleton', 2, 50, 5, [25, 25], 2, 0, 20, 50, 'physical', 'melee', 1, 2, 10]; _root.bestiary.skeleton_2 = ['Weak Skeleton', 2, 50, 6, [35, 35], 3, 1, 25, 50, 'physical', 'melee', 2, 5, 10]; _root.bestiary.skeleton_3 = ['Fresh Skeleton', 2, 50, 10, [45, 45], 4, 2, 30, 50, 'physical', 'melee', 3, 10, 10]; _root.bestiary.skeleton_4 = ['Skeleton', 2, 50, 15, [55, 55], 6, 3, 33, 50, 'physical', 'melee', 5, 20, 10]; _root.bestiary.skeleton_5 = ['Aged Skeleton', 2, 50, 20, [60, 60], 8, 5, 35, 50, 'physical', 'melee', 6, 25, 10]; _root.bestiary.skeleton_6 = ['Old Skeleton', 2, 50, 24, [70, 70], 10, 6, 35, 50, 'physical', 'melee', 7, 25, 25]; _root.bestiary.skeleton_7 = ['Trained Skeleton', 2, 50, 28, [80, 80], 11, 7, 35, 50, 'physical', 'melee', 8, 30, 25]; _root.bestiary.skeleton_8 = ['Ancient Skeleton', 2, 50, 30, [90, 90], 12, 8, 35, 50, 'physical', 'melee', 9, 40, 20]; _root.bestiary.skeleton_9 = ['Heroic Skeleton', 2, 50, 35, [100, 100], 15, 12, 38, 50, 'physical', 'melee', 12, 60, 25]; _root.bestiary.skeleton_mage_1 = ['Skeleton Novice', 24, 50, 5, [20, 20], 1, 1, 20, 50, 'magic', 'magic', 1, 2, 10]; _root.bestiary.skeleton_mage_2 = ['Skeleton Adept', 24, 50, 6, [25, 25], 1, 2, 22, 50, 'magic', 'magic', 2, 5, 10]; _root.bestiary.skeleton_mage_3 = ['Skeleton Monk', 24, 50, 9, [35, 35], 2, 4, 26, 50, 'magic', 'magic', 3, 10, 10]; _root.bestiary.skeleton_mage_4 = ['Skeleton Wizard', 24, 50, 14, [40, 40], 3, 6, 30, 50, 'magic', 'magic', 5, 10, 15]; _root.bestiary.skeleton_mage_5 = ['Skeleton Mystic', 24, 50, 18, [50, 50], 5, 8, 31, 50, 'magic', 'magic', 6, 10, 20]; _root.bestiary.skeleton_mage_6 = ['Skeleton Mage', 24, 50, 22, [55, 55], 6, 10, 32, 50, 'magic', 'magic', 7, 10, 28]; _root.bestiary.skeleton_mage_7 = ['Skeleton High Mage', 24, 50, 28, [65, 65], 7, 12, 32, 50, 'magic', 'magic', 8, 10, 33]; _root.bestiary.skeleton_mage_8 = ['Skeleton ArchMage', 24, 50, 32, [70, 70], 8, 14, 32, 50, 'magic', 'magic', 9, 10, 45]; _root.bestiary.skeleton_mage_9 = ['Skeleton Hero Mage', 24, 50, 35, [75, 75], 10, 18, 33, 50, 'magic', 'magic', 12, 10, 90]; _root.bestiary.skeleton_knight_1 = ['Crippled Skeleton', 3, 50, 3, [20, 20], 5, 0, 20, 50, 'physical', 'melee', 1, 2, 10]; _root.bestiary.skeleton_knight_2 = ['Weak Skeleton', 3, 50, 4, [30, 30], 6, 1, 25, 50, 'physical', 'melee', 2, 5, 10]; _root.bestiary.skeleton_knight_3 = ['Fresh Skeleton', 3, 50, 7, [40, 40], 8, 2, 30, 50, 'physical', 'melee', 3, 10, 10]; _root.bestiary.skeleton_knight_4 = ['Skeleton', 3, 50, 10, [55, 55], 14, 3, 33, 50, 'physical', 'melee', 5, 20, 10]; _root.bestiary.skeleton_knight_5 = ['Aged Skeleton', 3, 50, 12, [60, 60], 19, 5, 35, 50, 'physical', 'melee', 6, 25, 10]; _root.bestiary.skeleton_knight_6 = ['Old Skeleton', 3, 50, 15, [70, 70], 22, 6, 35, 50, 'physical', 'melee', 7, 25, 25]; _root.bestiary.skeleton_knight_7 = ['Trained Skeleton', 3, 50, 20, [80, 80], 28, 7, 35, 50, 'physical', 'melee', 8, 30, 25]; _root.bestiary.skeleton_knight_8 = ['Ancient Skeleton', 3, 50, 22, [90, 90], 32, 8, 35, 50, 'physical', 'melee', 9, 40, 20]; _root.bestiary.skeleton_knight_9 = ['Heroic Skeleton', 3, 50, 25, [100, 100], 38, 12, 38, 50, 'physical', 'melee', 12, 60, 25]; _root.bestiary.zombie_1 = ['Tattered Zombie', 4, 50, 4, [40, 40], 0, 2, 20, 50, 'physical', 'melee', 1, 2, 10]; _root.bestiary.zombie_2 = ['Mushy Zombie', 4, 50, 5, [50, 50], 0, 3, 21, 50, 'physical', 'melee', 2, 5, 10]; _root.bestiary.zombie_3 = ['Fresh Zombie', 4, 50, 7, [60, 60], 0, 4, 22, 50, 'physical', 'melee', 3, 10, 10]; _root.bestiary.zombie_4 = ['Zombie', 4, 50, 10, [70, 70], 2, 6, 23, 50, 'physical', 'melee', 5, 20, 10]; _root.bestiary.zombie_5 = ['Old Zombie', 4, 50, 12, [80, 80], 3, 8, 24, 50, 'physical', 'melee', 6, 25, 10]; _root.bestiary.zombie_6 = ['Viscious Zombie', 4, 50, 16, [95, 95], 3, 10, 25, 50, 'physical', 'melee', 7, 25, 25]; _root.bestiary.zombie_7 = ['Trained Zombie', 4, 50, 20, [110, 110], 4, 12, 26, 50, 'physical', 'melee', 8, 30, 25]; _root.bestiary.zombie_8 = ['Ancient Zombie', 4, 50, 24, [120, 120], 6, 15, 28, 50, 'physical', 'melee', 9, 40, 20]; _root.bestiary.zombie_9 = ['Heroic Zombie', 4, 50, 28, [140, 140], 8, 20, 30, 50, 'physical', 'melee', 12, 60, 25]; _root.bestiary.slime_1 = ['Gunky Slime', 20, 50, 4, [15, 15], 2, 4, 25, 50, 'physical', 'melee', 1, 2, 8]; _root.bestiary.slime_2 = ['Minor Slime', 21, 50, 5, [18, 18], 2, 5, 26, 50, 'physical', 'melee', 2, 2, 12]; _root.bestiary.slime_3 = ['Weak Slime', 22, 50, 7, [22, 22], 3, 6, 28, 50, 'physical', 'melee', 3, 10, 8]; _root.bestiary.slime_4 = ['Slime', 21, 50, 9, [26, 26], 5, 10, 28, 50, 'physical', 'melee', 5, 15, 8]; _root.bestiary.slime_5 = ['Strong Slime', 20, 50, 11, [30, 30], 8, 14, 30, 50, 'physical', 'melee', 6, 20, 8]; _root.bestiary.slime_6 = ['Old Slime', 22, 50, 14, [34, 34], 12, 17, 32, 50, 'physical', 'melee', 7, 24, 8]; _root.bestiary.slime_7 = ['Ancient Slime', 21, 50, 15, [40, 40], 15, 20, 33, 50, 'physical', 'melee', 8, 30, 8]; _root.bestiary.slime_8 = ['Killer Slime', 20, 50, 18, [44, 44], 18, 24, 35, 50, 'physical', 'melee', 9, 35, 8]; _root.bestiary.slime_9 = ['Slime Prince', 22, 50, 20, [50, 50], 25, 30, 40, 50, 'physical', 'melee', 10, 40, 10]; _root.bestiary.earth_elemental_1 = ['Dirt Elemental', 16, 50, 3, [20, 20], 3, 0, 20, 50, 'ranged', 'ranged', 1, 2, 10]; _root.bestiary.earth_elemental_2 = ['Hard Dirt Elementa', 16, 50, 5, [25, 25], 4, 0, 20, 50, 'ranged', 'ranged', 2, 8, 10]; _root.bestiary.earth_elemental_3 = ['Young Earth Elemental', 16, 50, 6, [35, 35], 5, 0, 20, 50, 'ranged', 'ranged', 3, 15, 10]; _root.bestiary.earth_elemental_4 = ['Earth Elemental', 16, 50, 8, [45, 45], 7, 0, 20, 50, 'ranged', 'ranged', 5, 20, 10]; _root.bestiary.earth_elemental_5 = ['Old Earth Elemental', 16, 50, 10, [50, 50], 9, 0, 20, 50, 'ranged', 'ranged', 6, 30, 10]; _root.bestiary.earth_elemental_6 = ['Strong Earth Elemental', 16, 50, 14, [60, 60], 10, 0, 20, 50, 'ranged', 'ranged', 7, 40, 10]; _root.bestiary.earth_elemental_7 = ['Ancient Earth Elemental', 16, 50, 16, [65, 65], 13, 0, 20, 50, 'ranged', 'ranged', 8, 60, 10]; _root.bestiary.earth_elemental_8 = ['Epic Earth Elemental', 16, 50, 18, [75, 75], 14, 0, 20, 50, 'ranged', 'ranged', 9, 60, 20]; _root.bestiary.earth_elemental_9 = ['Legendary Earth Elemental', 16, 50, 20, [85, 85], 15, 0, 20, 50, 'ranged', 'ranged', 11, 60, 40]; _root.bestiary.bone_elemental_1 = ['Finger Bone Elemental', 15, 50, 8, [20, 20], 0, 0, 28, 50, 'physical', 'melee', 1, 2, 10]; _root.bestiary.bone_elemental_2 = ['Toe Bone Elemental', 15, 50, 10, [25, 25], 0, 0, 29, 50, 'physical', 'melee', 2, 8, 10]; _root.bestiary.bone_elemental_3 = ['Shin Bone Elemental', 15, 50, 14, [30, 30], 0, 0, 30, 50, 'physical', 'melee', 3, 14, 12]; _root.bestiary.bone_elemental_4 = ['Rib Bone Elemental', 15, 50, 18, [40, 40], 0, 0, 32, 50, 'physical', 'melee', 5, 16, 16]; _root.bestiary.bone_elemental_5 = ['Skull Bone Elemental', 15, 50, 22, [45, 45], 0, 0, 34, 50, 'physical', 'melee', 6, 18, 20]; _root.bestiary.bone_elemental_6 = ['Bone Elemental', 15, 50, 28, [55, 55], 0, 0, 36, 50, 'physical', 'melee', 8, 20, 30]; _root.bestiary.bone_elemental_7 = ['Old Bone Elemental', 15, 50, 36, [60, 60], 0, 0, 38, 50, 'physical', 'melee', 10, 25, 35]; _root.bestiary.bone_elemental_8 = ['Ancient Bone Elemental', 15, 50, 42, [65, 65], 0, 0, 40, 50, 'physical', 'melee', 11, 30, 40]; _root.bestiary.bone_elemental_9 = ['Legendary Bone Elemental', 15, 50, 60, [70, 70], 0, 0, 42, 50, 'physical', 'melee', 14, 50, 40]; _root.bestiary.rock_elemental_1 = ['Pebble Elemental', 14, 50, 4, [20, 20], 6, 0, 20, 50, 'ranged', 'ranged', 1, 2, 10]; _root.bestiary.rock_elemental_2 = ['Stone Elemental', 14, 50, 6, [30, 30], 9, 0, 22, 50, 'ranged', 'ranged', 2, 6, 12]; _root.bestiary.rock_elemental_3 = ['Rock Elemental', 14, 50, 8, [40, 40], 14, 1, 24, 50, 'ranged', 'ranged', 3, 10, 15]; _root.bestiary.rock_elemental_4 = ['Boulder Elemental', 14, 50, 12, [50, 50], 19, 2, 26, 50, 'ranged', 'ranged', 5, 14, 20]; _root.bestiary.rock_elemental_5 = ['Mountain Elemental', 14, 50, 15, [60, 60], 24, 4, 28, 50, 'ranged', 'ranged', 6, 18, 25]; _root.bestiary.rock_elemental_6 = ['Old Rock Elemental', 14, 50, 18, [70, 70], 34, 5, 30, 50, 'ranged', 'ranged', 7, 20, 28]; _root.bestiary.rock_elemental_7 = ['Ancient Rock Elemental', 14, 50, 22, [80, 80], 40, 7, 32, 50, 'ranged', 'ranged', 9, 25, 30]; _root.bestiary.rock_elemental_8 = ['Epic Rock Elemental', 14, 50, 30, [90, 90], 50, 8, 34, 50, 'ranged', 'ranged', 10, 25, 35]; _root.bestiary.rock_elemental_9 = ['Legendary Rock Elemental', 14, 50, 35, [100, 100], 60, 8, 36, 50, 'ranged', 'ranged', 12, 50, 50]; _root.bestiary.crystal_elemental_1 = ['Cracked Crystal Elemental', 17, 50, 4, [20, 20], 0, 6, 20, 50, 'ranged', 'ranged', 1, 2, 10]; _root.bestiary.crystal_elemental_2 = ['Unpure Crystal Elemental', 17, 50, 6, [30, 30], 0, 9, 22, 50, 'ranged', 'ranged', 2, 6, 12]; _root.bestiary.crystal_elemental_3 = ['Shiny Crystal Elemental', 17, 50, 8, [40, 40], 1, 14, 24, 50, 'ranged', 'ranged', 3, 10, 15]; _root.bestiary.crystal_elemental_4 = ['Young Crystal Elemental', 17, 50, 12, [50, 50], 2, 19, 26, 50, 'ranged', 'ranged', 5, 14, 20]; _root.bestiary.crystal_elemental_5 = ['Old Crystal Elemental', 17, 50, 15, [60, 60], 4, 24, 28, 50, 'ranged', 'ranged', 6, 18, 25]; _root.bestiary.crystal_elemental_6 = ['Strong Crystal Elemental', 17, 50, 18, [70, 70], 6, 34, 31, 50, 'ranged', 'ranged', 7, 20, 28]; _root.bestiary.crystal_elemental_7 = ['Ancient Crystal Elemental', 17, 50, 22, [80, 80], 8, 40, 33, 50, 'ranged', 'ranged', 9, 25, 30]; _root.bestiary.crystal_elemental_8 = ['Epic Crystal Elemental', 17, 50, 30, [90, 90], 10, 48, 36, 50, 'ranged', 'ranged', 10, 25, 35]; _root.bestiary.crystal_elemental_9 = ['Legendary Crystal Elemental', 17, 50, 35, [100, 100], 10, 60, 38, 50, 'ranged', 'ranged', 12, 50, 50]; _root.bestiary.lightning_elemental_1 = ['Weak Lightning Elemental', 13, 50, 4, [20, 20], 2, 2, 24, 50, 'magic', 'magic', 1, 2, 10]; _root.bestiary.lightning_elemental_2 = ['Slow Lightning Elemental', 13, 50, 6, [25, 25], 3, 3, 26, 50, 'magic', 'magic', 2, 5, 12]; _root.bestiary.lightning_elemental_3 = ['Lightning Elemental', 13, 50, 8, [30, 30], 4, 4, 29, 50, 'magic', 'magic', 3, 10, 15]; _root.bestiary.lightning_elemental_4 = ['Young Lightning Elemental', 13, 50, 9, [35, 35], 6, 6, 30, 50, 'magic', 'magic', 5, 12, 18]; _root.bestiary.lightning_elemental_5 = ['Lightning Elemental', 13, 50, 10, [40, 40], 8, 8, 31, 50, 'magic', 'magic', 6, 15, 20]; _root.bestiary.lightning_elemental_6 = ['Old Lightning Elemental', 13, 50, 12, [45, 45], 9, 9, 34, 50, 'magic', 'magic', 7, 18, 24]; _root.bestiary.lightning_elemental_7 = ['Ancient Lightning Elemental', 13, 50, 13, [50, 50], 10, 10, 36, 50, 'magic', 'magic', 8, 20, 28]; _root.bestiary.lightning_elemental_8 = ['Epic Lightning Elemental', 13, 50, 15, [60, 60], 14, 14, 38, 50, 'magic', 'magic', 9, 20, 30]; _root.bestiary.lightning_elemental_9 = ['Legendary Lightning Elemental', 13, 50, 18, [75, 75], 16, 16, 38, 50, 'magic', 'magic', 12, 40, 60]; _root.bestiary.fire_elemental_1 = ['Flame Elemental', 11, 50, 4, [25, 25], 2, 2, 25, 50, 'magic', 'magic', 1, 2, 10]; _root.bestiary.fire_elemental_2 = ['Weak Fire Elemental', 11, 50, 6, [35, 35], 3, 4, 26, 50, 'magic', 'magic', 2, 8, 10]; _root.bestiary.fire_elemental_3 = ['Camp Fire Elemental', 11, 50, 10, [40, 40], 4, 6, 27, 50, 'magic', 'magic', 3, 12, 10]; _root.bestiary.fire_elemental_4 = ['Young Fire Elemental', 11, 50, 14, [45, 45], 6, 8, 29, 50, 'magic', 'magic', 5, 18, 10]; _root.bestiary.fire_elemental_5 = ['Fire Elemental', 11, 50, 18, [50, 50], 8, 10, 31, 50, 'magic', 'magic', 6, 25, 10]; _root.bestiary.fire_elemental_6 = ['Old Fire Elemental', 11, 50, 20, [55, 55], 10, 14, 33, 50, 'magic', 'magic', 7, 30, 10]; _root.bestiary.fire_elemental_7 = ['Ancient Fire Elemental', 11, 50, 26, [60, 60], 12, 18, 36, 50, 'magic', 'magic', 8, 40, 10]; _root.bestiary.fire_elemental_8 = ['Epic Fire Elemental', 11, 50, 30, [65, 65], 14, 20, 39, 50, 'magic', 'magic', 9, 60, 10]; _root.bestiary.fire_elemental_9 = ['Legendary Fire Elemental', 11, 50, 34, [75, 75], 15, 22, 40, 50, 'magic', 'magic', 12, 60, 40]; _root.bestiary.ice_elemental_1 = ['Weak Ice Elemental', 12, 50, 4, [28, 28], 2, 2, 22, 50, 'magic', 'magic', 1, 2, 10]; _root.bestiary.ice_elemental_2 = ['Cracked Ice Elemental', 12, 50, 6, [38, 38], 3, 4, 23, 50, 'magic', 'magic', 2, 8, 10]; _root.bestiary.ice_elemental_3 = ['Young Ice Elemental', 12, 50, 10, [44, 44], 4, 6, 25, 50, 'magic', 'magic', 3, 12, 10]; _root.bestiary.ice_elemental_4 = ['Ice Elemental', 12, 50, 14, [49, 49], 6, 8, 27, 50, 'magic', 'magic', 5, 18, 10]; _root.bestiary.ice_elemental_5 = ['Old Ice Elemental', 12, 50, 18, [54, 54], 8, 10, 28, 50, 'magic', 'magic', 6, 25, 10]; _root.bestiary.ice_elemental_6 = ['Ancient Ice Elemental', 12, 50, 20, [59, 59], 10, 14, 28, 50, 'magic', 'magic', 7, 30, 10]; _root.bestiary.ice_elemental_7 = ['Strong Ice Elemental', 12, 50, 26, [64, 64], 12, 18, 29, 50, 'magic', 'magic', 8, 40, 10]; _root.bestiary.ice_elemental_8 = ['Epic Ice Elemental', 12, 50, 30, [69, 69], 14, 20, 30, 50, 'magic', 'magic', 9, 60, 10]; _root.bestiary.ice_elemental_9 = ['Legendary Ice Elemental', 12, 50, 34, [80, 80], 15, 22, 32, 50, 'magic', 'magic', 12, 60, 40]; _root.bestiary.snake_1 = ['Tiny Snake', 5, 50, 4, [10, 10], 1, 0, 50, 50, 'physical', 'melee', 1, 2, 6]; _root.bestiary.snake_2 = ['Little Snake', 5, 50, 6, [15, 15], 2, 0, 55, 50, 'physical', 'melee', 1, 2, 8]; _root.bestiary.snake_3 = ['Young Snake', 5, 50, 8, [18, 18], 4, 0, 60, 50, 'physical', 'melee', 2, 2, 10]; _root.bestiary.snake_4 = ['Snake', 5, 50, 10, [24, 24], 5, 0, 62, 50, 'physical', 'melee', 3, 6, 10]; _root.bestiary.snake_5 = ['Old Snake', 5, 50, 14, [30, 30], 7, 0, 66, 50, 'physical', 'melee', 4, 10, 10]; _root.bestiary.snake_6 = ['Venomous Snake', 5, 50, 16, [35, 35], 9, 0, 68, 50, 'physical', 'melee', 4, 12, 12]; _root.bestiary.snake_7 = ['Ancient Snake', 5, 50, 20, [39, 39], 12, 0, 70, 50, 'physical', 'melee', 5, 14, 14]; _root.bestiary.snake_8 = ['Epic Snake', 5, 50, 24, [44, 44], 14, 0, 74, 50, 'physical', 'melee', 6, 18, 20]; _root.bestiary.snake_9 = ['Legendary Snake', 5, 50, 26, [50, 50], 16, 0, 80, 50, 'physical', 'melee', 6, 25, 25]; _root.bestiary.mushroom_1 = ['Mouldy Shroom', 9, 50, 4, [15, 15], 1, 1, 30, 50, 'ranged', 'ranged', 1, 2, 8]; _root.bestiary.mushroom_2 = ['Squashed Shroom', 9, 50, 6, [25, 25], 2, 2, 33, 50, 'ranged', 'ranged', 2, 4, 12]; _root.bestiary.mushroom_3 = ['Mushroom', 9, 50, 8, [35, 35], 3, 3, 36, 50, 'ranged', 'ranged', 3, 8, 12]; _root.bestiary.mushroom_4 = ['Spotty Shroom', 9, 50, 11, [45, 45], 5, 5, 39, 50, 'ranged', 'ranged', 5, 14, 16]; _root.bestiary.mushroom_5 = ['Strong Shroom', 9, 50, 15, [55, 55], 7, 7, 40, 50, 'ranged', 'ranged', 6, 19, 16]; _root.bestiary.mushroom_6 = ['Power Shroom', 9, 50, 18, [65, 65], 8, 8, 41, 50, 'ranged', 'ranged', 7, 21, 22]; _root.bestiary.mushroom_7 = ['Old Shroom', 9, 50, 20, [75, 75], 9, 9, 42, 50, 'ranged', 'ranged', 8, 26, 22]; _root.bestiary.mushroom_8 = ['Ancient Shroom', 9, 50, 22, [85, 85], 10, 10, 43, 50, 'ranged', 'ranged', 9, 28, 30]; _root.bestiary.mushroom_9 = ['Legend Shroom', 9, 50, 26, [95, 95], 12, 12, 44, 50, 'ranged', 'ranged', 12, 40, 50]; _root.bestiary.sheep_1 = ['Crippled Sheep', 1, 50, 5, [20, 20], 1, 3, 20, 50, 'physical', 'melee', 1, 2, 8]; _root.bestiary.sheep_2 = ['Weak Sheep', 1, 50, 6, [30, 30], 2, 4, 24, 50, 'physical', 'melee', 2, 5, 10]; _root.bestiary.sheep_3 = ['Feeble Sheep', 1, 50, 8, [40, 40], 3, 5, 26, 50, 'physical', 'melee', 3, 10, 12]; _root.bestiary.sheep_4 = ['Young Sheep', 1, 50, 10, [50, 50], 6, 8, 30, 50, 'physical', 'melee', 5, 12, 15]; _root.bestiary.sheep_5 = ['Sheep', 1, 50, 15, [60, 60], 8, 12, 32, 50, 'physical', 'melee', 6, 16, 18]; _root.bestiary.sheep_6 = ['Old Sheep', 1, 50, 19, [70, 70], 10, 15, 35, 50, 'physical', 'melee', 7, 20, 22]; _root.bestiary.sheep_7 = ['Power Sheep', 1, 50, 22, [80, 80], 12, 18, 38, 50, 'physical', 'melee', 8, 25, 25]; _root.bestiary.sheep_8 = ['Ancient Sheep', 1, 50, 25, [90, 90], 13, 20, 38, 50, 'physical', 'melee', 10, 30, 28]; _root.bestiary.sheep_9 = ['Legend Sheep', 1, 50, 30, [125, 125], 15, 24, 40, 50, 'physical', 'melee', 12, 45, 50]; _root.bestiary.penguin_1 = ['Tiny Penguin', 8, 50, 5, [20, 20], 2, 2, 26, 50, 'ranged', 'ranged', 1, 2, 8]; _root.bestiary.penguin_2 = ['Little Penguin', 8, 50, 7, [30, 30], 3, 3, 27, 50, 'ranged', 'ranged', 2, 5, 12]; _root.bestiary.penguin_3 = ['Young Penguin', 8, 50, 9, [35, 35], 5, 5, 29, 50, 'ranged', 'ranged', 3, 6, 15]; _root.bestiary.penguin_4 = ['Poor Penguin', 8, 50, 13, [40, 40], 7, 7, 31, 50, 'ranged', 'ranged', 5, 5, 20]; _root.bestiary.penguin_5 = ['Penguin', 8, 50, 16, [50, 50], 8, 8, 33, 50, 'ranged', 'ranged', 6, 10, 30]; _root.bestiary.penguin_6 = ['Cool Penguin', 8, 50, 20, [60, 60], 10, 10, 35, 50, 'ranged', 'ranged', 7, 15, 35]; _root.bestiary.penguin_7 = ['Old Penguin', 8, 50, 24, [70, 70], 12, 12, 35, 50, 'ranged', 'ranged', 8, 20, 40]; _root.bestiary.penguin_8 = ['Ancient Penguin', 8, 50, 28, [75, 75], 14, 14, 38, 50, 'ranged', 'ranged', 9, 20, 50]; _root.bestiary.penguin_9 = ['Legend Penguin', 8, 50, 34, [80, 80], 16, 16, 40, 50, 'ranged', 'ranged', 11, 25, 70]; _root.bestiary.chaos_warrior_1 = ['Chaos Peasant', 23, 50, 5, [20, 20], 3, 1, 24, 50, 'physical', 'melee', 1, 2, 10]; _root.bestiary.chaos_warrior_2 = ['Chaos Fighter', 23, 50, 7, [25, 25], 5, 1, 25, 50, 'physical', 'melee', 2, 2, 15]; _root.bestiary.chaos_warrior_3 = ['Weak Warrior', 23, 50, 10, [30, 30], 7, 1, 26, 50, 'physical', 'melee', 3, 2, 20]; _root.bestiary.chaos_warrior_4 = ['Chaos Warrior', 23, 50, 15, [35, 35], 10, 1, 27, 50, 'physical', 'melee', 5, 5, 25]; _root.bestiary.chaos_warrior_5 = ['Strong Warrior', 23, 50, 20, [45, 45], 14, 1, 28, 50, 'physical', 'melee', 6, 5, 35]; _root.bestiary.chaos_warrior_6 = ['Old Warrior', 23, 50, 25, [55, 55], 20, 1, 29, 50, 'physical', 'melee', 7, 5, 45]; _root.bestiary.chaos_warrior_7 = ['Ancient Warrior', 23, 50, 30, [65, 65], 24, 1, 30, 50, 'physical', 'melee', 8, 5, 60]; _root.bestiary.chaos_warrior_8 = ['Power Warrior', 23, 50, 35, [80, 80], 30, 1, 30, 50, 'physical', 'melee', 9, 10, 70]; _root.bestiary.chaos_warrior_9 = ['Legend Warrior', 23, 50, 40, [90, 90], 35, 1, 30, 50, 'physical', 'melee', 12, 10, 90]; _root.bestiary.demon_1 = ['Demonling', 36, 50, 5, [20, 20], 1, 1, 20, 50, 'magic', 'magic', 1, 2, 10]; _root.bestiary.demon_2 = ['Fresh Demon', 36, 50, 6, [25, 25], 1, 2, 22, 50, 'magic', 'magic', 2, 5, 10]; _root.bestiary.demon_3 = ['Weak Demon', 36, 50, 9, [35, 35], 2, 4, 26, 50, 'magic', 'magic', 3, 10, 10]; _root.bestiary.demon_4 = ['Demonspawn', 36, 50, 14, [40, 40], 3, 6, 30, 50, 'magic', 'magic', 5, 10, 15]; _root.bestiary.demon_5 = ['Strong Demon', 36, 50, 18, [50, 50], 5, 8, 31, 50, 'magic', 'magic', 6, 10, 20]; _root.bestiary.demon_6 = ['Powerful Demon', 36, 50, 22, [55, 55], 6, 10, 32, 50, 'magic', 'magic', 7, 10, 28]; _root.bestiary.demon_7 = ['Old Demon', 36, 50, 28, [65, 65], 7, 12, 32, 50, 'magic', 'magic', 8, 10, 33]; _root.bestiary.demon_8 = ['Ancient Demon', 36, 50, 32, [70, 70], 8, 14, 32, 50, 'magic', 'magic', 9, 10, 45]; _root.bestiary.demon_9 = ['Legendary Demon', 36, 50, 35, [75, 75], 10, 18, 33, 50, 'magic', 'magic', 12, 10, 90]; _root.bestiary.necromancer_1 = ['Necro Peon', 19, 50, 4, [20, 20], 1, 2, 25, 50, 'magic', 'magic', 1, 2, 10]; _root.bestiary.necromancer_2 = ['Necro Student', 19, 50, 6, [25, 25], 2, 5, 28, 50, 'magic', 'magic', 2, 2, 15]; _root.bestiary.necromancer_3 = ['Necro Mage', 19, 50, 8, [30, 30], 3, 8, 29, 50, 'magic', 'magic', 3, 3, 20]; _root.bestiary.necromancer_4 = ['Necromancer', 19, 50, 10, [34, 34], 4, 12, 31, 50, 'magic', 'magic', 5, 5, 25]; _root.bestiary.necromancer_5 = ['Tough Necromancer', 19, 50, 14, [38, 38], 5, 15, 34, 50, 'magic', 'magic', 6, 5, 35]; _root.bestiary.necromancer_6 = ['Old Necromancer', 19, 50, 18, [45, 45], 7, 18, 36, 50, 'magic', 'magic', 7, 5, 45]; _root.bestiary.necromancer_7 = ['Power Necromancer', 19, 50, 20, [50, 50], 8, 22, 39, 50, 'magic', 'magic', 8, 5, 60]; _root.bestiary.necromancer_8 = ['Ancient Necromancer', 19, 50, 22, [55, 55], 9, 24, 42, 50, 'magic', 'magic', 10, 5, 70]; _root.bestiary.necromancer_9 = ['Necrolegend', 19, 50, 24, [60, 60], 10, 28, 44, 50, 'magic', 'magic', 13, 20, 80]; _root.bestiary.orc_shaman_1 = ['Orc Student', 26, 50, 4, [30, 30], 1, 2, 23, 50, 'magic', 'magic', 1, 5, 10]; _root.bestiary.orc_shaman_2 = ['Orc Journeyman', 26, 50, 6, [40, 40], 2, 3, 25, 50, 'magic', 'magic', 2, 10, 15]; _root.bestiary.orc_shaman_3 = ['Orc Witch', 26, 50, 7, [50, 50], 4, 6, 27, 50, 'magic', 'magic', 3, 5, 20]; _root.bestiary.orc_shaman_4 = ['Orc Shaman', 26, 50, 9, [60, 60], 7, 10, 29, 50, 'magic', 'magic', 5, 5, 30]; _root.bestiary.orc_shaman_5 = ['Trained Shaman', 26, 50, 12, [70, 70], 9, 12, 32, 50, 'magic', 'magic', 6, 5, 35]; _root.bestiary.orc_shaman_6 = ['Old Shaman', 26, 50, 16, [80, 80], 12, 12, 34, 50, 'magic', 'magic', 7, 10, 45]; _root.bestiary.orc_shaman_7 = ['Ancient Shaman', 26, 50, 19, [90, 90], 14, 16, 36, 50, 'magic', 'magic', 8, 10, 60]; _root.bestiary.orc_shaman_8 = ['Powerful Shaman', 26, 50, 20, [100, 100], 16, 20, 36, 50, 'magic', 'magic', 9, 10, 70]; _root.bestiary.orc_shaman_9 = ['Legendary Shaman', 26, 50, 25, [120, 120], 18, 25, 36, 50, 'magic', 'magic', 12, 20, 80]; _root.bestiary.orc_1 = ['Orc Peasant', 7, 50, 7, [30, 30], 1, 0, 20, 50, 'physical', 'melee', 1, 2, 10]; _root.bestiary.orc_2 = ['Orc Fighter', 7, 50, 10, [40, 40], 2, 0, 22, 50, 'physical', 'melee', 2, 2, 15]; _root.bestiary.orc_3 = ['Orc Warrior', 7, 50, 14, [50, 50], 4, 0, 22, 50, 'physical', 'melee', 3, 5, 20]; _root.bestiary.orc_4 = ['Orc Grunt', 7, 50, 20, [60, 60], 5, 0, 24, 50, 'physical', 'melee', 5, 5, 30]; _root.bestiary.orc_5 = ['Strong Orc', 7, 50, 26, [70, 70], 6, 0, 24, 50, 'physical', 'melee', 6, 8, 35]; _root.bestiary.orc_6 = ['Powerful Orc', 7, 50, 34, [80, 80], 8, 0, 26, 50, 'physical', 'melee', 7, 10, 45]; _root.bestiary.orc_7 = ['Old Orc', 7, 50, 42, [90, 90], 9, 0, 26, 50, 'physical', 'melee', 8, 10, 60]; _root.bestiary.orc_8 = ['Ancient Orc', 7, 50, 50, [100, 100], 10, 0, 30, 50, 'physical', 'melee', 9, 20, 70]; _root.bestiary.orc_9 = ['Legendary Orc', 7, 50, 60, [120, 120], 12, 0, 30, 50, 'physical', 'melee', 12, 30, 70]; _root.bestiary.goblin_1 = ['Tiny Goblin', 6, 50, 4, [18, 18], 2, 0, 32, 50, 'physical', 'melee', 1, 2, 10]; _root.bestiary.goblin_2 = ['Little Goblin', 6, 50, 6, [24, 24], 3, 0, 35, 50, 'physical', 'melee', 2, 5, 14]; _root.bestiary.goblin_3 = ['Goblin', 6, 50, 9, [30, 30], 5, 0, 38, 50, 'physical', 'melee', 3, 5, 18]; _root.bestiary.goblin_4 = ['Viscious Goblin', 6, 50, 12, [35, 35], 7, 0, 41, 50, 'physical', 'melee', 4, 5, 24]; _root.bestiary.goblin_5 = ['Bloodthirsty Goblin', 6, 50, 14, [40, 40], 9, 0, 43, 50, 'physical', 'melee', 5, 10, 30]; _root.bestiary.goblin_6 = ['Strong Goblin', 6, 50, 17, [50, 50], 12, 0, 45, 50, 'physical', 'melee', 6, 10, 34]; _root.bestiary.goblin_7 = ['Old Goblin', 6, 50, 20, [55, 55], 16, 0, 48, 50, 'physical', 'melee', 6, 10, 40]; _root.bestiary.goblin_8 = ['Manslayer Goblin', 6, 50, 24, [60, 60], 18, 0, 50, 50, 'physical', 'melee', 7, 15, 50]; _root.bestiary.goblin_9 = ['Legendary Goblin', 6, 50, 30, [65, 65], 24, 0, 55, 50, 'physical', 'melee', 9, 25, 60]; _root.bestiary.goblin_archer_1 = ['Tiny Goblin', 25, 50, 4, [18, 18], 2, 0, 32, 50, 'ranged', 'ranged', 1, 2, 10]; _root.bestiary.goblin_archer_2 = ['Little Goblin', 25, 50, 6, [24, 24], 3, 0, 35, 50, 'ranged', 'ranged', 2, 5, 14]; _root.bestiary.goblin_archer_3 = ['Goblin', 25, 50, 9, [30, 30], 5, 0, 38, 50, 'ranged', 'ranged', 3, 5, 18]; _root.bestiary.goblin_archer_4 = ['Viscious Archer', 25, 50, 12, [35, 35], 7, 0, 41, 50, 'ranged', 'ranged', 4, 5, 24]; _root.bestiary.goblin_archer_5 = ['Bloodthirsty Archer', 25, 50, 14, [40, 40], 9, 0, 43, 50, 'ranged', 'ranged', 5, 10, 30]; _root.bestiary.goblin_archer_6 = ['Strong Archer', 25, 50, 17, [50, 50], 12, 0, 45, 50, 'ranged', 'ranged', 6, 10, 34]; _root.bestiary.goblin_archer_7 = ['Longshot Archer', 25, 50, 20, [55, 55], 16, 0, 48, 50, 'ranged', 'ranged', 6, 10, 40]; _root.bestiary.goblin_archer_8 = ['Manslayer Archer', 25, 50, 24, [60, 60], 18, 0, 50, 50, 'ranged', 'ranged', 7, 15, 50]; _root.bestiary.goblin_archer_9 = ['Legendary Archer', 25, 50, 30, [65, 65], 24, 0, 55, 50, 'ranged', 'ranged', 9, 25, 60]; _root.bestiary.ninja_1 = ['Ninja', 18, 50, 8, [30, 30], 4, 4, 35, 50, 'physical', 'melee', 2, 10, 10]; _root.bestiary.ninja_2 = ['Ninja', 18, 50, 12, [45, 45], 7, 7, 38, 50, 'physical', 'melee', 3, 12, 20]; _root.bestiary.ninja_3 = ['Ninja', 18, 50, 18, [55, 55], 9, 9, 42, 50, 'physical', 'melee', 5, 18, 30]; _root.bestiary.ninja_4 = ['Ninja', 18, 50, 24, [70, 70], 12, 12, 42, 50, 'physical', 'melee', 7, 20, 40]; _root.bestiary.ninja_5 = ['Ninja', 18, 50, 30, [90, 90], 18, 18, 45, 50, 'physical', 'melee', 9, 25, 50]; _root.bestiary.ninja_6 = ['Ninja', 18, 50, 40, [110, 110], 25, 25, 47, 50, 'physical', 'melee', 12, 40, 60]; _root.bestiary.ninja_7 = ['Ninja', 18, 50, 50, [130, 130], 30, 30, 50, 50, 'physical', 'melee', 15, 55, 70]; _root.bestiary.ninja_8 = ['Ninja', 18, 50, 60, [150, 150], 35, 35, 52, 50, 'physical', 'melee', 19, 65, 80]; _root.bestiary.ninja_9 = ['Ninja', 18, 50, 75, [180, 180], 40, 40, 55, 50, 'physical', 'melee', 25, 90, 90]; _root.breederslist = {}; _root.breederslist.level1 = [['Graveyard', 45, 1, 'undead', random(25) + 30, 4, 1, 95, 0, 40, 0, true], ['Goblin Shack', 47, 1, 'orcs', random(30) + 25, 5, 2, 120, 0, 40, 0, true], ['Elemental Stone', 46, 1, 'elementals', random(30) + 25, 5, 2, 120, 0, 40, 0, true], ['Broken Caravan', 49, 1, 'slimes', random(30) + 25, 5, 2, 120, 0, 40, 0, true]]; _root.breederslist.level2 = [['Orcish Totem', 47, 2, 'orcs', random(20) + 30, 7, 2, 85, 0, 35, 0, true], ['Abandoned Building', 48, 2, 'chaos', random(25) + 25, 9, 3, 100, 0, 35, 0, true], ['Old Shipwreck', 49, 2, 'slimes', random(25) + 25, 9, 3, 100, 0, 35, 0, true], ['Ancient Pyramid', 45, 2, 'undead', random(25) + 25, 9, 3, 100, 0, 35, 0, true], ['Forbidden Pass', 46, 2, 'elementals', random(25) + 25, 9, 3, 100, 0, 35, 0, true]]; _root.breederslist.level3 = [['Orcish Totem', 47, 2, 'orcs', random(15) + 25, 12, 3, 75, 0, 30, 0, true], ['Ruined Crypt', 45, 2, 'undead', random(20) + 20, 14, 4, 90, 0, 30, 0, true], ['Infested Pass', 49, 2, 'slimes', random(20) + 20, 14, 4, 90, 0, 35, 0, true], ['Chaotic Watchtower', 48, 2, 'chaos', random(20) + 20, 14, 4, 90, 0, 30, 0, true], ['Epic Monument', 46, 2, 'elementals', random(20) + 20, 14, 4, 90, 0, 30, 0, true]]; } frame 13 { function createaworld(why, ex, gweight, fweight, mweight) { _root.theworld = []; var v3 = 0; while (v3 < why) { var v6 = []; var v2 = 0; while (v2 < ex) { if (v2 < 3 || v2 > ex - 4) { v6.push(20); } else { var v5 = random(100) + 1; if (v5 < gweight) { v6.push(random(10) + 1); } else { if (v5 < fweight) { v6.push(random(5) + 11); } else { v6.push(random(4) + 15); } } } ++v2; } _root.theworld.push(v6.slice()); ++v3; } v3 = 0; while (v3 < 3) { v6 = []; v2 = 0; while (v2 < ex) { v6.push(20); ++v2; } _root.theworld[v3] = v6.slice(); _root.theworld[why - v3] = v6.slice(); ++v3; } v3 = 0; while (v3 < why) { v2 = 0; while (v2 < ex) { if (_root.theworld[v3 - 1][v2] == 20 && _root.theworld[v3 + 1][v2] < 20 && _root.theworld[v3][v2] < 20) { _root.theworld[v3][v2] = 21; } else { if (_root.theworld[v3 + 1][v2] == 20 && _root.theworld[v3 - 1][v2] < 20 && _root.theworld[v3][v2] < 20) { _root.theworld[v3][v2] = 22; } else { if (_root.theworld[v3][v2 - 1] == 20 && _root.theworld[v3][v2 + 1] < 20 && _root.theworld[v3][v2] < 20) { _root.theworld[v3][v2] = 23; } else { if (_root.theworld[v3][v2 + 1] == 20 && _root.theworld[v3][v2 - 1] < 20 && _root.theworld[v3][v2] < 20) { _root.theworld[v3][v2] = 24; } } } } ++v2; } ++v3; } v3 = 0; while (v3 < why) { v2 = 0; while (v2 < ex) { if (_root.theworld[v3][v2 + 1] == 22 && _root.theworld[v3 - 1][v2] == 23) { _root.theworld[v3][v2] = 25; } else { if (_root.theworld[v3][v2 - 1] == 22 && _root.theworld[v3 - 1][v2] == 24) { _root.theworld[v3][v2] = 26; } else { if (_root.theworld[v3][v2 + 1] == 21 && _root.theworld[v3 + 1][v2] == 23) { _root.theworld[v3][v2] = 27; } else { if (_root.theworld[v3][v2 - 1] == 21 && _root.theworld[v3 + 1][v2] == 24) { _root.theworld[v3][v2] = 28; } } } } ++v2; } ++v3; } } function createcreeps(why, ex, popdes, diff, legends) { _root.creepmap = []; var v10 = 0; while (v10 < why) { var v9 = []; var v6 = 0; while (v6 < ex) { v9.push(0); ++v6; } _root.creepmap.push(v9.slice()); _root.detailmap.push(v9.slice()); _root.questmap.push(v9.slice()); ++v10; } var v16 = Math.round(popdes / 7); var v14 = Math.round(popdes / 7); var v12 = Math.round(popdes / 7); var v13 = Math.round(popdes / 7); var v15 = Math.round(popdes / 7); var v11 = Math.round(popdes / 7); var v17 = Math.round(popdes / 7); v10 = 0; while (v10 < v16) { var v8 = 0; var v7 = 0; for (;;) { if (!(v8 == 0 || v7 == 0)) break; var v5 = random(ex) + 3; var v4 = random(why) + 3; if (_root.worldmap[v4][v5] > 0 && _root.worldmap[v4][v5] != 20) { if (_root.creepmap[v4][v5] == 0 && v4 != Math.round(why / 2) && v5 != Math.round(ex / 2)) { v8 = v5; v7 = v4; } } } _root.detailmap[v7][v8] = _root.easycreeps[0].slice(); _root.creepmap[v7][v8] = _root.bestiary[_root.easycreeps[0][5]][1]; ++v10; } v10 = 0; while (v10 < v14) { v8 = 0; v7 = 0; for (;;) { if (!(v8 == 0 || v7 == 0)) break; v5 = random(ex) + 3; v4 = random(why) + 3; if (_root.worldmap[v4][v5] > 0 && _root.worldmap[v4][v5] != 20) { if (_root.creepmap[v4][v5] == 0 && v4 != Math.round(why / 2) && v5 != Math.round(ex / 2)) { v8 = v5; v7 = v4; } } } _root.creepmap[v7][v8] = 2; ++v10; } v10 = 0; while (v10 < v12) { v8 = 0; v7 = 0; for (;;) { if (!(v8 == 0 || v7 == 0)) break; v5 = random(ex) + 3; v4 = random(why) + 3; if (_root.worldmap[v4][v5] > 0 && _root.worldmap[v4][v5] != 20) { if (_root.creepmap[v4][v5] == 0 && v4 != Math.round(why / 2) && v5 != Math.round(ex / 2)) { v8 = v5; v7 = v4; } } } _root.creepmap[v7][v8] = 3; ++v10; } v10 = 0; while (v10 < v13) { v8 = 0; v7 = 0; for (;;) { if (!(v8 == 0 || v7 == 0)) break; v5 = random(ex) + 3; v4 = random(why) + 3; if (_root.worldmap[v4][v5] > 0 && _root.worldmap[v4][v5] != 20) { if (_root.creepmap[v4][v5] == 0 && v4 != Math.round(why / 2) && v5 != Math.round(ex / 2)) { v8 = v5; v7 = v4; } } } _root.creepmap[v7][v8] = 4; ++v10; } v10 = 0; while (v10 < v15) { v8 = 0; v7 = 0; for (;;) { if (!(v8 == 0 || v7 == 0)) break; v5 = random(ex) + 3; v4 = random(why) + 3; if (_root.worldmap[v4][v5] > 0 && _root.worldmap[v4][v5] != 20) { if (_root.creepmap[v4][v5] == 0 && v4 != Math.round(why / 2) && v5 != Math.round(ex / 2)) { v8 = v5; v7 = v4; } } } _root.creepmap[v7][v8] = 5; ++v10; } v10 = 0; while (v10 < v11) { v8 = 0; v7 = 0; for (;;) { if (!(v8 == 0 || v7 == 0)) break; v5 = random(ex) + 3; v4 = random(why) + 3; if (_root.worldmap[v4][v5] > 0 && _root.worldmap[v4][v5] != 20) { if (_root.creepmap[v4][v5] == 0 && v4 != Math.round(why / 2) && v5 != Math.round(ex / 2)) { v8 = v5; v7 = v4; } } } _root.creepmap[v7][v8] = 6; ++v10; } v10 = 0; while (v10 < v17) { v8 = 0; v7 = 0; for (;;) { if (!(v8 == 0 || v7 == 0)) break; v5 = random(ex) + 3; v4 = random(why) + 3; if (_root.worldmap[v4][v5] > 0 && _root.worldmap[v4][v5] != 20) { if (_root.creepmap[v4][v5] == 0 && v4 != Math.round(why / 2) && v5 != Math.round(ex / 2)) { v8 = v5; v7 = v4; } } } _root.creepmap[v7][v8] = 7; ++v10; } v10 = 0; while (v10 < legends) { v8 = 0; v7 = 0; for (;;) { if (!(v8 == 0 || v7 == 0)) break; v5 = random(ex) + 3; v4 = random(why) + 3; if (_root.worldmap[v4][v5] > 0 && _root.worldmap[v4][v5] != 20) { if (_root.creepmap[v4][v5] == 0 && v4 != Math.round(why / 2) && v5 != Math.round(ex / 2)) { v8 = v5; v7 = v4; } } } _root.creepmap[v7][v8] = 8; ++v10; } } function createlocations(why, ex, dungs, split, breeds, bsplit, heroes, herovar, asc, shop, alch, house, achests) { _root.contentmap = []; var v17 = 0; while (v17 < why) { var v9 = []; var v8 = 0; while (v8 < ex) { v9.push(0); ++v8; } _root.contentmap.push(v9.slice()); _root.contentdetailsmap.push(v9.slice()); _root.creepmap.push(v9.slice()); _root.detailmap.push(v9.slice()); ++v17; } var v21 = dungs; var v6 = split; var v13 = []; var v16 = achests; while (v21 > 0) { var v11 = random(ex) + 3; var v10 = random(why) + 3; if (_root.worldmap[v10][v11] > 0 && _root.worldmap[v10][v11] != 20) { if (_root.contentmap[v10][v11] == 0 && v10 != Math.round(why / 2) && v11 != Math.round(ex / 2) && _root.creepmap[v10][v11] == 0) { _root.contentmap[v10][v11] = 1; var v2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; var v25 = random(5); var v3 = ''; if (v25 == 0) { v3 = 'undead'; } else { if (v25 == 1) { v3 = 'chaos'; } else { if (v25 == 2) { v3 = 'orcs'; } else { if (v25 == 3) { v3 = 'elementals'; } else { v3 = 'slimes'; } } } } var v24 = random(_root.dungeonstuffs[v3 + 'names'].length); v2[0] = _root.dungeonstuffs[v3 + 'names'][v24]; trace('dunsplit: ' + v6); var v7 = 1; if (v6[0] > 0) { var v23 = random(_root.dungeonstuffs[v3 + 'bosses1'].length); v2[1] = random(3) + 3; v2[2] = random(3) + 3; v2[3] = v3; v2[4] = 1; v2[5] = _root.dungeonstuffs[v3 + 'bosses1'][v23]; v2[6] = random(20) + 20; v2[7] = random(10) + 10; v2[8] = 1; v2[9] = 1; --v6[0]; v13.push([v10, v11, 1]); v7 = 1; } else { if (v6[1] > 0) { var v23 = random(_root.dungeonstuffs[v3 + 'bosses2'].length); v2[1] = random(3) + 3; v2[2] = random(3) + 3; v2[3] = v3; v2[4] = 2; v2[5] = _root.dungeonstuffs[v3 + 'bosses2'][v23]; v2[6] = random(30) + 25; v2[7] = random(15) + 15; v2[8] = 1; v2[9] = 2; --v6[1]; v13.push([v10, v11, 2]); v7 = 2; } else { if (v6[2] > 0) { var v23 = random(_root.dungeonstuffs[v3 + 'bosses3'].length); v2[1] = random(3) + 3; v2[2] = random(4) + 3; v2[3] = v3; v2[4] = 3; v2[5] = _root.dungeonstuffs[v3 + 'bosses3'][v23]; v2[6] = random(35) + 30; v2[7] = random(20) + 15; v2[8] = 2; v2[9] = 2; --v6[2]; v13.push([v10, v11, 3]); v7 = 3; } else { if (v6[3] > 0) { var v23 = random(_root.dungeonstuffs[v3 + 'bosses4'].length); v2[1] = random(3) + 3; v2[2] = random(4) + 3; v2[3] = v3; v2[4] = 4; v2[5] = _root.dungeonstuffs[v3 + 'bosses4'][v23]; v2[6] = random(50) + 30; v2[7] = random(20) + 20; v2[8] = 2; v2[9] = 3; --v6[3]; v13.push([v10, v11, 4]); v7 = 4; } else { if (v6[4] > 0) { var v23 = random(_root.dungeonstuffs[v3 + 'bosses5'].length); v2[1] = random(3) + 3; v2[2] = random(5) + 3; v2[3] = v3; v2[4] = 5; v2[5] = _root.dungeonstuffs[v3 + 'bosses5'][v23]; v2[6] = random(50) + 50; v2[7] = random(30) + 30; v2[8] = 3; v2[9] = 3; --v6[4]; v13.push([v10, v11, 5]); v7 = 5; } } } } } if (v16 > 0) { if (v21 > v16) { if (random(100) < v7 * 5) { v2[10] = true; trace('Placed Astral Chest at ' + v10 + ', ' + v11); --v16; } } else { v2[10] = true; --v16; trace('Placed Astral Chest at ' + v10 + ', ' + v11); } } _root.contentdetailsmap[v10][v11] = v2.slice(); if (_root.worldmap[v10][v11] < 20) { _root.worldmap[v10][v11] = random(9) + 1; } --v21; } } } var v27 = breeds; var v15 = bsplit.slice(); _root.breederlist = []; while (v27 > 0) { v11 = random(ex) + 3; v10 = random(why) + 3; if (_root.worldmap[v10][v11] > 0 && _root.worldmap[v10][v11] != 20) { if (_root.contentmap[v10][v11] == 0 && v10 != Math.round(why / 2) && v11 != Math.round(ex / 2)) { if (v15[0] > 0) { var v12 = random(4); var v14 = _root.breederslist.level1[v12].slice(); _root.contentmap[v10][v11] = v14[1]; _root.contentdetailsmap[v10][v11] = v14.slice(); --v15[0]; trace('creating level 1 breeder: ' + v14); } else { if (v15[1] > 0) { var v12 = random(4); var v14 = _root.breederslist.level2[v12].slice(); _root.contentmap[v10][v11] = v14[1]; _root.contentdetailsmap[v10][v11] = v14.slice(); --v15[1]; trace('creating level 2 breeder: ' + v14); } else { var v12 = random(4); var v14 = _root.breederslist.level3[v12].slice(); _root.contentmap[v10][v11] = v14[1]; _root.contentdetailsmap[v10][v11] = v14.slice(); trace('creating level 3 breeder: ' + v14); } } _root.breederlist.push([v10, v11]); --v27; } } } var v22 = _root.possibleheroes.slice(); var v18 = []; var v19 = heroes; v17 = 0; while (v17 < herovar) { v12 = random(v22.length); v18.push(v22[v12]); v22.splice(v12, 1); ++v17; } trace(herovar + ' Heroes possible this world: ' + v18); var v20 = []; v17 = 0; while (v17 < v19) { v25 = random(v18.length); v20.push(v18[v25]); ++v17; } while (v19 > 0) { v11 = random(ex) + 3; v10 = random(why) + 3; if (_root.worldmap[v10][v11] > 0 && _root.worldmap[v10][v11] != 20) { if (_root.contentmap[v10][v11] == 0 && v10 != Math.round(why / 2) && v11 != Math.round(ex / 2)) { _root.contentmap[v10][v11] = 1337; _root.contentdetailsmap[v10][v11] = createherodetails(v20[0]); v20.splice(0, 1); trace('Created a Hero @ ' + v10 + ', ' + v11 + '. Details: ' + _root.contentdetailsmap[v10][v11]); --v19; pickaquest(v10, v11); } } } var v28 = asc; var v26 = shop; var v30 = alch; var v29 = house; while (v28 > 0) { v11 = random(ex) + 3; v10 = random(why) + 3; if (_root.worldmap[v10][v11] > 0 && _root.worldmap[v10][v11] != 20) { if (_root.contentmap[v10][v11] == 0 && v10 != Math.round(why / 2) && v11 != Math.round(ex / 2)) { _root.contentmap[v10][v11] = 2; --v28; } } } while (v26 > 0) { v11 = random(ex) + 3; v10 = random(why) + 3; if (_root.worldmap[v10][v11] > 0 && _root.worldmap[v10][v11] != 20) { if (_root.contentmap[v10][v11] == 0 && v10 != Math.round(why / 2) && v11 != Math.round(ex / 2)) { _root.contentmap[v10][v11] = 3; --v26; } } } while (v30 > 0) { v11 = random(ex) + 3; v10 = random(why) + 3; if (_root.worldmap[v10][v11] > 0 && _root.worldmap[v10][v11] != 20) { if (_root.contentmap[v10][v11] == 0 && v10 != Math.round(why / 2) && v11 != Math.round(ex / 2)) { _root.contentmap[v10][v11] = 4; --v30; } } } while (v29 > 0) { v11 = random(ex) + 3; v10 = random(why) + 3; if (_root.worldmap[v10][v11] > 0 && _root.worldmap[v10][v11] != 20) { if (_root.contentmap[v10][v11] == 0 && v10 != Math.round(why / 2) && v11 != Math.round(ex / 2)) { _root.contentmap[v10][v11] = 5; --v29; } } } } function pickaquest(why, ex) { trace('Deciding on a quest for hero at ' + why + ', ' + ex); var v3 = random(_root.numquests) + 1; _root.contentdetailsmap[why][ex].push(false); _root.contentdetailsmap[why][ex].push(v3); var v2 = []; if (v3 == 1) { var v5 = random(200) + 100; v5 += random(_root.globalstuff.difficulty * 4); if (_root.playerstuff.haseasyquests) { v5 -= Math.round(v5 / 5); } v2 = [0, v5]; } else { if (v3 == 2) { var v4 = 30 + random(40); v4 -= random(_root.globalstuff.difficulty); if (_root.playerstuff.haseasyquests) { v4 += Math.round(v4 / 5); } v2 = [v4]; } else { if (v3 == 3) { var v8 = random(30) + 30; v8 += _root.globalstuff.difficulty; var v4 = 50 + random(75); v4 -= _root.globalstuff.difficulty; if (_root.playerstuff.haseasyquests) { v4 += Math.round(v4 / 5); } v2 = [v4, v8]; } else { if (v3 == 4) { var v4 = 30 + random(40); v4 -= _root.globalstuff.difficulty; if (_root.playerstuff.haseasyquests) { v4 += Math.round(v4 / 5); } v2 = [v4]; } else { if (v3 == 5) { var v9 = random(250) + 125; v9 += random(_root.globalstuff.difficulty * 4); var v4 = 45 + random(50); v4 -= _root.globalstuff.difficulty; if (_root.playerstuff.haseasyquests) { v4 += Math.round(v4 / 5); } v2 = [v4, v9]; } else { if (v3 == 6) { var v9 = random(4) + 2; var v4 = 45 + random(50); v4 -= _root.globalstuff.difficulty; if (_root.playerstuff.haseasyquests) { v4 += Math.round(v4 / 5); } v2 = [v4, v9]; } else { if (v3 == 7) { var v9 = random(4) + 2; var v4 = 45 + random(50); v4 -= _root.globalstuff.difficulty; if (_root.playerstuff.haseasyquests) { v4 += Math.round(v4 / 5); } v2 = [v4, v9]; } else { if (v3 == 8) { var v9 = random(4) + 2; v9 += Math.floor(_root.globalstuff.difficulty / 8); var v4 = 60 + random(80); v4 -= _root.globalstuff.difficulty; if (_root.playerstuff.haseasyquests) { v4 += Math.round(v4 / 5); } v2 = [v4, v9]; } else { if (v3 == 9) { var v9 = random(50) + 30; v9 += _root.globalstuff.difficulty; var v4 = 45 + random(50); v4 -= _root.globalstuff.difficulty; if (_root.playerstuff.haseasyquests) { v4 += Math.round(v4 / 5); } v2 = [v4, v9]; } } } } } } } } } _root.contentdetailsmap[why][ex].push(v2.slice()); trace('Set as ' + _root.contentdetailsmap[why][ex]); } worldmap = []; creepmap = []; contentmap = []; contentdetailsmap = []; detailmap = []; questmap = []; if (_root.savegame.data.gameplaying) { _root.loadinggame = true; nextFrame(); } else { if (_root.doingtutorial) { _root.worldmap = [[20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20], [20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20], [20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20], [20, 20, 20, 27, 21, 21, 21, 21, 21, 28, 20, 20, 20], [20, 20, 20, 23, 4, 17, 13, 11, 17, 24, 20, 20, 20], [20, 20, 20, 23, 6, 2, 3, 12, 11, 24, 20, 20, 20], [20, 20, 20, 23, 3, 5, 8, 12, 9, 24, 20, 20, 20], [20, 20, 20, 23, 6, 2, 13, 1, 7, 24, 20, 20, 20], [20, 20, 20, 23, 6, 3, 17, 1, 7, 24, 20, 20, 20], [20, 20, 20, 23, 14, 15, 3, 3, 7, 24, 20, 20, 20], [20, 20, 20, 25, 22, 22, 22, 22, 22, 26, 20, 20, 20], [20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20], [20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20], [20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20]]; _root.breederlist = [[6, 4], [6, 6]]; _root.generteinfo = [2, [2, 0, 0, 0, 0], 2, [2, 0, 0], 3, 20, 1, 1, 1, 1, 1000, 3]; _root.creepmap = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 13, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]; _root.contentmap = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 49, 0, 46, 0, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 1337, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 1337, 0, 0, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]; _root.detailmap = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, ['Creature Party', [6, 4], 3, 1, 5, 'snake_1', 'slime_1', 'sheep_1'], 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, ['Elemental Party', [6, 6], 2, 1, 13, 'lightning_elemental_1', 'rock_elemental_1'], 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]; _root.questmap = []; _root.contentdetailsmap = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, ['Broken Caravan', 49, 1, 'slimes', 32, 5, 2, 120, 1, 0, 1, true], 0, ['Elemental Stone', 46, 1, 'elementals', 27, 5, 2, 120, 1, 0, 1, true], 0, ['Overgrown Ruins', 5, 5, 'slimes', 1, 'slime_prince', 36, 14, 1, 1, true], 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, ['Sadistic Richard', 15, 'Necromancer', [40, 40], 30, ['Leather Gloves', 1, 2, 0, 49, 0, 50, 2], ['Minor Spellbook', 43, 50, 5, 30, 'magic', 0, 121, 1, 20, 2], 'magic', 0, [0, 10], 1, 1, 0, 0, 1, 'necromancer', false, 4, [500]], 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, ['Reliable old Pete', 22, 'Sniper', [30, 30], 14, ['Leather Boots', 2, 1, 0, 25, 0, 50, 1], ['Shortbow', 62, 50, 5, 30, 'ranged', 0, 97, 1, 20, 1], 'ranged', 0, [0, 10], 1.25, 1, 0, 0, 1, 'sniper', false, 2, [500]], 0, 0, ['Musty Tomb', 3, 4, 'undead', 1, 'skeletoar', 30, 14, 1, 1, true], 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]; } else { createaworld(worldsize[0], worldsize[1], 60, 85, 100); _root.worldmap = _root.theworld; createlocations(worldsize[0], worldsize[1], _root.generteinfo[0], _root.generteinfo[1].slice(), _root.generteinfo[2], _root.generteinfo[3].slice(), _root.generteinfo[4], _root.generteinfo[5], _root.generteinfo[6], _root.generteinfo[7], _root.generteinfo[8], _root.generteinfo[9], _root.generteinfo[11]); } } } frame 14 { _root.tutstuff._visible = false; if (_root.doingtutorial) { _root.playerstuff.potions += 90; _root.playerstuff.feathers += 4; _root.playerstuff.managems += 40; _root.doingbattletutorial = true; _root.doingfirstdungeon = true; _root.doingfirstequip = true; _root.doingfirstlevel = true; tutstuff._visible = false; tutstuff.onRelease = function () { if (tutstuff.mystat == 2) { tutstuff._visible = false; _root.busy = false; } else { tutstuff.nextFrame(); } }; } else { _root.busy = false; _root.tutstuff._y = -2000; _root.tutstuff._visible = false; _root.doingbattletutorial = false; _root.doingfirstdungeon = false; _root.doingfirstequip = false; _root.doingfirstlevel = false; } } frame 14 { function clonearray(itemsArray) { tempItems = new Array(); for (currentItem in itemsArray) { if (currentItem[1] != undefined) { tempItems[currentItem] = new Array(); for (currentObject in itemsArray[currentItem]) { tempItems[currentItem][currentObject] = itemsArray[currentItem][currentObject]; } } else { tempItems[currentItem] = itemsArray[currentItem]; } } return tempItems; } function cloneobject(itemsArray) { tempItems = new Object(); for (currentItem in itemsArray) { if (currentItem[1] != undefined) { tempItems[currentItem] = new Array(); for (currentObject in itemsArray[currentItem]) { tempItems[currentItem][currentObject] = itemsArray[currentItem][currentObject]; } } else { tempItems[currentItem] = itemsArray[currentItem]; } } return tempItems; } function saveingame() { savegame = SharedObject.getLocal('undefined_littleprotplanes', '/'); _root.savegame.data.gameplaying = true; _root.savegame.data.pposx = _root.pposx; _root.savegame.data.pposy = _root.pposy; _root.savegame.data.turnsleft = _root.turnsleft; _root.savegame.data.selectedplane = _root.selectedplane; savemaps(); _root.savegame.data.playerstuff = {}; for (i in _root.playerstuff) { _root.savegame.data.playerstuff[i] = _root.playerstuff[i]; } if (_root.doingtutorial) { _root.savegame.data.doingtutorial = true; } if (_root.doingfirstdungeon) { _root.savegame.data.doingfirstdungeon = true; } if (_root.doingbattletutorial) { _root.savegame.data.doingbattletutorial = true; } if (_root.doingfirstequip) { _root.savegame.data.doingfirstequip = true; } if (_root.doingfirstlevel) { _root.savegame.data.doingfirstlevel = true; } _root.savegame.flush(); trace('SAVE COMPLETE!'); } function savemaps() { _root.savegame.data.creepmap = clonearray(_root.creepmap); _root.savegame.data.contentmap = clonearray(_root.contentmap); _root.savegame.data.contentdetailsmap = clonearray(_root.contentdetailsmap); _root.savegame.data.worldmap = clonearray(_root.worldmap); _root.savegame.data.detailmap = clonearray(_root.detailmap); _root.savegame.data.questmap = clonearray(_root.questmap); _root.savegame.data.generteinfo = clonearray(_root.generteinfo); _root.savegame.data.breederlist = clonearray(_root.breederlist); } function loadmaps() { _root.breederlist = clonearray(_root.savegame.data.breederlist); _root.generteinfo = clonearray(_root.savegame.data.generteinfo); _root.creepmap = clonearray(_root.savegame.data.creepmap); _root.contentmap = clonearray(_root.savegame.data.contentmap); _root.contentdetailsmap = clonearray(_root.savegame.data.contentdetailsmap); _root.worldmap = clonearray(_root.savegame.data.worldmap); _root.detailmap = clonearray(_root.savegame.data.detailmap); _root.questmap = clonearray(_root.savegame.data.questmap); } function loadingame() { savegame = SharedObject.getLocal('undefined_littleprotplanes', '/'); if (_root.savegame.data.doingtutorial) { _root.doingtutorial = true; if (_root.savegame.data.doingfirstdungeon) { _root.doingfirstdungeon = true; } else { _root.doingfirstdungeon = false; } if (_root.savegame.data.doingbattletutorial) { _root.doingbattletutorial = true; } else { _root.doingbattletutorial = false; } if (_root.savegame.data.doingfirstequip) { _root.doingfirstequip = true; } else { _root.doingfirstequip = false; } if (_root.savegame.data.doingfirstlevel) { _root.doingfirstlevel = true; } else { _root.doingfirstlevel = false; } } _root.playerstuff = {}; for (i in _root.savegame.data.playerstuff) { _root.playerstuff[i] = _root.savegame.data.playerstuff[i]; } turnsleft = _root.savegame.data.turnsleft; pposx = _root.savegame.data.pposx; pposy = _root.savegame.data.pposy; selectedplane = _root.savegame.data.selectedplane; loadmaps(); } } frame 14 { function spawnbreedermob(why, ex, type, lvl, rad) { trace('Spawning a mob from spawner at ' + why + ', ' + ex); var v16 = ''; if (type == 'undead') { v16 = 'Undead Party'; } else { if (type == 'chaos') { v16 = 'Chaotic Party'; } else { if (type == 'slimes') { v16 = 'Creature Party'; } else { if (type == 'elementals') { v16 = 'Elemental Party'; } else { v16 = 'Orckin Party'; } } } } var v15 = ''; var v8 = 1; if (lvl == 1) { v15 = 'Very Easy'; v8 += random(3) + 1; } else { if (lvl == 2) { v15 = 'Easy'; v8 += random(4) + 2; } else { if (lvl == 3) { v15 = 'Easy'; v8 += random(5) + 3; } else { if (lvl == 4) { v15 = 'Fairly Difficult'; v8 += random(6) + 4; } else { if (lvl == 5) { v15 = 'Challenging'; v8 += random(5) + 5; } else { if (lvl == 6) { v15 = 'Tough'; v8 += random(5) + 5; } else { if (lvl == 7) { v15 = 'Hard'; v8 += random(6) + 5; } else { if (lvl == 8) { v15 = 'Very Hard'; v8 += random(3) + 9; } else { v15 = 'Supremely Hard'; v8 += 11; } } } } } } } } var v18 = 1; var v7 = []; var v6 = 0; while (v6 < v8) { var v9 = random(_root.creeps['list_' + type].length); v7.push(_root.creeps['list_' + type][v9] + '_' + lvl); ++v6; } var v12 = [v16, [why, ex], v8, lvl, 0]; v6 = 0; while (v6 < v7.length) { v12.push(v7[v6]); ++v6; } v12[4] = _root.bestiary[v12[5]][1]; trace('Created monster group: ' + v12); var v2 = []; if (rad > 0) { v2.push([why + 1, ex]); v2.push([why - 1, ex]); v2.push([why + 1, ex + 1]); v2.push([why + 1, ex - 1]); v2.push([why, ex + 1]); v2.push([why, ex - 1]); v2.push([why - 1, ex + 1]); v2.push([why - 1, ex - 1]); } if (rad > 1) { v2.push([why + 2, ex]); v2.push([why - 2, ex]); v2.push([why, ex + 2]); v2.push([why, ex - 2]); v2.push([why + 2, ex + 2]); v2.push([why + 2, ex - 2]); v2.push([why - 2, ex + 2]); v2.push([why - 2, ex - 2]); v2.push([why + 2, ex + 1]); v2.push([why + 2, ex - 1]); v2.push([why - 2, ex + 1]); v2.push([why - 2, ex - 1]); v2.push([why + 1, ex + 2]); v2.push([why + 1, ex - 2]); v2.push([why - 1, ex + 2]); v2.push([why - 1, ex - 2]); } if (rad > 2) { v2.push([why + 3, ex]); v2.push([why - 3, ex]); v2.push([why, ex + 3]); v2.push([why, ex - 3]); v2.push([why + 3, ex + 1]); v2.push([why - 3, ex + 1]); v2.push([why + 3, ex + 2]); v2.push([why - 3, ex + 2]); v2.push([why + 3, ex + 3]); v2.push([why - 3, ex + 3]); v2.push([why + 3, ex - 1]); v2.push([why - 3, ex - 1]); v2.push([why + 3, ex - 2]); v2.push([why - 3, ex - 2]); v2.push([why + 3, ex - 3]); v2.push([why - 3, ex - 3]); v2.push([why - 2, ex - 3]); v2.push([why - 1, ex - 3]); v2.push([why - 2, ex + 3]); v2.push([why - 1, ex + 3]); v2.push([why + 2, ex - 3]); v2.push([why + 1, ex - 3]); v2.push([why + 2, ex + 3]); v2.push([why + 1, ex + 3]); } if (rad > 3) { v2.push([why + 4, ex]); v2.push([why - 4, ex]); v2.push([why, ex + 4]); v2.push([why, ex - 4]); v2.push([why + 1, ex + 4]); v2.push([why + 1, ex - 4]); v2.push([why + 2, ex + 4]); v2.push([why + 2, ex - 4]); v2.push([why + 3, ex + 4]); v2.push([why + 3, ex - 4]); v2.push([why + 4, ex + 4]); v2.push([why + 4, ex - 4]); v2.push([why - 1, ex + 4]); v2.push([why - 1, ex - 4]); v2.push([why - 2, ex + 4]); v2.push([why - 2, ex - 4]); v2.push([why - 3, ex + 4]); v2.push([why - 3, ex - 4]); v2.push([why - 4, ex + 4]); v2.push([why - 4, ex - 4]); v2.push([why - 4, ex + 3]); v2.push([why - 4, ex + 2]); v2.push([why - 4, ex + 1]); v2.push([why - 4, ex - 3]); v2.push([why - 4, ex - 2]); v2.push([why - 4, ex - 1]); v2.push([why + 4, ex + 3]); v2.push([why + 4, ex + 2]); v2.push([why + 4, ex + 1]); v2.push([why + 4, ex - 3]); v2.push([why + 4, ex - 2]); v2.push([why + 4, ex - 1]); } var v5 = []; v6 = 0; while (v6 < v2.length) { if (_root.worldmap[v2[v6][0]][v2[v6][1]] == 20) { v5.push(v6); } else { if (_root.creepmap[v2[v6][0]][v2[v6][1]] != 0) { v5.push(v6); } else { if (_root.contentmap[v2[v6][0]][v2[v6][1]] != 0) { v5.push(v6); } else { if (_root.pposy == v2[v6][0] && _root.pposx == v2[v6][1]) { v5.push(v6); } } } } ++v6; } var v13 = 0; v6 = 0; while (v6 < v5.length) { v2.splice(v5[v6] - v13, 1); ++v13; ++v6; } if (v2.length > 0) { var v14 = random(v2.length); _root.creepmap[v2[v14][0]][v2[v14][1]] = _root.bestiary[v12[5]][1]; trace('Setting creepmap[' + v2[v14][0] + '][' + v2[v14][1] + '] to ' + _root.bestiary[v12[5]][1]); _root.detailmap[v2[v14][0]][v2[v14][1]] = v12.slice(); trace('placing mob @ ' + v2[v14][0] + ', ' + v2[v14][1] + ' which is terrain type ' + _root.worldmap[v2[v14][0]][v2[v14][1]]); } } function checkforoverlandstuff() { trace('CHECKINGOVERLANDSTUFF'); var v3 = []; var v2 = 0; while (v2 < _root.playerstuff.party.length) { if (_root.playerstuff.party[v2][13] > 0) { v3.push(_root.playerstuff.party[v2][13]); } ++v2; } _root.playerstuff.hastreasurehunter = false; _root.playerstuff.hasscout = false; _root.playerstuff.hasdungeonscout = false; _root.playerstuff.hasminer = false; _root.playerstuff.haslumberjack = false; _root.playerstuff.hasalchemist = false; _root.playerstuff.hasmerchant = false; _root.playerstuff.hashealer = false; _root.playerstuff.hasdetectevil = false; _root.playerstuff.hasdungeonreveal = false; _root.playerstuff.haspawninfo = false; _root.playerstuff.hasmanaonmove = false; _root.playerstuff.hasresthealer = false; _root.playerstuff.hasrestmana = false; _root.playerstuff.haseasyquests = false; v2 = 0; while (v2 < v3.length) { if (v3[v2] == 1) { _root.playerstuff.hasscout = true; } else { if (v3[v2] == 2) { _root.playerstuff.hasminer = true; } else { if (v3[v2] == 3) { _root.playerstuff.haslumberjack = true; } else { if (v3[v2] == 4) { _root.playerstuff.hasalchemist = true; } else { if (v3[v2] == 5) { _root.playerstuff.hashealer = true; } else { if (v3[v2] == 6) { _root.playerstuff.hastreasurehunter = true; } else { if (v3[v2] == 7) { _root.playerstuff.hasdungeonscout = true; } else { if (v3[v2] == 8) { _root.playerstuff.hasmerchant = true; } else { if (v3[v2] == 9) { _root.playerstuff.hasrestmana = true; } else { if (v3[v2] == 10) { _root.playerstuff.hasresthealer = true; } else { if (v3[v2] == 11) { _root.playerstuff.haseasyquests = true; } else { if (v3[v2] == 12) { _root.playerstuff.hasspawninfo = true; } else { if (v3[v2] == 13) { _root.playerstuff.hasmanaonmove = true; } else { if (v3[v2] == 14) { _root.playerstuff.hasdungeonreveal = true; } else { if (v3[v2] == 15) { _root.playerstuff.hasdetectevil = true; } } } } } } } } } } } } } } } ++v2; } } function createtreasure(lvl, shop) { var v2 = lvl; var v5 = 8; if (_root.playerstuff.hastreasurehunter) { v5 += 2; } if (random(100) < v5 && v2 < 10) { ++v2; } v5 = 4; if (_root.playerstuff.hastreasurehunter) { v5 += 2; } if (random(100) < v5 && v2 < 10) { ++v2; } v5 = 2; if (_root.playerstuff.hastreasurehunter) { v5 += 2; } if (random(100) < v5 && v2 < 10) { ++v2; } var v9 = random(2); var v3 = random(3); if (!shop) { var v6 = _root.getitmlvl(v2); } else { var v6 = v2; } if (v3 == 0) { var v4 = 'melee'; } else { if (v3 == 1) { var v4 = 'ranged'; } else { var v4 = 'magic'; } } if (v9 == 0) { if (!shop) { ++_root.playerstuff.tracker[4]; } var v7 = _root.armours[v4 + '_' + v6].slice(); trace('ITEM GENERATED: ' + v7); return v7; } if (!shop) { ++_root.playerstuff.tracker[3]; } v7 = _root.weapons[v4 + '_' + v6].slice(); trace('ITEM GENERATED: ' + v7); return v7; } function setupshop(min, max) { _root.playerstuff.shopstock = []; var v2 = 0; while (v2 < 30) { _root.playerstuff.shopstock.push(_root.createtreasure(random(max) + min, true)); ++v2; } } function getitmlvl(lvl) { trace('CREATING ITEM LEVEL: ' + lvl); if (lvl == 1) { if (random(2) == 1) { return 2; } else { return 3; } } else { if (lvl == 2) { if (random(2) == 1) { return 4; } else { return 5; } } else { if (lvl == 3) { if (random(2) == 1) { return 6; } else { return 7; } } else { if (lvl == 4) { if (random(2) == 1) { return 8; } else { if (random(2) == 1) { return 9; } else { return 10; } } } else { if (lvl == 5) { if (random(2) == 1) { return 11; } else { return 12; } } else { if (lvl == 6) { if (random(2) == 1) { return 13; } else { if (random(2) == 1) { return 14; } else { return 15; } } } else { if (lvl == 7) { if (random(2) == 1) { return 16; } else { return 17; } } else { if (lvl == 8) { if (random(2) == 1) { return 18; } else { return 19; } } else { if (lvl == 9) { if (random(2) == 1) { return 20; } else { if (random(2) == 1) { return 21; } else { return 22; } } } else { if (lvl == 10) { if (random(2) == 1) { return 23; } else { return 24; } } else { return 1; } } } } } } } } } } } function initiatealchy(why, ex) {} if (_root.newgame) { _root.showwelcomewindow(false, true); _root.newgame = false; } setupshop(1, 14); restbutton.onRollOver = function () { this.gotoAndStop(2); }; restbutton.onRollOut = function () { this.gotoAndStop(1); }; restbutton.onRelease = function () { trace('INITIAL REST'); if (!_root.busy) { trace('RESTING'); trace('CHECKING REST MANA: ' + _root.playerstuff.hasrestmana); _root.playsfx('click'); if (_root.movedelay == 0) { var v4 = random(10) + 5; _root.doarest = true; var v3 = 0; while (v3 < _root.playerstuff.party.length) { _root.playerstuff.party[v3][3][0] += v4; if (_root.playerstuff.party[v3][3][0] > _root.playerstuff.party[v3][3][1]) { _root.playerstuff.party[v3][3][0] = _root.playerstuff.party[v3][3][1]; } ++v3; } if (_root.playerstuff.hasresthealer) { v4 = random(10) + 5; v3 = 0; while (v3 < _root.playerstuff.party.length) { _root.playerstuff.party[v3][3][0] += v4; if (_root.playerstuff.party[v3][3][0] > _root.playerstuff.party[v3][3][1]) { _root.playerstuff.party[v3][3][0] = _root.playerstuff.party[v3][3][1]; } ++v3; } } if (_root.playerstuff.hasrestmana) { trace('HAS RESTING MANA GAIN'); _root.playsfx('gotit'); var v5 = random(500000); _root.mainmap.attachMovie('manapop', 'mana_' + pposx + '_' + pposy + '_' + v5, _root.mainmap.getNextHighestDepth(), {'_x': 206, '_y': 216}); ++_root.playerstuff.managems; ++_root.playerstuff.tracker[7]; _root.gemdisp.text = _root.playerstuff.managems; _root.mainmap['mana_' + pposx + '_' + pposy + '_' + v5].ttl = 15; _root.mainmap['mana_' + pposx + '_' + pposy + '_' + v5].onEnterFrame = function () { --this.ttl; if (this.ttl < 0) { this.removeMovieClip(); } }; com.greensock.TweenLite.to(_root.mainmap['mana_' + pposx + '_' + pposy + '_' + v5], 0.6, {'_y': 165}); } } _root.movedelay = 8; } }; quitbutton.onRollOver = function () { this.gotoAndStop(2); }; quitbutton.onRollOut = function () { this.gotoAndStop(1); }; quitbutton.onRelease = function () { if (!_root.busy) { _root.playsfx('click'); _root.busy = true; _root.attachMovie('rusure', 'rusure', _root.getNextHighestDepth(), {'_x': 120, '_y': -150}); _root.rusure.line1.text = 'Really Leave the Plane?'; _root.rusure.line2.text = 'You will suffer a reduction in Astral Energy earnings'; _root.rusure.no.onRelease = function () { _root.busy = false; _root.window.isopen = false; _root.rusure.removeMovieClip(); }; _root.rusure.yes.onRelease = function () { _root.quitter = true; _root.window.isopen = false; _root.rusure.removeMovieClip(); _root.endplane(); }; com.greensock.TweenLite.to(_root.rusure, 0.25, {'_y': 240}); } }; _root.checkforoverlandstuff(); } frame 14 { function getherocombatspecialname(which) { if (which == 0) { return 'None'; } else { if (which == 1) { return 'Undead Slayer'; } else { if (which == 2) { return 'Witch Hunter'; } else { if (which == 3) { return 'Chaos Slayer'; } else { if (which == 4) { return 'Creature Slayer'; } else { if (which == 5) { return 'Elemental Slayer'; } else { if (which == 6) { return 'Ferocious'; } else { if (which == 7) { return 'Scholar'; } else { if (which == 8) { return 'Healing'; } else { if (which == 9) { return 'Treasure Hunting'; } else { if (which == 10) { return 'Heroic'; } else { if (which == 11) { return 'Dungeoneer'; } else { if (which == 12) { return 'Sure Striker'; } else { if (which == 13) { return 'Regeneration'; } else { if (which == 14) { return 'Stoneskin'; } else { if (which == 15) { return 'Big Target'; } else { if (which == 16) { return 'Small Target'; } else { if (which == 17) { return 'Necrosis'; } else { if (which == 18) { return 'Alchemic'; } else { if (which == 19) { return 'Nimble'; } else { if (which == 20) { return 'Fast'; } else { if (which == 21) { return 'Unslowable'; } else { if (which == 22) { return 'Magic Resistant'; } else { if (which == 23) { return 'Ironskin'; } else { if (which == 24) { return 'Deflection'; } else { if (which == 25) { return 'Momentum'; } } } } } } } } } } } } } } } } } } } } } } } } } } } function getherocombatspecialblurb(which) { if (which == 0) { return ''; } else { if (which == 1) { return 'Deals an extra 50% damage to Undead enemies'; } else { if (which == 2) { return 'Deals an extra 25% damage to Spellcaster enemies'; } else { if (which == 3) { return 'Deals an extra 50% damage to Chaotic enemies'; } else { if (which == 4) { return 'Deals an extra 50% damage to Creature enemies'; } else { if (which == 5) { return 'Deals an extra 50% damage to Elemental enemies'; } else { if (which == 6) { return 'Has a chance to deal double damage every attack'; } else { if (which == 7) { return 'All heroes gain an additional 20% experience from killing an enemy'; } else { if (which == 8) { return 'Heals all party members by a small amount each turn'; } else { if (which == 9) { return 'Finds 50% more gold when killing an enemy'; } else { if (which == 10) { return 'Deals an extra 50% damage to legendary monsters'; } else { if (which == 11) { return 'Deals an extra 25% damage when fighting in a dungeon'; } else { if (which == 12) { return 'Ignore 25% of an enemy\'s armour'; } else { if (which == 13) { return 'Heals a small amount each turn'; } else { if (which == 14) { return 'Has an additional 3 Physical and 3 magical armour'; } else { if (which == 15) { return 'Is far more likely to be attacked than other heroes'; } else { if (which == 16) { return 'Is far less likely to be attacked than other heroes'; } else { if (which == 17) { return 'Heals all party members by a small amount everytime an enemy is killed'; } else { if (which == 18) { return 'All potions heal an additional 20%'; } else { if (which == 19) { return 'Small chance to totally avoid incoming attacks'; } else { if (which == 20) { return 'Is always the first to attack in combat'; } else { if (which == 21) { return 'Unaffected by slowing attacks'; } else { if (which == 22) { return 'Takes only 50% damage from magical attacks'; } else { if (which == 23) { return 'Takes only 50% damage from melee attacks'; } else { if (which == 24) { return 'Takes only 50% damage from ranged attacks'; } else { if (which == 25) { return 'Has a small chance of attacking twice each turn'; } } } } } } } } } } } } } } } } } } } } } } } } } } } function getherospecialname(which) { if (which == 0) { return 'None'; } else { if (which == 1) { return 'Scout'; } else { if (which == 2) { return 'Mining'; } else { if (which == 3) { return 'Treecutting'; } else { if (which == 4) { return 'Herbalism'; } else { if (which == 5) { return 'Walk Healing'; } else { if (which == 6) { return 'Treasure Hunting'; } else { if (which == 7) { return 'Dungeon Lore'; } else { if (which == 8) { return 'Barter'; } else { if (which == 9) { return 'Mana Battery'; } else { if (which == 10) { return 'Relaxation'; } else { if (which == 11) { return 'Quest Master'; } else { if (which == 12) { return 'Spawn Knowledge'; } else { if (which == 13) { return 'Lucky'; } else { if (which == 14) { return 'Precognative'; } else { if (which == 15) { return 'Detect Evil'; } } } } } } } } } } } } } } } } } function getherospecialblurb(which) { if (which == 0) { return ''; } else { if (which == 1) { return 'Movement through forests and mountains costs 1 less turn'; } else { if (which == 2) { return 'Receives a small amount of gold every time a mountain tile is entered'; } else { if (which == 3) { return 'Receives a small amount of gold every time a forest tile is entered'; } else { if (which == 4) { return 'Small chance to create a potion when moving'; } else { if (which == 5) { return 'Heals 1-3 Hit Points for all heroes each time the party moves'; } else { if (which == 6) { return 'All treasure found tends to be a bit better'; } else { if (which == 7) { return 'Allows access to scouting reports for dungeons'; } else { if (which == 8) { return 'Buying and Selling prices are improved when visiting a shop'; } else { if (which == 9) { return 'Generates 1 mana gem every time you rest'; } else { if (which == 10) { return 'Grants additional healing for the party when you rest'; } else { if (which == 11) { return 'Quests tend to be a bit easier'; } else { if (which == 12) { return 'Allows access to more information from shrine Tooltips'; } else { if (which == 13) { return 'Very small chance to find a mana gem whenever you move'; } else { if (which == 14) { return 'Reveals the contents of 3 rooms when entering a dungeon'; } else { if (which == 15) { return 'Shows how close you are to the nearest legendary creature'; } } } } } } } } } } } } } } } } } function dolevelup(who) { if (!_root.playerstuff.party[who][16]) { trace('Levelling up hero ' + who + ': ' + _root.playerstuff.party[who]); var v6 = ranodm(8000); ++_root.playerstuff.tracker[11]; _root.attachMovie('lvlupwindow', 'lvlupwindow' + who + '_' + v6, _root.getNextHighestDepth(), {'_x': 110, '_y': -200}); com.greensock.TweenLite.to(_root['lvlupwindow' + who + '_' + v6], 0.3, {'_y': 20}); var v5 = _root.roster[_root.playerstuff.party[who][15] + 'lvlup'][_root.playerstuff.party[who][11] - 1]; _root['lvlupwindow' + who + '_' + v6].sprite.armnum = _root.playerstuff.party[who][1]; _root['lvlupwindow' + who + '_' + v6].sprite.wepnum = _root.playerstuff.party[who][6][1]; _root['lvlupwindow' + who + '_' + v6].sprite.internal.sprite.gotoAndStop('yay'); _root['lvlupwindow' + who + '_' + v6].line1.text = _root.playerstuff.party[who][0] + ' Levelled Up!'; _root['lvlupwindow' + who + '_' + v6].line2.text = 'Was ' + _root.playerstuff.party[who][11] + ' >>> Now ' + (_root.playerstuff.party[who][11] + 1); _root['lvlupwindow' + who + '_' + v6].line3.text = 'Health: ' + _root.playerstuff.party[who][3][1] + ' >>> ' + v5[0]; _root['lvlupwindow' + who + '_' + v6].line4.text = 'Damage Multiplier: ' + _root.playerstuff.party[who][10] + ' >>> ' + v5[1]; _root['lvlupwindow' + who + '_' + v6].line5.text = 'Initiative: ' + _root.playerstuff.party[who][4] + ' >>> ' + (_root.playerstuff.party[who][4] + v5[5]); var v8 = ''; if (_root.playerstuff.party[who][12] == 0 && v5[2] > 0) { v8 += 'Learned ' + _root.getherocombatspecialname(v5[2]); if (_root.playerstuff.party[who][13] == 0 && v5[3] > 0) { v8 += ' & ' + _root.getherospecialname(v5[3]); } } else { if (_root.playerstuff.party[who][13] == 0 && v5[3] > 0) { v8 += 'Learned ' + _root.getherospecialname(v5[3]); } } _root['lvlupwindow' + who + '_' + v6].line6.text = v8; _root.playerstuff.party[who][10] = v5[1]; _root.playerstuff.party[who][11] += 1; _root.playerstuff.party[who][3][1] = v5[0]; _root.playerstuff.party[who][3][0] = v5[0]; _root.playerstuff.party[who][4] += v5[5]; _root.playerstuff.party[who][12] = v5[2]; _root.playerstuff.party[who][13] = v5[3]; _root.playerstuff.party[who][9][0] -= _root.playerstuff.party[who][9][1]; if (_root.playerstuff.party[who][11] < 10) { _root.playerstuff.party[who][9][1] = v5[4]; } else { _root.playerstuff.party[who][9][1] = 'MAX'; } var v7 = 1; var v4 = 0; while (v4 < _root.playerstuff.party.length) { if (_root.playerstuff.party[v4][11] > v7) { v7 = _root.playerstuff.party[v4][11]; } ++v4; } _root.setuppartybar(); _root['lvlupwindow' + who + '_' + v6].ttl = 90; _root['lvlupwindow' + who + '_' + v6].ret = false; _root['lvlupwindow' + who + '_' + v6].onEnterFrame = function () { --this.ttl; if (this.ttl <= 0) { if (this.ret) { this.removeMovieClip(); } else { com.greensock.TweenLite.to(this, 0.3, {'_y': -200}); this.ttl = 30; this.ret = true; } } }; _root.checkforoverlandstuff(); } } function openchest(itm) { var v3 = random(90000); _root.attachMovie('openchest', 'openchest' + v3, _root.getNextHighestDepth(), {'_x': 120, '_y': -200}); _root['openchest' + v3].myitm = itm.slice(); _root['openchest' + v3].ttl = 80; _root['openchest' + v3].ended = false; com.greensock.TweenLite.to(_root['openchest' + v3], 0.3, {'_y': 120}); ++_root.playerstuff.tracker[14]; if (_root.doingfirstequip) { _root.tutstuff.swapDepths(_root.getNextHighestDepth()); _root.tutstuff._visible = true; _root.tutstuff.gotoAndStop(10); _root.doingfirstequip = false; _root.tutstuff.onRelease = function () { _root.tutstuff._visible = false; }; } _root['openchest' + v3].onEnterFrame = function () { --this.ttl; if (this.ttl < 0 && this.ended) { this.removeMovieClip(); } else { if (this.ttl < 0) { this.ttl = 30; this.ended = true; com.greensock.TweenLite.to(this, 0.3, {'_y': -200}); } } }; trace('showing details for Item: ' + itm); _root['openchest' + v3].line1.text = itm[0]; if (itm[5] == 0) { _root['openchest' + v3].line2.text = 'Value: ' + itm[6] + 'gp'; _root['openchest' + v3].itemz.gotoAndStop(itm[4]); } else { _root['openchest' + v3].line2.text = 'Value: ' + itm[9] + 'gp'; _root['openchest' + v3].itemz.gotoAndStop(itm[7]); } } function openastralchest() { var v4 = random(999999); _root.playsfx('achests'); _root.attachMovie('astralchest', 'astral' + v4, _root.getNextHighestDepth(), {'_x': 120, '_y': 800}); _root['astral' + v4].myitm = itm.slice(); _root['astral' + v4].ended = false; com.greensock.TweenLite.to(_root['astral' + v4], 0.3, {'_y': 380}); ++_root.playerstuff.tracker[18]; _root['astral' + v4].yes.onRollOver = function () { this.gotoAndStop(2); }; _root['astral' + v4].yes.onRollOut = function () { this.gotoAndStop(1); }; _root['astral' + v4].yes.winnum = v4; _root['astral' + v4].yes.onRelease = function () { _root.playsfx('click'); com.greensock.TweenLite.to(_root['astral' + this.winnum], 0.3, {'_y': -300}); _root['astral' + this.winnum].ttl = 15; _root['astral' + this.winnum].onEnterFrame = function () { --this.ttl; if (this.ttl == 0) { this.removeMovieClip(); } }; }; var v3 = []; var v15 = 10 - _root.globalstuff.maxspells; var v5 = 0; while (v5 < v15) { v3.push('maxspells'); ++v5; } v5 = 1; while (v5 < 10) { if (!_root.globalstuff['spell' + v5]) { v3.push('spell' + v5); v3.push('spell' + v5); v3.push('spell' + v5); } ++v5; } var v17 = Math.round(30 - _root.globalstuff.startexp); v5 = 0; while (v5 < v17) { v3.push('plus2exp'); ++v5; } var v10 = 5 - _root.globalstuff.startingfeathers; v5 = 0; while (v5 < v10) { v3.push('plus1feather'); ++v5; } var v14 = 10 - _root.globalstuff.startingpotions; v5 = 0; while (v5 < v14) { v3.push('plus1potion'); ++v5; } var v13 = Math.round((15 - _root.globalstuff.startingmana) / 2); v5 = 0; while (v5 < v13) { v3.push('plus2mana'); ++v5; } var v16 = Math.round((150 - _root.globalstuff.startinggold) / 5); v5 = 0; while (v5 < v16) { v3.push('plus5gold'); ++v5; } var v8 = Math.round((30 - _root.globalstuff.bonusturns) / 2); v5 = 0; while (v5 < v8) { v3.push('plus2turns'); ++v5; } var v9 = (12 - _root.globalstuff.maxparty) * 2; v5 = 0; while (v5 < v9) { v3.push('plus1maxparty'); ++v5; } var v11 = Math.round((60 - _root.globalstuff.astralarmourysize) / 2); v5 = 0; while (v5 < v11) { v3.push('plus2items'); ++v5; } var v12 = 20 - _root.globalstuff.maxitems; v5 = 0; while (v5 < v12) { v3.push('plusitem'); ++v5; } var v6 = Math.round(v3.length / 2.5); v6 += 5; v5 = 0; while (v5 < v6) { if (_root.globalstuff.astralarmoury.length < _root.globalstuff.astralarmourysize) { v3.push('item'); } else { v3.push('energy'); } ++v5; } trace('Poss: ' + v3); var v21 = random(v3.length); var v7 = v3[v21]; if (v7 == 'plus2items') { _root.globalstuff.astralarmourysize += 2; _root['astral' + v4].line1.text = 'Armoury Storage Expansion'; _root['astral' + v4].line2.text = '+2 slots in the Astral Armoury'; } else { if (v7 == 'plusitem') { _root.globalstuff.maxitems += 1; _root['astral' + v4].line1.text = 'Astral Inventory Expansion'; _root['astral' + v4].line2.text = 'Can select 1 more item during embarkment'; } else { if (v7 == 'plus1maxparty') { _root.globalstuff.maxparty += 1; _root['astral' + v4].line1.text = 'Astral Party Space'; _root['astral' + v4].line2.text = 'Can buy an additional hero during embarkment'; } else { if (v7 == 'plus2turns') { _root.globalstuff.bonusturns += 2; _root['astral' + v4].line1.text = 'Astral Strength'; _root['astral' + v4].line2.text = 'Always have an additional 2 turns on a plane'; } else { if (v7 == 'plus5gold') { _root.globalstuff.startinggold += 5; _root['astral' + v4].line1.text = 'Astral Wealth'; _root['astral' + v4].line2.text = 'Always have an additional 5 Gold on a plane'; } else { if (v7 == 'plus2mana') { _root.globalstuff.startingmana += 2; _root['astral' + v4].line1.text = 'Astral Magics'; _root['astral' + v4].line2.text = 'Always have an additional 2 Mana on a plane'; } else { if (v7 == 'plus1potion') { _root.globalstuff.startingpotions += 1; _root['astral' + v4].line1.text = 'Astral Alchemy'; _root['astral' + v4].line2.text = 'Always have an additional potion on a plane'; } else { if (v7 == 'plus1feather') { _root.globalstuff.startingfeathers += 1; _root['astral' + v4].line1.text = 'Astral Recovery'; _root['astral' + v4].line2.text = 'Always have an additional feather on a plane'; } else { if (v7 == 'plus2exp') { _root.globalstuff.startexp += 2; _root['astral' + v4].line1.text = 'Astral Training'; _root['astral' + v4].line2.text = 'All starting heroes begin with an extra 2 experience points'; } else { if (v7 == 'spell3') { _root.globalstuff.spell3 = true; _root['astral' + v4].line1.text = 'Vampiric Knowledge'; _root['astral' + v4].line2.text = 'You have learnt a new spell: Vampiric Strike'; } else { if (v7 == 'spell4') { _root.globalstuff.spell4 = true; _root['astral' + v4].line1.text = 'Earthly Knowledge'; _root['astral' + v4].line2.text = 'You have learnt a new spell: Earth Barrier'; } else { if (v7 == 'spell5') { _root.globalstuff.spell5 = true; _root['astral' + v4].line1.text = 'Shielding Knowledge'; _root['astral' + v4].line2.text = 'You have learnt a new spell: Magical Shield'; } else { if (v7 == 'spell6') { _root.globalstuff.spell6 = true; _root['astral' + v4].line1.text = 'Snapping Knowledge'; _root['astral' + v4].line2.text = 'You have learnt a new spell: Cold Snap'; } else { if (v7 == 'spell7') { _root.globalstuff.spell7 = true; _root['astral' + v4].line1.text = 'Destructive Knowledge'; _root['astral' + v4].line2.text = 'You have learnt a new spell: Fire Rain'; } else { if (v7 == 'spell8') { _root.globalstuff.spell8 = true; _root['astral' + v4].line1.text = 'Tuitional Knowledge'; _root['astral' + v4].line2.text = 'You have learnt a new spell: Tuition'; } else { if (v7 == 'spell9') { _root.globalstuff.spell9 = true; _root['astral' + v4].line1.text = 'Gold Knowledge'; _root['astral' + v4].line2.text = 'You have learnt a new spell: Gold diggin\''; } else { if (v7 == 'spell10') { _root.globalstuff.spell10 = true; _root['astral' + v4].line1.text = 'Bountiful Knowledge'; _root['astral' + v4].line2.text = 'You have learnt a new spell: Bounty Hunting'; } else { if (v7 == 'maxspells') { ++_root.globalstuff.maxspells; _root['astral' + v4].line1.text = 'Astral Spellbook'; _root['astral' + v4].line2.text = 'You may now select an additional spell during embarkation'; } else { if (v7 == 'energy') { amt = random(200) + 100; _root['astral' + v4].line1.text = 'Astral Energy Stash'; _root['astral' + v4].line2.text = 'You have found a stash of ' + amt + ' Astral Energy'; _root.globalstuff.astralenergy += amt; } else { if (v7 == 'item') { var v20 = [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 10, 10, 10, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 19, 19, 19, 20, 20, 21, 21, 22, 22, 23, 24, 2, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 12, 11, 11, 12, 2, 2, 3, 3, 3, 3]; var v22 = random(v20.length); v7 = v20[v22]; trace('Picked an item, at level ' + v7); if (random(2) == 1) { var v18 = random(3); _root['astral' + v4].line1.text = 'Astral Armour'; if (v18 == 0) { var v19 = _root.armours['melee_' + v7].slice(); } else { if (v18 == 1) { var v19 = _root.armours['ranged_' + v7].slice(); } else { var v19 = _root.armours['magic_' + v7].slice(); } } } else { var v18 = random(3); _root['astral' + v4].line1.text = 'Astral Weapon'; if (v18 == 0) { var v19 = _root.weapons['melee_' + v7].slice(); } else { if (v18 == 1) { var v19 = _root.weapons['ranged_' + v7].slice(); } else { var v19 = _root.weapons['magic_' + v7].slice(); } } } _root['astral' + v4].line2.text = v19[0] + ' Added to Astral Storehouse'; _root.globalstuff.astralarmoury.push(v19.slice()); } } } } } } } } } } } } } } } } } } } } trace('showing details for Astral Chest'); } function initiatehero(why, ex) { _root.busy = true; _root.playsfx('windpop'); _root.attachMovie('herowindow', 'herowindow', _root.getNextHighestDepth(), {'_x': 100, '_y': -400}); _root.herowindow.line1.text = _root.quests['quest_' + _root.contentdetailsmap[why][ex][17]][1]; _root.herowindow.sprite.armnum = _root.contentdetailsmap[why][ex][1]; _root.herowindow.sprite.wepnum = _root.contentdetailsmap[why][ex][6][1]; _root.herowindow.encounter.text = 'Encountered a ' + _root.contentdetailsmap[why][ex][2]; if (_root.contentdetailsmap[why][ex][17] == 1) { _root.herowindow.line2.text = 'To complete this quest all you have to do is pay the hero ' + _root.contentdetailsmap[why][ex][18][1] + ' gold pieces'; } else { if (_root.contentdetailsmap[why][ex][17] == 2) { _root.herowindow.line2.text = 'To complete this quest you must enter and clear any dungeon within the next ' + _root.contentdetailsmap[why][ex][18][0] + ' turns'; } else { if (_root.contentdetailsmap[why][ex][17] == 3) { var v8 = ''; _root.herowindow.line2.text = 'To complete this quest you must kill ' + _root.contentdetailsmap[why][ex][18][1] + ' creatures within ' + _root.contentdetailsmap[why][ex][18][0] + ' turns'; } else { if (_root.contentdetailsmap[why][ex][17] == 4) { _root.herowindow.line2.text = 'To complete this quest you must defeat the guardian and destroy any spawner within the next ' + _root.contentdetailsmap[why][ex][18][0] + ' turns'; } else { if (_root.contentdetailsmap[why][ex][17] == 5) { _root.herowindow.line2.text = 'To complete this quest you must gather ' + _root.contentdetailsmap[why][ex][18][1] + ' gold within the next ' + _root.contentdetailsmap[why][ex][18][0] + ' turns'; } else { if (_root.contentdetailsmap[why][ex][17] == 6) { _root.herowindow.line2.text = 'To complete this quest you must find ' + _root.contentdetailsmap[why][ex][18][1] + ' new pieces of armour within the next ' + _root.contentdetailsmap[why][ex][18][0] + ' turns'; } else { if (_root.contentdetailsmap[why][ex][17] == 7) { _root.herowindow.line2.text = 'To complete this quest you must find ' + _root.contentdetailsmap[why][ex][18][1] + ' new weapons within the next ' + _root.contentdetailsmap[why][ex][18][0] + ' turns'; } else { if (_root.contentdetailsmap[why][ex][17] == 8) { _root.herowindow.line2.text = 'To complete this quest you must find ' + _root.contentdetailsmap[why][ex][18][1] + ' potions within the next ' + _root.contentdetailsmap[why][ex][18][0] + ' turns'; } else { if (_root.contentdetailsmap[why][ex][17] == 9) { _root.herowindow.line2.text = 'To complete this quest you must gain a total of ' + _root.contentdetailsmap[why][ex][18][1] + ' experience within the next ' + _root.contentdetailsmap[why][ex][18][0] + ' turns'; } } } } } } } } } com.greensock.TweenLite.to(_root.herowindow, 0.8, {'_y': 120}); _root.herowindow.no.onRelease = function () { _root.busy = false; com.greensock.TweenLite.to(_root.herowindow, 0.3, {'_y': -400}); _root.herowindow.ttl = 8; _root.herowindow.onEnterFrame = function () { --this.ttl; if (this.ttl < 0) { this.removeMovieClip(); } }; }; _root.herowindow.yes.onRelease = function () { var v5 = []; var v3 = _root.contentdetailsmap[why][ex]; if (v3[17] == 1) { _root.playerstuff.party.push([v3[0], v3[1], v3[2], [v3[3][0], v3[3][1]], v3[4], v3[5].slice(), v3[6].slice(), v3[7], v3[8], v3[9], v3[10], v3[11], v3[12], v3[13], v3[14], v3[15], false, v3[17], v3[18].slice()]); } else { trace('SET UP NOT A PAY ME QUEST'); _root.playerstuff.party.push([v3[0], v3[1], v3[2], [v3[3][0], v3[3][1]], v3[4], v3[5].slice(), v3[6].slice(), v3[7], v3[8], v3[9], v3[10], v3[11], v3[12], v3[13], v3[14], v3[15], true, v3[17], v3[18].slice()]); _root.playerstuff.onquest = true; _root.playerstuff.questtype = v3[17]; _root.playerstuff.questinghero = _root.playerstuff.party.length - 1; } if (v3[17] == 1) { _root.playerstuff.questinghero = -1; _root.playerstuff.onquest = false; ++_root.playerstuff.tracker[15]; _root.playerstuff.wealth -= _root.contentdetailsmap[why][ex][18][1]; _root.golddisp.text = _root.playerstuff.wealth; var v4 = 0; while (v4 < _root.playerstuff.party.length) { _root.playerstuff.party[v4][16] = false; ++v4; } } else { if (v3[17] == 2) { _root.playerstuff.questorig = _root.playerstuff.tracker[1]; _root.playerstuff.questgoal = _root.playerstuff.tracker[1] + 1; } else { if (v3[17] == 3) { _root.playerstuff.questorig = _root.playerstuff.tracker[0]; _root.playerstuff.questgoal = _root.playerstuff.tracker[0] + _root.contentdetailsmap[why][ex][18][1]; } else { if (v3[17] == 4) { _root.playerstuff.questorig = _root.playerstuff.tracker[2]; _root.playerstuff.questgoal = _root.playerstuff.tracker[2] + 1; } else { if (v3[17] == 5) { _root.playerstuff.questorig = _root.playerstuff.tracker[6]; _root.playerstuff.questgoal = _root.playerstuff.tracker[6] + _root.contentdetailsmap[why][ex][18][1]; } else { if (v3[17] == 6) { _root.playerstuff.questorig = _root.playerstuff.tracker[4]; _root.playerstuff.questgoal = _root.playerstuff.tracker[4] + _root.contentdetailsmap[why][ex][18][1]; } else { if (v3[17] == 7) { _root.playerstuff.questorig = _root.playerstuff.tracker[3]; _root.playerstuff.questgoal = _root.playerstuff.tracker[3] + _root.contentdetailsmap[why][ex][18][1]; } else { if (v3[17] == 8) { _root.playerstuff.questorig = _root.playerstuff.tracker[5]; _root.playerstuff.questgoal = _root.playerstuff.tracker[5] + _root.contentdetailsmap[why][ex][18][1]; } else { if (v3[17] == 9) { _root.playerstuff.questorig = _root.playerstuff.tracker[12]; _root.playerstuff.questgoal = _root.playerstuff.tracker[12] + _root.contentdetailsmap[why][ex][18][1]; } } } } } } } } _root.playerstuff.questturns = _root.contentdetailsmap[why][ex][18][0]; } _root.setuppartybar(); _root.busy = false; _root.contentdetailsmap[why][ex] = 0; _root.contentmap[why][ex] = 0; _root.drawmap(false); com.greensock.TweenLite.to(_root.herowindow, 0.4, {'_y': -400}); _root.herowindow.ttl = 8; _root.herowindow.onEnterFrame = function () { --this.ttl; if (this.ttl < 0) { this.removeMovieClip(); } }; }; if (_root.playerstuff.onquest) { _root.herowindow.yes.enabled = false; _root.herowindow.yes._alpha = 25; _root.herowindow.yesblock.gotoAndStop(1); _root.herowindow.yesblock._visible = true; } else { if (_root.contentdetailsmap[why][ex][17] == 1 && _root.playerstuff.wealth < _root.contentdetailsmap[why][ex][18][1]) { _root.herowindow.yes.enabled = false; _root.herowindow.yes._alpha = 25; _root.herowindow.yesblock._visible = true; _root.herowindow.yesblock.gotoAndStop(2); } else { if (_root.playerstuff.party.length > 11) { _root.herowindow.yes.enabled = false; _root.herowindow.yes._alpha = 25; _root.herowindow.yesblock._visible = true; _root.herowindow.yesblock.gotoAndStop(3); } else { _root.herowindow.yes.enabled = true; _root.herowindow.yex._alpha = 100; _root.herowindow.yesblock._visible = false; } } } } function checkquest() { var v3 = 0; while (v3 < _root.playerstuff.party.length) { if (_root.playerstuff.party[v3][16]) { _root.playerstuff.questinghero = v3; _root.playerstuff.questtype = _root.playerstuff.party[v3][17]; } ++v3; } trace('CHECKING QUEST: ' + _root.playerstuff.onquest + ', hero: ' + _root.playerstuff.questinghero + ', type: ' + _root.playerstuff.questtype + ', Goal: ' + _root.playerstuff.questgoal); trace('TURNS LEFT FOR QUEST: ' + _root.playerstuff.questturns); if (_root.playerstuff.questturns <= 0 && _root.playerstuff.onquest) { _root.playerstuff.onquest = false; _root.attachMovie('questover', 'questover', _root.getNextHighestDepth(), {'_x': 120, '_y': -200}); _root.questover.gotoAndStop(2); _root.questover.sprite.armnum = _root.playerstuff.party[_root.playerstuff.questinghero][1]; _root.questover.sprite.wepnum = _root.playerstuff.party[_root.playerstuff.questinghero][6][1]; _root.questover.sprite.internal.sprite.gotoAndStop('walk_up'); com.greensock.TweenLite.to(_root.questover.sprite, 2, {'_xscale': 0, '_yscale': 0, '_x': _root.questover.sprite._x + 10, '_y': _root.questover.sprite._y - 10}); _root.questover.line1.text = 'You have failed to complete the quest you were given, as a result ' + _root.playerstuff.party[_root.playerstuff.questinghero][0] + ' has become very upset and left your party forever. We\'ll miss him.'; _root.playerstuff.party.splice(_root.playerstuff.questinghero, 1); _root.playerstuff.questinghero = -1; _root.setuppartybar(); com.greensock.TweenLite.to(_root.questover, 0.6, {'_y': 120}); _root.questover.ttl = 80; _root.questover.ret = false; _root.questover.onEnterFrame = function () { --this.ttl; if (this.ttl < 0) { if (this.ret) { this.removeMovieClip(); } else { this.ttl = 30; com.greensock.TweenLite.to(_root.questover, 0.3, {'_y': -200}); this.ret = true; } } }; } else { if (_root.playerstuff.onquest) { var v4 = false; trace('Hero on quest type ' + _root.playerstuff.questtype + ' And goal is ' + _root.playerstuff.questgoal + ' Original number is : ' + _root.playerstuff.questorig); if (_root.playerstuff.questtype == 2 && _root.playerstuff.questgoal <= _root.playerstuff.tracker[1]) { v4 = true; } else { if (_root.playerstuff.questtype == 3 && _root.playerstuff.questgoal <= _root.playerstuff.tracker[0]) { v4 = true; } else { if (_root.playerstuff.questtype == 4 && _root.playerstuff.questgoal <= _root.playerstuff.tracker[2]) { v4 = true; } else { if (_root.playerstuff.questtype == 5 && _root.playerstuff.questgoal <= _root.playerstuff.tracker[6]) { v4 = true; } else { if (_root.playerstuff.questtype == 6 && _root.playerstuff.questgoal <= _root.playerstuff.tracker[4]) { v4 = true; } else { if (_root.playerstuff.questtype == 7 && _root.playerstuff.questgoal <= _root.playerstuff.tracker[3]) { v4 = true; } else { if (_root.playerstuff.questtype == 8 && _root.playerstuff.questgoal <= _root.playerstuff.tracker[5]) { v4 = true; } else { if (_root.playerstuff.questtype == 9 && _root.playerstuff.questgoal <= _root.playerstuff.tracker[12]) { v4 = true; } } } } } } } } if (v4) { ++_root.playerstuff.tracker[15]; _root.playerstuff.onquest = false; _root.attachMovie('questover', 'questover', _root.getNextHighestDepth(), {'_x': 120, '_y': -200}); _root.questover.gotoAndStop(1); _root.questover.sprite.armnum = _root.playerstuff.party[_root.playerstuff.questinghero][1]; _root.questover.sprite.wepnum = _root.playerstuff.party[_root.playerstuff.questinghero][6][1]; _root.questover.sprite.internal.sprite.gotoAndStop('yay'); _root.questover.line1.text = 'You have succesfully completed the quest you were given, as a result ' + _root.playerstuff.party[_root.playerstuff.questinghero][0] + ' has become a permenent member of your party!. He has also gained a small amount of experience!'; var v5 = random(5) + 5; _root.playerstuff.party[_root.playerstuff.questinghero][9][0] += v5; _root.playerstuff.party[_root.playerstuff.questinghero][16] = false; _root.playerstuff.tracker[12] += v5; _root.playerstuff.questinghero = -1; _root.setuppartybar(); com.greensock.TweenLite.to(_root.questover, 0.6, {'_y': 120}); _root.questover.ttl = 120; _root.questover.ret = false; _root.questover.onEnterFrame = function () { --this.ttl; if (this.ttl < 0) { if (this.ret) { this.removeMovieClip(); } else { this.ttl = 30; com.greensock.TweenLite.to(_root.questover, 0.3, {'_y': -200}); this.ret = true; } } }; } } } } function initiatespawner(why, ex) { _root.busy = true; _root.playsfx('windpop'); var v3 = _root.contentdetailsmap[why][ex]; trace('Standing on a spawner, details: ' + v3); var fightdets = _root.spawnerbossfights[v3[3] + '_' + v3[2]].slice(); trace('setting up fight: ' + fightdets); _root.attachMovie('spawnerwindow', 'spawnerwindow', _root.getNextHighestDepth(), {'_x': 100, '_y': -400}); _root.spawnerwindow.line1.text = 'Discovered a '; if (v3[3] == 'undead') { _root.spawnerwindow.line1.text = 'Discovered an Undead Shrine'; _root.spawnerwindow.icon.gotoAndStop(1); } else { if (v3[3] == 'slimes') { _root.spawnerwindow.line1.text = 'Discovered a Creature Shrine'; _root.spawnerwindow.icon.gotoAndStop(5); } else { if (v3[3] == 'chaos') { _root.spawnerwindow.line1.text = 'Discovered a Chaotic Shrine'; _root.spawnerwindow.icon.gotoAndStop(4); } else { if (v3[3] == 'orcs') { _root.spawnerwindow.line1.text = 'Discovered an Orcish Shrine'; _root.spawnerwindow.gotoAndStop(3); } else { _root.spawnerwindow.line1.text = 'Discovered an Elemental Shrine'; _root.spawnerwindow.gotoAndStop(2); } } } } _root.spawnerwindow.skulls.gotoAndStop(v3[2]); com.greensock.TweenLite.to(_root.spawnerwindow, 0.8, {'_y': 120}); _root.spawnerwindow.no.onRollOver = function () { this.gotoAndStop(2); }; _root.spawnerwindow.no.onRollOut = function () { this.gotoAndStop(1); }; _root.spawnerwindow.no.onRelease = function () { this.gotoAndStop(1); _root.busy = false; com.greensock.TweenLite.to(_root.spawnerwindow, 0.3, {'_y': -400}); _root.spawnerwindow.ttl = 8; _root.spawnerwindow.onEnterFrame = function () { --this.ttl; if (this.ttl < 0) { this.removeMovieClip(); } }; }; _root.spawnerwindow.yes.onRollOver = function () { this.gotoAndStop(2); }; _root.spawnerwindow.yes.onRollOut = function () { this.gotoAndStop(1); }; _root.spawnerwindow.yes.onRelease = function () { this.gotoAndStop(1); _root.detailmap[0][0] = fightdets.slice(); _root.spawnfight = true; _root.spawnerdets = [why, ex]; initiatebattle(0, 0); _root.spawnerwindow.removeMovieClip(); }; } function endspawnfight() { ++_root.playerstuff.tracker[2]; var v2 = 0; while (v2 < _root.breederlist.length) { trace('Checking Breeder: ' + _root.breederlist[v2] + ' vs ' + _root.spawnerdets); if (_root.breederlist[v2][0] == _root.spawnerdets[0] && _root.breederlist[v2][1] == _root.spawnerdets[1]) { _root.breederlist.splice(v2, 1); trace('DELETING SPAWNER FROM LIST'); break; } ++v2; } trace('Doing Tutorial: ' + _root.doingtutorial + ' - Length: ' + _root.breederlist.length); if (_root.doingtutorial && _root.breederlist.length < 1) { trace('Ending Tutorial'); _root.endtutorial(); } _root.contentmap[_root.spawnerdets[0]][_root.spawnerdets[1]] = 0; _root.contentdetailsmap[_root.spawnerdets[0]][_root.spawnerdets[1]] = 0; _root.detailmap[0][0] = 0; _root.drawmap(true); checkquest(); } function initiatehouse(why, ex) { _root.busy = true; _root.playsfx('windpop'); _root.attachMovie('housewindow', 'housewindow', _root.getNextHighestDepth(), {'_x': 100, '_y': -400}); _root.housewindow.line1.text = 'Cost: ' + _root.playerstuff.turncost + 'gp'; com.greensock.TweenLite.to(_root.housewindow, 0.8, {'_y': 120}); _root.housewindow.no.onRollOver = function () { this.gotoAndStop(2); }; _root.housewindow.no.onRollOut = function () { this.gotoAndStop(1); }; _root.housewindow.no.onRelease = function () { this.gotoAndStop(1); _root.busy = false; com.greensock.TweenLite.to(_root.housewindow, 0.3, {'_y': -400}); _root.housewindow.ttl = 8; _root.housewindow.onEnterFrame = function () { --this.ttl; if (this.ttl < 0) { this.removeMovieClip(); } }; }; _root.housewindow.yes.onRollOver = function () { this.gotoAndStop(2); }; _root.housewindow.yes.onRollOut = function () { this.gotoAndStop(1); }; _root.housewindow.yes.onRelease = function () { this.gotoAndStop(1); _root.playerstuff.wealth -= _root.playerstuff.turncost; _root.turnsleft += 100; _root.ttext.text = 'Turns: ' + _root.turnsleft; _root.playerstuff.turncost += Math.round(_root.playerstuff.turncost / 2); _root.busy = false; com.greensock.TweenLite.to(_root.housewindow, 0.3, {'_y': -400}); _root.housewindow.ttl = 8; _root.housewindow.onEnterFrame = function () { --this.ttl; if (this.ttl < 0) { this.removeMovieClip(); } }; }; if (_root.playerstuff.wealth < _root.playerstuff.turncost) { _root.housewindow.yes._alpha = 25; _root.housewindow.yes.enabled = false; } } function initiatealchy(why, ex) { _root.busy = true; _root.playsfx('windpop'); _root.attachMovie('alchemistwindow', 'alchemistwindow', _root.getNextHighestDepth(), {'_x': 100, '_y': -400}); _root.alchemistwindow.line1.text = 'Cost: ' + _root.playerstuff.turncost + 'gp'; com.greensock.TweenLite.to(_root.alchemistwindow, 0.8, {'_y': 120}); _root.alchemistwindow.no.onRollOver = function () { this.gotoAndStop(2); }; _root.alchemistwindow.no.onRollOut = function () { this.gotoAndStop(1); }; _root.alchemistwindow.no.onRelease = function () { this.gotoAndStop(1); _root.busy = false; com.greensock.TweenLite.to(_root.alchemistwindow, 0.3, {'_y': -400}); _root.alchemistwindow.ttl = 8; _root.alchemistwindow.onEnterFrame = function () { --this.ttl; if (this.ttl < 0) { this.removeMovieClip(); } }; }; _root.alchemistwindow.b1.onRollOver = function () { this.gotoAndStop(2); }; _root.alchemistwindow.b1.onRollOut = function () { this.gotoAndStop(1); }; _root.alchemistwindow.b1.onRelease = function () { _root.playerstuff.wealth -= this.myprice; ++_root.playerstuff.potions; ++_root.playerstuff.tracker[5]; _root.golddisp.text = _root.playerstuff.wealth; _root.potdisp.text = _root.playerstuff.potions; _root.updatealchemist(); }; _root.alchemistwindow.b2.onRollOver = function () { this.gotoAndStop(2); }; _root.alchemistwindow.b2.onRollOut = function () { this.gotoAndStop(1); }; _root.alchemistwindow.b2.onRelease = function () { _root.playerstuff.wealth -= this.myprice; _root.playerstuff.potions += 5; _root.playerstuff.tracker[5] += 5; _root.golddisp.text = _root.playerstuff.wealth; _root.potdisp.text = _root.playerstuff.potions; _root.updatealchemist(); }; _root.alchemistwindow.b3.onRollOver = function () { this.gotoAndStop(2); }; _root.alchemistwindow.b3.onRollOut = function () { this.gotoAndStop(1); }; _root.alchemistwindow.b3.onRelease = function () { _root.playerstuff.wealth -= this.myprice; _root.playerstuff.potions += 10; _root.playerstuff.tracker[5] += 10; _root.golddisp.text = _root.playerstuff.wealth; _root.potdisp.text = _root.playerstuff.potions; _root.updatealchemist(); }; _root.alchemistwindow.b4.onRollOver = function () { this.gotoAndStop(2); }; _root.alchemistwindow.b4.onRollOut = function () { this.gotoAndStop(1); }; _root.alchemistwindow.b4.onRelease = function () { _root.playerstuff.wealth -= this.myprice; ++_root.playerstuff.feathers; ++_root.playerstuff.tracker[8]; _root.golddisp.text = _root.playerstuff.wealth; _root.featherdisp.text = _root.playerstuff.feathers; _root.updatealchemist(); }; _root.alchemistwindow.b5.onRollOver = function () { this.gotoAndStop(2); }; _root.alchemistwindow.b5.onRollOut = function () { this.gotoAndStop(1); }; _root.alchemistwindow.b5.onRelease = function () { _root.playerstuff.wealth -= this.myprice; _root.playerstuff.feathers += 3; _root.playerstuff.tracker[8] += 3; _root.golddisp.text = _root.playerstuff.wealth; _root.featherdisp.text = _root.playerstuff.feathers; _root.updatealchemist(); }; _root.alchemistwindow.b6.onRollOver = function () { this.gotoAndStop(2); }; _root.alchemistwindow.b6.onRollOut = function () { this.gotoAndStop(1); }; _root.alchemistwindow.b6.onRelease = function () { _root.playerstuff.wealth -= this.myprice; _root.playerstuff.feathers += 5; _root.playerstuff.tracker[8] += 5; _root.golddisp.text = _root.playerstuff.wealth; _root.featherdisp.text = _root.playerstuff.feathers; _root.updatealchemist(); }; _root.updatealchemist(); } function updatealchemist() { var v7 = 30; var v6 = 150; var v5 = 300; var v4 = 300; var v3 = 900; var v2 = 1500; if (_root.hasmerchant) { v7 = 25; v6 = 125; v5 = 250; v4 = 250; v3 = 750; v2 = 1250; } _root.alchemistwindow.line1.text = v7 + 'gp'; _root.alchemistwindow.line2.text = v6 + 'gp'; _root.alchemistwindow.line3.text = v5 + 'gp'; _root.alchemistwindow.line4.text = v4 + 'gp'; _root.alchemistwindow.line5.text = v3 + 'gp'; _root.alchemistwindow.line6.text = v2 + 'gp'; if (_root.playerstuff.wealth < v7) { _root.alchemistwindow.b1._alpha = 25; _root.alchemistwindow.b1.enabled = false; } else { _root.alchemistwindow.b1.myprice = v7; } if (_root.playerstuff.wealth < v6) { _root.alchemistwindow.b2._alpha = 25; _root.alchemistwindow.b2.enabled = false; } else { _root.alchemistwindow.b2.myprice = v6; } if (_root.playerstuff.wealth < v5) { _root.alchemistwindow.b3._alpha = 25; _root.alchemistwindow.b3.enabled = false; } else { _root.alchemistwindow.b3.myprice = v5; } if (_root.playerstuff.wealth < v4) { _root.alchemistwindow.b4._alpha = 25; _root.alchemistwindow.b4.enabled = false; } else { _root.alchemistwindow.b4.myprice = v4; } if (_root.playerstuff.wealth < v3) { _root.alchemistwindow.b5._alpha = 25; _root.alchemistwindow.b5.enabled = false; } else { _root.alchemistwindow.b5.myprice = v3; } if (_root.playerstuff.wealth < v2) { _root.alchemistwindow.b6._alpha = 25; _root.alchemistwindow.b6.enabled = false; } else { _root.alchemistwindow.b6.myprice = v2; } } function initiateshop(why, ex) { _root.busy = true; _root.playsfx('windpop'); _root.window.gotoAndStop(1); _root.window.gotoAndStop(3); com.greensock.TweenLite.to(_root.window, 0.6, {'_x': -5}); } function initiateascention(why, ex) { _root.busy = true; _root.playsfx('windpop'); _root.window.gotoAndStop(1); _root.window.gotoAndStop(4); com.greensock.TweenLite.to(_root.window, 0.6, {'_x': -5}); } function endplane() { _root.busy = true; _root.playsfx('windpop'); _root.window.gotoAndStop(1); _root.window.gotoAndStop(5); com.greensock.TweenLite.to(_root.window, 0.6, {'_x': -5}); } function initiateformation() { _root.busy = true; _root.window.gotoAndStop(1); _root.window.gotoAndStop(6); com.greensock.TweenLite.to(_root.window, 0.6, {'_x': -5}); } function endtutorial() { trace('Passed End Tutorial'); _root.tutstuff._y = -3; _root.tutstuff._visible = true; _root.tutstuff.gotoAndStop(9); _root.tutstuff.onRelease = function () { endplane(); }; } equipbutton.onRollOver = function () { this.gotoAndStop(2); }; equipbutton.onRollOut = function () { this.gotoAndStop(1); }; equipbutton.onRelease = function () { if (!_root.busy) { _root.playsfx('click'); _root.busy = true; _root.window.gotoAndStop(1); _root.window.gotoAndStop(2); com.greensock.TweenLite.to(_root.window, 0.6, {'_x': -5}); } }; formationbutton.onRollOver = function () { this.gotoAndStop(2); }; formationbutton.onRollOut = function () { this.gotoAndStop(1); }; formationbutton.onRelease = function () { if (!_root.busy) { _root.playsfx('click'); _root.busy = true; _root.window.gotoAndStop(1); _root.window.gotoAndStop(6); com.greensock.TweenLite.to(_root.window, 0.6, {'_x': -5}); } }; mousebutton.onRollOver = function () { this.gotoAndStop(2); }; mousebutton.onRollOut = function () { this.gotoAndStop(1); }; mousebutton.onRelease = function () { if (!_root.busy) { _root.playsfx('click'); trace('Movedelay: ' + _root.clickmovedelay); if (clickmovedelay <= 0) { if (_root.mousemove) { _root.mousemove = false; com.greensock.TweenLite.to(_root.mainmap.ar, 0.25, {'_alpha': 0, '_y': -193}); _root.mainmap.ar.enabled = false; com.greensock.TweenLite.to(_root.mainmap.al, 0.25, {'_alpha': 0, '_y': -191}); _root.mainmap.al.enabled = false; com.greensock.TweenLite.to(_root.mainmap.au, 0.25, {'_alpha': 0, '_y': -131}); _root.mainmap.au.enabled = false; com.greensock.TweenLite.to(_root.mainmap.ad, 0.25, {'_alpha': 0, '_y': -256}); _root.mainmap.ad.enabled = false; _root.clickmovedelay = 5; } else { _root.mousemove = true; com.greensock.TweenLite.to(_root.mainmap.ar, 0.25, {'_alpha': 50, '_y': 193}); _root.mainmap.ar.enabled = true; com.greensock.TweenLite.to(_root.mainmap.al, 0.25, {'_alpha': 50, '_y': 191}); _root.mainmap.al.enabled = true; com.greensock.TweenLite.to(_root.mainmap.au, 0.25, {'_alpha': 50, '_y': 131}); _root.mainmap.au.enabled = true; com.greensock.TweenLite.to(_root.mainmap.ad, 0.25, {'_alpha': 50, '_y': 256}); _root.mainmap.ad.enabled = true; _root.clickmovedelay = 5; } } } }; } frame 14 { agLink.onRelease = function () { getURL('http://armor.ag/MoreGames', '_blank'); }; } frame 14 { function stopsprites() { mainmap.psprite.gotoAndStop(_root.playerstuff.party.length); mainmap.psprite.sprite.wepnum = _root.playerstuff.party[0][6][1]; mainmap.psprite.sprite.armnum = _root.playerstuff.party[0][1]; var v2 = 1; while (v2 < 13) { mainmap.psprite['sprite' + (v2 + 1)].wepnum = _root.playerstuff.party[v2][6][1]; mainmap.psprite['sprite' + (v2 + 1)].armnum = _root.playerstuff.party[v2][1]; mainmap.psprite['sprite' + (v2 + 1)].internal.sprite.gotoAndStop('yay'); ++v2; } mainmap.psprite.sprite.internal.sprite.gotoAndStop('yay'); if (_root.mainmap.psprite.dir == 'up') { _root.mainmap.psprite.sprite.internal.sprite.gotoAndStop('up'); } else { if (_root.mainmap.psprite.dir == 'down') { _root.mainmap.psprite.sprite.internal.sprite.gotoAndStop('down'); } else { if (_root.mainmap.psprite.dir == 'left') { _root.mainmap.psprite.sprite.internal.sprite.gotoAndStop('left'); } else { _root.mainmap.psprite.sprite.internal.sprite.gotoAndStop('right'); } } } v2 = 1; while (v2 < 13) { if (_root.mainmap.psprite.dir == 'up') { _root.mainmap.psprite['sprite' + v2].internal.sprite.gotoAndStop('up'); } else { if (_root.mainmap.psprite.dir == 'down') { _root.mainmap.psprite['sprite' + v2].internal.sprite.gotoAndStop('down'); } else { if (_root.mainmap.psprite.dir == 'left') { _root.mainmap.psprite['sprite' + v2].internal.sprite.gotoAndStop('left'); } else { _root.mainmap.psprite['sprite' + v2].internal.sprite.gotoAndStop('right'); } } } ++v2; } } function animatesprite(dir) { if (dir == 'up') { _root.mainmap.psprite.sprite.internal.sprite.gotoAndStop('walk_up'); } else { if (dir == 'down') { _root.mainmap.psprite.sprite.internal.sprite.gotoAndStop('walk_down'); } else { if (dir == 'left') { _root.mainmap.psprite.sprite.internal.sprite.gotoAndStop('walkleft'); } else { _root.mainmap.psprite.sprite.internal.sprite.gotoAndStop('walkright'); } } } var v2 = 1; while (v2 < 13) { if (dir == 'up') { _root.mainmap.psprite.dir = 'up'; _root.mainmap.psprite['sprite' + v2].internal.sprite.gotoAndStop('walk_up'); } else { if (dir == 'down') { _root.mainmap.psprite.dir = 'down'; _root.mainmap.psprite['sprite' + v2].internal.sprite.gotoAndStop('walk_down'); } else { if (dir == 'left') { _root.mainmap.psprite.dir = 'left'; _root.mainmap.psprite['sprite' + v2].internal.sprite.gotoAndStop('walkleft'); } else { _root.mainmap.psprite.dir = 'right'; _root.mainmap.psprite['sprite' + v2].internal.sprite.gotoAndStop('walkright'); } } } ++v2; } } function movesprite(dir) { _root.saveingame(); _root.clickmovedelay = 13; _root.myTooltip.hide({'animationTime': 0, 'animationType': 'linear'}); _root.movedelay = 10; if (dir == 'up') { com.greensock.TweenLite.to(_root.mainmap.inner, 0.2, {'_y': 0}); --_root.cypos; --_root.pposy; animatesprite('up'); } else { if (dir == 'down') { com.greensock.TweenLite.to(_root.mainmap.inner, 0.2, {'_y': -128}); ++_root.cypos; ++_root.pposy; animatesprite('down'); } else { if (dir == 'left') { animatesprite('left'); com.greensock.TweenLite.to(_root.mainmap.inner, 0.2, {'_x': 0}); --_root.cxpos; --_root.pposx; } else { if (dir == 'right') { animatesprite('right'); com.greensock.TweenLite.to(_root.mainmap.inner, 0.2, {'_x': -128}); ++_root.cxpos; ++_root.pposx; } } } } trace('Player location: ' + pposx + ', ' + pposy + ' - Terrain is: ' + _root.worldmap[pposy][pposx]); if (_root.creepmap[pposy][pposx] > 0) { trace('There\'s a creep here! It is ' + _root.creepmap[pposy][pposx]); } } function processbreeders(amt) { var v3 = 0; while (v3 < _root.breederlist.length) { var v2 = _root.breederlist[v3]; if (_root.contentdetailsmap[v2[0]][v2[1]][11]) { _root.contentdetailsmap[v2[0]][v2[1]][9] += amt; _root.contentdetailsmap[v2[0]][v2[1]][10] += amt; if (_root.contentdetailsmap[v2[0]][v2[1]][9] >= _root.contentdetailsmap[v2[0]][v2[1]][4] && _root.contentdetailsmap[v2[0]][v2[1]][8] < _root.contentdetailsmap[v2[0]][v2[1]][5]) { _root.contentdetailsmap[v2[0]][v2[1]][9] = 0; ++_root.contentdetailsmap[v2[0]][v2[1]][8]; spawnbreedermob(v2[0], v2[1], _root.contentdetailsmap[v2[0]][v2[1]][3], _root.contentdetailsmap[v2[0]][v2[1]][2], _root.contentdetailsmap[v2[0]][v2[1]][6]); } if (_root.contentdetailsmap[v2[0]][v2[1]][10] >= _root.contentdetailsmap[v2[0]][v2[1]][7]) { trace('LEVELING UP BREEDER'); if (_root.contentdetailsmap[v2[0]][v2[1]][2] < 10) { _root.contentdetailsmap[v2[0]][v2[1]][10] = 0; ++_root.contentdetailsmap[v2[0]][v2[1]][2]; } trace('NOW LEVEL ' + _root.contentdetailsmap[v2[0]][v2[1]][2]); } } ++v3; } } function drawmap(bat) { if (!bat) { if (_root.playerstuff.onquest) { _root.checkquest(); } if (_root.playerstuff.hasalchemist) { if (random(100) < 6) { _root.playsfx('gotit'); var v17 = random(50000); _root.mainmap.attachMovie('potionpop', 'pot_' + pposx + '_' + pposy + '_' + v17, _root.mainmap.getNextHighestDepth(), {'_x': 206, '_y': 216}); ++_root.playerstuff.potions; ++_root.playerstuff.tracker[5]; _root.mainmap['pot_' + pposx + '_' + pposy + '_' + v17].ttl = 15; _root.mainmap['pot_' + pposx + '_' + pposy + '_' + v17].onEnterFrame = function () { --this.ttl; if (this.ttl < 0) { this.removeMovieClip(); } }; com.greensock.TweenLite.to(_root.mainmap['pot_' + pposx + '_' + pposy + '_' + v17], 0.6, {'_y': 165}); } } if (_root.playerstuff.hasmanaonmove) { if (random(100) < 10) { _root.playsfx('gotit'); v17 = random(500000); _root.mainmap.attachMovie('manapop', 'pot_' + pposx + '_' + pposy + '_' + v17, _root.mainmap.getNextHighestDepth(), {'_x': 206, '_y': 216}); ++_root.playerstuff.managems; ++_root.playerstuff.tracker[7]; _root.mainmap['mana_' + pposx + '_' + pposy + '_' + v17].ttl = 15; _root.mainmap['mana_' + pposx + '_' + pposy + '_' + v17].onEnterFrame = function () { --this.ttl; if (this.ttl < 0) { this.removeMovieClip(); } }; com.greensock.TweenLite.to(_root.mainmap['mana_' + pposx + '_' + pposy + '_' + v17], 0.6, {'_y': 165}); } } if (_root.worldmap[pposy][pposx] < 11 || _root.worldmap[pposy][pposx] > 20) { _root.turnsleft -= 1; _root.playerstuff.questturns -= 1; var v16 = 1; } else { if (_root.doarest) { _root.turnsleft -= 1; _root.playerstuff.questturns -= 1; var v16 = 1; _root.doarest = false; } else { if (_root.worldmap[pposy][pposx] < 16) { if (_root.playerstuff.hasscout) { _root.turnsleft -= 1; _root.playerstuff.questturns -= 1; var v16 = 1; } else { _root.turnsleft -= 2; _root.playerstuff.questturns -= 2; var v16 = 2; } if (_root.playerstuff.haslumberjack) { if (random(100) < 101) { v16 = random(5) + 1; v17 = random(5000000); _root.playsfx('gold'); _root.mainmap.attachMovie('golden', 'golden_' + pposx + '_' + pposy + '_' + v17, _root.mainmap.getNextHighestDepth(), {'_x': 206, '_y': 216}); _root.mainmap['golden_' + pposx + '_' + pposy + '_' + v17].line1.text = '+' + v16; _root.playerstuff.wealth += v16; _root.playerstuff.tracker[6] += v16; _root.mainmap['golden_' + pposx + '_' + pposy + '_' + v17].ttl = 15; _root.mainmap['golden_' + pposx + '_' + pposy + '_' + v17].onEnterFrame = function () { --this.ttl; if (this.ttl < 0) { this.removeMovieClip(); } }; com.greensock.TweenLite.to(_root.mainmap['golden_' + pposx + '_' + pposy + '_' + v17], 0.6, {'_y': 165}); } } } else { if (_root.playerstuff.hasscout) { _root.turnsleft -= 2; _root.playerstuff.questturns -= 2; var v16 = 2; } else { _root.turnsleft -= 3; _root.playerstuff.questturns -= 3; var v16 = 3; } if (_root.playerstuff.hasminer) { if (random(100) < 100) { v16 = random(5) + 1; v17 = random(9999999); _root.playsfx('gold'); _root.mainmap.attachMovie('golden', 'golden_' + pposx + '_' + pposy + '_' + v17, _root.mainmap.getNextHighestDepth(), {'_x': 206, '_y': 216}); _root.mainmap['golden_' + pposx + '_' + pposy + '_' + v17].line1.text = '+' + v16; _root.playerstuff.wealth += v16; _root.playerstuff.tracker[6] += v16; _root.mainmap['golden_' + pposx + '_' + pposy + '_' + v17].ttl = 15; _root.mainmap['golden_' + pposx + '_' + pposy + '_' + v17].onEnterFrame = function () { --this.ttl; if (this.ttl < 0) { this.removeMovieClip(); } }; com.greensock.TweenLite.to(_root.mainmap['golden_' + pposx + '_' + pposy + '_' + v17], 0.6, {'_y': 165}); } } } } } _root.processbreeders(v16); if (_root.turnsleft <= 0) { _root.endplane(); } else { if (_root.playerstuff.hashealer) { var v4 = 0; while (v4 < _root.playerstuff.party.length) { v16 = random(3) + 1; _root.playerstuff.party[v4][3][0] += v16; if (_root.playerstuff.party[v4][3][0] > _root.playerstuff.party[v4][3][1]) { _root.playerstuff.party[v4][3][0] = _root.playerstuff.party[v4][3][1]; } ++v4; } } } } _root.ttext.text = 'Turns: ' + _root.turnsleft; _root.golddisp.text = _root.playerstuff.wealth; _root.gemdisp.text = _root.playerstuff.managems; _root.featherdisp.text = _root.playerstuff.feathers; _root.potdisp.text = _root.playerstuff.potions; v4 = 0; while (v4 < 9) { var v3 = 0; while (v3 < 9) { _root.mainmap.inner['t_' + v4 + '_' + v3].gotoAndStop(_root.worldmap[v4 + _root.cypos][v3 + _root.cxpos]); _root.mainmap.inner['t_' + v4 + '_' + v3].myy = v4 + _root.cypos; _root.mainmap.inner['t_' + v4 + '_' + v3].myx = v3 + _root.cxpos; if (_root.creepmap[v4 + _root.cypos][v3 + _root.cxpos] == 0 && _root.contentmap[v4 + _root.cypos][v3 + _root.cxpos] == 0) { _root.mainmap.inner['t_' + v4 + '_' + v3].useHandCursor = false; } else { _root.mainmap.inner['t_' + v4 + '_' + v3].useHandCursor = true; } _root.mainmap.inner['t_' + v4 + '_' + v3].onRollOver = function () { if (_root.creepmap[this.myy][this.myx] > 0) { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); if (_root.detailmap[this.myy][this.myx][3] == 1) { this.difcol = '0x29CC00'; this.diftext = 'Very Easy'; } else { if (_root.detailmap[this.myy][this.myx][3] == 2) { this.difcol = '0x00BB00'; this.diftext = 'Quite Easy'; } else { if (_root.detailmap[this.myy][this.myx][3] == 3) { this.difcol = '0x004400'; this.diftext = 'Easy'; } else { if (_root.detailmap[this.myy][this.myx][3] == 4) { this.difcol = '0xFADB63'; this.diftext = 'Fairly Difficult'; } else { if (_root.detailmap[this.myy][this.myx][3] == 5) { this.difcol = '0xF7C709'; this.diftext = 'Difficult'; } else { if (_root.detailmap[this.myy][this.myx][3] == 6) { this.difcol = '0xFF0000'; this.diftext = 'Tough'; } else { if (_root.detailmap[this.myy][this.myx][3] == 7) { this.difcol = '0xBB0000'; this.diftext = 'Very Tough'; } else { if (_root.detailmap[this.myy][this.myx][3] == 8) { this.difcol = '0xEE55FF'; this.diftext = 'Mega Tough'; } else { if (_root.detailmap[this.myy][this.myx][3] == 9) { this.difcol = '0xB700CC'; this.diftext = 'Almost Legendary'; } else { this.difcol = '0x4D006F'; this.diftext = 'Legendary'; } } } } } } } } } if (_root.playerstuff.hasscout) { _root.setuptip(_root.detailmap[this.myy][this.myx][0] + '<new_line>Difficulty: ' + this.diftext + '(' + _root.detailmap[this.myy][this.myx][3] + ')<new_line>Enemies: ' + _root.detailmap[this.myy][this.myx][2] + '<new_line>', '0xFFFFFF|' + this.difcol + '|0x22FFFF|0xFDE724', '22|16|16|16'); } else { _root.setuptip(_root.detailmap[this.myy][this.myx][0] + '<new_line>Difficulty: ' + this.diftext + ' (' + _root.detailmap[this.myy][this.myx][3] + ')<new_line>Enemies: ' + _root.detailmap[this.myy][this.myx][2], '0xFFFFFF|' + this.difcol + '|0xCCB700', '22|16|16'); } _root.myTooltip.show({'delay': 0.65, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); } else { if (_root.contentmap[this.myy][this.myx] > 44 && _root.contentmap[this.myy][this.myx] < 50 && _root.playerstuff.hasspawninfo) { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); var v4 = _root.spawnerbossfights[_root.contentdetailsmap[this.myy][this.myx][3] + '_' + _root.contentdetailsmap[this.myy][this.myx][2]]; var v3 = _root.bestiary[v4[5]][0]; _root.setuptip(_root.contentdetailsmap[this.myy][this.myx][0] + '<new_line>Difficulty: ' + _root.contentdetailsmap[this.myy][this.myx][2] + '<new_line>Guardian: ' + v3 + '<new_line>Level up in ' + (_root.contentdetailsmap[this.myy][this.myx][7] - _root.contentdetailsmap[this.myy][this.myx][10]) + ' turns<new_line>Next Spawn in ' + (_root.contentdetailsmap[this.myy][this.myx][4] - _root.contentdetailsmap[this.myy][this.myx][9]) + ' turns<new_line>Spawns: ' + _root.contentdetailsmap[this.myy][this.myx][8] + '/' + _root.contentdetailsmap[this.myy][this.myx][5] + '<new_line>', '0xFFFFFF|0x22FFFF|0xFDE724|0xFFFFFF', '22|16|16|16'); _root.myTooltip.show({'delay': 0.65, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); } else { if (_root.contentmap[this.myy][this.myx] > 44 && _root.contentmap[this.myy][this.myx] < 50) { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip(_root.contentdetailsmap[this.myy][this.myx][0] + '<new_line>Creature Shrines spew out groups of enemies in their vicinity and grow in power the longer they\'re left. Shrines are guarded by a powerful monster.<new_line>', '0xFFFFFF|0x22FFFF|0xFDE724|0xFFFFFF', '22|16|16|16'); _root.myTooltip.show({'delay': 0.65, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); } } } }; _root.mainmap.inner['t_' + v4 + '_' + v3].onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; _root.mainmap.inner['t_' + v4 + '_' + v3].onRelease = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); if (_root.playerstuff.hasscout) { scoutreport(this.myy, this.myx); } }; ++v3; } ++v4; } v4 = 0; while (v4 < 100) { v3 = 0; while (v3 < 100) { _root.mainmap.inner.creeps['creep_' + v4 + '_' + v3].removeMovieClip(); _root.mainmap.inner.creeps['creephp_' + v4 + '_' + v3].removeMovieClip(); _root.mainmap.inner.locations['location_' + v4 + '_' + v3].removeMovieClip(); _root.mainmap.inner.locations['skulls_' + v4 + '_' + v3].removeMovieClip(); ++v3; } ++v4; } v4 = cypos; while (v4 < cypos + 9) { v3 = cxpos; while (v3 < cxpos + 9) { if (_root.contentmap[v4][v3] > 0) { _root.mainmap.inner.locations.attachMovie('location' + _root.contentmap[v4][v3], 'location_' + v4 + '_' + v3, _root.mainmap.inner.locations.getNextHighestDepth(), {'_x': _root.mainmap.inner['t_' + (v4 - cypos) + '_' + (v3 - cxpos)]._x, '_y': _root.mainmap.inner['t_' + (v4 - cypos) + '_' + (v3 - cxpos)]._y}); if (_root.contentmap[v4][v3] == 1) { _root.mainmap.inner.locations.attachMovie('dungeonskull', 'skulls_' + v4 + '_' + v3, _root.mainmap.inner.locations.getNextHighestDepth(), {'_x': _root.mainmap.inner['t_' + (v4 - cypos) + '_' + (v3 - cxpos)]._x + 25, '_y': _root.mainmap.inner['t_' + (v4 - cypos) + '_' + (v3 - cxpos)]._y + 15}); _root.mainmap.inner.locations['skulls_' + v4 + '_' + v3].gotoAndStop(_root.contentdetailsmap[v4][v3][4]); _root.mainmap.inner.locations['location_' + v4 + '_' + v3].onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip('Dungeon<new_line>Dungeons are large underground structures containing both treasures and creatures. Dungeons can also contain special Astral Chests for you to recover.<new_line>', '0xFFFFFF|0x22FFFF|0xFDE724|0xFFFFFF', '22|16|16|16'); _root.myTooltip.show({'delay': 0.65, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; _root.mainmap.inner.locations['location_' + v4 + '_' + v3].onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; } else { if (_root.contentmap[v4][v3] == 1337) { _root.mainmap.inner.locations.attachMovie('sprite', 'location_' + v4 + '_' + v3, _root.mainmap.inner.locations.getNextHighestDepth(), {'_x': _root.mainmap.inner['t_' + (v4 - cypos) + '_' + (v3 - cxpos)]._x + 13, '_y': _root.mainmap.inner['t_' + (v4 - cypos) + '_' + (v3 - cxpos)]._y + 34, '_xscale': 130, '_yscale': 130}); _root.mainmap.inner.locations['location_' + v4 + '_' + v3].armnum = _root.contentdetailsmap[v4][v3][1]; _root.mainmap.inner.locations['location_' + v4 + '_' + v3].wepnum = _root.contentdetailsmap[v4][v3][6][1]; _root.mainmap.inner.locations['location_' + v4 + '_' + v3].internal.sprite.gotoAndStop(2); _root.mainmap.inner.locations['location_' + v4 + '_' + v3].internal.sprite.gotoAndStop(1); _root.mainmap.inner.locations.attachMovie('questmarker', 'skulls_' + v4 + '_' + v3, _root.mainmap.inner.locations.getNextHighestDepth(), {'_x': _root.mainmap.inner['t_' + (v4 - cypos) + '_' + (v3 - cxpos)]._x + 25, '_y': _root.mainmap.inner['t_' + (v4 - cypos) + '_' + (v3 - cxpos)]._y - 22, '_alpha': 65}); _root.mainmap.inner.locations['location_' + v4 + '_' + v3].onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip('A New Hero<new_line>Native heroes may be convinced to join your party if you complete their quest. With enough care they can become very useful.<new_line>', '0xFFFFFF|0x22FFFF|0xFDE724|0xFFFFFF', '22|16|16|16'); _root.myTooltip.show({'delay': 0.65, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; _root.mainmap.inner.locations['location_' + v4 + '_' + v3].onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; } else { if (_root.contentmap[v4][v3] != 1 && _root.contentmap[v4][v3] != 1337) { if (_root.contentmap[v4][v3] > 5) { _root.mainmap.inner.locations.attachMovie('skullrank', 'skulls_' + v4 + '_' + v3, _root.mainmap.inner.locations.getNextHighestDepth(), {'_x': _root.mainmap.inner['t_' + (v4 - cypos) + '_' + (v3 - cxpos)]._x + 21, '_y': _root.mainmap.inner['t_' + (v4 - cypos) + '_' + (v3 - cxpos)]._y + 44}); _root.mainmap.inner.locations['skulls_' + v4 + '_' + v3].gotoAndStop(_root.contentdetailsmap[v4][v3][2]); } } } } if (_root.contentmap[v4][v3] == 2) { _root.mainmap.inner.locations['location_' + v4 + '_' + v3].onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip('General Store<new_line>The general store is a good place to pick up useful equipment. All stores on a plane have a single stockpile of items that doesn\'t replenish.<new_line>', '0xFFFFFF|0x22FFFF|0xFDE724|0xFFFFFF', '22|16|16|16'); _root.myTooltip.show({'delay': 0.65, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; _root.mainmap.inner.locations['location_' + v4 + '_' + v3].onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; } else { if (_root.contentmap[v4][v3] == 3) { _root.mainmap.inner.locations['location_' + v4 + '_' + v3].onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip('Ascention Shrine<new_line>Using an Ascention shrine you can assisst your heroes in ascending allowing you access to them from the Astral Plane<new_line>', '0xFFFFFF|0x22FFFF|0xFDE724|0xFFFFFF', '22|16|16|16'); _root.myTooltip.show({'delay': 0.65, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; _root.mainmap.inner.locations['location_' + v4 + '_' + v3].onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; } else { if (_root.contentmap[v4][v3] == 4) { _root.mainmap.inner.locations['location_' + v4 + '_' + v3].onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip('Alchemy Store<new_line>The Alchemist living here is willing to sell you potions and feathers to help in your quest.<new_line>', '0xFFFFFF|0x22FFFF|0xFDE724|0xFFFFFF', '22|16|16|16'); _root.myTooltip.show({'delay': 0.65, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; _root.mainmap.inner.locations['location_' + v4 + '_' + v3].onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; } else { if (_root.contentmap[v4][v3] == 5) { _root.mainmap.inner.locations['location_' + v4 + '_' + v3].onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip('Pleasant House<new_line>A nice serene house in the middle of all this chaos. The owner must be powerful.<new_line>', '0xFFFFFF|0x22FFFF|0xFDE724|0xFFFFFF', '22|16|16|16'); _root.myTooltip.show({'delay': 0.65, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; _root.mainmap.inner.locations['location_' + v4 + '_' + v3].onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; } } } } } ++v3; } ++v4; } v4 = cypos; while (v4 < cypos + 9) { v3 = cxpos; while (v3 < cxpos + 9) { if (_root.creepmap[v4][v3] > 0) { _root.mainmap.inner.creeps.attachMovie('creep' + _root.detailmap[v4][v3][4], 'creep_' + v4 + '_' + v3, _root.mainmap.inner.creeps.getNextHighestDepth(), {'_x': _root.mainmap.inner['t_' + (v4 - cypos) + '_' + (v3 - cxpos)]._x + 16, '_y': _root.mainmap.inner['t_' + (v4 - cypos) + '_' + (v3 - cxpos)]._y + 16, '_yscale': 150, '_xscale': 150}); _root.mainmap.inner.creeps['creep_' + v4 + '_' + v3].gotoAndStop(1); _root.mainmap.inner.creeps['creep_' + v4 + '_' + v3].sprite.gotoAndStop(1); _root.mainmap.inner.creeps.attachMovie('creeplevel', 'creephp_' + v4 + '_' + v3, _root.mainmap.inner.creeps.getNextHighestDepth(), {'_x': _root.mainmap.inner['t_' + (v4 - cypos) + '_' + (v3 - cxpos)]._x + 24, '_y': _root.mainmap.inner['t_' + (v4 - cypos) + '_' + (v3 - cxpos)]._y + 16}); _root.mainmap.inner.creeps['creephp_' + v4 + '_' + v3].line1.text = _root.detailmap[v4][v3][3]; } ++v3; } ++v4; } if (_root.creepmap[pposy][pposx] > 0) { trace('I\'m standing on a monster!'); _root.initiatebattle(pposy, pposx); } else { if (_root.contentmap[pposy][pposx] == 1) { trace('I\'m standing on a dungeon!'); _root.initiatedungeon(pposy, pposx); } else { if (_root.contentmap[pposy][pposx] == 1337) { trace('I\'m standing on a recruitable hero!'); _root.initiatehero(pposy, pposx); } else { if (_root.contentmap[pposy][pposx] == 2) { trace('I\'m standing on a shop'); _root.initiateshop(pposy, pposx); } else { if (_root.contentmap[pposy][pposx] == 3) { trace('I\'m standing on an ascention shrine'); _root.initiateascention(pposy, pposx); } else { if (_root.contentmap[pposy][pposx] == 4) { trace('I\'m standing on an alchemy store'); _root.initiatealchy(pposy, pposx); } else { if (_root.contentmap[pposy][pposx] == 5) { trace('I\'m standing on a pleasant house'); _root.initiatehouse(pposy, pposx); } else { if (_root.contentmap[pposy][pposx] > 44 && _root.contentmap[pposy][pposx] < 50) { trace('I\'m standing on a spawner!'); _root.initiatespawner(pposy, pposx); } } } } } } } } _root.partybar['f' + _root.playerstuff.questinghero].ttext.text = _root.playerstuff.questturns; } function scoutreport(why, ex) { trace('Opening Scout report'); } function initiatebattle(why, ex) { trace('Starting battle in tile ' + why + ', ' + ex + '!'); _root.busy = true; _root.bw.swapDepths(_root.getNextHighestDepth()); _root.healths.swapDepths(_root.getNextHighestDepth()); _root.bw.initializethis(why, ex); com.greensock.TweenLite.to(_root.bw, 0.65, {'_y': 180}); com.greensock.TweenLite.to(_root.healths, 0.65, {'_y': 3}); com.greensock.TweenLite.to(_root.bw.bg, 1, {'_alpha': 15}); _root.bw.bg.onRelease = function () {}; _root.bw.bg.useHandCursor = false; _root.healths.potnum.text = _root.playerstuff.potions; _root.healths.feathernum.text = _root.playerstuff.feathers; var v3 = 0; while (v3 < 13) { if (_root.playerstuff.party.length < v3) { _root.healths['php' + v3]._alpha = 0; } else { _root.healths['php' + v3]._alpha = 100; _root.healths['php' + v3].potbut.mynum = v3; _root.healths['php' + v3].potbut.onRelease = function () { if (_root.playerstuff.potions > 0 && _root.playerstuff.party[this.mynum - 1][3][0] > 0) { var v4 = random(30) + 20; _root.playsfx('heal'); var v3 = 0; while (v3 < _root.playerstuff.party.length) { if (_root.playerstuff.party[v3][12] == 18) { v4 += Math.round(v4 * 0.2); } ++v3; } _root.bw.tellnews(_root.playerstuff.party[this.mynum - 1][0] + ' used a potion. healed ' + v4 + ' health.'); _root.playerstuff.party[this.mynum - 1][3][0] += v4; --_root.playerstuff.potions; _root.healths.potnum.text = _root.playerstuff.potions; _root.healths.feathernum.text = _root.playerstuff.feathers; if (_root.playerstuff.party[this.mynum - 1][3][0] > _root.playerstuff.party[this.mynum - 1][3][1]) { _root.playerstuff.party[this.mynum - 1][3][0] = _root.playerstuff.party[this.mynum - 1][3][1]; } } else { if (_root.playerstuff.party[this.mynum - 1][3][0] <= 0) { if (_root.playerstuff.feathers > 0) { _root.playsfx('heal2'); --_root.playerstuff.feathers; _root.healths.potnum.text = _root.playerstuff.potions; _root.healths.feathernum.text = _root.playerstuff.feathers; _root.playerstuff.party[this.mynum - 1][3][0] += Math.round(_root.playerstuff.party[this.mynum - 1][3][1] / 4); _root.bw.tellnews('Used a feather on ' + _root.playerstuff.party[this.mynum - 1][0] + '. He woke up!'); _root.bw['field' + _root.playerstuff.party[this.mynum - 1][8]]['unit_' + (this.mynum - 1)].internal.sprite.gotoAndStop(1); } else { _root.bw.tellnews('You don\'t have any feathers to use on ' + _root.playerstuff.party[this.mynum - 1][0]); } } else { if (_root.playerstuff.potions < 1) { _root.bw.tellnews(_root.playerstuff.party[this.mynum - 1][0] + ' can\'t use a potion because you don\'t have any!'); } } } }; } if (_root.detailmap[why][ex].length - 5 < v3) { _root.healths['ehp' + v3].potbut._visible = false; _root.healths['ehp' + v3]._alpha = 0; } else { _root.healths['ehp' + v3].potbut._visible = false; _root.healths['ehp' + v3]._alpha = 100; } ++v3; } _root.healths.initializethis(); _root.bw.swapDepths(_root.getNextHighestDepth()); _root.healths.swapDepths(_root.getNextHighestDepth()); } function setuppartybar() { stopsprites(); var v3 = 0; while (v3 < 12) { _root.partybar['sprite' + v3]._visible = false; _root.partybar['f' + v3]._visible = false; _root.partybar['h' + v3]._visible = false; _root.partybar['star' + v3]._visible = false; ++v3; } v3 = 0; while (v3 < _root.playerstuff.party.length) { _root.partybar['h' + v3]._visible = true; _root.partybar['sprite' + v3]._visible = true; _root.partybar['f' + v3]._visible = true; if (!_root.playerstuff.party[v3][16]) { _root.partybar['f' + v3].gotoAndStop(_root.playerstuff.party[v3][11]); } else { _root.partybar['f' + v3].gotoAndStop(11); _root.partybar['f' + v3].ttext.text = _root.playerstuff.questturns; } _root.partybar['sprite' + v3].wepnum = _root.playerstuff.party[v3][6][1]; _root.partybar['sprite' + v3].armnum = _root.playerstuff.party[v3][1]; _root.partybar['sprite' + v3].internal.sprite.gotoAndStop(2); _root.partybar['sprite' + v3].internal.sprite.gotoAndStop(1); _root.partybar['sprite' + v3].mynum = v3; _root.partybar['sprite' + v3].mydetails = _root.playerstuff.party[v3]; if (_root.playerstuff.party[v3][9][0] >= _root.playerstuff.party[v3][9][1] && _root.playerstuff.party[v3][9][1] != 'MAX' && !_root.playerstuff.party[v3][16]) { _root.partybar['star' + v3]._visible = true; if (_root.doingfirstlevel) { _root.tutstuff.swapDepths(_root.getNextHighestDepth()); _root.tutstuff._visible = true; _root.tutstuff.gotoAndStop(11); _root.doingfirstlevel = false; _root.tutstuff.onRelease = function () { _root.tutstuff._visible = false; }; } } _root.partybar['sprite' + v3].onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); trace('rolling over ' + this.mydetails); if (this.mydetails[11] < 10) { if (!this.mydetails[16]) { var v4 = this.mydetails[9][0] + ' Exp. ' + (this.mydetails[9][1] - this.mydetails[9][0]) + ' more needed.'; } else { var v4 = 'Questing Heroes cannot level up'; } } else { var v4 = ' Level Maxed! Woohoo!'; } if (this.mydetails[12] > 0) { if (this.mydetails[13] > 0) { _root.setuptip2(this.mydetails[0] + '<new_line>' + this.mydetails[2] + '<new_line>Health: ' + this.mydetails[3][0] + ' / ' + this.mydetails[3][1] + '<new_line>Initiative: ' + this.mydetails[4] + '<new_line><new_line><new_line>' + this.mydetails[5][0] + '<new_line> Physical: ' + this.mydetails[5][1] + ' Magical: ' + this.mydetails[5][2] + '<new_line><new_line><new_line>' + this.mydetails[6][0] + '<new_line>' + 'Damage: ' + this.mydetails[6][3] + 'x' + this.mydetails[10] + ' DPS: ' + Math.round(this.mydetails[6][3] * (this.mydetails[6][4] / 30) * this.mydetails[10]) + '<new_line><new_line>Level ' + this.mydetails[11] + '<new_line>' + v4 + '<new_line> <new_line>' + _root.getherocombatspecialname(this.mydetails[12]) + '<new_line>' + _root.getherocombatspecialblurb(this.mydetails[12]) + '<new_line>' + _root.getherospecialname(this.mydetails[13]) + '<new_line>' + _root.getherospecialblurb(this.mydetails[13]) + '<new_line>', '0xFFFFFF|0xCC5100|0xFF0000|0xFDE724|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xCCB700|0xCCB700|0xCC5100|0xCC5100|0x8F8767|0xCC5100|0x8F8767', '22|14|16|16|16|16|16|16|16|16|16|16|16|16|16|14'); } else { _root.setuptip2(this.mydetails[0] + '<new_line>' + this.mydetails[2] + '<new_line>Health: ' + this.mydetails[3][0] + ' / ' + this.mydetails[3][1] + '<new_line>Initiative: ' + this.mydetails[4] + '<new_line><new_line><new_line>' + this.mydetails[5][0] + '<new_line> Physical: ' + this.mydetails[5][1] + ' Magical: ' + this.mydetails[5][2] + '<new_line><new_line><new_line>' + this.mydetails[6][0] + '<new_line>' + 'Damage: ' + this.mydetails[6][3] + 'x' + this.mydetails[10] + ' DPS: ' + Math.round(this.mydetails[6][3] * (this.mydetails[6][4] / 30) * this.mydetails[10]) + '<new_line><new_line>Level ' + this.mydetails[11] + '<new_line>' + v4 + '<new_line> <new_line>' + _root.getherocombatspecialname(this.mydetails[12]) + '<new_line>' + _root.getherocombatspecialblurb(this.mydetails[12]) + '<new_line>', '0xFFFFFF|0xCC5100|0xFF0000|0xFDE724|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xCCB700|0xCCB700|0xCC5100|0xCC5100|0x8F8767|0xCC5100|0x8F8767', '22|14|16|16|16|16|16|16|16|16|16|16|16|16|16|14'); } } else { if (this.mydetails[13] > 0) { trace('MY special is: ' + this.mydetails[13]); _root.setuptip2(this.mydetails[0] + '<new_line>' + this.mydetails[2] + '<new_line>Health: ' + this.mydetails[3][0] + ' / ' + this.mydetails[3][1] + '<new_line>Initiative: ' + this.mydetails[4] + '<new_line><new_line><new_line>' + this.mydetails[5][0] + '<new_line> Physical: ' + this.mydetails[5][1] + ' Magical: ' + this.mydetails[5][2] + '<new_line><new_line><new_line>' + this.mydetails[6][0] + '<new_line>' + 'Damage: ' + this.mydetails[6][3] + 'x' + this.mydetails[10] + ' DPS: ' + Math.round(this.mydetails[6][3] * (this.mydetails[6][4] / 30) * this.mydetails[10]) + '<new_line><new_line>Level ' + this.mydetails[11] + '<new_line>' + v4 + '<new_line> <new_line>' + _root.getherospecialname(this.mydetails[13]) + '<new_line>' + _root.getherospecialblurb(this.mydetails[13]) + '<new_line>', '0xFFFFFF|0xCC5100|0xFF0000|0xFDE724|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xCCB700|0xCCB700|0xCC5100|0xCC5100|0x8F8767|0xCC5100|0x8F8767', '22|14|16|16|16|16|16|16|16|16|16|16|16|16|16|14'); } else { if (this.mydetails[16]) { var v3 = ''; if (_root.playerstuff.questtype == 2) { v3 = 'Enter and Clear a Dungeon<new_line>' + _root.playerstuff.questturns + ' Turns Left'; } else { if (_root.playerstuff.questtype == 3) { _root.playerstuff.questorig = _root.playerstuff.tracker[0]; v3 = 'Kill another ' + (_root.playerstuff.questgoal - _root.playerstuff.questorig) + ' monsters<new_line>' + _root.playerstuff.questturns + ' Turns Left'; } } if (_root.playerstuff.questtype == 4) { _root.playerstuff.questorig = _root.playerstuff.tracker[2]; v3 = 'Destroy any monster spawner<new_line>' + _root.playerstuff.questturns + ' Turns Left'; } if (_root.playerstuff.questtype == 5) { _root.playerstuff.questorig = _root.playerstuff.tracker[6]; v3 = 'Collect another ' + (_root.playerstuff.questgoal - _root.playerstuff.questorig) + ' gold<new_line>' + _root.playerstuff.questturns + ' Turns Left'; } if (_root.playerstuff.questtype == 6) { _root.playerstuff.questorig = _root.playerstuff.tracker[4]; v3 = 'Find another ' + (_root.playerstuff.questgoal - _root.playerstuff.questorig) + ' new armours<new_line>' + _root.playerstuff.questturns + ' Turns Left'; } if (_root.playerstuff.questtype == 7) { _root.playerstuff.questorig = _root.playerstuff.tracker[3]; v3 = 'Find another ' + (_root.playerstuff.questgoal - _root.playerstuff.questorig) + ' new weapons<new_line>' + _root.playerstuff.questturns + ' Turns Left'; } if (_root.playerstuff.questtype == 8) { _root.playerstuff.questorig = _root.playerstuff.tracker[5]; v3 = 'Find another ' + (_root.playerstuff.questgoal - _root.playerstuff.questorig) + ' potions<new_line>' + _root.playerstuff.questturns + ' Turns Left'; } if (_root.playerstuff.questtype == 9) { _root.playerstuff.questorig = _root.playerstuff.tracker[12]; v3 = 'Earn another ' + (_root.playerstuff.questgoal - _root.playerstuff.questorig) + ' experience<new_line>' + _root.playerstuff.questturns + ' Turns Left'; } _root.setuptip2(this.mydetails[0] + '<new_line>' + this.mydetails[2] + '<new_line>Health: ' + this.mydetails[3][0] + ' / ' + this.mydetails[3][1] + '<new_line>Initiative: ' + this.mydetails[4] + '<new_line><new_line><new_line>' + this.mydetails[5][0] + '<new_line> Physical: ' + this.mydetails[5][1] + ' Magical: ' + this.mydetails[5][2] + '<new_line><new_line><new_line>' + this.mydetails[6][0] + '<new_line>' + 'Damage: ' + this.mydetails[6][3] + 'x' + this.mydetails[10] + ' DPS: ' + Math.round(this.mydetails[6][3] * (this.mydetails[6][4] / 30) * this.mydetails[10]) + '<new_line><new_line>Level ' + this.mydetails[11] + '<new_line>' + v4 + '<new_line> <new_line>QUESTING<new_line>' + v3 + '<new_line> ', '0xFFFFFF|0xCC5100|0xFF0000|0xFDE724|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xCCB700|0xCCB700|0xFFFFFF|0xCC5100', '22|14|16|16'); } else { _root.setuptip2(this.mydetails[0] + '<new_line>' + this.mydetails[2] + '<new_line>Health: ' + this.mydetails[3][0] + ' / ' + this.mydetails[3][1] + '<new_line>Initiative: ' + this.mydetails[4] + '<new_line><new_line><new_line>' + this.mydetails[5][0] + '<new_line> Physical: ' + this.mydetails[5][1] + ' Magical: ' + this.mydetails[5][2] + '<new_line><new_line><new_line>' + this.mydetails[6][0] + '<new_line>' + 'Damage: ' + this.mydetails[6][3] + 'x' + this.mydetails[10] + ' DPS: ' + Math.round(this.mydetails[6][3] * (this.mydetails[6][4] / 30) * this.mydetails[10]) + '<new_line><new_line>Level ' + this.mydetails[11] + '<new_line>' + v4 + '<new_line>', '0xFFFFFF|0xCC5100|0xFF0000|0xFDE724|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xCCB700', '22|14|16|16'); } } } _root.myTooltip.show({'delay': 0.25, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; _root.partybar['sprite' + v3].onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; _root.partybar['sprite' + v3].onRelease = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); if (this.mydetails[9][0] >= this.mydetails[9][1] && this.mydetails[9][1] != 'MAX') { _root.dolevelup(this.mynum); _root.playsfx('heal'); } }; _root.partybar['h' + v3].mynum = v3; _root.partybar['h' + v3].onEnterFrame = function () { this.bar._width = Math.round(88 * (_root.playerstuff.party[this.mynum][3][0] / _root.playerstuff.party[this.mynum][3][1])); }; ++v3; } } function initiatedungeon(why, ex) { _root.playsfx('windpop'); trace(_root.contentdetailsmap[why][ex]); _root.busy = true; dundis.line1.text = _root.contentdetailsmap[why][ex][0]; _root.dundis.yes.onRelease = function () { _root.inadungeon = true; _root.dungeoninfo = _root.contentdetailsmap[why][ex].slice(); _root.attachMovie('dungeonwindow', 'dungeonwindow', _root.getNextHighestDepth(), {'_x': 3, '_y': -500}); com.greensock.TweenLite.to(_root.dundis, 0.65, {'_x': -450}); com.greensock.TweenLite.to(_root.dungeonwindow, 0.65, {'_y': 222}); _root.dungeonloc = [why, ex]; _root.dundis.scout.boss.removeMovieClip(); var v2 = 0; while (v2 < 7) { _root.dundis.scout['creeper' + v2].removeMovieClip(); ++v2; } _root.contentmap[why][ex] = 0; _root.saveingame(); }; _root.dundis.no.onRelease = function () { _root.dundis.scout.boss.removeMovieClip(); var v2 = 0; while (v2 < 7) { _root.dundis.scout['creeper' + v2].removeMovieClip(); ++v2; } _root.busy = false; com.greensock.TweenLite.to(_root.dundis, 0.45, {'_x': -450}); }; if (_root.playerstuff.hasdungeonscout) { _root.dundis.scout._visible = true; var v6 = _root.bestiary[_root.contentdetailsmap[why][ex][5]]; _root.dundis.boss.removeMovieClip(); _root.dundis.scout.attachMovie('creep' + v6[1], 'boss', _root.dundis.scout.getNextHighestDepth(), {'_x': 45, '_y': 35, '_xscale': 120, '_yscale': 120}); _root.dundis.scout.boss.sprite.gotoAndStop(1); var v2 = 1; while (v2 < 7) { _root.dundis.scout['chest' + v2]._visible = false; ++v2; } v2 = 0; while (v2 < _root.contentdetailsmap[why][ex][1]) { _root.dundis.scout['chest' + (v2 + 1)]._visible = true; ++v2; } var v3 = 310; var v5 = _root.dungeonbossfights[_root.contentdetailsmap[why][ex][5]][6]; v2 = 0; while (v2 < _root.contentdetailsmap[why][ex][2]) { _root.dundis.scout['creeper' + v2].removeMovieClip(); _root.dundis.scout.attachMovie('creep' + _root.bestiary[v5][1], 'creeper' + v2, _root.dundis.scout.getNextHighestDepth(), {'_x': v3, '_y': 35}); v3 += 15; _root.dundis.scout['creeper' + v2].sprite.gotoAndStop(1); ++v2; } trace('Details: ' + _root.contentdetailsmap[why][ex]); trace('Boss: ' + _root.contentdetailsmap[why][ex][5]); trace('chests: ' + _root.contentdetailsmap[why][ex][1]); trace('Minions: ' + _root.contentdetailsmap[why][ex][2] + ' - ' + _root.dungeonbossfights[_root.contentdetailsmap[why][ex][5]][6]); } else { _root.dundis.scout._visible = false; } com.greensock.TweenLite.to(_root.dundis, 0.65, {'_x': 20}); } _root.movedelay = 0; _root.busy = false; _root.paused = false; _root.spawnfight = false; if (_root.loadinggame) { _root.loadingame(); _root.loadinggame = false; } else { turnsleft = _root.generteinfo[10]; pposx = Math.round(worldsize[0] / 2); pposy = Math.round(worldsize[1] / 2); } cxpos = pposx - 4; cypos = pposy - 4; clickmovedelay = 0; _root.mainmap.ad.onRelease = function () { if (_root.movedelay == 0 && _root.clickmovedelay == 0 && !_root.busy && _root.cypos < _root.worldmap.length - 8) { _root.movesprite('down'); } }; _root.mainmap.au.onRelease = function () { if (_root.movedelay == 0 && _root.clickmovedelay == 0 && !_root.busy && _root.cypos > -1) { _root.movesprite('up'); } }; _root.mainmap.al.onRelease = function () { if (_root.movedelay == 0 && _root.clickmovedelay == 0 && !_root.busy && _root.cxpos > -1) { _root.movesprite('left'); } }; _root.mainmap.ar.onRelease = function () { if (_root.movedelay == 0 && _root.clickmovedelay == 0 && !_root.busy && _root.cxpos < _root.worldmap[0].length - 8) { _root.movesprite('right'); } }; _root.mainmap.ar._alpha = 0; _root.mainmap.al._alpha = 0; _root.mainmap.au._alpha = 0; _root.mainmap.ad._alpha = 0; _root.mainmap.ar.enabled = false; _root.mainmap.al.enabled = false; _root.mainmap.au.enabled = false; _root.mainmap.ad.enabled = false; _root.mousemove = false; clickmovedelay = 12; stop(); mainmap.psprite.gotoAndStop(_root.playerstuff.party.length); mainmap.psprite.sprite.wepnum = _root.playerstuff.party[0][6][1]; mainmap.psprite.sprite.armnum = _root.playerstuff.party[0][1]; var i = 1; while (i < 13) { mainmap.psprite['sprite' + (i + 1)].wepnum = _root.playerstuff.party[i][6][1]; mainmap.psprite['sprite' + (i + 1)].armnum = _root.playerstuff.party[i][1]; ++i; } _root.mainmap.inner.createEmptyMovieClip('locations', _root.mainmap.inner.getNextHighestDepth()); _root.mainmap.inner.createEmptyMovieClip('creeps', _root.mainmap.inner.getNextHighestDepth()); _root.createEmptyMovieClip('controller', 3); _root.controller.onEnterFrame = function () { if (!_root.paused) { if (clickmovedelay > 0) { --clickmovedelay; } if (_root.movedelay > 0) { --_root.movedelay; if (_root.movedelay == 0) { _root.mainmap.inner._x = -64; _root.mainmap.inner._y = -64; _root.stopsprites(); _root.drawmap(); } } } }; _root.createEmptyMovieClip('movelisten', 2); _root.movelisten.onEnterFrame = function () { if (Key.isDown(40) && _root.movedelay == 0 && !_root.busy && _root.cypos < _root.worldmap.length - 8) { _root.movesprite('down'); } else { if (Key.isDown(38) && _root.movedelay == 0 && !_root.busy && _root.cypos > -1) { _root.movesprite('up'); } else { if (Key.isDown(37) && _root.movedelay == 0 && !_root.busy && _root.cxpos > -1) { _root.movesprite('left'); } else { if (Key.isDown(39) && _root.movedelay == 0 && !_root.busy && _root.cxpos < _root.worldmap[0].length - 8) { _root.movesprite('right'); } } } } }; processbreeders(1); drawmap(true); setuppartybar(); } frame 14 { function teleportplayer() { var v5 = random(10) + 10; if (_root.globalstuff.difficulty > 2) { v5 += random(4); } if (_root.globalstuff.difficulty > 4) { v5 += random(6); } if (_root.globalstuff.difficulty > 7) { v5 += random(6); } if (_root.globalstuff.difficulty > 10) { v5 += random(8); } if (_root.globalstuff.difficulty > 14) { v5 += random(8); } if (_root.globalstuff.difficulty > 16) { v5 += random(10); } if (_root.globalstuff.difficulty > 18) { v5 += random(10); } if (_root.globalstuff.difficulty > 20) { v5 += random(10); } if (_root.globalstuff.difficulty > 22) { v5 += random(20); } if (_root.globalstuff.difficulty >= 23) { v5 += random(20); } processbreeders(v5); if (_root.turnsleft - v5 < 4) { _root.turnsleft = 4; } else { _root.turnsleft -= v5; } trace('teleporting'); _root.busy = true; var v6 = false; while (v6 == false) { var v4 = random(_root.worldmap.length); var v3 = random(_root.worldmap[0].length); if (_root.worldmap[v4][v3] != 20) { if (_root.creepmap[v4][v3] == 0) { if (_root.contentmap[v4][v3] == 0) { v6 = true; _root.pposx = v3; _root.pposy = v4; cxpos = pposx - 4; cypos = pposy - 4; } } } } _root.drawmap(true); _root.attachMovie('blackout', 'blackout', _root.getNextHighestDepth()); _root.blackout.onRelease = function () {}; _root.blackout.useHandCursor = false; _root.blackout.ttl = 36; _root.blackout.onEnterFrame = function () { --this.ttl; if (this.ttl == 30) { com.greensock.TweenLite.to(_root.blackout, 1, {'_alpha': 0}); } if (this.ttl == 0) { _root.attachMovie('teleported', 'teleported', _root.getNextHighestDepth(), {'_x': 100, '_y': -400}); com.greensock.TweenLite.to(_root.teleported, 0.8, {'_y': 120}); _root.teleported.yes.onRollOver = function () { this.gotoAndStop(2); }; _root.teleported.yes.onRollOut = function () { this.gotoAndStop(1); }; _root.teleported.yes.onRelease = function () { this.gotoAndStop(1); _root.busy = false; com.greensock.TweenLite.to(_root.teleported, 0.3, {'_y': -400}); _root.teleported.ttl = 8; _root.teleported.onEnterFrame = function () { --this.ttl; if (this.ttl < 0) { this.removeMovieClip(); } }; }; this.removeMovieClip(); } }; _root.dungeonwindow.enddungeon(false); com.greensock.TweenLite.to(_root.bw, 0.25, {'_y': 880}); com.greensock.TweenLite.to(_root.bw.bg, 0.2, {'_alpha': 0}); com.greensock.TweenLite.to(_root.healths, 0.25, {'_y': -200}); } _root.attachMovie('blackout', 'blackout', _root.getNextHighestDepth()); _root.blackout.onRelease = function () {}; _root.blackout.useHandCursor = false; _root.blackout.ttl = 31; _root.blackout.onEnterFrame = function () { --this.ttl; if (this.ttl == 0) { this.removeMovieClip(); } }; com.greensock.TweenLite.to(_root.blackout, 1, {'_alpha': 0}); mainmap.psprite._y = -200; mainmap.psprite._xscale = -100; mainmap.psprite._alpha = 0; com.greensock.TweenLite.to(_root.mainmap.psprite, 1, {'_y': 200, '_alpha': 100, '_xscale': 100}); } frame 14 { if (_root.doingtutorial) { trace('_root.worldmap = ['); var i = 0; while (i < _root.theworld.length) { trace('[' + _root.theworld[i] + ']'); ++i; } trace('];'); trace('_root.breederlist = ['); var i = 0; while (i < _root.breederlist.length) { trace('[' + _root.breederlist[i] + ']'); ++i; } trace('Breeder list length: ' + _root.breederlist.length); trace('];'); trace('_root.generteinfo = ['); var i = 0; while (i < _root.generteinfo.length) { trace('[' + _root.generteinfo[i] + ','); ++i; } trace('];'); trace('_root.creepmap = ['); var i = 0; while (i < _root.creepmap.length) { trace('[' + _root.creepmap[i] + ']'); ++i; } trace('];'); trace('_root.contentmap = ['); var i = 0; while (i < _root.contentmap.length) { trace('[' + _root.contentmap[i] + ']'); ++i; } trace('];'); trace('_root.detailmap = ['); var i = 0; while (i < _root.detailmap.length) { trace('[' + _root.detailmap[i] + ']'); ++i; } trace('];'); trace('_root.questtmap = ['); var i = 0; while (i < _root.questmap.length) { trace('[' + _root.questmap[i] + ']'); ++i; } trace('];'); trace('_root.contentdetailsmap = ['); var i = 0; while (i < _root.contentdetailsmap.length) { trace('[' + _root.contentdetailsmap[i] + ']'); ++i; } trace('];'); } _root.attachMovie('healths', 'healths', _root.getNextHighestDepth(), {'_x': 8, '_y': -209.9}); _root.attachMovie('battle_window', 'bw', _root.getNextHighestDepth(), {'_x': 19, '_y': 884}); _root.debug = false; if (_root.debug) { var i = 0; while (i < 24) { _root.openastralchest(); ++i; } } } movieClip 1823 { } movieClip 1834 { } movieClip 1836 Flower1 { } movieClip 1837 { } movieClip 1840 { } movieClip 1842 Flower2 { } movieClip 1843 { } movieClip 1846 { } movieClip 1848 Flower { } movieClip 1878 { frame 1 { stop(); } } movieClip 1879 { } movieClip 1880 { frame 1 { stop(); } } movieClip 1883 { } movieClip 1886 { } movieClip 1889 { } movieClip 1892 { } movieClip 1895 { } movieClip 1896 { } movieClip 1900 { } movieClip 1923 { } movieClip 1925 { frame 1 { stop(); } } movieClip 1929 { } movieClip 1930 { } movieClip 1931 { } movieClip 1934 { } movieClip 1937 { } movieClip 1939 dungeondiscover { frame 1 { bg.onRelease = function () {}; bg.useHandCursor = false; scout.useHandCursor = false; scout.onRelease = function () {}; } } movieClip 1944 { frame 1 { stop(); } frame 2 { _root.playsfx('hover'); } } movieClip 1949 { frame 1 { stop(); } frame 2 { _root.playsfx('hover'); } } movieClip 1954 { frame 1 { stop(); } frame 2 { _root.playsfx('hover'); } } movieClip 1963 { } movieClip 1969 { } movieClip 1972 { } movieClip 1988 { frame 1 { stop(); } frame 2 { _root.playsfx('hover'); } } movieClip 2029 { frame 1 { stop(); } frame 2 { _root.playsfx('hover'); } } movieClip 2031 window { frame 1 { stop(); } frame 1 { bg.onRelease = function () {}; bg.useHandCursor = false; } frame 2 { debugger._visible = false; debug.onRelease = function () { debugger._visible = true; debugger._y = -2; debugger.line1.text = ''; var v2 = 0; while (v2 < _root.playerstuff.inventory.length) { _root.window.debugger.line1.text += '[' + _root.playerstuff.inventory[v2] + ']'; ++v2; } _root.window.debugger.line1.text += '-- BREAK --'; v2 = 0; while (v2 < _root.playerstuff.party.length) { _root.window.debugger.line1.text += '[' + _root.playerstuff.party[v2] + ']'; ++v2; } }; } frame 2 { function drawthis() { toequip._visible = false; var v3 = 0; while (v3 < 12) { if (_root.playerstuff.party.length - 1 < v3) { this['h' + (v3 + 1)]._visible = false; } else { delete this['h' + (v3 + 1)].onRollOver; delete this['h' + (v3 + 1)].onRelease; delete this['h' + (v3 + 1)].onReleaseOutside; delete this['h' + (v3 + 1)].onRollOut; _root.myTooltip.hide({'animationTime': 0, 'animationType': 'linear'}); _root.myTooltip2.hide({'animationTime': 0, 'animationType': 'linear'}); this['h' + (v3 + 1)]._alpha = 100; this['h' + (v3 + 1)].mynum = v3; this['h' + (v3 + 1)].arm.mynum = v3; this['h' + (v3 + 1)].wep.mynum = v3; this['h' + (v3 + 1)]._visible = true; this['h' + (v3 + 1)].sprite.mynum = v3; this['h' + (v3 + 1)].sprite.mydetails = _root.playerstuff.party[v3]; this['h' + (v3 + 1)].sprite.armnum = _root.playerstuff.party[v3][1]; this['h' + (v3 + 1)].sprite.wepnum = _root.playerstuff.party[v3][6][1]; this['h' + (v3 + 1)].sprite.internal.sprite.gotoAndStop(2); this['h' + (v3 + 1)].sprite.internal.sprite.gotoAndStop(1); this['h' + (v3 + 1)].arm.gotoAndStop(_root.playerstuff.party[v3][5][4]); this['h' + (v3 + 1)].arm.mynum = v3; this['h' + (v3 + 1)].wep.gotoAndStop(_root.playerstuff.party[v3][6][7]); this['h' + (v3 + 1)].wep.mynum = v3; this['h' + (v3 + 1)].arm.onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip(_root.playerstuff.party[this.mynum][5][0] + '<new_line>Protection' + '<new_line>Physical: ' + _root.playerstuff.party[this.mynum][5][1] + '<new_line>Magical: ' + _root.playerstuff.party[this.mynum][5][2] + '<new_line> <new_line>Special Ability<new_line><new_line>' + _root.getarmourspecialname(_root.playerstuff.party[this.mynum][5][3]) + '<new_line>' + _root.getarmourspecialblurb(_root.playerstuff.party[this.mynum][5][3]) + '<new_line><new_line>Value: ' + _root.playerstuff.party[this.mynum][5][6] + 'gp<new_line>', '0xCCB700|0xCC5100|0x946538|0x008FCC|0xFFFFFF|0xCC5100|0xCC5100|0xF7AC00|0x7B7B7B|0xFFFFFF|0xDEF700', '22|14|20|20|16|14|16|16|16|12'); _root.myTooltip.show({'delay': 0.25, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; this['h' + (v3 + 1)].arm.onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; this['h' + (v3 + 1)].arm.onRelease = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; this['h' + (v3 + 1)].wep.onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); if (_root.playerstuff.party[this.mynum][6][5] == 'physical' || _root.playerstuff.party[this.mynum][6][5] == 'ranged') { _root.setuptip(_root.playerstuff.party[this.mynum][6][0] + '<new_line>Physical Damage<new_line>' + _root.playerstuff.party[this.mynum][6][3] + '<new_line><new_line> <new_line>Special Ability<new_line><new_line>' + _root.getweaponspecialname(_root.playerstuff.party[this.mynum][6][6]) + '<new_line>' + _root.getweaponspecialblurb(_root.playerstuff.party[this.mynum][6][6]) + '<new_line><new_line>Value: ' + _root.playerstuff.party[this.mynum][6][9] + 'gp<new_line>', '0xCCB700|0x946538|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xCC5100|0xCC5100|0xF7AC00|0x7B7B7B|0xFFFFFF|0xDEF700', '22|14|28|16|16|14|16|16|16|12'); } else { _root.setuptip(_root.playerstuff.party[this.mynum][6][0] + '<new_line>Magical Damage<new_line>' + _root.playerstuff.party[this.mynum][6][3] + '<new_line><new_line> <new_line>Special Ability<new_line><new_line>' + _root.getweaponspecialname(_root.playerstuff.party[this.mynum][6][6]) + '<new_line>' + _root.getweaponspecialblurb(_root.playerstuff.party[this.mynum][6][6]) + '<new_line><new_line>Value: ' + _root.playerstuff.party[this.mynum][6][9] + 'gp<new_line>', '0xCCB700|0x008FCC|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xCC5100|0xCC5100|0xF7AC00|0x7B7B7B|0xFFFFFF|0xDEF700', '22|14|28|16|16|14|16|16|16|12'); } _root.myTooltip.show({'delay': 0.25, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; this['h' + (v3 + 1)].wep.onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; this['h' + (v3 + 1)].wep.onRelease = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; this['h' + (v3 + 1)].sprite.onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); if (this.mydetails[12] > 0) { if (this.mydetails[13] > 0) { _root.setuptip2(this.mydetails[0] + '<new_line>' + this.mydetails[2] + '<new_line>Health: ' + this.mydetails[3][0] + ' / ' + this.mydetails[3][1] + '<new_line>Initiative: ' + this.mydetails[4] + '<new_line><new_line><new_line>' + this.mydetails[5][0] + '<new_line> Physical: ' + this.mydetails[5][1] + ' Magical: ' + this.mydetails[5][2] + '<new_line><new_line><new_line>' + this.mydetails[6][0] + '<new_line>' + 'Damage: ' + this.mydetails[6][3] + 'x' + this.mydetails[10] + ' DPS: ' + Math.round(this.mydetails[6][3] * (this.mydetails[6][4] / 30) * this.mydetails[10]) + '<new_line><new_line>Level ' + this.mydetails[11] + '<new_line>' + this.mydetails[9][0] + ' Exp. ' + (this.mydetails[9][1] - this.mydetails[9][0]) + ' more needed.<new_line> <new_line>' + _root.getherocombatspecialname(this.mydetails[12]) + '<new_line>' + _root.getherocombatspecialblurb(this.mydetails[12]) + '<new_line>' + _root.getherospecialname(this.mydetails[12]) + '<new_line>' + _root.getherospecialblurb(this.mydetails[12]) + '<new_line>', '0xFFFFFF|0xCC5100|0xFF0000|0xFDE724|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xCCB700|0xCCB700|0xCC5100|0xCC5100|0x8F8767|0xCC5100|0x8F8767', '22|14|16|16|16|16|16|16|16|16|16|16|16|16|16|14'); } else { _root.setuptip2(this.mydetails[0] + '<new_line>' + this.mydetails[2] + '<new_line>Health: ' + this.mydetails[3][0] + ' / ' + this.mydetails[3][1] + '<new_line>Initiative: ' + this.mydetails[4] + '<new_line><new_line><new_line>' + this.mydetails[5][0] + '<new_line> Physical: ' + this.mydetails[5][1] + ' Magical: ' + this.mydetails[5][2] + '<new_line><new_line><new_line>' + this.mydetails[6][0] + '<new_line>' + 'Damage: ' + this.mydetails[6][3] + 'x' + this.mydetails[10] + ' DPS: ' + Math.round(this.mydetails[6][3] * (this.mydetails[6][4] / 30) * this.mydetails[10]) + '<new_line><new_line>Level ' + this.mydetails[11] + '<new_line>' + this.mydetails[9][0] + ' Exp. ' + (this.mydetails[9][1] - this.mydetails[9][0]) + ' more needed.<new_line> <new_line>' + _root.getherocombatspecialname(this.mydetails[12]) + '<new_line>' + _root.getherocombatspecialblurb(this.mydetails[12]) + '<new_line>', '0xFFFFFF|0xCC5100|0xFF0000|0xFDE724|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xCCB700|0xCCB700|0xCC5100|0xCC5100|0x8F8767|0xCC5100|0x8F8767', '22|14|16|16|16|16|16|16|16|16|16|16|16|16|16|14'); } } else { if (this.mydetails[13] > 0) { _root.setuptip2(this.mydetails[0] + '<new_line>' + this.mydetails[2] + '<new_line>Health: ' + this.mydetails[3][0] + ' / ' + this.mydetails[3][1] + '<new_line>Initiative: ' + this.mydetails[4] + '<new_line><new_line><new_line>' + this.mydetails[5][0] + '<new_line> Physical: ' + this.mydetails[5][1] + ' Magical: ' + this.mydetails[5][2] + '<new_line><new_line><new_line>' + this.mydetails[6][0] + '<new_line>' + 'Damage: ' + this.mydetails[6][3] + 'x' + this.mydetails[10] + ' DPS: ' + Math.round(this.mydetails[6][3] * (this.mydetails[6][4] / 30) * this.mydetails[10]) + '<new_line><new_line>Level ' + this.mydetails[11] + '<new_line>' + this.mydetails[9][0] + ' Exp. ' + (this.mydetails[9][1] - this.mydetails[9][0]) + ' more needed.<new_line> <new_line>' + _root.getherospecialname(this.mydetails[13]) + '<new_line>' + _root.getherospecialblurb(this.mydetails[13]) + '<new_line>', '0xFFFFFF|0xCC5100|0xFF0000|0xFDE724|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xCCB700|0xCCB700|0xCC5100|0xCC5100|0x8F8767|0xCC5100|0x8F8767', '22|14|16|16|16|16|16|16|16|16|16|16|16|16|16|14'); } else { _root.setuptip2(this.mydetails[0] + '<new_line>' + this.mydetails[2] + '<new_line>Health: ' + this.mydetails[3][0] + ' / ' + this.mydetails[3][1] + '<new_line>Initiative: ' + this.mydetails[4] + '<new_line><new_line><new_line>' + this.mydetails[5][0] + '<new_line> Physical: ' + this.mydetails[5][1] + ' Magical: ' + this.mydetails[5][2] + '<new_line><new_line><new_line>' + this.mydetails[6][0] + '<new_line>' + 'Damage: ' + this.mydetails[6][3] + 'x' + this.mydetails[10] + ' DPS: ' + Math.round(this.mydetails[6][3] * (this.mydetails[6][4] / 30) * this.mydetails[10]) + '<new_line><new_line>Level ' + this.mydetails[11] + '<new_line>' + this.mydetails[9][0] + ' Exp. ' + (this.mydetails[9][1] - this.mydetails[9][0]) + ' more needed.<new_line>', '0xFFFFFF|0xCC5100|0xFF0000|0xFDE724|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xCCB700', '22|14|16|16'); } } _root.myTooltip.show({'delay': 0.25, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; this['h' + (v3 + 1)].sprite.onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; this['h' + (v3 + 1)].sprite.onRelease = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; } ++v3; } v3 = 0; while (v3 < 31) { if (_root.playerstuff.inventory[v3 + cpos] != undefined) { trace(_root.playerstuff.inventory[v3 + cpos]); this['i' + (v3 + 1)].mynum = v3 + cpos; this['i' + (v3 + 1)].equipping = false; if (_root.playerstuff.inventory[v3 + cpos][5] == 0) { this['i' + (v3 + 1)].mytype = 'armour'; if (_root.playerstuff.inventory[v3 + cpos][7] == 0) { this['i' + (v3 + 1)].usableby = 'melee'; } else { if (_root.playerstuff.inventory[v3 + cpos][7] == 1) { this['i' + (v3 + 1)].usableby = 'ranged'; } else { this['i' + (v3 + 1)].usableby = 'magic'; } } } else { this['i' + (v3 + 1)].mytype = 'weapon'; if (_root.playerstuff.inventory[v3 + cpos][10] == 0) { this['i' + (v3 + 1)].usableby = 'melee'; } else { if (_root.playerstuff.inventory[v3 + cpos][10] == 1) { this['i' + (v3 + 1)].usableby = 'ranged'; } else { this['i' + (v3 + 1)].usableby = 'magic'; } } } if (_root.playerstuff.inventory[v3 + cpos][5] == 0) { this['i' + (v3 + 1)].gotoAndStop(_root.playerstuff.inventory[v3 + cpos][4]); } else { this['i' + (v3 + 1)].gotoAndStop(_root.playerstuff.inventory[v3 + cpos][7]); } this['i' + (v3 + 1)].onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); if (!this.equipping && !_root.window.equippingsumin) { var v3 = 0; while (v3 < _root.playerstuff.party.length) { _root.window['h' + (v3 + 1)]._alpha = 100; ++v3; } } }; this['i' + (v3 + 1)].onReleaseOutside = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); if (!this.equipping && !_root.window.equippingsumin) { var v3 = 0; while (v3 < _root.playerstuff.party.length) { _root.window['h' + (v3 + 1)]._alpha = 100; ++v3; } } }; this['i' + (v3 + 1)].onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); if (!this.equipping && !_root.window.equippingsumin) { var v3 = 0; while (v3 < _root.playerstuff.party.length) { if (_root.playerstuff.party[v3][7] != this.usableby) { _root.window['h' + (v3 + 1)]._alpha = 25; } ++v3; } } if (this.mytype == 'armour') { _root.setuptip(_root.playerstuff.inventory[this.mynum][0] + '<new_line>Protection' + '<new_line>Physical: ' + _root.playerstuff.inventory[this.mynum][1] + '<new_line>Magical: ' + _root.playerstuff.inventory[this.mynum][2] + '<new_line> <new_line>Special Ability<new_line><new_line>' + _root.getarmourspecialname(_root.playerstuff.inventory[this.mynum][3]) + '<new_line>' + _root.getarmourspecialblurb(_root.playerstuff.inventory[this.mynum][3]) + '<new_line><new_line>Value: ' + _root.playerstuff.inventory[this.mynum][6] + 'gp<new_line>', '0xCCB700|0xCC5100|0x946538|0x008FCC|0xFFFFFF|0xCC5100|0xCC5100|0xF7AC00|0x7B7B7B|0xFFFFFF|0xDEF700', '22|14|20|20|16|14|16|16|16|12'); } else { if (_root.playerstuff.inventory[this.mynum][5] == 'physical' || _root.playerstuff.inventory[this.mynum][5] == 'ranged') { _root.setuptip(_root.playerstuff.inventory[this.mynum][0] + '<new_line>Physical Damage<new_line>' + _root.playerstuff.inventory[this.mynum][3] + '<new_line><new_line> <new_line>Special Ability<new_line><new_line>' + _root.getweaponspecialname(_root.playerstuff.inventory[this.mynum][6]) + '<new_line>' + _root.getweaponspecialblurb(_root.playerstuff.inventory[this.mynum][6]) + '<new_line><new_line>Value: ' + _root.playerstuff.inventory[this.mynum][9] + 'gp<new_line>', '0xCCB700|0x946538|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xCC5100|0xCC5100|0xF7AC00|0x7B7B7B|0xFFFFFF|0xDEF700', '22|14|28|16|16|14|16|16|16|12'); } else { _root.setuptip(_root.playerstuff.inventory[this.mynum][0] + '<new_line>Magical Damage<new_line>' + _root.playerstuff.inventory[this.mynum][3] + '<new_line><new_line> <new_line>Special Ability<new_line><new_line>' + _root.getweaponspecialname(_root.playerstuff.inventory[this.mynum][6]) + '<new_line>' + _root.getweaponspecialblurb(_root.playerstuff.inventory[this.mynum][6]) + '<new_line><new_line>Value: ' + _root.playerstuff.inventory[this.mynum][9] + 'gp<new_line>', '0xCCB700|0x008FCC|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xCC5100|0xCC5100|0xF7AC00|0x7B7B7B|0xFFFFFF|0xDEF700', '22|14|28|16|16|14|16|16|16|12'); } } _root.myTooltip.show({'delay': 0.25, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; this['i' + (v3 + 1)].onRelease = function () { if (!_root.window.equippingsumin) { _root.window.equippingsumin = true; toequip._visible = true; this.equipping = true; _root.window.equippingnum = this.mynum; _root.window.equiptype = this.mytype; _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); var v3 = 0; while (v3 < _root.playerstuff.party.length) { if (_root.playerstuff.party[v3][7] == this.usableby) { _root.window['h' + (v3 + 1)].onRollOver = function () { trace('Compare items'); _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); if (_root.window.equiptype == 'weapon') { trace('WEPAON'); if (_root.playerstuff.inventory[this.mynum][5] == 'physical' || _root.playerstuff.inventory[this.mynum][5] == 'ranged') { _root.setuptip(_root.playerstuff.party[this.mynum][6][0] + '<new_line>Physical Damage<new_line>' + _root.playerstuff.party[this.mynum][6][3] + '<new_line><new_line> <new_line>Special Ability<new_line><new_line>' + _root.getweaponspecialname(_root.playerstuff.party[this.mynum][6][6]) + '<new_line>' + _root.getweaponspecialblurb(_root.playerstuff.party[this.mynum][6][6]) + '<new_line><new_line>Value: ' + _root.playerstuff.party[this.mynum][6][9] + 'gp<new_line>', '0xCCB700|0x946538|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xCC5100|0xCC5100|0xF7AC00|0x7B7B7B|0xFFFFFF|0xDEF700', '22|14|28|16|16|14|16|16|16|12'); } else { _root.setuptip(_root.playerstuff.party[this.mynum][6][0] + '<new_line>Magical Damage<new_line>' + _root.playerstuff.party[this.mynum][6][3] + '<new_line><new_line> <new_line>Special Ability<new_line><new_line>' + _root.getweaponspecialname(_root.playerstuff.party[this.mynum][6][6]) + '<new_line>' + _root.getweaponspecialblurb(_root.playerstuff.party[this.mynum][6][6]) + '<new_line><new_line>Value: ' + _root.playerstuff.party[this.mynum][6][9] + 'gp<new_line>', '0xCCB700|0x008FCC|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xCC5100|0xCC5100|0xF7AC00|0x7B7B7B|0xFFFFFF|0xDEF700', '22|14|28|16|16|14|16|16|16|12'); } } else { trace('ARMOUR'); _root.setuptip('CURRENT ITEM<new_line>' + _root.playerstuff.party[this.mynum][5][0] + '<new_line>Protection' + '<new_line>Physical: ' + _root.playerstuff.party[this.mynum][5][1] + '<new_line>Magical: ' + _root.playerstuff.party[this.mynum][5][2] + '<new_line> <new_line>Special Ability<new_line><new_line>' + _root.getarmourspecialname(_root.playerstuff.party[this.mynum][5][3]) + '<new_line>' + _root.getarmourspecialblurb(_root.playerstuff.party[this.mynum][5][3]) + '<new_line><new_line>Value: ' + _root.playerstuff.party[this.mynum][5][6] + 'gp<new_line>', '0xCC5100|0xCCB700|0xCC5100|0x946538|0x008FCC|0xFFFFFF|0xCC5100|0xCC5100|0xF7AC00|0x7B7B7B|0xFFFFFF|0xDEF700', '20|22|14|20|20|16|14|16|16|16|12'); } _root.myTooltip.show({'delay': 0.25, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; _root.window['h' + (v3 + 1)].onRelease = function () { trace('replace ' + _root.window.equiptype); if (_root.window.equiptype == 'armour') { _root.playerstuff.inventory.push(_root.playerstuff.party[this.mynum][5].slice()); if (_root.playerstuff.party[this.mynum][5][3] == 10) { _root.playerstuff.party[this.mynum][10] -= 0.1; } else { if (_root.playerstuff.party[this.mynum][5][3] == 11) { _root.playerstuff.party[this.mynum][4] -= 10; } } _root.playerstuff.party[this.mynum][5] = _root.playerstuff.inventory[_root.window.equippingnum].slice(); if (_root.playerstuff.party[this.mynum][5][3] == 10) { _root.playerstuff.party[this.mynum][10] += 0.1; } else { if (_root.playerstuff.party[this.mynum][5][3] == 11) { _root.playerstuff.party[this.mynum][4] += 10; } } _root.playerstuff.inventory.splice(_root.window.equippingnum, 1); } else { _root.playerstuff.inventory.push(_root.playerstuff.party[this.mynum][6].slice()); if (_root.playerstuff.party[this.mynum][6][6] == 4) { _root.playerstuff.party[this.mynum][10] -= 0.1; } _root.playerstuff.party[this.mynum][6] = _root.playerstuff.inventory[_root.window.equippingnum].slice(); if (_root.playerstuff.party[this.mynum][6][6] == 4) { _root.playerstuff.party[this.mynum][10] += 0.1; } _root.playerstuff.inventory.splice(_root.window.equippingnum, 1); } _root.window.equippingsumin = false; _root.window.drawthis(); }; _root.window['h' + (v3 + 1)].onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; _root.window['h' + (v3 + 1)].onReleaseOutside = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; } ++v3; } } }; } else { this['i' + (v3 + 1)].gotoAndStop(145); } ++v3; } if (cpos == 0) { prev._alpha = 20; } else { prev._alpha = 100; prev.onRelease = function () { cpos -= 30; drawthis(); }; } if (_root.playerstuff.inventory.length - cpos > 30) { next._alpha = 100; next.onRelease = function () { cpos += 30; drawthis(); }; } else { next._alpha = 20; } } bg.onRelease = function () {}; bg.useHandCursor = false; _root.window.equippingsumin = false; cpos = 0; this.createEmptyMovieClip('spacer', this.getNextHighestDepth()); this.spacer.onEnterFrame = function () { if (Key.isDown(32)) { trace('SPACE IS DONW OK'); _root.window.toequip._visible = false; _root.window.drawthis(); _root.window.equippingsumin = false; } }; drawthis(); closeit.onRelease = function () { _root.setuppartybar(); com.greensock.TweenLite.to(_root.window, 0.15, {'_x': 655}); if (!_root.inadungeon) { _root.busy = false; } _root.window.createEmptyMovieClip('pauseit', _root.window.getNextHighestDepth()); _root.window.pauseit.ttl = 10; _root.window.pauseit.onEnterFrame = function () { --this.ttl; if (this.ttl == 0) { _root.window.gotoAndStop(1); this.removeMovieClip(); } }; }; } frame 3 { function drawthis() { golddisp.text = _root.playerstuff.wealth; var v3 = 0; while (v3 < 31) { trace(_root.playerstuff.inventory[v3 + cpos]); if (_root.playerstuff.inventory[v3 + cpos] != undefined) { this['i' + (v3 + 1)].mynum = v3 + cpos; this['i' + (v3 + 1)].equipping = false; if (_root.playerstuff.inventory[v3 + cpos][5] == 0) { this['i' + (v3 + 1)].mytype = 'armour'; if (_root.playerstuff.inventory[v3 + cpos][7] == 0) { this['i' + (v3 + 1)].usableby = 'melee'; } else { if (_root.playerstuff.inventory[v3 + cpos][7] == 1) { this['i' + (v3 + 1)].usableby = 'ranged'; } else { this['i' + (v3 + 1)].usableby = 'magic'; } } } else { this['i' + (v3 + 1)].mytype = 'weapon'; if (_root.playerstuff.inventory[v3 + cpos][10] == 0) { this['i' + (v3 + 1)].usableby = 'melee'; } else { if (_root.playerstuff.inventory[v3 + cpos][10] == 1) { this['i' + (v3 + 1)].usableby = 'ranged'; } else { this['i' + (v3 + 1)].usableby = 'magic'; } } } if (_root.playerstuff.inventory[v3 + cpos][5] == 0) { this['i' + (v3 + 1)].gotoAndStop(_root.playerstuff.inventory[v3 + cpos][4]); } else { this['i' + (v3 + 1)].gotoAndStop(_root.playerstuff.inventory[v3 + cpos][7]); } this['i' + (v3 + 1)].onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); if (!this.equipping) { var v3 = 0; while (v3 < _root.playerstuff.party.length) { _root.window['h' + (v3 + 1)]._alpha = 100; ++v3; } } }; this['i' + (v3 + 1)].onReleaseOutside = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); if (!this.equipping) { var v3 = 0; while (v3 < _root.playerstuff.party.length) { _root.window['h' + (v3 + 1)]._alpha = 100; ++v3; } } }; this['i' + (v3 + 1)].onRollOver = function () { if (_root.playerstuff.hasmerchant) { var v4 = 1.5; } else { var v4 = 2; } _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); var v3 = 0; while (v3 < _root.playerstuff.party.length) { if (_root.playerstuff.party[v3][7] != this.usableby) { _root.window['h' + (v3 + 1)]._alpha = 25; } ++v3; } if (this.mytype == 'armour') { _root.setuptip(_root.playerstuff.inventory[this.mynum][0] + '<new_line>Protection' + '<new_line>Physical: ' + _root.playerstuff.inventory[this.mynum][1] + '<new_line>Magical: ' + _root.playerstuff.inventory[this.mynum][2] + '<new_line> <new_line>Special Ability<new_line><new_line>' + _root.getarmourspecialname(_root.playerstuff.inventory[this.mynum][3]) + '<new_line>' + _root.getarmourspecialblurb(_root.playerstuff.inventory[this.mynum][3]) + '<new_line><new_line>Value: ' + _root.playerstuff.inventory[this.mynum][6] + 'gp<new_line>Merchant Offers: ' + Math.round(_root.playerstuff.inventory[this.mynum][6] / v4) + 'gp<new_line>', '0xCCB700|0xCC5100|0x946538|0x008FCC|0xFFFFFF|0xCC5100|0xCC5100|0xF7AC00|0x7B7B7B|0xFFFFFF|0xDEF700', '22|14|20|20|16|14|16|16|16|12|16'); } else { if (_root.playerstuff.inventory[this.mynum][5] == 'physical' || _root.playerstuff.inventory[this.mynum][5] == 'ranged') { _root.setuptip(_root.playerstuff.inventory[this.mynum][0] + '<new_line>Physical Damage<new_line>' + _root.playerstuff.inventory[this.mynum][3] + '<new_line><new_line> <new_line>Special Ability<new_line><new_line>' + _root.getweaponspecialname(_root.playerstuff.inventory[this.mynum][6]) + '<new_line>' + _root.getweaponspecialblurb(_root.playerstuff.inventory[this.mynum][6]) + '<new_line><new_line>Value: ' + _root.playerstuff.inventory[this.mynum][9] + 'gp<new_line>Merchant Offers: ' + Math.round(_root.playerstuff.inventory[this.mynum][9] / v4) + 'gp<new_line>', '0xCCB700|0x946538|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xCC5100|0xCC5100|0xF7AC00|0x7B7B7B|0xFFFFFF|0xDEF700', '22|14|28|16|16|14|16|16|16|12|16'); } else { _root.setuptip(_root.playerstuff.inventory[this.mynum][0] + '<new_line>Magical Damage<new_line>' + _root.playerstuff.inventory[this.mynum][3] + '<new_line><new_line> <new_line>Special Ability<new_line><new_line>' + _root.getweaponspecialname(_root.playerstuff.inventory[this.mynum][6]) + '<new_line>' + _root.getweaponspecialblurb(_root.playerstuff.inventory[this.mynum][6]) + '<new_line><new_line>Value: ' + _root.playerstuff.inventory[this.mynum][9] + 'gp<new_line>Merchant Offers: ' + Math.round(_root.playerstuff.inventory[this.mynum][9] / v4) + 'gp<new_line>', '0xCCB700|0x008FCC|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xCC5100|0xCC5100|0xF7AC00|0x7B7B7B|0xFFFFFF|0xDEF700', '22|14|28|16|16|14|16|16|16|12|16'); } } if (!_root.window.isopen) { _root.myTooltip.show({'delay': 0.25, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); } }; this['i' + (v3 + 1)].onRelease = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); if (!_root.window.isopen) { if (_root.playerstuff.hasmerchant) { var v3 = 1.5; } else { var v3 = 2; } if (this.mytype == 'armour') { var goldadd = Math.round(_root.playerstuff.inventory[this.mynum][6] / v3); } else { var goldadd = Math.round(_root.playerstuff.inventory[this.mynum][9] / v3); } _root.window.isopen = true; _root.playsfx('open'); _root.attachMovie('rusure', 'rusure', _root.getNextHighestDepth(), {'_x': 120, '_y': -150}); _root.rusure.line1.text = 'Sure you want to sell this item?'; _root.rusure.line2.text = 'All transactions are final and non-reversable. You will receive ' + goldadd + 'gp'; _root.rusure.no.onRelease = function () { _root.window.isopen = false; _root.rusure.removeMovieClip(); }; _root.rusure.yes.goldadd = goldadd; _root.rusure.yes.mynum = this.mynum; _root.rusure.yes.onRelease = function () { _root.playsfx('gold'); if (!isNaN(goldadd)) { _root.playerstuff.wealth += goldadd; } _root.golddisp.text = _root.playerstuff.wealth; _root.playerstuff.inventory.splice(this.mynum, 1); _root.window.isopen = false; _root.window.drawthis(); _root.rusure.removeMovieClip(); }; com.greensock.TweenLite.to(_root.rusure, 0.25, {'_y': 240}); } }; } else { this['i' + (v3 + 1)].gotoAndStop(145); } if (_root.playerstuff.shopstock[v3] != undefined) { this['s' + (v3 + 1)].mynum = v3; if (_root.playerstuff.shopstock[v3][5] == 0) { this['s' + (v3 + 1)].mytype = 'armour'; if (_root.playerstuff.shopstock[v3 + cpos][7] == 0) { this['i' + (v3 + 1)].usableby = 'melee'; } else { if (_root.playerstuff.shopstock[v3 + cpos][7] == 1) { this['i' + (v3 + 1)].usableby = 'ranged'; } else { this['s' + (v3 + 1)].usableby = 'magic'; } } } else { this['s' + (v3 + 1)].mytype = 'weapon'; if (_root.playerstuff.shopstock[v3 + cpos][10] == 0) { this['i' + (v3 + 1)].usableby = 'melee'; } else { if (_root.playerstuff.shopstock[v3 + cpos][10] == 1) { this['i' + (v3 + 1)].usableby = 'ranged'; } else { this['s' + (v3 + 1)].usableby = 'magic'; } } } if (_root.playerstuff.shopstock[v3][5] == 0) { this['s' + (v3 + 1)].gotoAndStop(_root.playerstuff.shopstock[v3][4]); } else { this['s' + (v3 + 1)].gotoAndStop(_root.playerstuff.shopstock[v3][7]); } this['s' + (v3 + 1)].onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; this['s' + (v3 + 1)].onReleaseOutside = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; this['s' + (v3 + 1)].onRollOver = function () { if (_root.playerstuff.hasmerchant) { var v3 = 0.9; } else { var v3 = 1; } _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); if (this.mytype == 'armour') { if (_root.playerstuff.wealth >= Math.round(_root.playerstuff.shopstock[this.mynum][6] * v3)) { _root.setuptip(_root.playerstuff.shopstock[this.mynum][0] + '<new_line>Protection' + '<new_line>Physical: ' + _root.playerstuff.shopstock[this.mynum][1] + '<new_line>Magical: ' + _root.playerstuff.shopstock[this.mynum][2] + '<new_line> <new_line>Special Ability<new_line><new_line>' + _root.getarmourspecialname(_root.playerstuff.shopstock[this.mynum][3]) + '<new_line>' + _root.getarmourspecialblurb(_root.playerstuff.shopstock[this.mynum][3]) + '<new_line><new_line>Value: ' + _root.playerstuff.shopstock[this.mynum][6] + 'gp<new_line>Merchant Asks: ' + Math.round(_root.playerstuff.shopstock[this.mynum][6] * v3) + 'gp<new_line>', '0xCCB700|0xCC5100|0x946538|0x008FCC|0xFFFFFF|0xCC5100|0xCC5100|0xF7AC00|0x7B7B7B|0xFFFFFF|0xDEF700', '22|14|20|20|16|14|16|16|16|12|16'); } else { _root.setuptip(_root.playerstuff.shopstock[this.mynum][0] + '<new_line>Protection' + '<new_line>Physical: ' + _root.playerstuff.shopstock[this.mynum][1] + '<new_line>Magical: ' + _root.playerstuff.shopstock[this.mynum][2] + '<new_line> <new_line>Special Ability<new_line><new_line>' + _root.getarmourspecialname(_root.playerstuff.shopstock[this.mynum][3]) + '<new_line>' + _root.getarmourspecialblurb(_root.playerstuff.shopstock[this.mynum][3]) + '<new_line><new_line>Value: ' + _root.playerstuff.shopstock[this.mynum][6] + 'gp<new_line>Merchant Asks: ' + Math.round(_root.playerstuff.shopstock[this.mynum][6] * v3) + 'gp<new_line>You can\'t afford this item<new_line>', '0xCCB700|0xCC5100|0x946538|0x008FCC|0xFFFFFF|0xCC5100|0xCC5100|0xF7AC00|0x7B7B7B|0xFFFFFF|0xDEF700|0xDEF700|0xFF0000', '22|14|20|20|16|14|16|16|16|12|16'); } } else { if (_root.playerstuff.shopstock[this.mynum][5] == 'physical' || _root.playerstuff.shopstock[this.mynum][5] == 'ranged') { if (_root.playerstuff.wealth >= Math.round(_root.playerstuff.shopstock[this.mynum][6] * v3)) { _root.setuptip(_root.playerstuff.shopstock[this.mynum][0] + '<new_line>Physical Damage<new_line>' + _root.playerstuff.shopstock[this.mynum][3] + '<new_line><new_line> <new_line>Special Ability<new_line><new_line>' + _root.getweaponspecialname(_root.playerstuff.shopstock[this.mynum][6]) + '<new_line>' + _root.getweaponspecialblurb(_root.playerstuff.shopstock[this.mynum][6]) + '<new_line><new_line>Value: ' + _root.playerstuff.shopstock[this.mynum][9] + 'gp<new_line>Merchant Asks: ' + Math.round(_root.playerstuff.shopstock[this.mynum][9] * v3) + 'gp<new_line>', '0xCCB700|0x946538|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xCC5100|0xCC5100|0xF7AC00|0x7B7B7B|0xFFFFFF|0xDEF700', '22|14|28|16|16|14|16|16|16|12|16'); } else { _root.setuptip(_root.playerstuff.shopstock[this.mynum][0] + '<new_line>Physical Damage<new_line>' + _root.playerstuff.shopstock[this.mynum][3] + '<new_line><new_line> <new_line>Special Ability<new_line><new_line>' + _root.getweaponspecialname(_root.playerstuff.shopstock[this.mynum][6]) + '<new_line>' + _root.getweaponspecialblurb(_root.playerstuff.shopstock[this.mynum][6]) + '<new_line><new_line>Value: ' + _root.playerstuff.shopstock[this.mynum][9] + 'gp<new_line>Merchant Asks: ' + Math.round(_root.playerstuff.shopstock[this.mynum][9] * v3) + 'gp<new_line>You can\'t afford this item<new_line>', '0xCCB700|0x946538|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xCC5100|0xCC5100|0xF7AC00|0x7B7B7B|0xFFFFFF|0xDEF700|0xDEF700|0xFF0000', '22|14|28|16|16|14|16|16|16|12|16'); } } else { if (_root.playerstuff.wealth >= Math.round(_root.playerstuff.shopstock[this.mynum][6] * v3)) { _root.setuptip(_root.playerstuff.shopstock[this.mynum][0] + '<new_line>Magical Damage<new_line>' + _root.playerstuff.shopstock[this.mynum][3] + '<new_line><new_line> <new_line>Special Ability<new_line><new_line>' + _root.getweaponspecialname(_root.playerstuff.shopstock[this.mynum][6]) + '<new_line>' + _root.getweaponspecialblurb(_root.playerstuff.shopstock[this.mynum][6]) + '<new_line><new_line>Value: ' + _root.playerstuff.shopstock[this.mynum][9] + 'gp<new_line>Merchant Asks: ' + Math.round(_root.playerstuff.shopstock[this.mynum][9] * v3) + 'gp<new_line>', '0xCCB700|0x008FCC|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xCC5100|0xCC5100|0xF7AC00|0x7B7B7B|0xFFFFFF|0xDEF700', '22|14|28|16|16|14|16|16|16|12|16'); } else { _root.setuptip(_root.playerstuff.shopstock[this.mynum][0] + '<new_line>Magical Damage<new_line>' + _root.playerstuff.shopstock[this.mynum][3] + '<new_line><new_line> <new_line>Special Ability<new_line><new_line>' + _root.getweaponspecialname(_root.playerstuff.shopstock[this.mynum][6]) + '<new_line>' + _root.getweaponspecialblurb(_root.playerstuff.shopstock[this.mynum][6]) + '<new_line><new_line>Value: ' + _root.playerstuff.shopstock[this.mynum][9] + 'gp<new_line>Merchant Asks: ' + Math.round(_root.playerstuff.shopstock[this.mynum][9] * v3) + 'gp<new_line>You can\'t afford this item<new_line>', '0xCCB700|0x008FCC|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xCC5100|0xCC5100|0xF7AC00|0x7B7B7B|0xFFFFFF|0xDEF700|0xDEF700|0xFF0000', '22|14|28|16|16|14|16|16|16|12|16'); } } } if (!_root.window.isopen) { _root.myTooltip.show({'delay': 0.25, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); } }; this['s' + (v3 + 1)].onRelease = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); if (!_root.window.isopen && this.canafford) { if (_root.playerstuff.hasmerchant) { var v3 = 0.9; } else { var v3 = 1; } if (this.mytype == 'armour') { var goldadd = Math.round(_root.playerstuff.shopstock[this.mynum][6] * v3); } else { var goldadd = Math.round(_root.playerstuff.shopstock[this.mynum][9] * v3); } _root.window.isopen = true; _root.playsfx('open'); _root.attachMovie('rusure', 'rusure', _root.getNextHighestDepth(), {'_x': 120, '_y': -150}); _root.rusure.line1.text = 'Sure you want to buy this item?'; _root.rusure.line2.text = 'All transactions are final and non-reversable. You will pay ' + goldadd + 'gp'; _root.rusure.no.onRelease = function () { _root.window.isopen = false; _root.rusure.removeMovieClip(); }; _root.rusure.yes.mytype = this.mytype; _root.rusure.yes.goldadd = goldadd; _root.rusure.yes.mynum = this.mynum; _root.rusure.yes.onRelease = function () { _root.playsfx('gold'); _root.playerstuff.wealth -= goldadd; _root.golddisp.text = _root.playerstuff.wealth; _root.playerstuff.inventory.push(_root.playerstuff.shopstock[this.mynum].slice()); _root.playerstuff.shopstock.splice(this.mynum, 1); _root.window.isopen = false; if (this.mytype == 'armour') { ++_root.playerstuff.tracker[4]; } else { ++_root.playerstuff.tracker[3]; } _root.saveingame(); _root.window.drawthis(); _root.rusure.removeMovieClip(); }; com.greensock.TweenLite.to(_root.rusure, 0.25, {'_y': 240}); } }; if (_root.playerstuff.hasmerchant) { var v6 = 0.9; } else { var v6 = 1; } var v4 = 0; while (v4 < 30) { if (this['s' + (v4 + 1)].mytype == 'armour') { if (_root.playerstuff.wealth < Math.round(_root.playerstuff.shopstock[v4][6] * v6)) { this['s' + (v4 + 1)]._alpha = 25; this['s' + (v4 + 1)].canafford = false; } else { this['s' + (v4 + 1)]._alpha = 100; this['s' + (v4 + 1)].canafford = true; } } else { if (_root.playerstuff.wealth < Math.round(_root.playerstuff.shopstock[v4][9] * v6)) { this['s' + (v4 + 1)]._alpha = 25; this['s' + (v4 + 1)].canafford = false; } else { this['s' + (v4 + 1)]._alpha = 100; this['s' + (v4 + 1)].canafford = true; } } ++v4; } } else { this['s' + (v3 + 1)].gotoAndStop(145); this['s' + (v3 + 1)].enabled = false; } ++v3; } if (cpos == 0) { prev._alpha = 20; } else { prev._alpha = 100; prev.onRelease = function () { cpos -= 30; drawthis(); }; } if (_root.playerstuff.inventory.length - cpos > 30) { next._alpha = 100; next.onRelease = function () { cpos += 30; drawthis(); }; } else { next._alpha = 20; } } bg.onRelease = function () {}; bg.useHandCursor = false; cpos = 0; isopen = false; drawthis(); closeit.onRelease = function () { _root.setuppartybar(); if (!_root.inaadungeon) { _root.busy = false; } com.greensock.TweenLite.to(_root.window, 0.15, {'_x': 655}); _root.window.createEmptyMovieClip('pauseit', _root.window.getNextHighestDepth()); _root.window.pauseit.ttl = 10; _root.window.pauseit.onEnterFrame = function () { --this.ttl; if (this.ttl == 0) { _root.window.gotoAndStop(1); this.removeMovieClip(); } }; }; } frame 4 { function drawthis() { var v3 = 0; while (v3 < 12) { if (_root.playerstuff.party.length - 1 < v3) { this['h' + (v3 + 1)]._visible = false; } else { delete this['h' + (v3 + 1)].onRollOver; delete this['h' + (v3 + 1)].onRelease; delete this['h' + (v3 + 1)].onReleaseOutside; delete this['h' + (v3 + 1)].onRollOut; _root.myTooltip.hide({'animationTime': 0, 'animationType': 'linear'}); _root.myTooltip2.hide({'animationTime': 0, 'animationType': 'linear'}); if (_root.playerstuff.party[v3][16]) { this['h' + (v3 + 1)]._alpha = 25; } else { this['h' + (v3 + 1)]._alpha = 100; } this['h' + (v3 + 1)].mynum = v3; this['h' + (v3 + 1)].arm.mynum = v3; this['h' + (v3 + 1)].wep.mynum = v3; this['h' + (v3 + 1)]._visible = true; this['h' + (v3 + 1)].sprite.mynum = v3; this['h' + (v3 + 1)].sprite.mydetails = _root.playerstuff.party[v3]; this['h' + (v3 + 1)].sprite.armnum = _root.playerstuff.party[v3][1]; this['h' + (v3 + 1)].sprite.wepnum = _root.playerstuff.party[v3][6][1]; this['h' + (v3 + 1)].sprite.internal.sprite.gotoAndStop(2); this['h' + (v3 + 1)].sprite.internal.sprite.gotoAndStop(1); this['h' + (v3 + 1)].arm.gotoAndStop(_root.playerstuff.party[v3][5][4]); this['h' + (v3 + 1)].arm.mynum = v3; this['h' + (v3 + 1)].wep.gotoAndStop(_root.playerstuff.party[v3][6][7]); this['h' + (v3 + 1)].wep.mynum = v3; this['h' + (v3 + 1)].arm.onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip(_root.playerstuff.party[this.mynum][5][0] + '<new_line>Protection' + '<new_line>Physical: ' + _root.playerstuff.party[this.mynum][5][1] + '<new_line>Magical: ' + _root.playerstuff.party[this.mynum][5][2] + '<new_line> <new_line>Special Ability<new_line><new_line>' + _root.getarmourspecialname(_root.playerstuff.party[this.mynum][5][3]) + '<new_line>' + _root.getarmourspecialblurb(_root.playerstuff.party[this.mynum][5][3]) + '<new_line><new_line>Value: ' + _root.playerstuff.party[this.mynum][5][6] + 'gp<new_line>', '0xCCB700|0xCC5100|0x946538|0x008FCC|0xFFFFFF|0xCC5100|0xCC5100|0xF7AC00|0x7B7B7B|0xFFFFFF|0xDEF700', '22|14|20|20|16|14|16|16|16|12'); _root.myTooltip.show({'delay': 0.25, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; this['h' + (v3 + 1)].arm.onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; this['h' + (v3 + 1)].arm.onRelease = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; this['h' + (v3 + 1)].wep.onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); if (_root.playerstuff.party[this.mynum][6][5] == 'physical' || _root.playerstuff.party[this.mynum][6][5] == 'ranged') { _root.setuptip(_root.playerstuff.party[this.mynum][6][0] + '<new_line>Physical Damage<new_line>' + _root.playerstuff.party[this.mynum][6][3] + '<new_line><new_line> <new_line>Special Ability<new_line><new_line>' + _root.getweaponspecialname(_root.playerstuff.party[this.mynum][6][6]) + '<new_line>' + _root.getweaponspecialblurb(_root.playerstuff.party[this.mynum][6][6]) + '<new_line><new_line>Value: ' + _root.playerstuff.party[this.mynum][6][9] + 'gp<new_line>', '0xCCB700|0x946538|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xCC5100|0xCC5100|0xF7AC00|0x7B7B7B|0xFFFFFF|0xDEF700', '22|14|28|16|16|14|16|16|16|12'); } else { _root.setuptip(_root.playerstuff.party[this.mynum][6][0] + '<new_line>Magical Damage<new_line>' + _root.playerstuff.party[this.mynum][6][3] + '<new_line><new_line> <new_line>Special Ability<new_line><new_line>' + _root.getweaponspecialname(_root.playerstuff.party[this.mynum][6][6]) + '<new_line>' + _root.getweaponspecialblurb(_root.playerstuff.party[this.mynum][6][6]) + '<new_line><new_line>Value: ' + _root.playerstuff.party[this.mynum][6][9] + 'gp<new_line>', '0xCCB700|0x008FCC|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xCC5100|0xCC5100|0xF7AC00|0x7B7B7B|0xFFFFFF|0xDEF700', '22|14|28|16|16|14|16|16|16|12'); } _root.myTooltip.show({'delay': 0.25, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; this['h' + (v3 + 1)].wep.onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; this['h' + (v3 + 1)].wep.onRelease = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; this['h' + (v3 + 1)].sprite.onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); if (this.mydetails[12] > 0) { if (this.mydetails[13] > 0) { _root.setuptip2(this.mydetails[0] + '<new_line>' + this.mydetails[2] + '<new_line>Health: ' + this.mydetails[3][0] + ' / ' + this.mydetails[3][1] + '<new_line>Initiative: ' + this.mydetails[4] + '<new_line><new_line><new_line>' + this.mydetails[5][0] + '<new_line> Physical: ' + this.mydetails[5][1] + ' Magical: ' + this.mydetails[5][2] + '<new_line><new_line><new_line>' + this.mydetails[6][0] + '<new_line>' + 'Damage: ' + this.mydetails[6][3] + 'x' + this.mydetails[10] + ' DPS: ' + Math.round(this.mydetails[6][3] * (this.mydetails[6][4] / 30) * this.mydetails[10]) + '<new_line><new_line>Level ' + this.mydetails[11] + '<new_line>' + this.mydetails[9][0] + ' Exp. ' + (this.mydetails[9][1] - this.mydetails[9][0]) + ' more needed.<new_line> <new_line>' + _root.getherocombatspecialname(this.mydetails[12]) + '<new_line>' + _root.getherocombatspecialblurb(this.mydetails[12]) + '<new_line>' + _root.getherospecialname(this.mydetails[12]) + '<new_line>' + _root.getherospecialblurb(this.mydetails[12]) + '<new_line>', '0xFFFFFF|0xCC5100|0xFF0000|0xFDE724|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xCCB700|0xCCB700|0xCC5100|0xCC5100|0x8F8767|0xCC5100|0x8F8767', '22|14|16|16|16|16|16|16|16|16|16|16|16|16|16|14'); } else { _root.setuptip2(this.mydetails[0] + '<new_line>' + this.mydetails[2] + '<new_line>Health: ' + this.mydetails[3][0] + ' / ' + this.mydetails[3][1] + '<new_line>Initiative: ' + this.mydetails[4] + '<new_line><new_line><new_line>' + this.mydetails[5][0] + '<new_line> Physical: ' + this.mydetails[5][1] + ' Magical: ' + this.mydetails[5][2] + '<new_line><new_line><new_line>' + this.mydetails[6][0] + '<new_line>' + 'Damage: ' + this.mydetails[6][3] + 'x' + this.mydetails[10] + ' DPS: ' + Math.round(this.mydetails[6][3] * (this.mydetails[6][4] / 30) * this.mydetails[10]) + '<new_line><new_line>Level ' + this.mydetails[11] + '<new_line>' + this.mydetails[9][0] + ' Exp. ' + (this.mydetails[9][1] - this.mydetails[9][0]) + ' more needed.<new_line> <new_line>' + _root.getherocombatspecialname(this.mydetails[12]) + '<new_line>' + _root.getherocombatspecialblurb(this.mydetails[12]) + '<new_line>', '0xFFFFFF|0xCC5100|0xFF0000|0xFDE724|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xCCB700|0xCCB700|0xCC5100|0xCC5100|0x8F8767|0xCC5100|0x8F8767', '22|14|16|16|16|16|16|16|16|16|16|16|16|16|16|14'); } } else { if (this.mydetails[13] > 0) { _root.setuptip2(this.mydetails[0] + '<new_line>' + this.mydetails[2] + '<new_line>Health: ' + this.mydetails[3][0] + ' / ' + this.mydetails[3][1] + '<new_line>Initiative: ' + this.mydetails[4] + '<new_line><new_line><new_line>' + this.mydetails[5][0] + '<new_line> Physical: ' + this.mydetails[5][1] + ' Magical: ' + this.mydetails[5][2] + '<new_line><new_line><new_line>' + this.mydetails[6][0] + '<new_line>' + 'Damage: ' + this.mydetails[6][3] + 'x' + this.mydetails[10] + ' DPS: ' + Math.round(this.mydetails[6][3] * (this.mydetails[6][4] / 30) * this.mydetails[10]) + '<new_line><new_line>Level ' + this.mydetails[11] + '<new_line>' + this.mydetails[9][0] + ' Exp. ' + (this.mydetails[9][1] - this.mydetails[9][0]) + ' more needed.<new_line> <new_line>' + _root.getherospecialname(this.mydetails[13]) + '<new_line>' + _root.getherospecialblurb(this.mydetails[13]) + '<new_line>', '0xFFFFFF|0xCC5100|0xFF0000|0xFDE724|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xCCB700|0xCCB700|0xCC5100|0xCC5100|0x8F8767|0xCC5100|0x8F8767', '22|14|16|16|16|16|16|16|16|16|16|16|16|16|16|14'); } else { _root.setuptip2(this.mydetails[0] + '<new_line>' + this.mydetails[2] + '<new_line>Health: ' + this.mydetails[3][0] + ' / ' + this.mydetails[3][1] + '<new_line>Initiative: ' + this.mydetails[4] + '<new_line><new_line><new_line>' + this.mydetails[5][0] + '<new_line> Physical: ' + this.mydetails[5][1] + ' Magical: ' + this.mydetails[5][2] + '<new_line><new_line><new_line>' + this.mydetails[6][0] + '<new_line>' + 'Damage: ' + this.mydetails[6][3] + 'x' + this.mydetails[10] + ' DPS: ' + Math.round(this.mydetails[6][3] * (this.mydetails[6][4] / 30) * this.mydetails[10]) + '<new_line><new_line>Level ' + this.mydetails[11] + '<new_line>' + this.mydetails[9][0] + ' Exp. ' + (this.mydetails[9][1] - this.mydetails[9][0]) + ' more needed.<new_line>', '0xFFFFFF|0xCC5100|0xFF0000|0xFDE724|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xCCB700', '22|14|16|16'); } } _root.myTooltip.show({'delay': 0.25, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; this['h' + (v3 + 1)].sprite.onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; this['h' + (v3 + 1)].sprite.onRelease = function () { if (!isopen) { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); if (!_root.playerstuff.party[this.mynum][16]) { _root.window.selectedhero = this.mynum; _root.window.sh.mynum = this.mynum; _root.window.drawthis(); } } }; } ++v3; } if (selectedhero > -1) { sh._visible = true; ascendbutton._alpha = 100; delete sh.onRollOver; delete sh.onRelease; delete sh.onReleaseOutside; delete sh.onRollOut; sh.arm.mynum = sh.mynum; sh.wep.mynum = sh.mynum; sh.sprite.mynum = sh.mynum; sh.sprite.mydetails = _root.playerstuff.party[sh.mynum]; sh.sprite.armnum = _root.playerstuff.party[sh.mynum][1]; sh.sprite.wepnum = _root.playerstuff.party[sh.mynum][6][1]; sh.sprite.internal.sprite.gotoAndStop(2); sh.sprite.internal.sprite.gotoAndStop(1); sh.arm.gotoAndStop(_root.playerstuff.party[sh.mynum][5][4]); sh.wep.gotoAndStop(_root.playerstuff.party[sh.mynum][6][7]); sh.arm.onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); _root.setuptip(_root.playerstuff.party[this.mynum][5][0] + '<new_line>Protection' + '<new_line>Physical: ' + _root.playerstuff.party[this.mynum][5][1] + '<new_line>Magical: ' + _root.playerstuff.party[this.mynum][5][2] + '<new_line> <new_line>Special Ability<new_line><new_line>' + _root.getarmourspecialname(_root.playerstuff.party[this.mynum][5][3]) + '<new_line>' + _root.getarmourspecialblurb(_root.playerstuff.party[this.mynum][5][3]) + '<new_line><new_line>Value: ' + _root.playerstuff.party[this.mynum][5][6] + 'gp<new_line>', '0xCCB700|0xCC5100|0x946538|0x008FCC|0xFFFFFF|0xCC5100|0xCC5100|0xF7AC00|0x7B7B7B|0xFFFFFF|0xDEF700', '22|14|20|20|16|14|16|16|16|12'); _root.myTooltip.show({'delay': 0.25, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; sh.arm.onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; sh.arm.onRelease = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; sh.wep.onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); if (_root.playerstuff.party[this.mynum][6][5] == 'physical' || _root.playerstuff.party[this.mynum][6][5] == 'ranged') { _root.setuptip(_root.playerstuff.party[this.mynum][6][0] + '<new_line>Physical Damage<new_line>' + _root.playerstuff.party[this.mynum][6][3] + '<new_line><new_line> <new_line>Special Ability<new_line><new_line>' + _root.getweaponspecialname(_root.playerstuff.party[this.mynum][6][6]) + '<new_line>' + _root.getweaponspecialblurb(_root.playerstuff.party[this.mynum][6][6]) + '<new_line><new_line>Value: ' + _root.playerstuff.party[this.mynum][6][9] + 'gp<new_line>', '0xCCB700|0x946538|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xCC5100|0xCC5100|0xF7AC00|0x7B7B7B|0xFFFFFF|0xDEF700', '22|14|28|16|16|14|16|16|16|12'); } else { _root.setuptip(_root.playerstuff.party[this.mynum][6][0] + '<new_line>Magical Damage<new_line>' + _root.playerstuff.party[this.mynum][6][3] + '<new_line><new_line> <new_line>Special Ability<new_line><new_line>' + _root.getweaponspecialname(_root.playerstuff.party[this.mynum][6][6]) + '<new_line>' + _root.getweaponspecialblurb(_root.playerstuff.party[this.mynum][6][6]) + '<new_line><new_line>Value: ' + _root.playerstuff.party[this.mynum][6][9] + 'gp<new_line>', '0xCCB700|0x008FCC|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xCC5100|0xCC5100|0xF7AC00|0x7B7B7B|0xFFFFFF|0xDEF700', '22|14|28|16|16|14|16|16|16|12'); } _root.myTooltip.show({'delay': 0.25, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; sh.wep.onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; sh.wep.onRelease = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; sh.sprite.onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); if (this.mydetails[12] > 0) { if (this.mydetails[13] > 0) { _root.setuptip2(this.mydetails[0] + '<new_line>' + this.mydetails[2] + '<new_line>Health: ' + this.mydetails[3][0] + ' / ' + this.mydetails[3][1] + '<new_line>Initiative: ' + this.mydetails[4] + '<new_line><new_line><new_line>' + this.mydetails[5][0] + '<new_line> Physical: ' + this.mydetails[5][1] + ' Magical: ' + this.mydetails[5][2] + '<new_line><new_line><new_line>' + this.mydetails[6][0] + '<new_line>' + 'Damage: ' + this.mydetails[6][3] + 'x' + this.mydetails[10] + ' DPS: ' + Math.round(this.mydetails[6][3] * (this.mydetails[6][4] / 30) * this.mydetails[10]) + '<new_line><new_line>Level ' + this.mydetails[11] + '<new_line>' + this.mydetails[9][0] + ' Exp. ' + (this.mydetails[9][1] - this.mydetails[9][0]) + ' more needed.<new_line> <new_line>' + _root.getherocombatspecialname(this.mydetails[12]) + '<new_line>' + _root.getherocombatspecialblurb(this.mydetails[12]) + '<new_line>' + _root.getherospecialname(this.mydetails[13]) + '<new_line>' + _root.getherospecialblurb(this.mydetails[13]) + '<new_line>', '0xFFFFFF|0xCC5100|0xFF0000|0xFDE724|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xCCB700|0xCCB700|0xCC5100|0xCC5100|0x8F8767|0xCC5100|0x8F8767', '22|14|16|16|16|16|16|16|16|16|16|16|16|16|16|14'); } else { _root.setuptip2(this.mydetails[0] + '<new_line>' + this.mydetails[2] + '<new_line>Health: ' + this.mydetails[3][0] + ' / ' + this.mydetails[3][1] + '<new_line>Initiative: ' + this.mydetails[4] + '<new_line><new_line><new_line>' + this.mydetails[5][0] + '<new_line> Physical: ' + this.mydetails[5][1] + ' Magical: ' + this.mydetails[5][2] + '<new_line><new_line><new_line>' + this.mydetails[6][0] + '<new_line>' + 'Damage: ' + this.mydetails[6][3] + 'x' + this.mydetails[10] + ' DPS: ' + Math.round(this.mydetails[6][3] * (this.mydetails[6][4] / 30) * this.mydetails[10]) + '<new_line><new_line>Level ' + this.mydetails[11] + '<new_line>' + this.mydetails[9][0] + ' Exp. ' + (this.mydetails[9][1] - this.mydetails[9][0]) + ' more needed.<new_line> <new_line>' + _root.getherocombatspecialname(this.mydetails[12]) + '<new_line>' + _root.getherocombatspecialblurb(this.mydetails[12]) + '<new_line>', '0xFFFFFF|0xCC5100|0xFF0000|0xFDE724|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xCCB700|0xCCB700|0xCC5100|0xCC5100|0x8F8767|0xCC5100|0x8F8767', '22|14|16|16|16|16|16|16|16|16|16|16|16|16|16|14'); } } else { if (this.mydetails[13] > 0) { _root.setuptip2(this.mydetails[0] + '<new_line>' + this.mydetails[2] + '<new_line>Health: ' + this.mydetails[3][0] + ' / ' + this.mydetails[3][1] + '<new_line>Initiative: ' + this.mydetails[4] + '<new_line><new_line><new_line>' + this.mydetails[5][0] + '<new_line> Physical: ' + this.mydetails[5][1] + ' Magical: ' + this.mydetails[5][2] + '<new_line><new_line><new_line>' + this.mydetails[6][0] + '<new_line>' + 'Damage: ' + this.mydetails[6][3] + 'x' + this.mydetails[10] + ' DPS: ' + Math.round(this.mydetails[6][3] * (this.mydetails[6][4] / 30) * this.mydetails[10]) + '<new_line><new_line>Level ' + this.mydetails[11] + '<new_line>' + this.mydetails[9][0] + ' Exp. ' + (this.mydetails[9][1] - this.mydetails[9][0]) + ' more needed.<new_line> <new_line>' + _root.getherospecialname(this.mydetails[13]) + '<new_line>' + _root.getherospecialblurb(this.mydetails[13]) + '<new_line>', '0xFFFFFF|0xCC5100|0xFF0000|0xFDE724|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xCCB700|0xCCB700|0xCC5100|0xCC5100|0x8F8767|0xCC5100|0x8F8767', '22|14|16|16|16|16|16|16|16|16|16|16|16|16|16|14'); } else { _root.setuptip2(this.mydetails[0] + '<new_line>' + this.mydetails[2] + '<new_line>Health: ' + this.mydetails[3][0] + ' / ' + this.mydetails[3][1] + '<new_line>Initiative: ' + this.mydetails[4] + '<new_line><new_line><new_line>' + this.mydetails[5][0] + '<new_line> Physical: ' + this.mydetails[5][1] + ' Magical: ' + this.mydetails[5][2] + '<new_line><new_line><new_line>' + this.mydetails[6][0] + '<new_line>' + 'Damage: ' + this.mydetails[6][3] + 'x' + this.mydetails[10] + ' DPS: ' + Math.round(this.mydetails[6][3] * (this.mydetails[6][4] / 30) * this.mydetails[10]) + '<new_line><new_line>Level ' + this.mydetails[11] + '<new_line>' + this.mydetails[9][0] + ' Exp. ' + (this.mydetails[9][1] - this.mydetails[9][0]) + ' more needed.<new_line>', '0xFFFFFF|0xCC5100|0xFF0000|0xFDE724|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xCCB700', '22|14|16|16'); } } _root.myTooltip.show({'delay': 0.25, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; sh.sprite.onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; sh.sprite.onRelease = function () { if (!isopen) { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); _root.window.selectedhero = -1; _root.window.sh.mynum = this.mynum; _root.window.drawthis(); } }; var v4 = 2; if (_root.playerstuff.party[sh.mynum][11] == 1) { v4 = 2; } else { if (_root.playerstuff.party[sh.mynum][11] == 2) { v4 = 4; } else { if (_root.playerstuff.party[sh.mynum][11] == 3) { v4 = 5; } else { if (_root.playerstuff.party[sh.mynum][11] == 4) { v4 = 7; } else { if (_root.playerstuff.party[sh.mynum][11] == 5) { v4 = 9; } else { if (_root.playerstuff.party[sh.mynum][11] == 6) { v4 = 10; } else { if (_root.playerstuff.party[sh.mynum][11] == 7) { v4 = 15; } else { if (_root.playerstuff.party[sh.mynum][11] == 8) { v4 = 20; } else { if (_root.playerstuff.party[sh.mynum][11] == 9) { v4 = 30; } else { v4 = 75; } } } } } } } } } _root.window.ascendbutton.chance = v4; _root.window.ascendbutton.mynum = sh.mynum; _root.window.line1.text = v4 + '%'; _root.window.ascendbutton.onRollOver = function () { this.gotoAndStop(2); }; _root.window.ascendbutton.onRollOut = function () { this.gotoAndStop(1); }; _root.window.ascendbutton.onReleaseOutside = function () { this.gotoAndStop(1); }; _root.window.ascendbutton.onRelease = function () { _root.playsfx('click'); var v4 = 0; var v3 = 0; while (v3 < _root.playerstuff.party.length) { if (_root.playerstuff.party[v3][16]) { } else { ++v4; } ++v3; } if (_root.playerstuff.party.length > 1 && v4 > 1) { this.gotoAndStop(1); _root.window.isopen = true; _root.attachMovie('rusure', 'rusure', _root.getNextHighestDepth(), {'_x': 120, '_y': -150}); _root.rusure.line1.text = 'Ascend this hero?'; _root.rusure.line2.text = 'They will forever be lost from your party'; _root.rusure.no.onRelease = function () { _root.playsfx('click'); _root.window.isopen = false; _root.rusure.removeMovieClip(); }; _root.rusure.yes.mynum = this.mynum; _root.rusure.yes.chance = this.chance; _root.rusure.yes.onRelease = function () { _root.playsfx('click'); _root.playerstuff.inventory.push(_root.playerstuff.party[this.mynum][5].slice()); _root.playerstuff.inventory.push(_root.playerstuff.party[this.mynum][6].slice()); trace('Puttin equipment into Inventory: ' + _root.playerstuff.party[this.mynum][5][0] + ' and ' + _root.playerstuff.party[this.mynum][6][0]); var v4 = random(100); trace('CHECKING: ' + v4 + ' vs ' + this.chance); if (v4 < this.chance) { if (_root.globalstuff.unlockedheroes[_root.playerstuff.party[this.mynum][1]] == 1) { ++_root.playerstuff.tracker[20]; } else { ++_root.playerstuff.tracker[19]; } _root.globalstuff.unlockedheroes[_root.playerstuff.party[this.mynum][1]] = 1; trace('ASCENDED HERO'); _root.playsfx('cheer'); var v3 = random(999999); _root.attachMovie('infotext', 'infotext' + v3, _root.getNextHighestDepth(), {'_x': 10, '_y': -300}); _root['infotext' + v3].ttl = 40; _root['infotext' + v3].stat = 1; _root['infotext' + v3].line1.text = 'SUCCESS! The hero has ascended to the Astral Plane'; _root['infotext' + v3].onEnterFrame = function () { --this.ttl; if (this.ttl == 0 and this.stat == 1) { this.ttl = 20; this.stat = 2; com.greensock.TweenLite.to(this, 0.4, {'_y': -300}); } else { if (this.ttl < 0) { this.removeMovieClip(); } } }; com.greensock.TweenLite.to(_root['infotext' + v3], 0.4, {'_y': 200}); } else { var v3 = random(999999); _root.attachMovie('infotext', 'infotext' + v3, _root.getNextHighestDepth(), {'_x': 10, '_y': -300}); _root['infotext' + v3].ttl = 40; _root['infotext' + v3].stat = 1; _root.playsfx('boo'); _root['infotext' + v3].line1.text = 'Failure! The hero\'s soul was forever lost.'; _root['infotext' + v3].onEnterFrame = function () { --this.ttl; if (this.ttl == 0 and this.stat == 1) { this.ttl = 20; this.stat = 2; com.greensock.TweenLite.to(this, 0.4, {'_y': -300}); } else { if (this.ttl < 0) { this.removeMovieClip(); } } }; com.greensock.TweenLite.to(_root['infotext' + v3], 0.4, {'_y': 200}); trace('FAILED TO ASCEND'); } _root.playerstuff.party.splice(this.mynum, 1); _root.window.selectedhero = -1; _root.window.isopen = false; _root.window.drawthis(); _root.rusure.removeMovieClip(); }; com.greensock.TweenLite.to(_root.rusure, 0.25, {'_y': 240}); } else { trace('CAN\'T ASCEND YOUR LAST HERO'); var v5 = random(999999); _root.attachMovie('infotext', 'infotext' + v5, _root.getNextHighestDepth(), {'_x': 10, '_y': -200}); _root['infotext' + v5].ttl = 35; _root['infotext' + v5].stat = 1; _root['infotext' + v5].line1.text = 'You can\'t ascend your last hero!'; _root['infotext' + v5].onEnterFrame = function () { --this.ttl; if (this.ttl == 0 and this.stat == 1) { this.ttl = 20; this.stat = 2; com.greensock.TweenLite.to(this, 0.4, {'_y': -300}); } else { if (this.ttl < 0) { this.removeMovieClip(); } } }; com.greensock.TweenLite.to(_root['infotext' + v5], 0.4, {'_y': 200}); } }; } else { sh._visible = false; ascendbutton._alpha = 25; line1.text = ''; } v3 = 0; while (v3 < _root.playerstuff.party.length) { if (_root.playerstuff.party[v3][16]) { _root.playerstuff.questinghero = v3; _root.playerstuff.questtype = _root.playerstuff.party[v3][17]; } ++v3; } } bg.onRelease = function () {}; bg.useHandCursor = false; selectedhero = -1; drawthis(); closeit.onRelease = function () { _root.setuppartybar(); _root.playsfx('click'); com.greensock.TweenLite.to(_root.window, 0.15, {'_x': 655}); if (!_root.inaadungeon) { _root.busy = false; } _root.window.createEmptyMovieClip('pauseit', _root.window.getNextHighestDepth()); _root.window.pauseit.ttl = 10; _root.window.pauseit.onEnterFrame = function () { --this.ttl; if (this.ttl == 0) { _root.window.gotoAndStop(1); this.removeMovieClip(); } }; }; isopen = false; } frame 5 { var i = 1; while (i < 20) { this['line' + i].text = ''; this['energyline' + i].text = ''; ++i; } var totalearned = 0; if (_root.selectedplane == 1) { var multi = 1.25; multiline.text = 'x1.25'; multiline2.text = '(Extra Large Plane Modifier)'; } else { if (_root.selectedplane == 2) { var multi = 1.1; multiline.text = 'x1.1'; multiline2.text = '(Large Plane Modifier)'; } else { if (_root.selectedplane == 3) { var multi = 1; multiline.text = 'x1'; multiline2.text = '(Medium Plane Modifier)'; } else { if (_root.selectedplane == 4) { var multi = 0.9; multiline.text = 'x0.9'; multiline2.text = '(Small Plane Modifier)'; } else { var multi = 0.75; multiline.text = 'x0.75'; multiline2.text = '(Tiny Plane Modifier)'; } } } } if (_root.quitter) { var multi = 0.25; multiline.text = 'x0.25'; multiline2.text = '(Quit Plane Modifier)'; _root.quitter = false; } var dungcleared = _root.playerstuff.tracker[1]; var totaldungeons = _root.generteinfo[0]; var remaining = totaldungeons - dungcleared; line1.text = dungcleared + ' Dungeons Cleared | ' + remaining + ' Remaining'; var perc = dungcleared / totaldungeons; if (_root.doingtutorial) { var totreward = 50; } else { var totreward = 120; } var amountearned = Math.round(totreward * perc); if (totaldungeons == dungcleared && !_root.doingtutorial) { amountearned += 125; line1.text = 'You Cleared all Dungeons! Bonus Energy!'; } totalearned += amountearned; energyline1.text = amountearned; var shrinescleared = _root.playerstuff.tracker[2]; var totalshrines = _root.generteinfo[2]; var remaining = totalshrines - shrinescleared; line2.text = shrinescleared + ' Shrines Cleansed | ' + remaining + ' Remaining'; var perc = shrinescleared / totalshrines; if (_root.doingtutorial) { var totreward = 50; } else { var totreward = 120; } amountearned = Math.round(totreward * perc); if (totalshrines == shrinescleared && !_root.doingtutorial) { amountearned += 125; line2.text = 'You Destroyed all Shrines! Bonus Energy!'; } totalearned += amountearned; energyline2.text = amountearned; amountearned = 0; var heroesrecruited = _root.playerstuff.tracker[15]; amountearned += heroesrecruited * 5; line3.text = heroesrecruited + ' Hero Quests Completed'; var newascended = _root.playerstuff.tracker[19]; line4.text = newascended + ' New Hero Classes Ascended'; amountearned += newascended * 20; var oldascended = _root.playerstuff.tracker[20]; line5.text = oldascended + ' Known Hero Classes Ascended'; amountearned += oldascended * 40; var levelsmade = _root.playerstuff.tracker[11]; line6.text = levelsmade + ' Hero Level Ups'; amountearned += Math.round(levelsmade / 2); energyline3.text = amountearned; totalearned += amountearned; amountearned = 0; var kills = _root.playerstuff.tracker[0]; line7.text = kills + ' Monsters Defeated'; amountearned += Math.round(kills / 8); var armours = _root.playerstuff.tracker[4]; line8.text = armours + ' Armours Found'; amountearned += armours * 3; var weapons = _root.playerstuff.tracker[3]; line9.text = weapons + ' Weapons Found'; amountearned += weapons * 3; var chests = _root.playerstuff.tracker[18]; line10.text = chests + ' Astral Chests Discovered'; amountearned += chests * 10; totalearned += amountearned; energyline4.text = amountearned; amountearned = 0; var gold = _root.playerstuff.tracker[6]; line11.text = gold + ' Gold Found | ' + _root.playerstuff.wealth + ' Unspent'; amountearned += Math.round(gold / 50); amountearned += Math.round(_root.playerstuff.wealth / 100); var mana = _root.playerstuff.tracker[7]; line12.text = mana + ' Mana Found | ' + _root.playerstuff.managems + ' Unspent'; amountearned += Math.round(mana / 10); amountearned += Math.round(_root.playerstuff.managems / 50); var pots = _root.playerstuff.tracker[5]; line13.text = pots + ' Potions Found | ' + _root.playerstuff.potions + ' Unused'; amountearned += pots; amountearned += Math.round(_root.playerstuff.potions / 2); var feet = _root.playerstuff.tracker[8]; line14.text = feet + ' Feathers Found | ' + _root.playerstuff.feathers + ' Unused'; amountearned += feet * 3; amountearned += _root.playerstuff.feathers; energyline5.text = amountearned; totalearned += amountearned; totalearned = Math.round(totalearned * multi); energyline6.text = totalearned; _root.globalstuff.astralenergy += totalearned; _root.savegame.data.globalstuff = _root.globalstuff; _root.savegame.flush(); ascendbutton.onRollOver = function () { this.gotoAndStop(2); }; ascendbutton.onRollOut = function () { this.gotoAndStop(1); }; ascendbutton.onRelease = function () { _root.playsfx('click'); this.gotoAndStop(1); com.greensock.TweenLite.to(_root.window, 0.15, {'_x': 655}); _root.attachMovie('blackout', 'blackout', _root.getNextHighestDepth()); _root.blackout.onRelease = function () {}; _root.blackout.useHandCursor = false; _root.blackout._alpha = 0; com.greensock.TweenLite.to(_root.blackout, 1.25, {'_alpha': 100}); _root.blackout.ttl = 50; _root.returningtoastral = true; _root.blackout.onEnterFrame = function () { --this.ttl; if (this.ttl <= 0) { _root.window.gotoAndStop(1); _root.gotoAndStop(11); this.removeMovieClip(); } }; }; _root.tutstuff._visible = false; _root.doingtutorial = false; _root.savegame.data.doingtutorial = false; _root.savegame.data.gameplaying = false; _root.savegame.flush(); } frame 6 { function drawthis() { _root.window.line1.text = 'Select a Hero to Move'; var v4 = 0; while (v4 < 12) { if (_root.playerstuff.party.length - 1 < v4) { this['h' + (v4 + 1)]._visible = false; } else { delete this['h' + (v4 + 1)].onRollOver; delete this['h' + (v4 + 1)].onRelease; delete this['h' + (v4 + 1)].onReleaseOutside; delete this['h' + (v4 + 1)].onRollOut; _root.myTooltip.hide({'animationTime': 0, 'animationType': 'linear'}); _root.myTooltip2.hide({'animationTime': 0, 'animationType': 'linear'}); this['h' + (v4 + 1)].mynum = v4; this['h' + (v4 + 1)].arm.mynum = v4; this['h' + (v4 + 1)].wep.mynum = v4; this['h' + (v4 + 1)]._visible = true; this['h' + (v4 + 1)].sprite.mynum = v4; this['h' + (v4 + 1)].mydetails = _root.playerstuff.party[v4]; this['h' + (v4 + 1)].sprite.armnum = _root.playerstuff.party[v4][1]; this['h' + (v4 + 1)].sprite.wepnum = _root.playerstuff.party[v4][6][1]; this['h' + (v4 + 1)].sprite.internal.sprite.gotoAndStop(2); this['h' + (v4 + 1)].sprite.internal.sprite.gotoAndStop(1); this['h' + (v4 + 1)].arm.gotoAndStop(_root.playerstuff.party[v4][5][4]); this['h' + (v4 + 1)].arm.mynum = v4; this['h' + (v4 + 1)].wep.gotoAndStop(_root.playerstuff.party[v4][6][7]); this['h' + (v4 + 1)].wep.mynum = v4; this['h' + (v4 + 1)].onRollOver = function () { _root.myTooltip.removeMovieClip(); _root.myTooltip = oxylus.Tooltip03.Tooltip.attach(); if (this.mydetails[12] > 0) { if (this.mydetails[13] > 0) { _root.setuptip(this.mydetails[0] + '<new_line>' + this.mydetails[2] + '<new_line>Health: ' + this.mydetails[3][0] + ' / ' + this.mydetails[3][1] + '<new_line>Initiative: ' + this.mydetails[4] + '<new_line><new_line><new_line>' + this.mydetails[5][0] + '<new_line> Physical: ' + this.mydetails[5][1] + ' Magical: ' + this.mydetails[5][2] + '<new_line><new_line><new_line>' + this.mydetails[6][0] + '<new_line>' + 'Damage: ' + this.mydetails[6][3] + 'x' + this.mydetails[10] + ' DPS: ' + Math.round(this.mydetails[6][3] * (this.mydetails[6][4] / 30) * this.mydetails[10]) + '<new_line><new_line>Level ' + this.mydetails[11] + '<new_line>' + this.mydetails[9][0] + ' Exp. ' + (this.mydetails[9][1] - this.mydetails[9][0]) + ' more needed.<new_line> <new_line>' + _root.getherocombatspecialname(this.mydetails[12]) + '<new_line>' + _root.getherocombatspecialblurb(this.mydetails[12]) + '<new_line>' + _root.getherospecialname(this.mydetails[13]) + '<new_line>' + _root.getherospecialblurb(this.mydetails[13]) + '<new_line>', '0xFFFFFF|0xCC5100|0xFF0000|0xFDE724|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xCCB700|0xCCB700|0xCC5100|0xCC5100|0x8F8767|0xCC5100|0x8F8767', '22|14|16|16|16|16|16|16|16|16|16|16|16|16|16|14'); } else { _root.setuptip(this.mydetails[0] + '<new_line>' + this.mydetails[2] + '<new_line>Health: ' + this.mydetails[3][0] + ' / ' + this.mydetails[3][1] + '<new_line>Initiative: ' + this.mydetails[4] + '<new_line><new_line><new_line>' + this.mydetails[5][0] + '<new_line> Physical: ' + this.mydetails[5][1] + ' Magical: ' + this.mydetails[5][2] + '<new_line><new_line><new_line>' + this.mydetails[6][0] + '<new_line>' + 'Damage: ' + this.mydetails[6][3] + 'x' + this.mydetails[10] + ' DPS: ' + Math.round(this.mydetails[6][3] * (this.mydetails[6][4] / 30) * this.mydetails[10]) + '<new_line><new_line>Level ' + this.mydetails[11] + '<new_line>' + this.mydetails[9][0] + ' Exp. ' + (this.mydetails[9][1] - this.mydetails[9][0]) + ' more needed.<new_line> <new_line>' + _root.getherocombatspecialname(this.mydetails[12]) + '<new_line>' + _root.getherocombatspecialblurb(this.mydetails[12]) + '<new_line>', '0xFFFFFF|0xCC5100|0xFF0000|0xFDE724|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xCCB700|0xCCB700|0xCC5100|0xCC5100|0x8F8767|0xCC5100|0x8F8767', '22|14|16|16|16|16|16|16|16|16|16|16|16|16|16|14'); } } else { if (this.mydetails[13] > 0) { _root.setuptip(this.mydetails[0] + '<new_line>' + this.mydetails[2] + '<new_line>Health: ' + this.mydetails[3][0] + ' / ' + this.mydetails[3][1] + '<new_line>Initiative: ' + this.mydetails[4] + '<new_line><new_line><new_line>' + this.mydetails[5][0] + '<new_line> Physical: ' + this.mydetails[5][1] + ' Magical: ' + this.mydetails[5][2] + '<new_line><new_line><new_line>' + this.mydetails[6][0] + '<new_line>' + 'Damage: ' + this.mydetails[6][3] + 'x' + this.mydetails[10] + ' DPS: ' + Math.round(this.mydetails[6][3] * (this.mydetails[6][4] / 30) * this.mydetails[10]) + '<new_line><new_line>Level ' + this.mydetails[11] + '<new_line>' + this.mydetails[9][0] + ' Exp. ' + (this.mydetails[9][1] - this.mydetails[9][0]) + ' more needed.<new_line> <new_line>' + _root.getherospecialname(this.mydetails[13]) + '<new_line>' + _root.getherospecialblurb(this.mydetails[13]) + '<new_line>', '0xFFFFFF|0xCC5100|0xFF0000|0xFDE724|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xCCB700|0xCCB700|0xCC5100|0xCC5100|0x8F8767|0xCC5100|0x8F8767', '22|14|16|16|16|16|16|16|16|16|16|16|16|16|16|14'); } else { _root.setuptip(this.mydetails[0] + '<new_line>' + this.mydetails[2] + '<new_line>Health: ' + this.mydetails[3][0] + ' / ' + this.mydetails[3][1] + '<new_line>Initiative: ' + this.mydetails[4] + '<new_line><new_line><new_line>' + this.mydetails[5][0] + '<new_line> Physical: ' + this.mydetails[5][1] + ' Magical: ' + this.mydetails[5][2] + '<new_line><new_line><new_line>' + this.mydetails[6][0] + '<new_line>' + 'Damage: ' + this.mydetails[6][3] + 'x' + this.mydetails[10] + ' DPS: ' + Math.round(this.mydetails[6][3] * (this.mydetails[6][4] / 30) * this.mydetails[10]) + '<new_line><new_line>Level ' + this.mydetails[11] + '<new_line>' + this.mydetails[9][0] + ' Exp. ' + (this.mydetails[9][1] - this.mydetails[9][0]) + ' more needed.<new_line>', '0xFFFFFF|0xCC5100|0xFF0000|0xFDE724|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xFFFFFF|0xFFFFFF|0xFF11FF|0xFFFFFF|0xCCB700', '22|14|16|16'); } } _root.myTooltip.show({'delay': 0.25, 'animationTime': 0.3, 'animationType': 'linear', 'stay': 0}); }; this['h' + (v4 + 1)].onRollOut = function () { _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); }; this['h' + (v4 + 1)].onRelease = function () { if (_root.playerstuff.party[this.mynum][16]) { _root.window.line1.text = 'Can\'t move a Questing Hero'; } else { if (selectedhero == -1) { trace('set hero ' + this.mynum + ' as hero to move'); _root.myTooltip.hide({'animationTime': 0.25, 'animationType': 'linear'}); _root.window.selectedhero = this.mynum; _root.window.line1.text = 'Select Hero to swap with'; } else { trace('SWAPPING HEROES'); var v3 = _root.playerstuff.party[selectedhero]; var v4 = [v3[0], v3[1], v3[2], [v3[3][0], v3[3][1]], v3[4], [v3[5][0], v3[5][1], v3[5][2], v3[5][3], v3[5][4], v3[5][5], v3[5][6], v3[5][7]], [v3[6][0], v3[6][1], v3[6][2], v3[6][3], v3[6][4], v3[6][5], v3[6][6], v3[6][7], v3[6][8], v3[6][9], v3[6][10]], v3[7], v3[8], [v3[9][0], v3[9][1]], v3[10], v3[11], v3[12], v3[13], v3[14], v3[15], v3[16], v3[17], [v3[18][0], v3[18][1], v3[18][2]]]; _root.playerstuff.party[selectedhero] = [0, 0, 0]; v3 = _root.playerstuff.party[this.mynum]; _root.playerstuff.party[selectedhero] = [v3[0], v3[1], v3[2], [v3[3][0], v3[3][1]], v3[4], [v3[5][0], v3[5][1], v3[5][2], v3[5][3], v3[5][4], v3[5][5], v3[5][6], v3[5][7]], [v3[6][0], v3[6][1], v3[6][2], v3[6][3], v3[6][4], v3[6][5], v3[6][6], v3[6][7], v3[6][8], v3[6][9], v3[6][10]], v3[7], v3[8], [v3[9][0], v3[9][1]], v3[10], v3[11], v3[12], v3[13], v3[14], v3[15], v3[16], v3[17], [v3[18][0], v3[18][1], v3[18][2]]]; v3 = v4; _root.playerstuff.party[this.mynum] = [v3[0], v3[1], v3[2], [v3[3][0], v3[3][1]], v3[4], [v3[5][0], v3[5][1], v3[5][2], v3[5][3], v3[5][4], v3[5][5], v3[5][6], v3[5][7]], [v3[6][0], v3[6][1], v3[6][2], v3[6][3], v3[6][4], v3[6][5], v3[6][6], v3[6][7], v3[6][8], v3[6][9], v3[6][10]], v3[7], v3[8], [v3[9][0], v3[9][1]], v3[10], v3[11], v3[12], v3[13], v3[14], v3[15], v3[16], v3[17], [v3[18][0], v3[18][1], v3[18][2]]]; selectedhero = -1; _root.window.drawthis(); } } }; } ++v4; } } bg.onRelease = function () {}; bg.useHandCursor = false; selectedhero = -1; drawthis(); donebutton.onRollOver = function () { this.gotoAndStop(2); }; donebutton.onRollOut = function () { this.gotoAndStop(1); }; donebutton.onRelease = function () { _root.setuppartybar(); _root.playsfx('click'); com.greensock.TweenLite.to(_root.window, 0.15, {'_x': 655}); if (!_root.inaadungeon) { _root.busy = false; } _root.window.createEmptyMovieClip('pauseit', _root.window.getNextHighestDepth()); _root.window.pauseit.ttl = 10; _root.window.pauseit.onEnterFrame = function () { --this.ttl; if (this.ttl == 0) { _root.window.gotoAndStop(1); this.removeMovieClip(); } }; }; } } movieClip 2077 { frame 1 { stop(); this.mystat = 1; } frame 8 { this.mystat = 2; } frame 9 { this.mystat = 3; } }




http://swfchan.com/42/207543/info.shtml
Created: 9/10 -2018 11:15:02 Last modified: 9/10 -2018 11:15:02 Server time: 17/10 -2018 16:27:04