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

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

Castle Quest.swf

This is the info page for
Flash #100788

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


ActionScript [AS1/AS2]
Combined Code
movieClip 3 { } // unknown tag 88 length 67 movieClip 7 { } movieClip 9 lvl1 { frame 1 { this._x = 28; this._y = -135; } frame 25 { stop(); } } movieClip 12 { } movieClip 13 lvl2 { frame 1 { this._x = -133; this._y = -65; } frame 25 { stop(); } } movieClip 16 { } movieClip 17 lvl3 { frame 1 { this._x = -10; this._y = -45; } frame 25 { stop(); } } movieClip 20 { } movieClip 21 lvl4 { frame 1 { this._x = -93; this._y = 73; } frame 25 { stop(); } } movieClip 23 { } movieClip 24 lvl5 { frame 1 { this._x = 81; this._y = 60; } frame 25 { stop(); } } movieClip 26 { } movieClip 27 lvl6 { frame 1 { this._x = 160; this._y = -13; } frame 25 { stop(); } } movieClip 29 { } movieClip 30 lvl7 { frame 1 { this._x = 162; this._y = -93; } frame 25 { stop(); } } movieClip 37 ghostHit1 { frame 6 { this.removeMovieClip(); } } movieClip 62 fly { frame 1 { _root.playSound('flyUse'); } frame 13 { this.removeMovieClip(); } } frame 1 { function myFirstItemHandler() { getURL('http://www.axis-games.com/castlequest.php', ''); } function sitelock(urls_allowed) { lock = true; domain_parts = _url.split('://'); real_domain = domain_parts[1].split('/'); domain.text = real_domain[0]; for (x in urls_allowed) { if (urls_allowed[x] == real_domain[0]) { lock = false; } } if (lock) { } } mochi.as2.MochiAd.showPreGameAd({'id': 'ad8f361bcb8003d5', 'res': '650x500', 'background': 15984615, 'color': 11014407, 'outline': 0, 'no_bg': true}); var my_cm; my_cm = new ContextMenu(); my_cm.hideBuiltInItems(); var myFirstItem_cmi; myFirstItem_cmi = new ContextMenuItem('(c)2009 - axis-games.com', myFirstItemHandler); my_cm.customItems.push(myFirstItem_cmi); _root.menu = my_cm; urls_allowed = ['axis-games.com', 'www.axis-games.com']; sitelock(urls_allowed); stop(); } movieClip 2713 __Packages.mochi.as2.MochiAd { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiAd) { var v1 = function () {}; mochi.as2.MochiAd = v1; var v2 = v1.prototype; v1.getVersion = function () { return mochi.as2.MochiServices.getVersion(); }; v1.showPreGameAd = function (options) { var v26 = {'clip': _root, 'ad_timeout': 3000, 'fadeout_time': 250, 'regpt': 'o', 'method': 'showPreloaderAd', 'color': 16747008, 'background': 16777161, 'outline': 13994812, 'no_progress_bar': false, 'ad_started': function () { this.clip.stop(); }, 'ad_finished': function () { this.clip.play(); }, 'ad_failed': function () { trace('[MochiAd] Couldn\'t load an ad, make sure that your game\'s local security sandbox is configured for Access Network Only and that you are not using ad blocking software'); }, 'ad_loaded': function (width, height) {}, 'ad_skipped': function () {}, 'ad_progress': function (percent) {}}; options = mochi.as2.MochiAd._parseOptions(options, v26); if ('c862232051e0a94e1c3609b3916ddb17'.substr(0) == 'dfeada81ac97cde83665f81c12da7def') { options.ad_started(); options.ad_finished(); return undefined; } var clip = options.clip; var v22 = 11000; var v25 = options.ad_timeout; delete options.ad_timeout; var fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!mochi.as2.MochiAd.load(options)) { options.ad_failed(); options.ad_finished(); return undefined; } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var v14 = mochi.as2.MochiAd._getRes(options); var v4 = v14[0]; var v13 = v14[1]; mc._x = v4 * 0.5; mc._y = v13 * 0.5; var chk = mc.createEmptyMovieClip('_mochiad_wait', 3); chk._x = v4 * -0.5; chk._y = v13 * -0.5; var v6 = chk.createEmptyMovieClip('_mochiad_bar', 4); if (options.no_progress_bar) { v6._visible = false; delete options.no_progress_bar; } else { v6._x = 10; v6._y = v13 - 20; } var v21 = options.color; delete options.color; var v19 = options.background; delete options.background; var v23 = options.outline; delete options.outline; var v5 = v6.createEmptyMovieClip('_outline', 1); v5.beginFill(v19); v5.moveTo(0, 0); v5.lineTo(v4 - 20, 0); v5.lineTo(v4 - 20, 10); v5.lineTo(0, 10); v5.lineTo(0, 0); v5.endFill(); var v3 = v6.createEmptyMovieClip('_inside', 2); v3.beginFill(v21); v3.moveTo(0, 0); v3.lineTo(v4 - 20, 0); v3.lineTo(v4 - 20, 10); v3.lineTo(0, 10); v3.lineTo(0, 0); v3.endFill(); v3._xscale = 0; var v7 = v6.createEmptyMovieClip('_outline', 3); v7.lineStyle(0, v23, 100); v7.moveTo(0, 0); v7.lineTo(v4 - 20, 0); v7.lineTo(v4 - 20, 10); v7.lineTo(0, 10); v7.lineTo(0, 0); chk.ad_msec = v22; chk.ad_timeout = v25; chk.started = getTimer(); chk.showing = false; chk.last_pcnt = 0; chk.fadeout_time = fadeout_time; chk.fadeFunction = function () { var v2 = 100 * (1 - (getTimer() - this.fadeout_start) / this.fadeout_time); if (v2 > 0) { this._parent._alpha = v2; } else { var v3 = this._parent._parent; mochi.as2.MochiAd.unload(v3); delete this.onEnterFrame; } }; mc.lc.regContLC = function (lc_name) { mc._containerLCName = lc_name; }; var sendHostProgress = false; mc.lc.sendHostLoadProgress = function (lc_name) { sendHostProgress = true; }; mc.lc.adLoaded = options.ad_loaded; mc.lc.adSkipped = options.ad_skipped; mc.lc.adjustProgress = function (msec) { var v2 = this.mc._mochiad_wait; v2.server_control = true; v2.started = getTimer(); v2.ad_msec = msec; }; mc.lc.rpc = function (callbackID, arg) { mochi.as2.MochiAd.rpc(clip, callbackID, arg); }; mc.rpcTestFn = function (s) { trace('[MOCHIAD rpcTestFn] ' + s); return s; }; chk.onEnterFrame = function () { var v6 = this._parent._parent; var v11 = this._parent._mochiad_ctr; var v5 = getTimer() - this.started; var v3 = false; var v4 = v6.getBytesTotal(); var v8 = v6.getBytesLoaded(); var v2 = 100 * v8 / v4; var v10 = 100 * v5 / chk.ad_msec; var v9 = this._mochiad_bar._inside; var v13 = Math.min(100, Math.min(v2 || 0, v10)); v13 = Math.max(this.last_pcnt, v13); this.last_pcnt = v13; v9._xscale = v13; options.ad_progress(v13); if (sendHostProgress) { mochi.as2.MochiAd.containerNotify(clip, {'id': 'hostLoadPcnt', 'pcnt': v2}, clip._mochiad._containerLCName); if (v2 == 100) { sendHostProgress = false; } } if (!chk.showing) { var v7 = v11.getBytesTotal(); if (v7 > 0 || typeof v7 == 'undefined') { chk.showing = true; chk.started = getTimer(); } else { if (v5 > chk.ad_timeout && v2 == 100) { options.ad_failed(); v3 = true; } } } if (v5 > chk.ad_msec) { v3 = true; } if (v4 > 0 && v8 >= v4 && v3) { if (this.server_control) { delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = chk.fadeFunction; } } }; }; v1.showClickAwayAd = function (options) { var v9 = {'clip': _root, 'ad_timeout': 2000, 'fadeout_time': 250, 'regpt': 'o', 'method': 'showClickAwayAd', 'res': '300x250', 'no_bg': true, 'ad_started': function () {}, 'ad_finished': function () {}, 'ad_loaded': function (width, height) {}, 'ad_failed': function () { trace('[MochiAd] Couldn\'t load an ad, make sure that your game\'s local security sandbox is configured for Access Network Only and that you are not using ad blocking software'); }, 'ad_skipped': function () {}}; options = mochi.as2.MochiAd._parseOptions(options, v9); var clip = options.clip; var v8 = options.ad_timeout; delete options.ad_timeout; if (!mochi.as2.MochiAd.load(options)) { options.ad_failed(); options.ad_finished(); return undefined; } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var v4 = mochi.as2.MochiAd._getRes(options); var v10 = v4[0]; var v7 = v4[1]; mc._x = v10 * 0.5; mc._y = v7 * 0.5; var chk = mc.createEmptyMovieClip('_mochiad_wait', 3); chk.ad_timeout = v8; chk.started = getTimer(); chk.showing = false; mc.lc.adLoaded = options.ad_loaded; mc.lc.adSkipped = options.ad_skipped; mc.lc.rpc = function (callbackID, arg) { mochi.as2.MochiAd.rpc(clip, callbackID, arg); }; mc.rpcTestFn = function (s) { trace('[MOCHIAD rpcTestFn] ' + s); return s; }; var v20 = false; mc.lc.regContLC = function (lc_name) { mc._containerLCName = lc_name; }; chk.onEnterFrame = function () { var v5 = this._parent._mochiad_ctr; var v4 = getTimer() - this.started; var v2 = false; if (!chk.showing) { var v3 = v5.getBytesTotal(); if (v3 > 0 || typeof v3 == 'undefined') { v2 = true; chk.showing = true; chk.started = getTimer(); } else { if (v4 > chk.ad_timeout) { options.ad_failed(); v2 = true; } } } if (v2) { delete this.onEnterFrame; } }; }; v1.showInterLevelAd = function (options) { var v13 = {'clip': _root, 'ad_timeout': 2000, 'fadeout_time': 250, 'regpt': 'o', 'method': 'showTimedAd', 'ad_started': function () { this.clip.stop(); }, 'ad_finished': function () { this.clip.play(); }, 'ad_failed': function () { trace('[MochiAd] Couldn\'t load an ad, make sure that your game\'s local security sandbox is configured for Access Network Only and that you are not using ad blocking software'); }, 'ad_loaded': function (width, height) {}, 'ad_skipped': function () {}}; options = mochi.as2.MochiAd._parseOptions(options, v13); var clip = options.clip; var v10 = 11000; var v12 = options.ad_timeout; delete options.ad_timeout; var fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!mochi.as2.MochiAd.load(options)) { options.ad_failed(); options.ad_finished(); return undefined; } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var v5 = mochi.as2.MochiAd._getRes(options); var v14 = v5[0]; var v11 = v5[1]; mc._x = v14 * 0.5; mc._y = v11 * 0.5; var chk = mc.createEmptyMovieClip('_mochiad_wait', 3); chk.ad_msec = v10; chk.ad_timeout = v12; chk.started = getTimer(); chk.showing = false; chk.fadeout_time = fadeout_time; chk.fadeFunction = function () { var v2 = 100 * (1 - (getTimer() - this.fadeout_start) / this.fadeout_time); if (v2 > 0) { this._parent._alpha = v2; } else { var v3 = this._parent._parent; mochi.as2.MochiAd.unload(v3); delete this.onEnterFrame; } }; mc.lc.adLoaded = options.ad_loaded; mc.lc.adSkipped = options.ad_skipped; mc.lc.adjustProgress = function (msec) { var v2 = this.mc._mochiad_wait; v2.server_control = true; v2.started = getTimer(); v2.ad_msec = msec - 250; }; mc.lc.rpc = function (callbackID, arg) { mochi.as2.MochiAd.rpc(clip, callbackID, arg); }; mc.rpcTestFn = function (s) { trace('[MOCHIAD rpcTestFn] ' + s); return s; }; chk.onEnterFrame = function () { var v5 = this._parent._mochiad_ctr; var v4 = getTimer() - this.started; var v2 = false; if (!chk.showing) { var v3 = v5.getBytesTotal(); if (v3 > 0 || typeof v3 == 'undefined') { chk.showing = true; chk.started = getTimer(); } else { if (v4 > chk.ad_timeout) { options.ad_failed(); v2 = true; } } } if (v4 > chk.ad_msec) { v2 = true; } if (v2) { if (this.server_control) { delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = this.fadeFunction; } } }; }; v1.showPreloaderAd = function (options) { trace('[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0'); mochi.as2.MochiAd.showPreGameAd(options); }; v1.showTimedAd = function (options) { trace('[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0'); mochi.as2.MochiAd.showInterLevelAd(options); }; v1._allowDomains = function (server) { var v1 = ((server.split('/'))[2].split(':'))[0]; if (System.security) { if (System.security.allowDomain) { System.security.allowDomain('*'); System.security.allowDomain(v1); } if (System.security.allowInsecureDomain) { System.security.allowInsecureDomain('*'); System.security.allowInsecureDomain(v1); } } return v1; }; v1.load = function (options) { var v13 = {'clip': _root, 'server': 'http://x.mochiads.com/srv/1/', 'method': 'load', 'depth': 10333, 'id': '_UNKNOWN_'}; options = mochi.as2.MochiAd._parseOptions(options, v13); options.swfv = options.clip.getSWFVersion() || 6; options.mav = mochi.as2.MochiAd.getVersion(); var v7 = options.clip; if (!mochi.as2.MochiAd._isNetworkAvailable()) { return null; } if (v7._mochiad_loaded) { return null; } var v12 = options.depth; delete options.depth; var v6 = v7.createEmptyMovieClip('_mochiad', v12); var v11 = mochi.as2.MochiAd._getRes(options); options.res = v11[0] + 'x' + v11[1]; options.server += options.id; delete options.id; v7._mochiad_loaded = true; if (v7._url.indexOf('http') != 0) { trace('[MochiAd] NOTE: Security Sandbox Violation errors below are normal'); } var v4 = v6.createEmptyMovieClip('_mochiad_ctr', 1); for (var v8 in options) { v4[v8] = options[v8]; } var v10 = v4.server; delete v4.server; var v14 = mochi.as2.MochiAd._allowDomains(v10); v6.onEnterFrame = function () { if (this._mochiad_ctr._url != this._url) { this.onEnterFrame = function () { if (!this._mochiad_ctr) { delete this.onEnterFrame; mochi.as2.MochiAd.unload(this._parent); } }; } }; var v5 = new Object(); var v9 = ['', Math.floor((new Date()).getTime()), random(999999)].join('_'); v5.mc = v6; v5.name = v9; v5.hostname = v14; v5.allowDomain = function (d) { return true; }; v5.allowInsecureDomain = v5.allowDomain; v5.connect(v9); v6.lc = v5; v4.lc = v9; v4.st = getTimer(); v4.loadMovie(v10 + '.swf', 'POST'); return v6; }; v1.unload = function (clip) { if (typeof clip == 'undefined') { clip = _root; } if (clip.clip && clip.clip._mochiad) { clip = clip.clip; } if (!clip._mochiad) { return false; } mochi.as2.MochiAd.containerNotify(clip, {'id': 'unload'}, clip._mochiad._containerLCName); clip._mochiad.removeMovieClip(); delete clip._mochiad_loaded; delete clip._mochiad; return true; }; v1._isNetworkAvailable = function () { if (System.security) { var v1 = System.security; if (v1.sandboxType == 'localWithFile') { return false; } } return true; }; v1._getRes = function (options) { var v3 = options.clip.getBounds(); var v2 = 0; var v1 = 0; if (typeof options.res != 'undefined') { var v4 = options.res.split('x'); v2 = parseFloat(v4[0]); v1 = parseFloat(v4[1]); } else { v2 = v3.xMax - v3.xMin; v1 = v3.yMax - v3.yMin; } if (v2 == 0 || v1 == 0) { v2 = Stage.width; v1 = Stage.height; } return [v2, v1]; }; v1._parseOptions = function (options, defaults) { var v4 = {}; for (var v8 in defaults) { v4[v8] = defaults[v8]; } if (options) { for (v8 in options) { v4[v8] = options[v8]; } } if (_root.mochiad_options) { var v5 = _root.mochiad_options.split('&'); var v2 = 0; while (v2 < v5.length) { var v3 = v5[v2].split('='); v4[unescape(v3[0])] = unescape(v3[1]); ++v2; } } if (v4.id == 'test') { trace('[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!'); } return v4; }; v1.rpc = function (clip, callbackID, arg) { switch (arg.id) { case 'setValue': mochi.as2.MochiAd.setValue(clip, arg.objectName, arg.value); break; case 'getValue': var v4 = mochi.as2.MochiAd.getValue(clip, arg.objectName); mochi.as2.MochiAd.containerRpcResult(clip, callbackID, v4, clip._mochiad._containerLCName); break; case 'runMethod': var v3 = mochi.as2.MochiAd.runMethod(clip, arg.method, arg.args); mochi.as2.MochiAd.containerRpcResult(clip, callbackID, v3, clip._mochiad._containerLCName); break; default: trace('[mochiads rpc] unknown rpc id: ' + arg.id); } }; v1.setValue = function (base, objectName, value) { var v2 = objectName.split('.'); var v1; v1 = 0; while (v1 < v2.length - 1) { if (base[v2[v1]] == undefined || base[v2[v1]] == null) { return undefined; } base = base[v2[v1]]; ++v1; } base[v2[v1]] = value; }; v1.getValue = function (base, objectName) { var v2 = objectName.split('.'); var v1; v1 = 0; while (v1 < v2.length - 1) { if (base[v2[v1]] == undefined || base[v2[v1]] == null) { return undefined; } base = base[v2[v1]]; ++v1; } return base[v2[v1]]; }; v1.runMethod = function (base, methodName, argsArray) { var v2 = methodName.split('.'); var v1; v1 = 0; while (v1 < v2.length - 1) { if (base[v2[v1]] == undefined || base[v2[v1]] == null) { return undefined; } base = base[v2[v1]]; ++v1; } if (typeof base[v2[v1]] == 'function') { return base[v2[v1]].apply(base, argsArray); } else { return undefined; } }; v1.containerNotify = function (clip, args, lcName) { var v1 = clip._mochiad._mochiad_ctr.ad.app; if (v1.notify) { v1.notify(args); } else { (new LocalConnection()).send(lcName, 'notify', args); } }; v1.containerRpcResult = function (clip, callbackID, val, lcName) { var v1 = clip._mochiad._mochiad_ctr.ad.app; if (v1.rpcResult) { v1.rpcResult(callbackID, val); } else { (new LocalConnection()).send(lcName, 'rpcResult', callbackID, val); } }; ASSetPropFlags(mochi.as2.MochiAd.prototype, null, 1); } #endinitclip } movieClip 2714 __Packages.mochi.as2.MochiSync { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiSync) { var v1 = function () { this._syncContainer = {}; }; mochi.as2.MochiSync = v1; var v2 = v1.prototype; v2.getProp = function (name) { return this._syncContainer[name]; }; v2.setProp = function (name, value) { if (this._syncContainer[name] == value) { return undefined; } this._syncContainer[name] = value; mochi.as2.MochiServices.send('sync_propUpdate', {'name': name, 'value': value}); }; v2.triggerEvent = function (eventType, args) { switch (eventType) { case mochi.as2.MochiSync.SYNC_REQUEST: mochi.as2.MochiServices.send('sync_syncronize', this._syncContainer); break; case mochi.as2.MochiSync.SYNC_PROPERTY: this._syncContainer[args.name] = args.value; } }; v1.SYNC_REQUEST = 'SyncRequest'; v1.SYNC_PROPERTY = 'UpdateProperty'; ASSetPropFlags(mochi.as2.MochiSync.prototype, null, 1); } #endinitclip } movieClip 2715 __Packages.mochi.as2.MochiServices { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiServices) { var v1 = function () {}; mochi.as2.MochiServices = v1; var v2 = v1.prototype; v1.__get__id = function () { return mochi.as2.MochiServices._id; }; v1.__get__clip = function () { return mochi.as2.MochiServices._container; }; v1.__get__childClip = function () { return mochi.as2.MochiServices._clip; }; v1.getVersion = function () { return '3.2 as2'; }; v1.allowDomains = function (server) { var v1 = ((server.split('/'))[2].split(':'))[0]; if (System.security) { if (System.security.allowDomain) { System.security.allowDomain('*'); System.security.allowDomain(v1); } if (System.security.allowInsecureDomain) { System.security.allowInsecureDomain('*'); System.security.allowInsecureDomain(v1); } } return v1; }; v1.__get__isNetworkAvailable = function () { if (System.security) { var v1 = System.security; if (v1.sandboxType == 'localWithFile') { return false; } } return true; }; v1.__set__comChannelName = function (val) { if (val != undefined) { if (val.length > 3) { mochi.as2.MochiServices._sendChannelName = val + '_fromgame'; mochi.as2.MochiServices.initComChannels(); } } return mochi.as2.MochiServices.__get__comChannelName(); }; v1.__get__connected = function () { return mochi.as2.MochiServices._connected; }; v1.connect = function (id, clip, onError) { mochi.as2.MochiServices.warnID(id, false); if (!mochi.as2.MochiServices._connected && mochi.as2.MochiServices._clip == undefined) { trace('MochiServices Connecting...'); mochi.as2.MochiServices._connecting = true; mochi.as2.MochiServices.init(id, clip); } if (onError != undefined) { mochi.as2.MochiServices.onError = onError; } else { if (mochi.as2.MochiServices.onError == undefined) { mochi.as2.MochiServices.onError = function (errorCode) { trace(errorCode); }; } } }; v1.disconnect = function () { if (mochi.as2.MochiServices._connected || mochi.as2.MochiServices._connecting) { mochi.as2.MochiServices._connected = false; mochi.as2.MochiServices._connecting = mochi.as2.MochiServices._connected; mochi.as2.MochiServices.flush(true); if (mochi.as2.MochiServices._clip != undefined) { mochi.as2.MochiServices._clip.removeMovieClip(); delete mochi.as2.MochiServices._clip; } mochi.as2.MochiServices._listenChannel.close(); } }; v1.init = function (id, clip) { mochi.as2.MochiServices._id = id; if (clip != undefined) { mochi.as2.MochiServices._container = clip; } else { mochi.as2.MochiServices._container = _root; } mochi.as2.MochiServices.loadCommunicator(id, mochi.as2.MochiServices._container); }; v1.loadCommunicator = function (id, clip) { var v6 = '_mochiservices_com_' + id; var v5 = new MovieClipLoader(); var v3 = {}; if (mochi.as2.MochiServices._clip != null) { return mochi.as2.MochiServices._clip; } if (!mochi.as2.MochiServices.__get__isNetworkAvailable()) { return null; } if ((mochi.as2.MochiServices.urlOptions()).servURL) { mochi.as2.MochiServices._servURL = (mochi.as2.MochiServices.urlOptions()).servURL; } var v4 = mochi.as2.MochiServices._servURL + mochi.as2.MochiServices._services; if ((mochi.as2.MochiServices.urlOptions()).servicesURL) { v4 = (mochi.as2.MochiServices.urlOptions()).servicesURL; } mochi.as2.MochiServices.allowDomains(v4); mochi.as2.MochiServices._clip = clip.createEmptyMovieClip(v6, 10336, false); mochi.as2.MochiServices._listenChannelName += Math.floor((new Date()).getTime()) + '_' + Math.floor(Math.random() * 99999); mochi.as2.MochiServices.listen(); if (v3.waitInterval != null) { clearInterval(v3.waitInterval); } v3.onLoadError = mochi.as2.MochiServices.loadError; v3.onLoadStart = function (target_mc) { this.isLoading = true; }; v3.startTime = getTimer(); v3.wait = function () { if (getTimer() - this.startTime > 10000) { if (!this.isLoading) { mochi.as2.MochiServices.disconnect(); mochi.as2.MochiServices.onError.apply(null, ['IOError']); } clearInterval(this.waitInterval); } }; v3.waitInterval = setInterval(v3, 'wait', 1000); v5.addListener(v3); v5.loadClip(v4 + '?listenLC=' + mochi.as2.MochiServices._listenChannelName + '&mochiad_options=' + escape(_root.mochiad_options) + '&api_version=' + /:$version, mochi.as2.MochiServices._clip); mochi.as2.MochiServices._sendChannel = new LocalConnection(); mochi.as2.MochiServices._sendChannel._queue = []; return mochi.as2.MochiServices._clip; }; v1.loadError = function (target_mc, errorCode, httpStatus) { trace('MochiServices could not load.'); mochi.as2.MochiServices.disconnect(); mochi.as2.MochiServices.onError.apply(null, [errorCode]); }; v1.onStatus = function (infoObject) { if (infoObject.level !== 'error') { } else { mochi.as2.MochiServices._connected = false; mochi.as2.MochiServices._listenChannel.connect(mochi.as2.MochiServices._listenChannelName); } }; v1.listen = function () { mochi.as2.MochiServices._listenChannel = new LocalConnection(); mochi.as2.MochiServices._listenChannel.handshake = function (args) { mochi.as2.MochiServices.__set__comChannelName(args.newChannel); }; mochi.as2.MochiServices._listenChannel.allowDomain = function (d) { return true; }; mochi.as2.MochiServices._listenChannel.allowInsecureDomain = mochi.as2.MochiServices._listenChannel.allowDomain; mochi.as2.MochiServices._listenChannel._nextcallbackID = 0; mochi.as2.MochiServices._listenChannel._callbacks = {}; mochi.as2.MochiServices._listenChannel.connect(mochi.as2.MochiServices._listenChannelName); trace('Waiting for MochiAds services to connect...'); }; v1.initComChannels = function () { if (!mochi.as2.MochiServices._connected) { mochi.as2.MochiServices._sendChannel.onStatus = function (infoObject) { mochi.as2.MochiServices.onStatus(infoObject); }; mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': 'handshakeDone'}); mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': 'registerGame', 'id': mochi.as2.MochiServices._id, 'clip': mochi.as2.MochiServices._clip, 'version': mochi.as2.MochiServices.getVersion()}); mochi.as2.MochiServices._listenChannel.onStatus = function (infoObject) { mochi.as2.MochiServices.onStatus(infoObject); }; mochi.as2.MochiServices._listenChannel.onReceive = function (pkg) { var v5 = pkg.callbackID; var v4 = this._callbacks[v5]; if (!v4) { return undefined; } var v2 = v4.callbackMethod; var v3 = v4.callbackObject; if (v3 && typeof v2 == 'string') { v2 = v3[v2]; } if (v2 != undefined) { v2.apply(v3, pkg.args); } delete this._callbacks[v5]; }; mochi.as2.MochiServices._listenChannel.onEvent = function (pkg) { switch (pkg.target) { case 'events': mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args); break; case 'coins': mochi.as2.MochiCoins.triggerEvent(pkg.event, pkg.args); break; case 'sync': mochi.as2.MochiServices.servicesSync.triggerEvent(pkg.event, pkg.args); } }; mochi.as2.MochiServices._listenChannel.onError = function () { mochi.as2.MochiServices.onError.apply(null, ['IOError']); }; trace('[SERVICES_API] connected!'); mochi.as2.MochiServices._connecting = false; mochi.as2.MochiServices._connected = true; while (mochi.as2.MochiServices._sendChannel._queue.length > 0) { mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', mochi.as2.MochiServices._sendChannel._queue.shift()); } } }; v1.flush = function (error) { var v1; var v2; while (mochi.as2.MochiServices._sendChannel._queue.length > 0) { v1 = mochi.as2.MochiServices._sendChannel._queue.shift(); false; if (v1.callbackID != null) { v2 = mochi.as2.MochiServices._listenChannel._callbacks[v1.callbackID]; } delete mochi.as2.MochiServices._listenChannel._callbacks[v1.callbackID]; if (error) { mochi.as2.MochiServices.handleError(v1.args, v2.callbackObject, v2.callbackMethod); } } }; v1.handleError = function (args, callbackObject, callbackMethod) { if (args != null) { if (args.onError != null) { args.onError.apply(null, ['NotConnected']); } if (args.options != null && args.options.onError != null) { args.options.onError.apply(null, ['NotConnected']); } } if (callbackMethod != null) { args = {}; args.error = true; args.errorCode = 'NotConnected'; if (callbackObject != null && typeof callbackMethod == 'string') { callbackObject[callbackMethod](args); } else { if (callbackMethod != null) { callbackMethod.apply(args); } } } }; v1.send = function (methodName, args, callbackObject, callbackMethod) { if (mochi.as2.MochiServices._connected) { mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': methodName, 'args': args, 'callbackID': mochi.as2.MochiServices._listenChannel._nextcallbackID}); } else { if (mochi.as2.MochiServices._clip == undefined || !mochi.as2.MochiServices._connecting) { trace('Error: MochiServices not connected. Please call MochiServices.connect(). Function: ' + methodName); mochi.as2.MochiServices.handleError(args, callbackObject, callbackMethod); mochi.as2.MochiServices.flush(true); return undefined; } else { mochi.as2.MochiServices._sendChannel._queue.push({'methodName': methodName, 'args': args, 'callbackID': mochi.as2.MochiServices._listenChannel._nextcallbackID}); } } mochi.as2.MochiServices._listenChannel._callbacks[mochi.as2.MochiServices._listenChannel._nextcallbackID] = {'callbackObject': callbackObject, 'callbackMethod': callbackMethod}; ++mochi.as2.MochiServices._listenChannel._nextcallbackID; }; v1.urlOptions = function () { var v5 = {}; if (_root.mochiad_options) { var v4 = _root.mochiad_options.split('&'); var v2 = 0; while (v2 < v4.length) { var v3 = v4[v2].split('='); v5[unescape(v3[0])] = unescape(v3[1]); ++v2; } } return v5; }; v1.warnID = function (bid, leaderboard) { bid = bid.toLowerCase(); if (bid.length != 16) { trace('WARNING: ' + (leaderboard ? 'board' : 'game') + ' ID is not the appropriate length'); return undefined; } else { if (bid == '1e113c7239048b3f') { if (leaderboard) { trace('WARNING: Using testing board ID'); } else { trace('WARNING: Using testing board ID as game ID'); } return undefined; } else { if (bid == '84993a1de4031cd8') { if (leaderboard) { trace('WARNING: Using testing game ID as board ID'); } else { trace('WARNING: Using testing game ID'); } return undefined; } } } var v1 = 0; while (v1 < bid.length) { switch (bid.charAt(v1)) { if (bid.charAt(v1) !== 'f') { } else { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': case 'a': break; case 'b': case 'c': case 'd': case 'e': } default: trace('WARNING: Board ID contains illegal characters: ' + bid); return undefined; } ++v1; } }; v1.addLinkEvent = function (url, burl, btn, onClick) { var timeout = 1500; var t0 = getTimer(); var v2 = new Object(); v2.mav = mochi.as2.MochiServices.getVersion(); v2.swfv = btn.getSWFVersion() || 6; v2.swfurl = btn._url; v2.fv = System.capabilities.version; v2.os = System.capabilities.os; v2.lang = System.capabilities.language; v2.scres = System.capabilities.screenResolutionX + 'x' + System.capabilities.screenResolutionY; var s = '?'; var v3 = 0; for (var v6 in v2) { if (v3 != 0) { s += '&'; } ++v3; s = s + v6 + '=' + escape(v2[v6]); } if (!(mochi.as2.MochiServices.netupAttempted || mochi.as2.MochiServices._connected)) { var ping = btn.createEmptyMovieClip('ping', 777); var v7 = btn.createEmptyMovieClip('nettest', 778); mochi.as2.MochiServices.netupAttempted = true; ping.loadMovie('http://x.mochiads.com/linkping.swf?t=' + getTimer()); v7.onEnterFrame = function () { if (ping._totalframes > 0 && ping._totalframes == ping._framesloaded) { delete this.onEnterFrame; } else { if (getTimer() - t0 > timeout) { delete this.onEnterFrame; mochi.as2.MochiServices.netup = false; } } }; } var v4 = btn.createEmptyMovieClip('clk', 1001); v4._alpha = 0; v4.beginFill(1044735); v4.moveTo(0, 0); v4.lineTo(0, btn._height); v4.lineTo(btn._width, btn._height); v4.lineTo(btn._width, 0); v4.lineTo(0, 0); v4.endFill(); v4.onRelease = function () { if (mochi.as2.MochiServices.netup) { getURL(url + s, '_blank'); } else { getURL(burl, '_blank'); } if (onClick != undefined) { onClick(); } }; }; v1.setContainer = function (clip) {}; v1.stayOnTop = function (clip) {}; v1._servURL = 'http://www.mochiads.com/static/lib/services/'; v1._services = 'services.swf'; v1._mochiLC = 'MochiLC.swf'; v1._listenChannelName = '__ms_'; v1._connecting = false; v1._connected = false; v1.netup = true; v1.netupAttempted = false; v1.servicesSync = new mochi.as2.MochiSync(); v1.addProperty('childClip', v1.__get__childClip, function () {}); v1.addProperty('clip', v1.__get__clip, function () {}); v1.addProperty('comChannelName', function () {}, v1.__set__comChannelName); v1.addProperty('connected', v1.__get__connected, function () {}); v1.addProperty('id', v1.__get__id, function () {}); v1.addProperty('isNetworkAvailable', v1.__get__isNetworkAvailable, function () {}); ASSetPropFlags(mochi.as2.MochiServices.prototype, null, 1); } #endinitclip } movieClip 2716 __Packages.mochi.as2.MochiEventDispatcher { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiEventDispatcher) { var v1 = function () { this.eventTable = {}; }; mochi.as2.MochiEventDispatcher = v1; var v2 = v1.prototype; v2.buildDelegate = function (thisObject, thatObject) { var v2 = {'thisObject': thisObject, 'thatObject': thatObject}; if (thatObject != undefined) { var funct = (typeof thatObject == 'string') ? thisObject[thatObject] : thatObject; v2.delegate = function (args) { funct.call(thisObject, args); }; return v2; } v2.delegate = thisObject; return v2; }; v2.compareDelegate = function (d_A, d_B) { if (d_A.thisObject != d_B.thisObject || d_A.thatObject != d_B.thatObject) { return false; } return true; }; v2.addEventListener = function (event, thisObject, thatObject) { this.removeEventListener(event, thisObject, thatObject); this.eventTable[event].push(this.buildDelegate(thisObject, thatObject)); }; v2.removeEventListener = function (event, thisObject, thatObject) { var v3 = this.buildDelegate(thisObject, thatObject); if (this.eventTable[event] == undefined) { this.eventTable[event] = []; return undefined; } for (var v4 in this.eventTable[event]) { if (!this.compareDelegate(this.eventTable[event][v4], v3)) { continue; } this.eventTable[event].splice(Number(v4), 1); } }; v2.triggerEvent = function (event, args) { if (this.eventTable[event] == undefined) { return undefined; } for (var v4 in this.eventTable[event]) { this.eventTable[event][v4].delegate(args); } }; ASSetPropFlags(mochi.as2.MochiEventDispatcher.prototype, null, 1); } #endinitclip } movieClip 2717 __Packages.mochi.as2.MochiEvents { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiEvents) { var v1 = function () {}; mochi.as2.MochiEvents = v1; var v2 = v1.prototype; v1.getVersion = function () { return mochi.as2.MochiServices.getVersion(); }; v1.startSession = function (achievementID) { mochi.as2.MochiServices.send('events_beginSession', {'achievementID': achievementID}, null, null); }; v1.trigger = function (kind, obj) { if (obj == undefined) { obj = {}; } else { if (obj.kind != undefined) { trace('WARNING: optional arguements package contains key \'id\', it will be overwritten'); obj.kind = kind; } } mochi.as2.MochiServices.send('events_triggerEvent', {'eventObject': obj}, null, null); }; v1.setNotifications = function (clip, style) { var v2 = {}; for (var v3 in style) { v2[v3] = style[v3]; } v2.clip = clip; mochi.as2.MochiServices.send('events_setNotifications', v2, null, null); }; v1.addEventListener = function (eventType, thisObject, thatObject) { mochi.as2.MochiEvents._dispatcher.addEventListener(eventType, thisObject, thatObject); }; v1.triggerEvent = function (eventType, args) { mochi.as2.MochiEvents._dispatcher.triggerEvent(eventType, args); }; v1.removeEventListener = function (eventType, thisObject, thatObject) { mochi.as2.MochiEvents._dispatcher.removeEventListener(eventType, thisObject, thatObject); }; v1.startGame = function () { mochi.as2.MochiEvents.gameStart = (new Date()).getTime(); mochi.as2.MochiEvents.trigger('start_game'); }; v1.endGame = function () { var v1 = (new Date()).getTime() - mochi.as2.MochiEvents.gameStart; mochi.as2.MochiEvents.trigger('end_game', {'time': v1}); }; v1.startLevel = function () { mochi.as2.MochiEvents.levelStart = (new Date()).getTime(); mochi.as2.MochiEvents.trigger('start_level'); }; v1.endLevel = function () { var v1 = (new Date()).getTime() - mochi.as2.MochiEvents.levelStart; mochi.as2.MochiEvents.trigger('end_level', {'time': v1}); }; v1.ACHIEVEMENT_RECEIVED = 'AchievementReceived'; v1.ALIGN_TOP_LEFT = 'ALIGN_TL'; v1.ALIGN_TOP = 'ALIGN_T'; v1.ALIGN_TOP_RIGHT = 'ALIGN_TR'; v1.ALIGN_LEFT = 'ALIGN_L'; v1.ALIGN_CENTER = 'ALIGN_C'; v1.ALIGN_RIGHT = 'ALIGN_R'; v1.ALIGN_BOTTOM_LEFT = 'ALIGN_BL'; v1.ALIGN_BOTTOM = 'ALIGN_B'; v1.ALIGN_BOTTOM_RIGHT = 'ALIGN_BR'; v1.FORMAT_SHORT = 'ShortForm'; v1.FORMAT_LONG = 'LongForm'; v1._dispatcher = new mochi.as2.MochiEventDispatcher(); ASSetPropFlags(mochi.as2.MochiEvents.prototype, null, 1); } #endinitclip } movieClip 2718 __Packages.mochi.as2.MochiCoins { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiCoins) { var v1 = function () {}; mochi.as2.MochiCoins = v1; var v2 = v1.prototype; v1.getVersion = function () { return mochi.as2.MochiServices.getVersion(); }; v1.showStore = function (options) { mochi.as2.MochiServices.send('coins_showStore', {'options': options}, null, null); }; v1.showItem = function (options) { if (options == undefined || typeof options.item != 'string') { trace('ERROR: showItem call must pass an Object with an item key'); return undefined; } mochi.as2.MochiServices.send('coins_showItem', {'options': options}, null, null); }; v1.showVideo = function (options) { if (options == undefined || typeof options.item != 'string') { trace('ERROR: showVideo call must pass an Object with an item key'); return undefined; } mochi.as2.MochiServices.send('coins_showVideo', {'options': options}, null, null); }; v1.showLoginWidget = function (options) { mochi.as2.MochiServices.setContainer(); mochi.as2.MochiServices.stayOnTop(); mochi.as2.MochiServices.send('coins_showLoginWidget', {'options': options}); }; v1.hideLoginWidget = function () { mochi.as2.MochiServices.send('coins_hideLoginWidget'); }; v1.getStoreItems = function () { mochi.as2.MochiServices.send('coins_getStoreItems'); }; v1.getUserInfo = function () { mochi.as2.MochiServices.send('coins_getUserInfo'); }; v1.saveUserProperties = function (properties) { mochi.as2.MochiServices.send('coins_saveUserProperties', properties); }; v1.addEventListener = function (eventType, delegate) { mochi.as2.MochiCoins._dispatcher.addEventListener(eventType, delegate); }; v1.triggerEvent = function (eventType, args) { mochi.as2.MochiCoins._dispatcher.triggerEvent(eventType, args); }; v1.removeEventListener = function (eventType, delegate) { mochi.as2.MochiCoins._dispatcher.removeEventListener(eventType, delegate); }; v1.LOGGED_IN = 'LoggedIn'; v1.LOGGED_OUT = 'LoggedOut'; v1.LOGIN_SHOW = 'LoginShow'; v1.LOGIN_HIDE = 'LoginHide'; v1.STORE_SHOW = 'StoreShow'; v1.STORE_HIDE = 'StoreHide'; v1.PROFILE_SHOW = 'ProfileShow'; v1.PROFILE_HIDE = 'ProfileHide'; v1.PROPERTIES_SAVED = 'PropertySaved'; v1.WIDGET_LOADED = 'WidgetLoaded'; v1.ITEM_OWNED = 'ItemOwned'; v1.ITEM_NEW = 'ItemNew'; v1.STORE_ITEMS = 'StoreItems'; v1.USER_INFO = 'UserInfo'; v1.ERROR = 'Error'; v1.IO_ERROR = 'IOError'; v1.NO_USER = 'NoUser'; v1.PROPERTIES_SIZE = 'PropertiesSize'; v1._dispatcher = new mochi.as2.MochiEventDispatcher(); ASSetPropFlags(mochi.as2.MochiCoins.prototype, null, 1); } #endinitclip } frame 2 { function myFirstItemHandler() { getURL('http://www.axis-games.com/castlequest.php', ''); } var my_cm; my_cm = new ContextMenu(); my_cm.hideBuiltInItems(); var myFirstItem_cmi; myFirstItem_cmi = new ContextMenuItem('(c)2009 - axis-games.com', myFirstItemHandler); my_cm.customItems.push(myFirstItem_cmi); _root.menu = my_cm; stop(); } movieClip 82 { frame 39 { stop(); } } movieClip 102 { frame 39 { stop(); } } movieClip 104 { } // unknown tag 88 length 81 movieClip 109 { } movieClip 130 { frame 35 { this.gotoAndPlay(1); } } movieClip 132 { } movieClip 133 { frame 144 { stopAllSounds(); } frame 145 { _root.gotoAndPlay('export'); } } frame 3 { stopAllSounds(); } movieClip 148 deathBoltHit { frame 14 { this.removeMovieClip(); } } movieClip 155 { } movieClip 156 blackIce { instance of movieClip 155 { onClipEvent (enterFrame) { _root.checkForProjectile(this._parent, 'blackIce'); } } frame 25 { this.removeMovieClip(); } } movieClip 173 blackIceHit { frame 1 { _root.playSound('blackIceHit'); } frame 24 { this.removeMovieClip(); } } movieClip 186 hellFireHit { frame 7 { this.removeMovieClip(); } } movieClip 193 impaleHit { frame 6 { this.removeMovieClip(); } } movieClip 218 guardianSpirit { frame 1 { _root.playSound('guardianShield'); } frame 13 { this.removeMovieClip(); } } movieClip 225 tornado2Hit { frame 6 { this.removeMovieClip(); } } movieClip 232 { frame 6 { this._parent.removeMovieClip(); } } movieClip 233 whirlwindHit { } movieClip 238 { frame 4 { this._parent.removeMovieClip(); } } movieClip 239 stunPunchHit { } movieClip 246 energyShield { } movieClip 253 stabHit { frame 6 { this.removeMovieClip(); } } // unknown tag 88 length 60 movieClip 258 { frame 1 { stop(); } } movieClip 259 enemySCT { frame 20 { this.removeMovieClip(); } } movieClip 261 { } movieClip 262 heroSCT { frame 20 { this.removeMovieClip(); } } movieClip 289 levelUpEffect { frame 26 { _root.showTutorial(2); this.removeMovieClip(); } } movieClip 292 item1_1 { } movieClip 295 item1_2 { } movieClip 298 item1_3 { } movieClip 301 item1_4 { } movieClip 304 item1_5 { } movieClip 307 item2_1 { } movieClip 310 item2_2 { } movieClip 313 item2_3 { } movieClip 316 item2_4 { } movieClip 319 item2_5 { } movieClip 322 item5_1 { } movieClip 326 frontStart { } movieClip 329 item3_1 { } movieClip 332 castleDoor { } movieClip 335 frontRocks { } movieClip 338 item4_1 { } movieClip 339 tornadoHit { frame 6 { this.removeMovieClip(); } } movieClip 346 { } movieClip 347 hellFire { instance of movieClip 346 { onClipEvent (enterFrame) { _root.checkForProjectile(this._parent, 'hellFire'); } } frame 20 { this.removeMovieClip(); } } movieClip 356 { } movieClip 357 deathBolt { instance of movieClip 356 { onClipEvent (enterFrame) { _root.checkForProjectile(this._parent, 'deathBolt'); } } frame 21 { this.removeMovieClip(); } } movieClip 363 { } movieClip 370 { frame 9 { _root.checkForProjectile(this.weapon, 'brimstone'); _root.playSound('hexinAttack3'); _root.shakeScreen(4); } frame 17 { this._parent.removeMovieClip(); } } movieClip 371 brimstone { } movieClip 378 { } movieClip 387 { } movieClip 388 { } movieClip 403 { frame 3 { _root.playSound('gargoyleAttack2'); } frame 6 { this.weapon._visible = false; _root.checkCollision(this.weapon, 'gargoyle', 'melee', 2); } frame 10 { this._parent.attacking = false; this._parent.gotoAndStop('stand'); } } movieClip 406 { frame 1 { _root.playSound('ghostHit'); } frame 4 { this._parent.hit = false; this._parent.attacking = false; if (this._parent.stunned) { this._parent.gotoAndStop('stunned'); } else { this._parent.gotoAndStop('stand'); } } } movieClip 415 { } movieClip 416 { frame 1 { _root.playSound('effect4'); } frame 15 { _root.removeFromArray('scrollDead', this._parent._parent.scrollName); this._parent._parent.removeMovieClip(); } } movieClip 417 { frame 1 { stop(); } } movieClip 418 gargoyle { instance inside of movieClip 417 { onClipEvent (load) { this.idName = 'gargoyle'; this.health = _root[this.idName][0]; this.speed = _root[this.idName][1]; this.attackReset = _root[this.idName][2]; this.attackRange = _root[this.idName][3]; this.damage = _root[this.idName][8]; this.expAmt = _root[this.idName][7]; this.attacking = false; this.dead = false; this.hit = false; this.stunned = false; this.frozen = false; this.attackTimer = 0; this.stunTimer = 0; this.freezeTimer = 0; this.canHit = true; this.canStun = true; this.canFreeze = true; this._parent._y = _root.ground; } onClipEvent (enterFrame) { if (this.dead == false && this.stunned == false && _root.gamePaused == false) { var dif = _root[_root.hero]._x - this._parent._x; if (dif > _root[this.idName][18]) { this.speed = _root.chaseSpeed; } else { this.speed = _root[this.idName][1]; } if (dif > 0) { this._parent._xscale = -100; } else { this._parent._xscale = 100; } var xDif = Math.abs(dif); if (this.hit == false) { if (xDif > this.attackRange && !this.attacking && !this.frozen) { this.gotoAndStop('walk'); if (_root[_root.hero]._x <= this._parent._x) { this._parent._x -= this.speed; } else { this._parent._x += this.speed; } } else { if (xDif <= this.attackRange && !this.attacking && this.attackTimer == 0) { this.attacking = true; this.attackTimer = 1; this.gotoAndStop('attack1'); } else { if (!this.attacking) { this.gotoAndStop('stand'); } } } } if (this.attackTimer > 0) { ++this.attackTimer; if (this.attackTimer >= this.attackReset) { this.attackTimer = 0; } } } else { if (this.dead) { this.gotoAndStop('die'); } } if (this.stunned && _root.gamePaused == false && this.dead == false) { ++this.stunTimer; if (this.stunTimer >= this.releaseStun) { this.stunned = false; this.stunTimer = 0; this.hit = false; this.attacking = false; this.gotoAndStop('stand'); } } if (this.frozen && _root.gamePaused == false && this.dead == false) { ++this.freezeTimer; if (this.freezeTimer >= this.releaseFreeze) { _root.removeColorEffect(this._parent); this.frozen = false; this.freezeTimer = 0; this.hit = false; this.attacking = false; this.gotoAndStop('stand'); } } } } } movieClip 423 centaurHit1 { frame 5 { this.removeMovieClip(); } } movieClip 424 centaurHit2 { frame 5 { this.removeMovieClip(); } } movieClip 425 centaurHit3 { frame 5 { this.removeMovieClip(); } } movieClip 434 { } movieClip 447 { } movieClip 450 { frame 1 { _root.playSound('titanHit'); } frame 4 { this._parent.hit = false; } } movieClip 471 { } movieClip 472 { frame 1 { _root.playSound('centaurDie'); } frame 35 { _root.nextArea(); this._parent._parent.removeMovieClip(); } } movieClip 473 { } movieClip 486 { frame 1 { this._parent.canHit = false; ++this._parent.timesAttacked; if (this._parent.timesAttacked > 3) { this._parent.chargeDir = this._parent._parent._xscale / 100; this._parent.action = 'charge'; this._parent.gotoAndStop('attack3'); } else { this._parent.findAttack(); } } frame 5 { this.weapon._visible = false; _root.playSound('bullAttack'); _root.checkCollision(this.weapon, 'centaur', 'melee', 1); } frame 8 { this._parent.canHit = true; } } movieClip 495 { frame 1 { ++this._parent.timesAttacked; if (this._parent.timesAttacked >= 3) { this._parent.chargeDir = this._parent._parent._xscale / 100; this._parent.action = 'charge'; this._parent.gotoAndStop('attack3'); } else { this._parent.findAttack(); } } frame 7 { _root.playSound('centaurAttack2'); _root.playSound('centaurAttack2'); _root.useAttackEnemy(this._parent._parent, 2); _root.useAttackEnemy(this._parent._parent, 4); } frame 12 { this._parent.canHit = true; } } movieClip 496 { frame 1 { this.weapon._visible = false; _root.playSound('centaurAttack3'); _root.checkCollision(this.weapon, 'centaur', 'melee', 3); } } movieClip 497 { frame 1 { stop(); } } movieClip 498 centaur { instance inside of movieClip 497 { onClipEvent (load) { this.idName = 'centaur'; this.health = _root[this.idName][0]; this.speed = _root[this.idName][1]; this.attackReset = _root[this.idName][2]; this.attackRange = _root[this.idName][3]; this.expAmt = _root[this.idName][7]; this.attacking = false; this.dead = false; this.hit = false; this.canHit = false; this.canStun = false; this.canFreeze = false; this.actionTimer = 0; this.action = 'enter'; this.chargeDir = 1; this._parent._y = _root.ground; this._parent._x = 850; this.timesAttacked = 0; } onClipEvent (enterFrame) { function findAttack() { var v3 = Math.abs(_root[_root.hero]._x - this._parent._x); if (v3 < 160) { this.action = 'attack1'; this.canHit = false; } else { if (v3 > 300) { this.action = 'attack2'; this.canHit = false; } else { this.action = 'approach'; } } } _root.bossWindow.hpBar._xscale = (this.health / _root[this.idName][0]) * 100; if (this.hit == false && this.dead == false && _root.gamePaused == false) { if (this._parent._x > 670 || this._parent._x < -20) { this.canHit = false; } if (this.action == 'enter') { this.canHit = true; this.gotoAndStop('walk'); this._parent._x -= this.speed * (this._parent._xscale / 100); if (this._parent._x <= 550 && this._parent._x > 100) { findAttack(); } } else { if (this.action == 'attack1') { this.gotoAndStop('attack1'); } else { if (this.action == 'attack2') { this.gotoAndStop('attack2'); } else { if (this.action == 'approach') { this.canHit = true; this.gotoAndStop('walk'); if (this._parent._x < _root[_root.hero]._x) { this._parent._x += this.speed; this._parent._xscale = -100; } else { this._parent._x -= this.speed; this._parent._xscale = 100; } findAttack(); } else { if (this.action == 'charge') { this.canHit = true; this.gotoAndStop('attack3'); this._parent._x -= this.speed * 2 * (this._parent._xscale / 100); if (this._parent._x < -75 || this._parent._x > 725) { this._parent._xscale *= -1; this.action = 'enter'; this.timesAttacked = 0; } } else { if (this.action == 'stand') { this.gotoAndStop('stand'); } } } } } } } } } } movieClip 501 { } movieClip 502 centaurAttack2 { instance of movieClip 501 { onClipEvent (enterFrame) { _root.checkCollision(this._parent, 'centaur', 'proj', 2); } } frame 16 { this.removeMovieClip(); } } movieClip 503 centaurAttack4 { instance of movieClip 501 { onClipEvent (enterFrame) { _root.checkCollision(this._parent, 'centaur', 'proj', 2); } } frame 16 { this.removeMovieClip(); } } movieClip 504 gladiatorHit1 { } movieClip 505 gladiatorHit2 { } movieClip 506 gladiatorHit3 { } movieClip 515 { frame 36 { this._parent.findAttack(); } } movieClip 526 { } movieClip 545 { frame 12 { ++this._parent.timesAttacked; _root.useAttackEnemy(this._parent._parent, 1); _root.playSound('gladiatorAttack1'); } frame 19 { if (this._parent.timesAttacked > 3) { this._parent.chargeDir = this._parent._parent._xscale / 100; this._parent.action = 'charge'; this._parent.gotoAndStop('attack3'); } else { this._parent.action = 'stand'; } } } movieClip 556 { frame 3 { _root.playSound('gladiatorAttack2'); } frame 16 { this.weapon._visible = false; ++this._parent.timesAttacked; _root.checkCollision(this.weapon, 'gladiator', 'melee', 2); } frame 20 { if (this._parent.timesAttacked > 3) { this._parent.chargeDir = this._parent._parent._xscale / 100; this._parent.action = 'charge'; this._parent.gotoAndStop('attack3'); } else { this._parent.action = 'stand'; } } } movieClip 559 { frame 1 { _root.playSound('gladiatorHit'); } frame 4 { this._parent.hit = false; if (this._parent.health < _root.gladiator[0] / 2) { this._parent.attackRange = 200; } if (this._parent.stunned) { this._parent.gotoAndStop('stunned'); } if (this._parent.action == 'stand') { this._parent.findAttack(); } } } movieClip 586 { } movieClip 587 { frame 1 { _root.playSound('centaurDie'); } frame 37 { _root.nextArea(); this._parent._parent.removeMovieClip(); } } movieClip 588 { frame 1 { this.weapon._visible = false; _root.checkCollision(this.weapon, 'gladiator', 'melee', 3); _root.playSound('gladiatorCharge'); } frame 7 { _root.playSound('gladiatorCharge'); } } movieClip 589 { frame 1 { stop(); } } movieClip 590 gladiator { instance inside of movieClip 589 { onClipEvent (load) { this.idName = 'gladiator'; this.health = _root[this.idName][0]; this.speed = _root[this.idName][1]; this.attackReset = _root[this.idName][2]; this.attackRange = _root[this.idName][3]; this.expAmt = _root[this.idName][7]; this.attacking = false; this.dead = false; this.hit = false; this.canHit = false; this.canStun = false; this.canFreeze = false; this.stunTimer = 0; this.action = 'enter'; this.chargeDir = 1; this._parent._y = _root.ground; this._parent._x = 850; this.stunned = false; this.timesAttacked = 0; this.bugTimer = 0; } onClipEvent (enterFrame) { function findAttack() { var v3 = Math.abs(_root[_root.hero]._x - this._parent._x); if (v3 < this.attackRange) { if (this.health > _root[this.idName][0] / 2) { this.action = 'attack1'; } else { if (v3 < this.attackRange - 100) { this.action = 'attack2'; } else { this.action = 'approach'; } } } else { this.action = 'approach'; } } _root.bossWindow.hpBar._xscale = (this.health / _root[this.idName][0]) * 100; if (this._parent._x > 600) { ++this.bugTimer; if (this.bugTimer >= 125) { this.bugTimer = 0; _root._parent._x = 575; findAttack(); } } if (this.hit == false && this.dead == false && _root.gamePaused == false) { if (this._parent._x > 670 || this._parent._x < -20) { this.canHit = false; } if (this.action != 'charge' && this.action != 'enter') { if (this._parent._x < _root[_root.hero]._x) { this._parent._xscale = -100; } else { this._parent._xscale = 100; } } if (this.action == 'enter') { this.canHit = true; this.gotoAndStop('walk'); this._parent._x -= this.speed * (this._parent._xscale / 100); if (this._parent._x <= 550 && this._parent._x > 100) { findAttack(); } } else { if (this.action == 'attack1') { this.canHit = false; this.gotoAndStop('attack1'); } else { if (this.action == 'attack2') { this.canHit = false; this.gotoAndStop('attack2'); } else { if (this.action == 'approach') { this.canHit = true; this.gotoAndStop('walk'); if (this._parent._x < _root[_root.hero]._x) { this._parent._x += this.speed; this._parent._xscale = -100; } else { this._parent._x -= this.speed; this._parent._xscale = 100; } findAttack(); } else { if (this.action == 'charge') { this.gotoAndStop('attack3'); this.canHit = true; this._parent._x -= (this.speed + 2) * (this._parent._xscale / 100); if (this._parent._x < -75 || this._parent._x > 725) { this._parent._xscale *= -1; this.action = 'enter'; this.timesAttacked = 0; } } else { if (this.action == 'stand') { this.canHit = true; this.gotoAndStop('stand'); } } } } } } } } } } movieClip 593 { } movieClip 594 gladiatorAttack1 { instance of movieClip 593 { onClipEvent (enterFrame) { _root.checkCollision(this._parent, 'gladiator', 'proj', 1); } } frame 10 { this.removeMovieClip(); } } movieClip 599 houndHit1 { frame 5 { this.removeMovieClip(); } } movieClip 608 { } movieClip 609 { } movieClip 634 { frame 9 { this.weapon._visible = false; _root.shakeScreen(4); _root.checkCollision(this.weapon, 'hound', 'melee', 1); _root.playSound('houndAttack'); } frame 14 { this._parent.attacking = false; this._parent.gotoAndStop('stand'); } } movieClip 637 { frame 1 { _root.playSound('houndHit'); } frame 4 { this._parent.hit = false; this._parent.attacking = false; if (this._parent.stunned) { this._parent.gotoAndStop('stunned'); } else { this._parent.gotoAndStop('stand'); } } } movieClip 648 { } movieClip 649 { frame 1 { _root.playSound('houndDie'); } frame 14 { _root.removeFromArray('scrollDead', this._parent._parent.scrollName); this._parent._parent.removeMovieClip(); } } movieClip 666 { } movieClip 667 { frame 1 { stop(); } } movieClip 668 hound { instance inside of movieClip 667 { onClipEvent (load) { this.idName = 'hound'; this.health = _root[this.idName][0]; this.speed = _root[this.idName][1]; this.attackReset = _root[this.idName][2]; this.attackRange = _root[this.idName][3]; this.damage = _root[this.idName][8]; this.expAmt = _root[this.idName][7]; this.attacking = false; this.dead = false; this.hit = false; this.stunned = false; this.frozen = false; this.attackTimer = 0; this.stunTimer = 0; this.freezeTimer = 0; this.canHit = true; this.canStun = true; this.canFreeze = true; this._parent._y = _root.ground; } onClipEvent (enterFrame) { if (this.dead == false && this.stunned == false && _root.gamePaused == false) { var dif = _root[_root.hero]._x - this._parent._x; if (dif > _root[this.idName][18]) { this.speed = _root.chaseSpeed; } else { this.speed = _root[this.idName][1]; } if (dif > 0) { this._parent._xscale = -100; } else { this._parent._xscale = 100; } var xDif = Math.abs(dif); if (this.hit == false) { if (xDif > this.attackRange && !this.attacking && !this.frozen) { this.gotoAndStop('walk'); if (_root[_root.hero]._x <= this._parent._x) { this._parent._x -= this.speed; } else { this._parent._x += this.speed; } } else { if (xDif <= this.attackRange && !this.attacking && this.attackTimer == 0) { this.attacking = true; this.attackTimer = 1; this.gotoAndStop('attack1'); } else { if (!this.attacking) { this.gotoAndStop('stand'); } } } } if (this.attackTimer > 0) { ++this.attackTimer; if (this.attackTimer >= this.attackReset) { this.attackTimer = 0; } } } else { if (this.dead) { this.gotoAndStop('die'); } } if (this.stunned && _root.gamePaused == false && this.dead == false) { ++this.stunTimer; if (this.stunTimer >= this.releaseStun) { this.stunned = false; this.stunTimer = 0; this.hit = false; this.attacking = false; this.gotoAndStop('stand'); } } if (this.frozen && _root.gamePaused == false && this.dead == false) { ++this.freezeTimer; if (this.freezeTimer >= this.releaseFreeze) { _root.removeColorEffect(this._parent); this.frozen = false; this.freezeTimer = 0; this.hit = false; this.attacking = false; this.gotoAndStop('stand'); } } } } } movieClip 675 monkHit1 { frame 1 { _root.playSound('monkAttackHit'); } frame 4 { this.removeMovieClip(); } } movieClip 678 { } movieClip 679 monkAttack1 { instance of movieClip 678 { onClipEvent (enterFrame) { _root.checkCollision(this._parent, 'monk', 'proj', 1); } } frame 15 { this.removeMovieClip(); } } movieClip 686 { } movieClip 695 { } movieClip 704 { frame 5 { _root.useAttackEnemy(this._parent._parent, 1); _root.playSound('monkAttack'); } frame 9 { this._parent.attacking = false; this._parent.gotoAndStop('stand'); } } movieClip 707 { frame 1 { _root.playSound('zombieHit'); } frame 4 { this._parent.hit = false; this._parent.attacking = false; if (this._parent.stunned) { this._parent.gotoAndStop('stunned'); } else { this._parent.gotoAndStop('stand'); } } } movieClip 708 { } movieClip 729 { } movieClip 730 { frame 1 { _root.playSound('monkDie'); } frame 15 { _root.removeFromArray('scrollDead', this._parent._parent.scrollName); this._parent._parent.removeMovieClip(); } } movieClip 731 { frame 1 { stop(); } } movieClip 732 monk { instance inside of movieClip 731 { onClipEvent (load) { this.idName = 'monk'; this.health = _root[this.idName][0]; this.speed = _root[this.idName][1]; this.attackReset = _root[this.idName][2]; this.attackRange = _root[this.idName][3]; this.damage = _root[this.idName][8]; this.expAmt = _root[this.idName][7]; this.attacking = false; this.dead = false; this.hit = false; this.stunned = false; this.frozen = false; this.attackTimer = 0; this.stunTimer = 0; this.freezeTimer = 0; this.canHit = true; this.canStun = true; this.canFreeze = true; this._parent._y = _root.ground; } onClipEvent (enterFrame) { if (this.dead == false && this.stunned == false && _root.gamePaused == false) { var dif = _root[_root.hero]._x - this._parent._x; if (dif > _root[this.idName][18]) { this.speed = _root.chaseSpeed; } else { this.speed = _root[this.idName][1]; } if (dif > 0) { this._parent._xscale = -100; } else { this._parent._xscale = 100; } var xDif = Math.abs(dif); if (this.hit == false) { if (xDif > this.attackRange && !this.attacking && !this.frozen || this._parent._x < 25 || this._parent._x > 625) { this.gotoAndStop('walk'); if (_root[_root.hero]._x <= this._parent._x) { this._parent._x -= this.speed; } else { this._parent._x += this.speed; } } else { if (xDif <= this.attackRange && !this.attacking && this.attackTimer == 0) { this.attacking = true; this.attackTimer = 1; this.gotoAndStop('attack1'); } else { if (!this.attacking) { this.gotoAndStop('stand'); } } } } if (this.attackTimer > 0) { ++this.attackTimer; if (this.attackTimer >= this.attackReset) { this.attackTimer = 0; } } } else { if (this.dead) { this.gotoAndStop('die'); } } if (this.stunned && _root.gamePaused == false && this.dead == false) { ++this.stunTimer; if (this.stunTimer >= this.releaseStun) { this.stunned = false; this.stunTimer = 0; this.hit = false; this.attacking = false; this.gotoAndStop('stand'); } } if (this.frozen && _root.gamePaused == false && this.dead == false) { ++this.freezeTimer; if (this.freezeTimer >= this.releaseFreeze) { _root.removeColorEffect(this._parent); this.frozen = false; this.freezeTimer = 0; this.hit = false; this.attacking = false; this.gotoAndStop('stand'); } } } } } movieClip 737 skeletonHit1 { frame 7 { this.removeMovieClip(); } } movieClip 744 { } movieClip 753 { } movieClip 770 { frame 7 { this.weapon._visible = false; _root.checkCollision(this.weapon, 'skeleton', 'melee', 1); _root.playSound('skeletonAttack'); } frame 10 { this._parent.attacking = false; this._parent.gotoAndStop('stand'); } } movieClip 773 { frame 1 { _root.playSound('skeletonHit'); } frame 4 { this._parent.hit = false; this._parent.attacking = false; if (this._parent.stunned) { this._parent.gotoAndStop('stunned'); } else { this._parent.gotoAndStop('stand'); } } } movieClip 774 { } movieClip 785 { } movieClip 786 { frame 1 { _root.playSound('skeletonDie'); } frame 13 { _root.removeFromArray('scrollDead', this._parent._parent.scrollName); this._parent._parent.removeMovieClip(); } } movieClip 787 { frame 1 { stop(); } } movieClip 788 skeleton { instance inside of movieClip 787 { onClipEvent (load) { this.idName = 'skeleton'; this.health = _root[this.idName][0]; this.speed = _root[this.idName][1]; this.attackReset = _root[this.idName][2]; this.attackRange = _root[this.idName][3]; this.damage = _root[this.idName][8]; this.expAmt = _root[this.idName][7]; this.attacking = false; this.dead = false; this.hit = false; this.stunned = false; this.frozen = false; this.attackTimer = 0; this.stunTimer = 0; this.freezeTimer = 0; this.canHit = true; this.canStun = true; this.canFreeze = true; this._parent._y = _root.ground; } onClipEvent (enterFrame) { if (this.dead == false && this.stunned == false && _root.gamePaused == false) { var dif = _root[_root.hero]._x - this._parent._x; if (dif > _root[this.idName][18]) { this.speed = _root.chaseSpeed; } else { this.speed = _root[this.idName][1]; } if (dif > 0) { this._parent._xscale = -100; } else { this._parent._xscale = 100; } var xDif = Math.abs(dif); if (this.hit == false) { if (xDif > this.attackRange && !this.attacking && !this.frozen) { this.gotoAndStop('walk'); if (_root[_root.hero]._x <= this._parent._x) { this._parent._x -= this.speed; } else { this._parent._x += this.speed; } } else { if (xDif <= this.attackRange && !this.attacking && this.attackTimer == 0) { this.attacking = true; this.attackTimer = 1; this.gotoAndStop('attack1'); } else { if (!this.attacking) { this.gotoAndStop('stand'); } } } } if (this.attackTimer > 0) { ++this.attackTimer; if (this.attackTimer >= this.attackReset) { this.attackTimer = 0; } } } else { if (this.dead) { this.gotoAndStop('die'); } } if (this.stunned && _root.gamePaused == false && this.dead == false) { ++this.stunTimer; if (this.stunTimer >= this.releaseStun) { this.stunned = false; this.stunTimer = 0; this.hit = false; this.attacking = false; this.gotoAndStop('stand'); } } if (this.frozen && _root.gamePaused == false && this.dead == false) { ++this.freezeTimer; if (this.freezeTimer >= this.releaseFreeze) { _root.removeColorEffect(this._parent); this.frozen = false; this.freezeTimer = 0; this.hit = false; this.attacking = false; this.gotoAndStop('stand'); } } } } } movieClip 799 { } movieClip 800 ghostAttack1 { instance of movieClip 799 { onClipEvent (enterFrame) { _root.checkCollision(this._parent, 'ghost', 'proj', 1); } } frame 20 { this.removeMovieClip(); } } movieClip 809 { } movieClip 818 { } movieClip 819 { } movieClip 822 { frame 1 { _root.playSound('ghostHit'); } frame 4 { this._parent.hit = false; this._parent.attacking = false; if (this._parent.stunned) { this._parent.gotoAndStop('stunned'); } else { this._parent.gotoAndStop('stand'); } } } movieClip 835 { frame 1 { _root.playSound('ghostDie'); } frame 9 { _root.removeFromArray('scrollDead', this._parent._parent.scrollName); this._parent._parent.removeMovieClip(); } } movieClip 864 { frame 12 { _root.useAttackEnemy(this._parent._parent, 1); _root.playSound('ghostAttack'); } frame 27 { this._parent.attacking = false; this._parent.gotoAndStop('stand'); } } movieClip 865 { frame 1 { stop(); } } movieClip 866 ghost { instance inside of movieClip 865 { onClipEvent (load) { this.idName = 'ghost'; this.health = _root[this.idName][0]; this.speed = _root[this.idName][1]; this.attackReset = _root[this.idName][2]; this.attackRange = _root[this.idName][3]; this.damage = _root[this.idName][8]; this.expAmt = _root[this.idName][7]; this.attacking = false; this.dead = false; this.hit = false; this.stunned = false; this.frozen = false; this.attackTimer = 0; this.stunTimer = 0; this.freezeTimer = 0; this.canHit = true; this.canStun = true; this.canFreeze = true; this._parent._y = _root.ground; } onClipEvent (enterFrame) { if (this.dead == false && this.stunned == false && _root.gamePaused == false) { var dif = _root[_root.hero]._x - this._parent._x; if (dif > _root[this.idName][18]) { this.speed = _root.chaseSpeed; } else { this.speed = _root[this.idName][1]; } if (dif > 0) { this._parent._xscale = -100; } else { this._parent._xscale = 100; } var xDif = Math.abs(dif); if (this.hit == false) { if ((xDif > this.attackRange || this._parent._x < 25 || this._parent._x > 625) && !this.attacking && !this.frozen) { this.gotoAndStop('walk'); if (_root[_root.hero]._x <= this._parent._x) { this._parent._x -= this.speed; } else { this._parent._x += this.speed; } } else { if (xDif <= this.attackRange && !this.attacking && this.attackTimer == 0) { this.attacking = true; this.attackTimer = 1; this.gotoAndStop('attack1'); } else { if (!this.attacking) { this.gotoAndStop('stand'); } } } } if (this.attackTimer > 0) { ++this.attackTimer; if (this.attackTimer >= this.attackReset) { this.attackTimer = 0; } } } if (this.stunned && _root.gamePaused == false && this.dead == false) { ++this.stunTimer; if (this.stunTimer >= this.releaseStun) { this.stunned = false; this.stunTimer = 0; this.hit = false; this.attacking = false; this.gotoAndStop('stand'); } } if (this.frozen && _root.gamePaused == false && this.dead == false) { ++this.freezeTimer; if (this.freezeTimer >= this.releaseFreeze) { _root.removeColorEffect(this._parent); this.frozen = false; this.freezeTimer = 0; this.hit = false; this.attacking = false; this.gotoAndStop('stand'); } } } } } movieClip 881 taurenAttack1 { frame 40 { _root.useAttackEnemy(_root[_root.enemyArray[0]], 3); this.removeMovieClip(); } } movieClip 894 taurenAttack2 { frame 1 { _root.checkCollision(this.weapon, 'tauren', 'melee', 2); _root.playSound('taurenAttack2'); } frame 13 { this.removeMovieClip(); } } movieClip 897 { } movieClip 910 taurenAttack3 { instance of movieClip 897 { onClipEvent (enterFrame) { _root.checkCollision(this._parent, 'tauren', 'proj', 2); } } frame 7 { _root.shakeScreen(4); _root.playSound('taurenAttack1'); } frame 12 { if (_root.bossEffectX < this._x && this._x < 550) { var atkName = 'attack' + _root.attackDepth; _root.attachMovie('taurenAttack3', atkName, _root.attackDepth++); _root[atkName]._x = this._x + 115; _root[atkName]._y = _root.ground; } else { if (_root.bossEffectX > this._x && this._x > 50) { var atkName = 'attack' + _root.attackDepth; _root.attachMovie('taurenAttack3', atkName, _root.attackDepth++); _root[atkName]._x = this._x - 115; _root[atkName]._y = _root.ground; } } this.removeMovieClip(); } } movieClip 915 taurenHit1 { frame 7 { this.removeMovieClip(); } } movieClip 924 { frame 24 { if (random(2) == 0) { this._parent.timesAttacked = 0; this._parent.action = 'attack2'; } else { this._parent.timesAttacked = 0; this._parent.action = 'attack1'; } if (this._parent._parent._x > 550) { this._parent.action = 'enter'; } } } movieClip 935 { } movieClip 938 { frame 1 { _root.playSound('taurenHit'); } frame 4 { if (this._parent.action == 'stand') { if (random(2) == 0) { this._parent.timesAttacked = 0; this._parent.action = 'attack2'; } else { this._parent.timesAttacked = 0; this._parent.action = 'attack1'; } if (this._parent._parent._x > 550) { this._parent.action = 'enter'; } } else { this._parent.hit = false; this._parent.attacking = false; this._parent.gotoAndStop('stand'); } } } movieClip 949 { } movieClip 950 { frame 1 { _root.playSound('centaurDie'); } frame 16 { _root.nextArea(); this._parent._parent.removeMovieClip(); } } movieClip 951 { } movieClip 962 { frame 9 { _root.useAttackEnemy(this._parent._parent, 1); } frame 18 { this.canHit = true; } frame 32 { this._parent.action = 'backOut'; this._parent.gotoAndStop('backOut'); } } movieClip 973 { frame 17 { ++this._parent.timesAttacked; _root.shakeScreen(4); _root.useAttackEnemy(this._parent._parent, 2); } frame 25 { if (this._parent.timesAttacked >= 3) { this._parent.action = 'backOut'; this._parent.gotoAndStop('backOut'); } } } movieClip 974 { frame 1 { stop(); } } movieClip 975 tauren { instance inside of movieClip 974 { onClipEvent (load) { this.idName = 'tauren'; this.health = _root[this.idName][0]; this.speed = _root[this.idName][1]; this.attackReset = _root[this.idName][2]; this.attackRange = _root[this.idName][3]; this.expAmt = _root[this.idName][7]; this.attacking = false; this.dead = false; this.hit = false; this.canHit = false; this.canStun = false; this.canFreeze = false; this.actionTimer = 0; this.action = 'enter'; this._parent._y = _root.ground; this._parent._x = 850; this.timesAttacked = 5; } onClipEvent (enterFrame) { _root.bossWindow.hpBar._xscale = (this.health / _root[this.idName][0]) * 100; if (this.hit == false && this.dead == false && _root.gamePaused == false) { if (this._parent._x > 730) { this.canHit = false; } if (this.action == 'enter') { this.canHit = true; this.gotoAndStop('walk'); this._parent._x -= this.speed + 1; if (this._parent._x <= 550) { if (this.timesAttacked == 5) { this.canHit = true; this.action = 'stand'; this.gotoAndStop('stand'); } else { if (random(2) == 0) { this.timesAttacked = 0; this.action = 'attack2'; } else { this.timesAttacked = 0; this.action = 'attack1'; } } } } else { if (this.action == 'attack1') { this.canHit = false; this.gotoAndStop('attack1'); } else { if (this.action == 'attack2') { this.canHit = false; this.gotoAndStop('attack2'); } else { if (this.action == 'backOut') { this.canHit = true; this.gotoAndStop('backOut'); this._parent._x += this.speed + 1; if (this._parent._x >= 850) { this.action = 'enter'; this._parent._x = 775; } } else { if (this.action == 'stand') { this.gotoAndStop('stand'); } } } } } } } } } movieClip 982 { } movieClip 995 { frame 9 { this.weapon._visible = false; _root.shakeScreen(4); _root.checkCollision(this.weapon, 'titan', 'melee', 1); _root.playSound('titanAttack2'); } frame 11 { this._parent.attacking = false; this._parent.gotoAndStop('stand'); } } movieClip 1008 { } movieClip 1017 { } movieClip 1018 { frame 14 { _root.removeFromArray('scrollDead', this._parent._parent.scrollName); this._parent._parent.removeMovieClip(); } } movieClip 1019 { } movieClip 1022 { frame 1 { _root.playSound('titanHit'); } frame 4 { this._parent.hit = false; this._parent.attacking = false; if (this._parent.stunned) { this._parent.gotoAndStop('stunned'); } else { this._parent.gotoAndStop('stand'); } } } movieClip 1023 { } movieClip 1024 titan { instance inside of movieClip 1023 { onClipEvent (load) { this.idName = 'titan'; this.health = _root[this.idName][0]; this.speed = _root[this.idName][1]; this.attackReset = _root[this.idName][2]; this.attackRange = _root[this.idName][3]; this.damage = _root[this.idName][8]; this.expAmt = _root[this.idName][7]; this.attacking = false; this.dead = false; this.hit = false; this.stunned = false; this.frozen = false; this.attackTimer = 0; this.stunTimer = 0; this.freezeTimer = 0; this.canHit = true; this.canStun = true; this.canFreeze = true; this._parent._y = _root.ground; } onClipEvent (enterFrame) { if (this.dead == false && this.stunned == false && _root.gamePaused == false) { var dif = _root[_root.hero]._x - this._parent._x; if (dif > _root[this.idName][18]) { this.speed = _root.chaseSpeed; } else { this.speed = _root[this.idName][1]; } if (dif > 0) { this._parent._xscale = -100; } else { this._parent._xscale = 100; } var xDif = Math.abs(dif); if (this.hit == false) { if (xDif > this.attackRange && !this.attacking && !this.frozen) { this.gotoAndStop('walk'); if (_root[_root.hero]._x <= this._parent._x) { this._parent._x -= this.speed; } else { this._parent._x += this.speed; } } else { if (xDif <= this.attackRange && !this.attacking && this.attackTimer == 0) { this.attacking = true; this.attackTimer = 1; this.gotoAndStop('attack1'); } else { if (!this.attacking) { this.gotoAndStop('stand'); } } } } if (this.attackTimer > 0) { ++this.attackTimer; if (this.attackTimer >= this.attackReset) { this.attackTimer = 0; } } } else { if (this.dead) { this.gotoAndStop('die'); } } if (this.stunned && _root.gamePaused == false && this.dead == false) { ++this.stunTimer; if (this.stunTimer >= this.releaseStun) { this.stunned = false; this.stunTimer = 0; this.hit = false; this.attacking = false; this.gotoAndStop('stand'); } } if (this.frozen && _root.gamePaused == false && this.dead == false) { ++this.freezeTimer; if (this.freezeTimer >= this.releaseFreeze) { _root.removeColorEffect(this._parent); this.frozen = false; this.freezeTimer = 0; this.hit = false; this.attacking = false; this.gotoAndStop('stand'); } } } } } movieClip 1037 { frame 4 { this.weapon._visible = false; _root.checkCollision(this.weapon, 'wizard', 'melee', 1); } frame 8 { this._parent.removeMovieClip(); } } movieClip 1038 wizardAttack1 { } movieClip 1039 wizardHit1 { frame 1 { _root.playSound('wizardAttackHit'); } frame 7 { this.removeMovieClip(); } } movieClip 1046 { } movieClip 1055 { } movieClip 1078 { frame 5 { _root.playSound('wizardAttack1'); } frame 17 { _root.useAttackEnemy(this._parent._parent, 1); } frame 26 { this._parent.attacking = false; this._parent.gotoAndStop('stand'); } } movieClip 1087 { frame 6 { _root.playSound('bullAttack'); } frame 8 { this.weapon._visible = false; _root.checkCollision(this.weapon, 'wizard', 'melee', 2); } frame 9 { this.weapon._visible = false; _root.checkCollision(this.weapon, 'wizard', 'melee', 2); } frame 16 { this._parent.attacking = false; this._parent.gotoAndStop('stand'); } } movieClip 1090 { frame 1 { _root.playSound('wizardHit'); } frame 4 { this._parent.hit = false; this._parent.attacking = false; if (this._parent.stunned) { this._parent.gotoAndStop('stunned'); } else { this._parent.gotoAndStop('stand'); } } } movieClip 1091 { } movieClip 1100 { } movieClip 1101 { frame 1 { _root.playSound('wizardDie'); } frame 15 { _root.removeFromArray('scrollDead', this._parent._parent.scrollName); this._parent._parent.removeMovieClip(); } } movieClip 1102 { frame 1 { stop(); } } movieClip 1103 wizard { instance inside of movieClip 1102 { onClipEvent (load) { this.idName = 'wizard'; this.health = _root[this.idName][0]; this.speed = _root[this.idName][1]; this.attackReset = _root[this.idName][2]; this.attackRange = _root[this.idName][3]; this.damage = _root[this.idName][8]; this.expAmt = _root[this.idName][7]; this.attacking = false; this.dead = false; this.hit = false; this.stunned = false; this.frozen = false; this.attackTimer = 0; this.stunTimer = 0; this.freezeTimer = 0; this.canHit = true; this.canStun = true; this.canFreeze = true; this._parent._y = _root.ground; } onClipEvent (enterFrame) { if (this.dead == false && this.stunned == false && _root.gamePaused == false) { var dif = _root[_root.hero]._x - this._parent._x; if (dif > _root[this.idName][18]) { this.speed = _root.chaseSpeed; } else { this.speed = _root[this.idName][1]; } if (dif > 0) { this._parent._xscale = -100; } else { this._parent._xscale = 100; } var xDif = Math.abs(dif); if (this.hit == false) { if (xDif > this.attackRange && xDif < 300 && !this.attacking && this.attackTimer == 0 && this._parent._x > 25 && this._parent._x < 625) { this.attacking = true; this.attackTimer = 1; this.gotoAndStop('attack1'); } else { if (xDif > this.attackRange && !this.attacking && !this.frozen) { this.gotoAndStop('walk'); if (_root[_root.hero]._x <= this._parent._x) { this._parent._x -= this.speed; } else { this._parent._x += this.speed; } } else { if (xDif <= this.attackRange && !this.attacking && this.attackTimer == 0) { this.attacking = true; this.attackTimer = 1; this.gotoAndStop('attack2'); } else { if (!this.attacking) { this.gotoAndStop('stand'); } } } } } if (this.attackTimer > 0) { ++this.attackTimer; if (this.attackTimer >= this.attackReset) { this.attackTimer = 0; } } } else { if (this.dead) { this.gotoAndStop('die'); } } if (this.stunned && _root.gamePaused == false && this.dead == false) { ++this.stunTimer; if (this.stunTimer >= this.releaseStun) { this.stunned = false; this.stunTimer = 0; this.hit = false; this.attacking = false; this.gotoAndStop('stand'); } } if (this.frozen && _root.gamePaused == false && this.dead == false) { ++this.freezeTimer; if (this.freezeTimer >= this.releaseFreeze) { _root.removeColorEffect(this._parent); this.frozen = false; this.freezeTimer = 0; this.hit = false; this.attacking = false; this.gotoAndStop('stand'); } } } } } movieClip 1108 zombieHit1 { frame 3 { this.removeMovieClip(); } } movieClip 1117 { } movieClip 1128 { } movieClip 1159 { frame 10 { this.weapon._visible = false; _root.checkCollision(this.weapon, 'zombie', 'melee', 1); _root.playSound('zombieAttack1'); } frame 19 { this._parent.attacking = false; this._parent.gotoAndStop('stand'); } } movieClip 1162 { frame 1 { _root.playSound('zombieHit'); } frame 5 { this._parent.hit = false; this._parent.attacking = false; if (this._parent.stunned) { this._parent.gotoAndStop('stunned'); } else { this._parent.gotoAndStop('stand'); } } } movieClip 1163 { } movieClip 1184 { } movieClip 1185 { frame 1 { _root.playSound('zombieDie'); } frame 16 { _root.removeFromArray('scrollDead', this._parent._parent.scrollName); this._parent._parent.removeMovieClip(); } } movieClip 1186 { frame 1 { stop(); } } movieClip 1187 zombie { instance inside of movieClip 1186 { onClipEvent (load) { this.idName = 'zombie'; this.health = _root[this.idName][0]; this.speed = _root[this.idName][1]; this.attackReset = _root[this.idName][2]; this.attackRange = _root[this.idName][3]; this.damage = _root[this.idName][8]; this.expAmt = _root[this.idName][7]; this.attacking = false; this.dead = false; this.hit = false; this.stunned = false; this.frozen = false; this.attackTimer = 0; this.stunTimer = 0; this.freezeTimer = 0; this.canHit = true; this.canStun = true; this.canFreeze = true; this._parent._y = _root.ground; } onClipEvent (enterFrame) { if (this.dead == false && this.stunned == false && _root.gamePaused == false) { var dif = _root[_root.hero]._x - this._parent._x; if (dif > _root[this.idName][18]) { this.speed = _root.chaseSpeed; } else { this.speed = _root[this.idName][1]; } if (dif > 0) { this._parent._xscale = -100; } else { this._parent._xscale = 100; } var xDif = Math.abs(dif); if (this.hit == false) { if (xDif > this.attackRange && !this.attacking && !this.frozen) { this.gotoAndStop('walk'); if (_root[_root.hero]._x <= this._parent._x) { this._parent._x -= this.speed; } else { this._parent._x += this.speed; } } else { if (xDif <= this.attackRange && !this.attacking && this.attackTimer == 0) { this.attacking = true; this.attackTimer = 1; this.gotoAndStop('attack1'); } else { if (!this.attacking) { this.gotoAndStop('stand'); } } } } if (this.attackTimer > 0) { ++this.attackTimer; if (this.attackTimer >= this.attackReset) { this.attackTimer = 0; } } } else { if (this.dead) { this.gotoAndStop('die'); } } if (this.stunned && _root.gamePaused == false && this.dead == false) { ++this.stunTimer; if (this.stunTimer >= this.releaseStun) { this.stunned = false; this.stunTimer = 0; this.hit = false; this.attacking = false; this.gotoAndStop('stand'); } } if (this.frozen && _root.gamePaused == false && this.dead == false) { ++this.freezeTimer; if (this.freezeTimer >= this.releaseFreeze) { _root.removeColorEffect(this._parent); this.frozen = false; this.freezeTimer = 0; this.hit = false; this.attacking = false; this.gotoAndStop('stand'); } } } } } movieClip 1198 { } movieClip 1204 { frame 5 { this._parent.hit = false; this._parent.gotoAndStop('frozen'); } } movieClip 1221 { frame 5 { stopAllSounds(); _root.playSound('princessHit'); } frame 16 { _root.pauseGame(); _root[_root.hero].gotoAndStop('stand'); _root.playSound('princessFree'); } frame 110 { _root.attachMovie('fadeToBlack', 'fadeToBlack', _root.getNextHighestDepth()); _root.fadeToBlack.goal = 'victory'; stop(); } } movieClip 1222 { frame 1 { stop(); } } movieClip 1223 princess { instance inside of movieClip 1222 { onClipEvent (load) { this._parent._alpha = 0; this._parent._y = _root.ground; this._parent._x = 450; this.idName = 'princess'; this.health = _root[this.idName][0]; this.expAmt = 0; this.attacking = false; this.dead = false; this.hit = false; this.stunned = false; this.frozen = false; this.canHit = true; _root.playSound('princessFall'); } onClipEvent (enterFrame) { if (this._parent._alpha < 100) { this._parent._alpha += 1; } else { this.canHit = true; } } } } movieClip 1225 { } movieClip 1226 fadeToWhite { frame 20 { this.removeMovieClip(); } } movieClip 1227 fadeToBlack { frame 20 { if (this.goal == 'victory') { _root.bgImage1.removeMovieClip(); _root.bgImage2.removeMovieClip(); _root[_root.hero].removeMovieClip(); _root.prin.removeMovieClip(); _root.transitionWindow.removeMovieClip(); _root.tutorialWindow.removeMovieClip(); _root.respawnWindow.removeMovieClip(); _root.messageWindow.removeMovieClip(); _root.characterScreen.removeMovieClip(); _root.mapMenu.removeMovieClip(); _root.hotBar.removeMovieClip(); _root.characterBar.removeMovieClip(); } _root.gotoAndStop(this.goal); this.removeMovieClip(); } } movieClip 1236 { frame 1 { if (this._parent.timesAttacked > 3) { this._parent.action = 'backOut'; } } frame 24 { this._parent.findAttack(); } } movieClip 1253 { frame 7 { this.weapon._visible = false; _root.checkCollision(this.weapon, 'hexin', 'melee', 1); _root.playSound('gladiatorAttack1'); } frame 32 { _root.useAttackEnemy(this._parent._parent, 2); } frame 40 { this._parent.action = 'stand'; } } movieClip 1276 { frame 7 { this.weapon._visible = false; _root.checkCollision(this.weapon, 'hexin', 'melee', 1); _root.playSound('gladiatorAttack1'); } frame 18 { _root.useAttackEnemy(this._parent._parent, 2); this._parent.action = 'stand'; } } movieClip 1297 { frame 1 { _root.playSound('hexinDie'); } frame 11 { _root.bossWindow._visible = false; _root.nextArea(); this._parent._parent.removeMovieClip(); } } movieClip 1300 { frame 1 { _root.playSound('hexinHit'); ++this._parent.hitNum; } frame 4 { this._parent.hit = false; if (this._parent.hitNum == 4) { this._parent.findAttack(); this._parent.hitNum = 0; } } } movieClip 1309 { } movieClip 1310 { frame 1 { stop(); } } movieClip 1311 hexin { instance inside of movieClip 1310 { onClipEvent (load) { this.idName = 'hexin'; this.health = _root[this.idName][0]; this.speed = _root[this.idName][1]; this.attackReset = _root[this.idName][2]; this.attackRange = _root[this.idName][3]; this.expAmt = _root[this.idName][7]; this.attacking = false; this.dead = false; this.hit = false; this.canHit = false; this.canStun = false; this.canFreeze = false; this.actionTimer = 0; this.action = 'enter'; this._parent._y = _root.ground; this._parent._x = 850; this.timesAttacked = 5; this.hitNum = 0; } onClipEvent (enterFrame) { function findAttack() { ++this.timesAttacked; var v3 = Math.abs(_root[_root.hero]._x - this._parent._x); if (random(2) == 0) { this.action = 'attack1'; } else { this.action = 'attack2'; } } _root.bossWindow.hpBar._xscale = (this.health / _root[this.idName][0]) * 100; if (this.hit == false && this.dead == false && _root.gamePaused == false) { if (this._parent._x > 730) { this.canHit = false; } if (this.action == 'enter') { this.canHit = true; this.gotoAndStop('walk'); this._parent._x -= this.speed; if (this._parent._x <= 575) { if (this.timesAttacked == 5) { this.timesAttacked = 0; this.action = 'stand'; } else { this.hitNum = 0; this.timesAttacked = 0; findAttack(); } } } else { if (this.action == 'attack1') { this.canHit = false; this.gotoAndStop('attack1'); } else { if (this.action == 'attack2') { this.canHit = false; this.gotoAndStop('attack2'); } else { if (this.action == 'backOut') { this.canHit = true; this.gotoAndStop('walk'); this._parent._x += this.speed; if (this._parent._x >= 850) { this.action = 'enter'; this._parent._x = 775; } } else { if (this.action == 'stand') { this.canHit = true; this.gotoAndStop('stand'); } } } } } } } } } movieClip 1330 hexinAttack2 { frame 15 { this.weapon._visible = false; _root.checkCollision(this.weapon, 'hexin', 'melee', 2); _root.playSound('hexinAttack2'); } frame 31 { this.removeMovieClip(); } } movieClip 1331 hexinAttack3 { frame 25 { this.weapon._visible = false; _root.shakeScreen(6); _root.checkCollision(this.weapon, 'hexin', 'melee', 3); _root.playSound('hexinAttack3'); } frame 33 { this.removeMovieClip(); } } movieClip 1338 hexinHit3 { frame 7 { this.removeMovieClip(); } } movieClip 1343 sliceHit { frame 1 { _root.playSound('sliceHit'); } frame 5 { this.removeMovieClip(); } } movieClip 1344 quickSlashHit { frame 1 { _root.playSound('sliceHit'); } frame 5 { this.removeMovieClip(); } } frame 4 { function myFirstItemHandler() { getURL('http://www.axis-games.com/castlequest.php', ''); } var my_cm; my_cm = new ContextMenu(); my_cm.hideBuiltInItems(); var myFirstItem_cmi; myFirstItem_cmi = new ContextMenuItem('(c)2009 - axis-games.com', myFirstItemHandler); my_cm.customItems.push(myFirstItem_cmi); _root.menu = my_cm; _root.attachMovie('fadeToWhite', 'fadeToWhite', _root.getNextHighestDepth()); playMoreGamesBtn.useHandCursor = false; startGameBtn.useHandCursor = false; creditsBtn.useHandCursor = false; stopAllSounds(); _root.soundHolder.gotoAndPlay(2); stop(); } // unknown tag 88 length 69 button 1351 { on (release) { getURL('http://www.axis-games.com', '_blank'); } } button 1356 { on (release) { getURL('http://www.axis-games.com', '_blank'); } } movieClip 1362 { } // unknown tag 88 length 145 button 1371 { on (release) { _root.attachMovie('fadeToBlack', 'fadeToBlack', _root.getNextHighestDepth()); _root.fadeToBlack.goal = 'charSelect'; } } button 1375 { on (release) { _root.attachMovie('fadeToBlack', 'fadeToBlack', _root.getNextHighestDepth()); _root.fadeToBlack.goal = 'credits'; } } movieClip 1378 { frame 1 { stop(); } frame 2 { this.gotoAndStop(1); } } movieClip 1380 { } button 1382 { on (release) { getURL('http://www.agame.com', '_blank'); } } frame 10 { function myFirstItemHandler() { getURL('http://www.axis-games.com/castlequest.php', ''); } function beginGame(heroType) { _root.hero = heroType; if (charNa.text == '') { if (heroType == 'maxx') { _root.characterName = 'Maxx'; } else { _root.characterName = 'Cabon'; } } else { _root.characterName = charNa.text; } _root.attachMovie('fadeToBlack', 'fadeToBlack', _root.getNextHighestDepth()); _root.fadeToBlack.goal = 'game'; } var my_cm; my_cm = new ContextMenu(); my_cm.hideBuiltInItems(); var myFirstItem_cmi; myFirstItem_cmi = new ContextMenuItem('(c)2009 - axis-games.com', myFirstItemHandler); my_cm.customItems.push(myFirstItem_cmi); _root.menu = my_cm; _root.maxxBtn.useHandCursor = false; _root.attachMovie('fadeToWhite', 'fadeToWhite', _root.getNextHighestDepth()); _root.onEnterFrame = function () { if ((codeArea.codeTxt.text == 'axis' || codeArea.codeTxt.text == 'Axis' || codeArea.codeTxt.text == 'AXIS') && _root.cabonMan._currentframe == 1) { _root.cabonMan.gotoAndStop(2); _root.cabonMan.cabonBtn.useHandCursor = false; codeArea.gotoAndStop(2); } }; stop(); } // unknown tag 88 length 62 movieClip 1392 { frame 1 { stop(); } } movieClip 1401 { } button 1403 { on (release) { _root.beginGame('cabon'); } on (rollOver) { _root.charDescription.gotoAndStop(3); } on (rollOut) { _root.charDescription.gotoAndStop(1); } } movieClip 1404 { frame 1 { manman.gotoAndStop(1); stop(); } } movieClip 1411 { } button 1413 { on (release) { _root.beginGame('maxx'); } on (rollOver) { _root.charDescription.gotoAndStop(2); } on (rollOut) { _root.charDescription.gotoAndStop(1); } } movieClip 1420 { frame 1 { stop(); } } frame 20 { function myFirstItemHandler() { getURL('http://www.axis-games.com/castlequest.php', ''); } function showTutorial(num) { if (tutorialArray[num] == false) { tutorialArray[num] = true; pauseGame(); _root.tutorialWindow.gotoAndStop(num + 1); } } function closeTutorials() { if (_root.characterScreen._visible == false) { unPauseGame(); } _root.tutorialWindow.gotoAndStop(1); } function cancleTutorials() { closeTutorials(); var v1 = 1; while (v1 < tutorialArray.length) { tutorialArray[v1] = true; ++v1; } } function playSound(sound) { if (soundOn && allowSound) { _root.sounds.gotoAndPlay(sound); } } function ambientSound() { clearInterval(soundInterval); if (area <= 4) { soundInterval = setInterval(ambientSound, 20000 + random(20000)); playSound('effect' + area); } } function setHotBar() { var v2 = 1; while (v2 < 7) { _root.hotBar['slot' + v2].gotoAndStop(hotBarList[v2]); _root.hotBar['slot' + v2].btn.useHandCursor = false; ++v2; } } function openAbilityMenu(slot) { playSound('click'); clearInterval(menuInterval); _root.hotBar.abilityMenu._y = -25; _root.hotBar.abilityMenu._x = -360 + slot * 40; var v2 = 1; while (v2 < 7) { _root.hotBar.abilityMenu['slot' + v2].gotoAndStop(abilityList[v2]); _root.hotBar.abilityMenu['slot' + v2].btn.useHandCursor = false; ++v2; } hotBarValue = slot; menuInterval = setInterval(openMenu, 5); } function closeAbilityMenu() { clearInterval(menuInterval); menuInterval = setInterval(closeMenu, 5); } function openMenu() { _root.hotBar.abilityMenu._y -= 3; var v2 = -30 - 18 * (abilityList.length - 1); if (_root.hotBar.abilityMenu._y <= v2) { _root.hotBar.abilityMenu._y = v2; clearInterval(menuInterval); } } function closeMenu() { hotBarValue = null; _root.hotBar.abilityMenu._y += 3; if (_root.hotBar.abilityMenu._y >= 25) { _root.hotBar.abilityMenu._y = stopValue; clearInterval(menuInterval); } } function setNewAbility(slot) { if (_root.hotBar.abilityMenu._y < -25) { playSound('click'); _root.hotBar['slot' + hotBarValue].gotoAndStop(abilityList[slot]); _root.hotBar['slot' + hotBarValue].btn.useHandCursor = false; hotBarList[hotBarValue] = abilityList[slot]; closeAbilityMenu(); } } function showAbilityTooltip(slot) { playSound('rollOver'); _root.hotBar.abilityText.gotoAndStop(hotBarList[slot]); } function showCharacterText() { _root.characterBar.healthText.text = Math.round(currentHealth) + '/' + maxHealth; _root.characterBar.energyText.text = Math.round(currentEnergy) + '/' + maxEnergy; _root.characterBar.expText.text = currentExp + '/' + expToLevel; } function getMaxHealth() { var v3 = baseHealth * (level * 0.4 / 8); var v1 = baseHealth + v3; var v2 = v1 * healthBonus; var v4 = Math.round(v1 + v2); return v4; } function getMaxEnergy() { var v3 = baseEnergy * (level * 0.4 / 8); var v1 = baseEnergy + v3; var v2 = v1 * energyBonus; var v4 = Math.round(v1 + v2); return v4; } function regen() { if (gamePaused == false) { changeHealth(healthRegen); changeEnergy(energyRegen); } } function spawnEnemy() { if (gamePaused == false && bossFight == false) { ++enemyNum; var v3 = 'area' + area; var v4 = _root[v3][random(_root[v3].length)]; var v2 = 'e' + enemyNum; _root.attachMovie(v4, v2, enemyDepth + enemyNum); enemyArray[enemyArray.length] = v2; scrollDead[scrollDead.length] = v2; _root[v2].scrollName = v2; _root[v2].hitPlace._visible = false; if (random(2) == 0 && distanceMoved < distanceTilBoss[area] - 200) { _root[v2]._x = 700; } else { _root[v2]._x = -80; } if (random(100) <= doubleSpawn[area]) { ++enemyNum; v4 = _root[v3][random(_root[v3].length)]; v2 = 'e' + enemyNum; _root.attachMovie(v4, v2, enemyDepth + enemyNum); enemyArray[enemyArray.length] = v2; scrollDead[scrollDead.length] = v2; _root[v2].scrollName = v2; _root[v2].hitPlace._visible = false; if (_root['e' + (enemyNum - 1)]._x < 0 && distanceMoved < distanceTilBoss[area] - 200) { _root[v2]._x = 700; } else { _root[v2]._x = -80; } } if (enemyArray.length > 3) { allowScroll = false; } } } function spawnBoss() { clearInterval(bossInterval); ++enemyNum; var v3 = bossArray[area]; var v2 = 'e' + enemyNum; _root.bossWindow.portrait.gotoAndStop(area); _root.bossWindow.names.gotoAndStop(area); _root.bossWindow.hpBar._xscale = 100; _root.bossWindow._visible = true; _root.attachMovie(v3, v2, enemyDepth + enemyNum); enemyArray[enemyArray.length] = v2; _root[v2].hitPlace._visible = false; _root[v2]._x = 700; } function getTalentText(talent) { if (_root.tutorialWindow._currentframe == 1) { var v5 = _root[talent][1]; var v3 = String(talent) + String(v5); _root.playSound('rollOver'); if (_root.characterScreen.dTalents.getDepth() == topDepth) { _root.characterScreen.dTalents.talentTree.talentText.gotoAndStop(v3); var v4 = _root.characterScreen.dTalents.talentTree[talent + 'MC']._x; var v6 = _root.characterScreen.dTalents.talentTree[talent + 'MC']._y; _root.characterScreen.dTalents.talentTree.talentText._x = v4 - 25; _root.characterScreen.dTalents.talentTree.talentText._y = v6 - 23; } else { _root.characterScreen.oTalents.talentTree.talentText.gotoAndStop(v3); var v4 = _root.characterScreen.oTalents.talentTree[talent + 'MC']._x; var v6 = _root.characterScreen.oTalents.talentTree[talent + 'MC']._y; _root.characterScreen.oTalents.talentTree.talentText._x = v4 - 25; _root.characterScreen.oTalents.talentTree.talentText._y = v6 - 23; } } } function getHiddenTalentText(talent) { if (_root.tutorialWindow._currentframe == 1) { var v6 = _root[talent][1]; var v3 = String(talent) + 'H'; if (_root.characterScreen.dTalents.getDepth() == topDepth) { _root.characterScreen.dTalents.talentTree.talentText.gotoAndStop(v3); var v4 = _root.characterScreen.dTalents.talentTree[talent + 'MC']._x; var v5 = _root.characterScreen.dTalents.talentTree[talent + 'MC']._y; _root.characterScreen.dTalents.talentTree.talentText._x = v4 - 25; _root.characterScreen.dTalents.talentTree.talentText._y = v5 - 23; } else { _root.characterScreen.oTalents.talentTree.talentText.gotoAndStop(v3); var v4 = _root.characterScreen.oTalents.talentTree[talent + 'MC']._x; var v5 = _root.characterScreen.oTalents.talentTree[talent + 'MC']._y; _root.characterScreen.oTalents.talentTree.talentText._x = v4 - 25; _root.characterScreen.oTalents.talentTree.talentText._y = v5 - 23; } } } function resetTalentText() { if (_root.characterScreen.dTalents.getDepth() == topDepth) { _root.characterScreen.dTalents.talentTree.talentText.gotoAndStop(1); } else { _root.characterScreen.oTalents.talentTree.talentText.gotoAndStop(1); } } function processTalent(talent) { if (currentTalentPoints > 0 && _root[talent][1] < _root[talent][2]) { --currentTalentPoints; if (currentTalentPoints > 0) { _root.hotBar.tpNum.text = currentTalentPoints; } else { _root.hotBar.tpNum.text = ''; } _root.playSound('gainTalent'); ++_root[talent][1]; if (talent == 'block') { showTutorial(5); } else { if (talent == 'fly') { showTutorial(6); } } if (_root.characterScreen.dTalents.getDepth() == topDepth) { _root.characterScreen.dTalents.talentTree[talent + 'Txt'].text = _root[talent][1] + '/' + _root[talent][2]; } else { _root.characterScreen.oTalents.talentTree[talent + 'Txt'].text = _root[talent][1] + '/' + _root[talent][2]; } if (_root[talent][0] == 'passive') { var v4 = _root[talent][5]; _root[v4] = _root[talent][6][_root[talent][1]]; } else { if (_root[talent][0] == 'ability') { showTutorial(4); abilityList[abilityList.length] = _root[talent][5]; var v3 = 1; while (v3 < 7) { if (hotBarList[v3] == '') { hotBarList[v3] = _root[talent][5]; setHotBar(); break; } ++v3; } } } if (_root[talent][1] == _root[talent][2]) { if (_root.characterScreen.dTalents.getDepth() == topDepth) { _root.characterScreen.dTalents.talentTree[talent + 'Arrow'].gotoAndPlay(2); _root.characterScreen.dTalents.talentTree[talent + 'MC'][talent + 'Btn'].useHandCursor = false; } else { _root.characterScreen.oTalents.talentTree[talent + 'Arrow'].gotoAndPlay(2); _root.characterScreen.oTalents.talentTree[talent + 'MC'][talent + 'Btn'].useHandCursor = false; } if (_root[talent][3] != null && level >= levelPerTier[_root[talent][4] + 1]) { if (_root.characterScreen.dTalents.getDepth() == topDepth) { _root.characterScreen.dTalents.talentTree[_root[talent][3] + 'MC'].gotoAndStop(2); _root.characterScreen.dTalents.talentTree[_root[talent][3] + 'MC'][_root[talent][3] + 'Btn'].useHandCursor = false; } else { _root.characterScreen.oTalents.talentTree[_root[talent][3] + 'MC'].gotoAndStop(2); _root.characterScreen.oTalents.talentTree[_root[talent][3] + 'MC'][_root[talent][3] + 'Btn'].useHandCursor = false; } } } maxHealth = getMaxHealth(); maxEnergy = getMaxEnergy(); changeHealth(0); changeEnergy(0); getTalentText(talent); setCharacterText(); } else { if (currentTalentPoints == 0) { showMessage('You have no Talent Points'); } else { showMessage('That Talent is already maxed'); } } } function updateTalents() { var v4 = 0; while (v4 < allDTalents.length) { var v2 = allDTalents[v4]; var v3 = _root[v2][3]; var v5 = _root[v2][4]; if (v3 != null && _root[v2][1] == _root[v2][2] && level >= levelPerTier[v5 + 1]) { _root.characterScreen.dTalents.talentTree[v3 + 'MC'].gotoAndStop(2); _root.characterScreen.dTalents.talentTree[v3 + 'MC'][v3 + 'Btn'].useHandCursor = false; } if (_root[v2][7] == null && _root.characterScreen.dTalents.talentTree[v2 + 'MC']._currentframe == 1 && level >= levelPerTier[v5]) { _root.characterScreen.dTalents.talentTree[v2 + 'MC'].gotoAndStop(2); _root.characterScreen.dTalents.talentTree[v2 + 'MC'][v2 + 'Btn'].useHandCursor = false; } ++v4; } v4 = 0; while (v4 < allOTalents.length) { v2 = allOTalents[v4]; v3 = _root[v2][3]; v5 = _root[v2][4]; if (v3 != null && _root[v2][1] == _root[v2][2] && level >= levelPerTier[v5 + 1]) { _root.characterScreen.oTalents.talentTree[v3 + 'MC'].gotoAndStop(2); _root.characterScreen.oTalents.talentTree[v3 + 'MC'][v3 + 'Btn'].useHandCursor = false; } if (_root[v2][7] == null && _root.characterScreen.oTalents.talentTree[v2 + 'MC']._currentframe == 1 && level >= levelPerTier[v5]) { _root.characterScreen.oTalents.talentTree[v2 + 'MC'].gotoAndStop(2); _root.characterScreen.oTalents.talentTree[v2 + 'MC'][v2 + 'Btn'].useHandCursor = false; } ++v4; } } function useAttack(attack) { var v2 = 'attack' + attackDepth; ++attackDepth; _root.attachMovie(attack, v2, attackDepth); _root[v2]._xscale = _root[hero]._xscale; _root[v2]._x = _root[hero]._x; _root[v2]._y = _root[hero]._y; if (attack == 'brimstone' || attack == 'levelUpEffect') { _root[v2]._y = ground; } } function attachHitEffect(attackName, attackType, tempEnemy) { var v2 = 'hit' + attackDepth; ++attackDepth; if (attackType == 'blackIce') { _root[tempEnemy].attachMovie(attackType + 'Hit', 'insideHitEffect', attackDepth); _root[tempEnemy].insideHitEffect._xscale = attackName._xscale; } else { _root.attachMovie(attackType + 'Hit', v2, attackDepth); _root[v2]._xscale = attackName._xscale; _root[v2]._x = _root[tempEnemy]._x + _root[attackType][6] * (attackName._xscale / 100); _root[v2]._y = attackName._y + _root[attackType][7]; } } function checkForProjectile(attackName, attackType) { var v4 = 0; while (v4 < enemyArray.length) { var v6 = enemyArray[v4]; if (attackName.hitTest(_root[v6].hitPlace) && _root[v6].inside.canHit) { criticalHit = false; var v2 = getDamage(attackType); var v5 = _root[attackType][2] * (_root[hero]._xscale / 100); if (hero == 'cabon') { if (focusedMind[1] > 0) { v2 += Math.round(v2 * focusedMind[6][focusedMind[1]]); } if (attackType == 'brimstone' && fireAndIce[1] > 0) { v2 += Math.round(v2 * fireAndIce[6][fireAndIce[1]]); } if (deadlyFocusOn) { _root.characterBar.effectIcon.gotoAndStop(1); deadlyFocusOn = false; v2 *= 2; } if (_root[v6].inside.frozen && shatter[1] > 0) { if (random(100) < shatter[6][shatter[1]]) { ++criticalHitsLvl; v2 *= 2; criticalHit = true; } } if (criticalHit && deadlyFocus[1] > 0) { _root.characterBar.effectIcon.gotoAndStop('deadlyFocus'); deadlyFocusOn = true; } if (criticalHit && feedback[1] > 0) { var v7 = Math.round(maxEnergy * feedback[6][feedback[1]]); changeEnergy(v7); } } checkMaxDamage(v2); damageDoneLvl += v2; _root[v6]._x += v5; _root[v6].inside.health -= v2; _root[v6].inside.hit = true; _root[v6].inside.gotoAndStop('hit'); _root[v6].inside.frozen = false; removeColorEffect(_root[v6]); attachHitEffect(attackName, attackType, v6); if (v6 == 'prin' || bossFight) { _root[v6]._x -= v5; } if (_root[attackType][5] && _root[v6].inside.canFreeze) { attachFreezeEffect(_root[v6]); _root[v6].inside.frozen = true; _root[v6].inside.releaseFreeze = _root[attackType][8]; } if (_root[attackType][4] && _root[v6].inside.canStun) { _root[v6].inside.stunned = true; _root[v6].inside.releaseStun = _root[attackType][8]; } if (_root[v6].inside.health <= 0) { ++enemiesKilled; ++enemiesKilledLvl; _root.kongregateStats.submit('MonstersKilled', enemiesKilled); changeExp(_root[v6].inside.expAmt); _root[v6].inside.dead = true; _root[v6].inside.gotoAndStop('die'); toBeKilled[toBeKilled.length] = v6; } attachEnemySCT(v6, v2, criticalHit); if (_root[attackType][3] == false) { attackName.removeMovieClip(); } } ++v4; } v4 = 0; while (v4 < toBeKilled.length) { v6 = toBeKilled[v4]; removeFromArray('enemyArray', v6); ++v4; } toBeKilled = []; } function getDamage(attack) { var v2 = Math.round(_root[attack][0] + random(_root[attack][0]) + _root[attack][9] * level); if (random(100) < critChance) { ++criticalHitsLvl; criticalHit = true; v2 *= 2; } return v2; } function attachEnemySCT(enemy, dam, crit) { var v2 = 'sct' + attackDepth; ++attackDepth; _root.attachMovie('enemySCT', v2, attackDepth); if (crit) { _root[v2].inside.gotoAndStop(2); } _root[v2].inside.damageText.text = dam; _root[v2]._x = _root[enemy]._x; _root[v2]._y = _root[enemy]._y - _root[enemy]._height - 5; } function attachHeroSCT(dam) { var v2 = 'sct' + attackDepth; ++attackDepth; _root.attachMovie('heroSCT', v2, attackDepth); _root[v2].inside.damageText.text = dam; _root[v2]._x = _root[hero]._x; _root[v2]._y = _root[hero]._y - _root[hero]._height - 10; if (energyShieldOn) { _root[v2]._y += 110; } } function checkForHit(attackType) { var v5 = 0; while (v5 < enemyArray.length) { var v6 = enemyArray[v5]; if (_root[hero].attack.weapon.hitTest(_root[v6].hitPlace) && _root[v6].inside.canHit && _root[v6].inside.dead == false) { criticalHit = false; var v2 = getDamage(attackType); var v4 = _root[attackType][2] * (_root[hero]._xscale / 100); if (hero == 'maxx') { if (powerSwing[1] > 0) { v2 = Math.round(v2 + v2 * powerSwing[6][powerSwing[1]]); } if (medusaBlade[1] > 0 && _root[v6].inside.canStun) { if (random(100) < medusaBlade[6][medusaBlade[1]]) { _root[v6].inside.stunned = true; _root[v6].inside.releaseStun = 75; } } if (forceBlade[1] > 0) { v4 = Math.round(v4 + v4 * forceBlade[6][forceBlade[1]]); } if (_root[v6].inside.stunned && criticalHit && stoneBreaker[1] > 0) { if (random(100) < stoneBreaker[6][stoneBreaker[1]]) { v2 = _root[v6].inside.health; } } } if (drainSoul[1] > 0) { var v7 = drainSoul[6][drainSoul[1]]; changeEnergy(v7); } checkMaxDamage(v2); attachEnemySCT(v6, v2, criticalHit); _root[v6]._x += v4; damageDoneLvl += v2; _root[v6].inside.health -= v2; _root[v6].inside.hit = true; _root[v6].inside.gotoAndStop('hit'); _root[v6].inside.frozen = false; removeColorEffect(_root[v6]); attachHitEffect(_root[hero], attackType, v6); if (v6 == 'prin' || bossFight) { _root[v6]._x -= v4; } if (lifeTap[1] > 0) { changeHealth(Math.round(v2 * lifeTap[6][lifeTap[1]])); } if (_root[attackType][5] && _root[v6].inside.canFreeze) { attachFreezeEffect(_root[v6]); _root[v6].inside.frozen = true; _root[v6].inside.releaseFreeze = _root[attackType][8]; } if (_root[attackType][4] && _root[v6].inside.canStun) { _root[v6].inside.stunned = true; _root[v6].inside.releaseStun = _root[attackType][8]; } if (_root[v6].inside.health <= 0) { if (siphonLife[1] > 0) { changeHealth(Math.round(getMaxHealth() * 0.05)); } ++enemiesKilled; ++enemiesKilledLvl; _root.kongregateStats.submit('MonstersKilled', enemiesKilled); changeExp(_root[v6].inside.expAmt); _root[v6].inside.dead = true; _root[v6].inside.gotoAndStop('die'); toBeKilled[toBeKilled.length] = v6; } if (_root[attackType][3] == false) { break; } } ++v5; } v5 = 0; while (v5 < toBeKilled.length) { v6 = toBeKilled[v5]; removeFromArray('enemyArray', v6); ++v5; } toBeKilled = []; } function attachFreezeEffect(enemy) { var v1 = new flash.geom.Transform(enemy); v1.colorTransform = iceColorTransform; } function attachHeroEffect(color) { var v2 = new flash.geom.Transform(_root[hero]); v2.colorTransform = color; } function removeColorEffect(enemy) { var v1 = new flash.geom.Transform(enemy); v1.colorTransform = blankColor; } function checkMaxDamage(dam) { if (dam > maxDamage) { maxDamage = dam; _root.kongregateStats.submit('HighestHit', maxDamage); showMessage('NEW DAMAGE RECORD!'); } } function stunHero(end) { heroStunned = true; endStun = end; stunTimer = 0; } function slowHero(end) { if (heroSlowed == false) { heroSpeed *= 0.5; } heroSlowed = true; endSlow = end; slowTimer = 0; } function showMessage(mes) { _root.messageWindow.gotoAndPlay(2); _root.messageWindow.messageTxt.text = mes; } function removeFromArray(array, enemy) { var v2 = 0; while (v2 < _root[array].length) { var v3 = _root[array][v2]; if (String(enemy) == String(v3)) { _root[array].splice(v2, 1); break; } ++v2; } } function changeExp(amt) { currentExp += amt; if (currentExp >= expToLevel) { currentExp -= expToLevel; if (level < 30) { expToLevel = expSplits[level]; } else { expToLevel = 100; } ++level; _root.kongregateStats.submit('HighestLevel', level); useAttack('levelUpEffect'); playSound('levelUp'); showMessage('Level Up! \n You gained 1 Talent Point'); ++currentTalentPoints; maxHealth = getMaxHealth(); maxEnergy = getMaxEnergy(); currentHealth = maxHealth; currentEnergy = maxEnergy; _root.characterBar.healthBar._xscale = 100; _root.characterBar.energyBar._xscale = 100; _root.hotBar.tpNum.text = currentTalentPoints; showCharacterText(); updateTalents(); } if (currentExp < 0) { currentExp = 0; } _root.characterBar.expBar._xscale = (currentExp / expToLevel) * 100; } function changeHealth(amt) { currentHealth += amt; if (currentHealth <= 0) { currentHealth = 0; heroDie(); } else { if (currentHealth > maxHealth) { currentHealth = maxHealth; } } showCharacterText(); _root.characterBar.healthBar._xscale = (currentHealth / maxHealth) * 100; } function changeEnergy(amt) { currentEnergy += amt; if (currentEnergy > maxEnergy) { currentEnergy = maxEnergy; } else { if (currentEnergy <= 0) { currentEnergy = 0; if (hero == 'cabon' && energyShieldOn) { energyShieldOn = false; _root.cabon.energyShield.removeMovieClip(); } } } showCharacterText(); _root.characterBar.energyBar._xscale = (currentEnergy / maxEnergy) * 100; } function useAttackEnemy(enemy, atkNum) { var v2 = 'attack' + attackDepth; var v5 = enemy.inside.idName + 'Attack' + atkNum; ++attackDepth; _root.attachMovie(v5, v2, attackDepth); _root[v2]._xscale = enemy._xscale; if (enemy.inside.idName == 'tauren') { if (atkNum == 1) { bossEffectX = random(250) + 250; _root[v2]._x = bossEffectX; _root[v2]._y = 110; } else { if (atkNum == 2) { _root[v2]._x = _root[hero]._x; _root[v2]._y = ground; } else { if (atkNum == 3) { ++attackDepth; _root.attachMovie(v5, v2, attackDepth); _root[v2]._x = bossEffectX - 115; _root[v2]._y = ground; v2 = 'attack' + attackDepth; ++attackDepth; _root.attachMovie(v5, v2, attackDepth); _root[v2]._x = bossEffectX + 115; _root[v2]._y = ground; } } } } else { if (enemy.inside.idName == 'hexin') { if (atkNum == 2) { bossEffectX = random(600) + 25; _root[v2]._x = bossEffectX; _root[v2]._y = ground; } else { if (atkNum == 3) { _root[v2]._x = 50; _root[v2]._y = ground; } } } else { if (enemy.inside.idName == 'wizard') { _root[v2]._x = _root[hero]._x; _root[v2]._y = ground; } else { _root[v2]._x = enemy._x; _root[v2]._y = enemy._y; } } } } function checkCollision(enemy, enemyModel, attackType, atkNum) { if (hero == 'maxx' && enemy.hitTest(_root[hero]) || hero == 'cabon' && enemy.hitTest(_root[hero].hitPlace)) { var v7 = false; var v8 = false; if (hero == 'maxx' && isBlocking && random(100) < blockChance) { if (attackType == 'melee') { if (enemy._parent._parent._parent._xscale == _root[hero]._xscale) { v7 = true; attachEnemyHit(enemyModel, enemy._parent._parent._parent, true, atkNum); attachHeroSCT('Blocked!'); _root.playSound('blocking' + (random(2) + 1)); if (shieldOfValor[1] > 0) { changeEnergy(shieldOfValor[6][shieldOfValor[1]]); } } } else { if (enemy._xscale == _root[hero]._xscale || enemyModel == 'bull' && enemy._parent._xscale == _root[hero]._xscale) { v7 = true; attachHeroSCT('Blocked!'); _root.playSound('blocking' + (random(2) + 1)); if (shieldOfValor[1] > 0) { changeEnergy(shieldOfValor[6][shieldOfValor[1]]); } attachEnemyHit(enemyModel, enemy, true, atkNum); enemy.removeMovieClip(); } } } else { if (random(100) < dodgeChance && isBlocking == false) { v8 = true; attachHeroSCT('Dodged!'); if (attackType == 'melee') { attachEnemyHit(enemyModel, enemy._parent._parent._parent, true, atkNum); } else { attachEnemyHit(enemyModel, enemy, true, atkNum); enemy.removeMovieClip(); } } else { if (_root[hero]._currentframe != 85 && attackType == 'proj') { attachEnemyHit(enemyModel, enemy, true, atkNum); enemy.removeMovieClip(); } } } if (_root[hero]._currentframe != 85 && v7 == false && v8 == false) { var v5 = getDamageDone(enemyModel, atkNum); if (!energyShieldOn) { damageTakenLvl += v5; changeHealth(v5 * -1); } else { changeEnergy(v5 * 1.8 * -1); if (currentEnergy <= 0) { _root.cabon.energyShield.removeMovieClip(); energyShieldOn = false; } if (synergy[1] > 0) { changeHealth(Math.round(v5 * 0.5)); } if (attackType == 'melee' && frostAura[1] > 0 && random(100) < frostAura[6][frostAura[1]]) { enemy._parent._parent.frozen = true; enemy._parent._parent.releaseFreeze = 50; enemy._parent._parent.gotoAndStop('frozen'); } } if (_root[enemyModel][10 + atkNum] > 0) { slowHero(_root[enemyModel][10 + atkNum]); attachHeroEffect(_root[enemyModel][17]); } if (_root[enemyModel][13 + atkNum] > 0) { stunHero(_root[enemyModel][13 + atkNum]); attachHeroEffect(_root[enemyModel][17]); } if (attackType == 'melee') { attachEnemyHit(enemyModel, enemy._parent._parent._parent, false, atkNum); var v9 = _root[enemyModel][6] * (enemy._parent._parent._parent._xscale / 100); } else { attachEnemyHit(enemyModel, enemy, false, atkNum); var v9 = _root[enemyModel][6] * (enemy._xscale / 100); if (enemyModel != 'tauren') { enemy.removeMovieClip(); } } attachHeroSCT(v5); hit = true; _root[hero].gotoAndStop('hit'); var v10 = enemy._parent._parent._parent._xscale / 100; if (isAttacking == false && _root[hero]._x > +_root[hero]._width && _root[hero]._x < 650 - _root[hero]._width) { _root[hero]._x -= v9; } } } } function attachEnemyHit(modelName, from, gray, atkNum) { var v2 = 'hit' + attackDepth; ++attackDepth; _root.attachMovie(modelName + 'Hit' + atkNum, v2, attackDepth); _root[v2]._xscale = from._xscale; if (gray) { var v3 = new flash.geom.Transform(_root[v2]); v3.colorTransform = grayColorTransform; } _root[v2]._x = _root[hero]._x; _root[v2]._y = _root[hero]._y; } function getDamageDone(type, atkNum) { var v2 = _root[type][7 + atkNum] + random(_root[type][7 + atkNum] / 2); if (hero == 'maxx') { if (guardianSpiritOn) { v2 = 0; guardianSpiritOn = false; _root.characterBar.effectIcon.gotoAndStop(1); } else { if (guardianSpirit[1] > 0 && random(100) < guardianSpirit[6][guardianSpirit[1]]) { guardianSpiritOn = true; _root.attachMovie('guardianSpirit', 'gSpirit', 993); _root.gSpirit._x = _root[hero]._x - 7; _root.gSpirit._y = _root[hero]._y - 45; _root.characterBar.effectIcon.gotoAndStop('guardianSpirit'); } if (stoneSkin[1] > 0) { var v3 = Math.round(v2 * stoneSkin[6][stoneSkin[1]]); v2 -= v3; } } } if (v2 < 0) { v2 = 1; } return v2; } function sortEnemies() { var v4; var v7; var v3 = 0; while (v3 < enemyArray.length) { v4 = v3; var v2 = v3; while (v2 < enemyArray.length - 1) { var v5 = Math.abs(_root[enemyArray[v2 + 1]]._x - _root[hero]._x); var v6 = Math.abs(_root[enemyArray[v4]]._x - _root[hero]._x); if (v5 < v6) { v4 = v2 + 1; } ++v2; } v7 = enemyArray[v3]; enemyArray[v3] = enemyArray[v4]; enemyArray[v4] = v7; ++v3; } } function scrollBackground() { var v3 = heroSpeed; if (isFlying) { v3 = heroSpeed * 1.5; } else { v3 = heroSpeed; } enemyTimer += random(2); distanceMoved += v3; _root.bgImage1._x -= v3; _root.bgImage2._x -= v3; _root.chains._x -= v3 + 4; _root.tower._x -= v3; _root.frontRocks._x -= v3; if (_root.chains._x < -30) { _root.chains.removeMovieClip(); } if (_root.tower._x < -400) { _root.tower.removeMovieClip(); } if (_root.frontRocks._x < -400) { _root.frontRocks.removeMovieClip(); } _root.hotBar.levelProgress._xscale = (distanceMoved / distanceTilBoss[area]) * 100; if (_root.hotBar.levelProgress._xscale >= 50 && shownCheckpoint == false) { shownCheckpoint = true; showMessage('Checkpoint Reached'); } var v2 = 0; while (v2 < enemyArray.length) { _root[enemyArray[v2]]._x -= v3; ++v2; } v2 = 0; while (v2 < scrollDead.length) { if (_root[scrollDead[v2]].inside.dead) { _root[scrollDead[v2]]._x -= v3; } ++v2; } if (area == 3 && distanceMoved >= 5000) { _root.bgImage2.castleDoor._visible = true; _root.bgImage2.caveDoor._visible = true; removeBGItems('bgImage2'); } if (_root.bgImage1._x < -1195) { _root.bgImage1.swapDepths(_root.bgImage2.getDepth()); removeBGItems('bgImage1'); _root.bgImage1._x = _root.bgImage2._x + 1200; placeBGItems('bgImage1'); if (area == 3) { _root.bgImage1.wallStart._visible = true; _root.bgImage1.backChain._visible = false; _root.bgImage1.backTower._visible = false; _root.bgImage1.gate._visible = false; } else { if (area == 4) { _root.bgImage1.backChain._visible = false; } } } else { if (_root.bgImage2._x < -1195) { _root.bgImage2.swapDepths(_root.bgImage1.getDepth()); removeBGItems('bgImage2'); _root.bgImage2._x = _root.bgImage1._x + 1200; placeBGItems('bgImage2'); } } } function removeBGItems(bgNum) { _root[bgNum].bgItem1.removeMovieClip(); _root[bgNum].bgItem2.removeMovieClip(); _root[bgNum].bgItem1.removeMovieClip(); _root[bgNum].bgItem2.removeMovieClip(); } function placeBGItems(bgNum) { var v2 = 1; while (v2 <= 2) { var v5 = random(5) + 1; var v3 = 'bgItem' + v2; if (area == 5 && v5 < 4 && _root.chains._x == undefined) { _root.chains.removeMovieClip(); _root.attachMovie('item5_1', 'chains', 999989); _root.chains._x = 700; _root.chains._y = 400; } else { if (area == 4 && v5 == 2 && _root.frontRocks._x == undefined) { _root.attachMovie('frontRocks', 'frontRocks', 999989); _root.frontRocks._x = 750; _root.frontRocks._y = 400; if (random(2) == 1) { _root.frontRocks._xscale = -100; } } else { if (area != 5) { if (area != 3 || distanceMoved > 50) { _root[bgNum].attachMovie('item' + area + '_' + v5, v3, _root[bgNum].getNextHighestDepth()); _root[bgNum][v3]._x = v2 * 600 - 500 + random(100); _root[bgNum][v3]._y = 400; if (random(2) == 1) { _root[bgNum][v3]._xscale = -100; } } } } } ++v2; } } function heroDie() { _root[hero]._y = ground; _root[hero].gotoAndStop('dying'); _root.respawnWindow.gotoAndPlay(2); ++deathsLvl; ++deathsTot; _root.kongregateStats.submit('Deaths', deathsTot); heroDead = true; standEnemies(); pauseGame(); } function respawnHero() { stopAllSounds(); _root.bossWindow._visible = false; _root.playSound('theme' + area); _root[hero]._y = ground; _root[hero]._x = 75; _root[hero].gotoAndStop('stand'); _root[hero]._xscale = 100; _root.chains.removeMovieClip(); heroDead = false; allowScroll = true; bossFight = false; currentHealth = maxHealth; currentEnergy = maxEnergy; _root.characterBar.healthBar._xscale = 100; _root.characterBar.energyBar._xscale = 100; showCharacterText(); if (_root.hotBar.levelProgress._xscale >= 50) { distanceMoved = distanceTilBoss[area] / 2; _root.hotBar.levelProgress._xscale = 50; if (area == 3) { distanceMoved = 2400; _root.hotBar.levelProgress._xscale = (distanceMoved / distanceTilBoss[area]) * 100; } } else { distanceMoved = 0; _root.hotBar.levelProgress._xscale = 0; } isFlying = false; isAttacking = false; isBlocking = false; isJumping = false; hit = false; heroStunned = false; _root.bgImage1._x = 0; _root.bgImage2._x = 1200; _root.bgImage1.swapDepths(990); _root.bgImage2.swapDepths(991); if (area == 3) { if (distanceMoved == 0) { removeBGItems('bgImage1'); _root.bgImage1.wallStart._visible = false; _root.bgImage1.backChain._visible = true; _root.bgImage1.backTower._visible = true; _root.bgImage1.gate._visible = true; _root.attachMovie('frontStart', 'tower', 999989); } else { _root.bgImage2.castleDoor._visible = false; _root.bgImage2.caveDoor._visible = false; } } else { if (area == 4 && distanceMoved == 0) { _root.bgImage1.backChain._visible = true; } } changeExp(level * -1); enemyTimer = 0; clearEnemiesOnStage(); unPauseGame(); } function standEnemies() { var v2 = 0; while (v2 < enemyArray.length) { var v3 = enemyArray[v2]; _root[v3].inside.gotoAndStop('stand'); ++v2; } } function clearEnemiesOnStage() { var v2 = 0; while (v2 < enemyArray.length) { var v3 = enemyArray[v2]; _root[v3].removeMovieClip(); ++v2; } enemyArray = []; } function nextArea() { _root.bossWindow._visible = false; _root[hero]._visible = false; var v3 = int(timeTakenLvl / 25); var v4 = int(v3 / 60); var v2 = int(v3 - v4 * 60); if (v2 < 10) { v2 = '0' + v2; } _root.kongregateStats.submit('MonstersKilled', enemiesKilled); _root.statsWindow.timeTakenTxt.text = v4 + ':' + v2; _root.statsWindow.enemiesKilledTxt.text = enemiesKilledLvl; _root.statsWindow.damageDoneTxt.text = damageDoneLvl; _root.statsWindow.damageTakenTxt.text = damageTakenLvl; _root.statsWindow.criticalHitsTxt.text = criticalHitsLvl; _root.statsWindow.deathsTxt.text = deathsLvl; _root.statsWindow._visible = true; gamePaused = true; } function startNewLevel() { if (area < 7) { _root[hero]._visible = true; _root.statsWindow._visible = false; _root.mapMenu._visible = true; enemiesKilledLvl = 0; damageDoneLvl = 0; damageTakenLvl = 0; criticalHitsLvl = 0; timeTakenLvl = 0; deathsLvl = 0; removeBGItems('bgImage1'); removeBGItems('bgImage2'); _root.mapMenu['lvl' + area].gotoAndStop('cleared'); _root.mapMenu.attachMovie('lvl' + (area + 1), 'lvl' + (area + 1), _root.mapMenu.getNextHighestDepth()); _root.mapMenu.mapIcon.gotoAndStop(area + 1); stopAllSounds(); ++area; shownCheckpoint = false; _root.playSound('theme' + area); _root.bgImage1.gotoAndStop(area); _root.bgImage2.gotoAndStop(area); _root.staticBackground.gotoAndStop(area); if (area == 3) { _root.bgImage1.wallStart._visible = false; _root.bgImage1.backChain._visible = true; _root.bgImage1.backTower._visible = true; _root.bgImage2.castleDoor._visible = false; _root.bgImage2.caveDoor._visible = false; _root.bgImage1.gate._visible = true; _root.attachMovie('frontStart', 'tower', 999989); _root.bgImage1[getInstanceAtDepth(_root.bgImage1.getNextHighestDepth() - 1)].removeMovieClip(); } else { if (area == 4) { _root.bgImage1.backChain._visible = true; } } placeBGItems('bgImage1'); placeBGItems('bgImage2'); _root[hero]._y = ground; _root[hero]._x = 75; _root[hero].gotoAndStop('stand'); _root[hero]._xscale = 100; allowScroll = true; bossFight = false; currentHealth = maxHealth; currentEnergy = maxEnergy; _root.characterBar.healthBar._xscale = 100; _root.characterBar.energyBar._xscale = 100; showCharacterText(); distanceMoved = 0; _root.hotBar.levelProgress._xscale = 0; isFlying = false; isAttacking = false; isBlocking = false; isJumping = false; _root.bgImage1._x = 0; _root.bgImage2._x = 1200; enemyTimer = 0; _root.chains.removeMovieClip(); } else { stopAllSounds(); _root.playSound('princessFree'); _root.attachMovie('fadeToBlack', 'fadeToBlack', _root.getNextHighestDepth()); _root.fadeToBlack.goal = 'victory'; } } function princessEvent() { ++enemyNum; _root.statsWindow._visible = false; _root[hero]._visible = true; allowScroll = false; bossFight = true; stopAllSounds(); _root.attachMovie('princess', 'prin', heroDepth - 1); gamePaused = false; _root[hero].gotoAndStop('stand'); _root.statsWindow.removeMovieClip(); enemyArray[enemyArray.length] = 'prin'; } function moveHero() { if (allowSound == false) { allowSound = true; } if (distanceMoved > distanceTilBoss[area] && bossFight == false) { allowScroll = false; if (enemyArray.length == 0) { if (bossArray[area] == null) { nextArea(); } else { distanceMoved = 0; bossFight = true; allowScroll = false; _root.playSound('bossAlert'); bossInterval = setInterval(spawnBoss, 4000); } } } else { ++enemyTimer; if (enemyTimer >= spawnValue && enemyArray.length < 4 && allowScroll) { spawnEnemy(); spawnValue = 100 + random(50) + enemyArray.length * 25; enemyTimer = 0; } else { if (allowScroll == false) { enemyTimer = 0; } } } if (hit == false && heroStunned == false) { if (Key.isDown(39) && !isBlocking && !isAttacking && !isFlying && _root[hero]._x < 650 - _root[hero]._width / 2) { _root[hero]._xscale = 100; if (enemyArray.length < 2 && bossFight == false && distanceMoved < distanceTilBoss[area]) { allowScroll = true; } if (!isJumping) { _root[hero].gotoAndStop('walk'); } if (_root[hero]._x >= 400 && allowScroll) { scrollBackground(); } else { _root[hero]._x += heroSpeed; } } else { if (Key.isDown(37) && !isBlocking && !isAttacking && !isFlying && _root[hero]._x > _root[hero]._width / 2) { _root[hero]._xscale = -100; _root[hero]._x -= heroSpeed; if (!isJumping) { _root[hero].gotoAndStop('walk'); } } } if (Key.isDown(40) && block[1] == 1 && !isAttacking && !isFlying) { _root[hero].gotoAndStop('duck'); isBlocking = true; } else { isBlocking = false; } if (isFlying) { if (!isAttacking) { _root[hero].gotoAndStop('fly'); } var v2 = maxEnergy * 0.05 / 25; changeEnergy(v2 * -1); if (currentEnergy <= 1 && !isAttacking) { heroFalling = true; isFlying = false; allowFly = false; _root[hero].gotoAndStop('jump'); isJumping = true; gravity = jumpSpeed; } if (Key.isDown(39) && _root[hero]._x < 650 - _root[hero]._width / 2) { _root[hero]._xscale = 100; if (_root[hero]._x >= 450 && allowScroll) { scrollBackground(); } else { _root[hero]._x += heroSpeed * 1.5; } } else { if (Key.isDown(37) && _root[hero]._x > _root[hero]._width / 2) { _root[hero]._x -= heroSpeed * 1.5; _root[hero]._xscale = -100; } } if (Key.isDown(38) && _root[hero]._y > _root[hero]._height) { _root[hero]._y -= heroSpeed * 1.5; } else { if (Key.isDown(40)) { _root[hero]._y += heroSpeed * 1.5; if (_root[hero]._y >= ground) { _root[hero]._y = ground; isFlying = false; allowFly = false; attackFinished = false; isAttacking = false; } } } } if (Key.isDown(49) && !isBlocking && !isAttacking) { useMeleeAttack(49); } else { if (Key.isDown(50) && !isBlocking && !isAttacking) { useMeleeAttack(50); } else { if (Key.isDown(51) && !isBlocking && !isAttacking) { useMeleeAttack(51); } else { if (Key.isDown(52) && !isBlocking && !isAttacking) { useMeleeAttack(52); } else { if (Key.isDown(53) && !isBlocking && !isAttacking) { useMeleeAttack(53); } else { if (Key.isDown(54) && !isBlocking && !isAttacking) { useMeleeAttack(54); } } } } } } if (!Key.isDown(37) && !Key.isDown(39) && !isBlocking && !isJumping && !isAttacking && !isFlying) { _root[hero].gotoAndStop('stand'); } } if (hit == true) { ++hitTimer; if (hitTimer >= 5) { hitTimer = 0; isAttacking = false; hit = false; } } if (heroStunned) { ++stunTimer; if (stunTimer >= endStun) { heroStunned = false; attachHeroEffect(blankColor); } } if (heroSlowed) { ++slowTimer; if (slowTimer >= endSlow) { heroSlowed = false; attachHeroEffect(blankColor); heroSpeed *= 2; } } if (Key.isDown(38) && !isJumping && !isAttacking && !hit && !isFlying && !heroStunned) { isJumping = true; gravity = 0; _root[hero].gotoAndStop('jump'); } else { if (isJumping) { if (!Key.isDown(38)) { allowFly = true; allowDoubleJump = true; } if (Key.isDown(38) && !isAttacking) { if (fly[1] == 1 && allowFly && heroFalling == false) { isFlying = true; isJumping = false; _root[hero]._y -= 10; _root[hero].gotoAndStop('fly'); useAttack('fly'); } else { if (doubleJump[1] == 1 && allowDoubleJump && doneDoubleJump == false) { gravity = 0; doneDoubleJump = true; allowDoubleJump = false; } } } _root[hero]._y -= jumpSpeed; _root[hero]._y += gravity; gravity += 0.7; if (_root[hero]._y >= ground) { _root[hero]._y = ground; heroFalling = false; allowFly = false; isJumping = false; allowDoubleJump = false; doneDoubleJump = false; if (!isAttacking) { _root[hero].gotoAndStop('stand'); } } } } if (!Key.isDown(attackKey) && attackFinished) { attackFinished = false; isAttacking = false; } } function useMeleeAttack(keyNum) { var v2 = hotBarList[keyNum - 48]; if (v2 != '') { if (currentEnergy - _root[v2][1] >= 0) { changeEnergy(_root[v2][1] * -1); attackKey = keyNum; isAttacking = true; sortEnemies(); _root[hero].gotoAndStop(v2); } else { showMessage('Insufficient Energy'); } } } function attackMove(amt) { _root[hero]._x += amt * (_root[hero]._xscale / 100); if (_root[hero]._x - 26 < 0) { _root[hero]._x = 26; } else { if (_root[hero]._x + 26 > 650) { _root[hero]._x = 624; } } } function toggleCharacterScreen() { if (_root.tutorialWindow._currentframe == 1 && heroDead == false) { _root.playSound('click'); if (_root.characterScreen._visible) { unPauseGame(); _root.characterScreen._visible = false; } else { showTutorial(3); pauseGame(); setCharacterText(); _root.mapMenu._visible = false; _root.characterScreen._visible = true; } } } function setCharacterText() { _root.characterScreen.nextLevelTxt.text = currentExp + '/' + expToLevel; _root.characterScreen.healthTxt.text = Math.round(currentHealth) + '/' + maxHealth; _root.characterScreen.energyTxt.text = Math.round(currentEnergy) + '/' + maxEnergy; _root.characterScreen.healthRegenTxt.text = healthRegen * 10 + '/sec'; _root.characterScreen.energyRegenTxt.text = energyRegen * 10 + '/sec'; _root.characterScreen.critChanceTxt.text = critChance + '%'; _root.characterScreen.dodgeChanceTxt.text = dodgeChance + '%'; if (hero == 'maxx' && block[1] > 0) { _root.characterScreen.blockChanceTxt.text = blockChance + '%'; } else { _root.characterScreen.blockChanceTxt.text = 'N/A'; } } function pauseGame() { gamePaused = true; _root.hotBar.pauseIcon.gotoAndStop(2); } function unPauseGame() { gamePaused = false; _root.hotBar.pauseIcon.gotoAndStop(1); } function togglePause() { if (heroDead == false && _root.characterScreen._visible == false && _root.tutorialWindow._currentframe == 1 && _root.mapMenu._visible == false) { _root.playSound('click'); if (gamePaused) { unPauseGame(); } else { pauseGame(); } } } function toggleSound() { if (soundOn) { soundOn = false; _root.hotBar.soundIcon.gotoAndStop(2); stopAllSounds(); } else { soundOn = true; _root.hotBar.soundIcon.gotoAndStop(1); _root.playSound('theme' + area); } } function toggleMap() { if (heroDead == false && _root.tutorialWindow._currentframe == 1) { _root.playSound('click'); if (_root.mapMenu._visible) { _root.mapMenu._visible = false; if (_root.characterScreen._visible == false && _root.tutorialWindow._currentframe == 1) { unPauseGame(); } } else { _root.characterScreen._visible = false; _root.mapMenu._visible = true; pauseGame(); } } } function toggleQuality() { _root.playSound('click'); if (_root._quality == 'LOW') { _root._quality = 'MEDIUM'; } else { if (_root._quality == 'MEDIUM') { _root._quality = 'HIGH'; } else { _root._quality = 'LOW'; } } } function shakeScreen(dur) { clearInterval(shakeInterval); if (isJumping || isFlying) { } else { _root[hero]._y = ground; } var v2 = 0; while (v2 < enemyArray.length) { _root[enemyArray[v2]]._y = ground; ++v2; } _root.bgImage1._y = 0; _root.bgImage2._y = 0; shakeNum = 0; endShake = dur; moveScreen(); shakeInterval = setInterval(moveScreen, 40); } function moveScreen() { ++shakeNum; if (shakeNum % 2 == 0) { moveObjects(5); } else { moveObjects(-5); } if (shakeNum == endShake) { clearInterval(shakeInterval); var v2 = 0; while (v2 < enemyArray.length) { _root[enemyArray[v2]]._y = ground; ++v2; } if (isJumping || isFlying) { } else { _root[hero]._y = ground; } _root.bgImage1._y = 0; _root.bgImage2._y = 0; } } function moveObjects(yMove) { _root.bgImage1._y += yMove; _root.bgImage2._y += yMove; if (!isJumping && !isFlying) { _root[hero]._y += yMove; } var v2 = 0; while (v2 < enemyArray.length) { var v3 = enemyArray[v2]; _root[v3]._y += yMove; ++v2; } } var my_cm; my_cm = new ContextMenu(); my_cm.hideBuiltInItems(); var myFirstItem_cmi; myFirstItem_cmi = new ContextMenuItem('(c)2009 - axis-games.com', myFirstItemHandler); my_cm.customItems.push(myFirstItem_cmi); _root.menu = my_cm; stopAllSounds(); _root.attachMovie('fadeToWhite', 'fadeToWhite', _root.getNextHighestDepth()); if (hero == 'maxx') { heroSpeed = 5; jumpSpeed = 8; abilityList = [null, 'slice']; hotBarList = [null, 'slice', '', '', '', '', '']; allDTalents = ['guardianSpirit', 'shieldOfValor', 'lifeTap', 'siphonLife', 'stoneSkin', 'energize', 'rejuvinate', 'improvedBlock', 'vitality', 'block']; allOTalents = ['stunPunchT', 'quickSlashT', 'medusaBlade', 'deadEye', 'impaleT', 'stoneBreaker', 'forceBlade', 'tornadoT', 'whirlwindT', 'powerSwing']; guardianSpirit = ['heroHit', 0, 2, null, 2, 'proc', [0, 10, 20], 'stoneSkin']; shieldOfValor = ['heroHit', 0, 1, null, 3, 'currentEnergy', [0, 5], 'improvedBlock']; lifeTap = ['heroAtk', 0, 2, 'siphonLife', 3, 'currentHealth', [0, 0.05, 0.1], 'rejuvinate']; siphonLife = ['heroAtk', 0, 1, null, 4, 'currentHealth', [0, 0.05], 'lifeTap']; stoneSkin = ['heroHit', 0, 2, 'guardianSpirit', 1, 'damageTaken', [0, 0.08, 0.15], null]; block = ['passive', 0, 1, 'improvedBlock', 1, 'blockChance', [0, 70], null]; vitality = ['passive', 0, 5, 'lifeTap', 2, 'healthBonus', [0, 0.05, 0.1, 0.15, 0.2, 0.25], 'rejuvinate']; improvedBlock = ['passive', 0, 3, 'shieldOfValor', 2, 'blockChance', [0, 77, 84, 90], 'block']; rejuvinate = ['passive', 0, 5, 'vitality', 1, 'healthRegen', [0, 0.05, 0.1, 0.15, 0.2, 0.25], null]; energize = ['passive', 0, 3, null, 3, 'energyRegen', [0, 0.2, 0.25, 0.3], null]; stunPunchT = ['ability', 0, 1, 'medusaBlade', 1, 'stunPunch', [0, 1], null]; quickSlashT = ['ability', 0, 1, 'impaleT', 1, 'quickSlash', [0, 1], null]; impaleT = ['ability', 0, 1, 'tornadoT', 2, 'impale', [0, 1], 'quickSlashT']; tornadoT = ['ability', 0, 1, 'whirlwindT', 3, 'tornado', [0, 1], 'impaleT']; whirlwindT = ['ability', 0, 1, null, 4, 'whirlwind', [0, 1], 'tornadoT']; powerSwing = ['heroAtk', 0, 5, null, 1, 'damageDelt', [0, 0.05, 0.1, 0.15, 0.2, 0.25], null]; medusaBlade = ['heroAtk', 0, 5, 'stoneBreaker', 2, 'stun', [0, 2, 5, 6, 8, 10], 'stunPunchT']; deadEye = ['passive', 0, 3, null, 2, 'critChance', [0, 5, 10, 15], null]; stoneBreaker = ['heroAtk', 0, 3, null, 3, 'killChance', [0, 50, 75, 100], 'medusaBlade']; forceBlade = ['heroAtk', 0, 4, null, 3, 'knockBack', [0, 0.25, 0.5, 0.75, 1], null]; slice = [3, 0.5, 8, false, false, false, -10, -33, 0, 0.2]; quickSlash = [6, 5, 10, false, false, false, -10, -33, 0, 0.3]; impale = [6, 12, 15, true, false, false, -10, -33, 0, 0.3]; tornado = [2, 15, 20, false, true, false, -10, -33, 25, 0.1]; tornado2 = [7, 0, 20, false, false, false, -10, -33, 0, 0.3]; whirlwind = [5, 20, 25, true, false, false, -10, -33, 0, 0.3]; stunPunch = [2, 6, 8, false, true, false, -10, -33, 50, 0.1]; } else { if (hero == 'cabon') { heroSpeed = 6; jumpSpeed = 8; abilityList = [null, 'stab']; hotBarList = [null, 'stab', '', '', '', '', '']; allDTalents = ['glider', 'expansiveMind', 'flowingThought', 'evasion', 'energyShieldT', 'drainSoul', 'fly', 'frostAura', 'stamina', 'synergy']; allOTalents = ['blackIceT', 'focusedMind', 'hellFireT', 'shatter', 'precision', 'deathBoltT', 'fireAndIce', 'feedback', 'brimstoneT', 'deadlyFocus']; glider = ['passive', 0, 2, 'evasion', 1, 'heroSpeed', [0, 6.5, 7], null]; expansiveMind = ['passive', 0, 5, 'energyShieldT', 1, 'energyBonus', [0, 0.1, 0.2, 0.3, 0.4, 0.5], null]; flowingThought = ['passive', 0, 3, 'drainSoul', 1, 'energyRegen', [0, 0.1, 0.2, 0.3], null]; evasion = ['passive', 0, 3, null, 2, 'dodgeChance', [5, 10, 15, 20], 'glider']; fly = ['passive', 0, 1, null, 3, null, [0, true], null]; frostAura = ['passive', 0, 3, 'synergy', 3, 'frostAuraOn', [0, 15, 30, 40], 'energyShieldT']; stamina = ['passive', 0, 3, null, 3, 'healthBonus', [0, 0.05, 0.1, 0.15], null]; synergy = ['heroHit', 0, 1, null, 4, null, [0, true], 'frostAura']; drainSoul = ['heroAtk', 0, 3, null, 2, 'currentEnergy', [0, 1, 2, 3], 'flowingThought']; energyShieldT = ['ability', 0, 1, 'frostAura', 2, 'energyShield', [0, 1], 'expansiveMind']; hellFireT = ['ability', 0, 1, null, 1, 'hellFire', [0, 1], null]; blackIceT = ['ability', 0, 1, 'shatter', 1, 'blackIce', [0, 1], null]; deathBoltT = ['ability', 0, 1, null, 2, 'deathBolt', [0, 1], null]; brimstoneT = ['ability', 0, 1, null, 3, 'brimstone', [0, 1], null]; precision = ['passive', 0, 5, 'feedback', 2, 'critChance', [0, 3, 6, 9, 12, 15], 'focusedMind']; focusedMind = ['heroAtk', 0, 5, 'precision', 1, 'damageDelt', [0, 0.03, 0.06, 0.09, 0.12, 0.15], null]; shatter = ['heroAtk', 0, 3, 'fireAndIce', 2, 'critChance', [0, 20, 40, 60], 'blackIce']; fireAndIce = ['heroAtk', 0, 3, null, 3, 'damageDelt', [0, 0.2, 0.4, 0.6], null]; feedback = ['heroAtk', 0, 4, 'deadlyFocus', 3, 'currentEnergy', [0, 0.01, 0.02, 0.03, 0.04], 'precision']; deadlyFocus = ['heroAtk', 0, 1, null, 4, 'damageDelt', [0, 1], 'feedback']; stab = [3, 0.5, 5, false, false, false, -10, -33, 0, 0.1]; energyShield = [0, 5, 0, false, false, false, -10, -53, 0, 0]; deathBolt = [5, 9, 5, false, true, false, -25, -33, 50, 0.2]; blackIce = [1, 8, 0, false, false, true, -5, -10, 125, 0.1]; hellFire = [3, 4, 2, false, false, false, -25, -33, 0, 0.3]; brimstone = [15, 25, 0, true, false, false, -25, 10, 0, 0.4]; } } distanceMoved = 0; gamePaused = false; allowScroll = true; soundOn = true; allowSound = true; enemyTimer = 0; spawnValue = 200; bossFight = false; soundInterval = setInterval(ambientSound, 10000 + random(10000)); bindings = [null, '1', '2', '3', '4', '5', '6']; expSplits = [8, 10, 12, 12, 14, 14, 16, 16, 18, 18, 21, 23, 25, 28, 31, 35, 38, 41, 45, 49, 55, 60, 65, 70, 80, 90, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100]; ground = 400; area = 1; isJumping = false; isAttacking = false; isBlocking = false; isFlying = false; attackTimer = 0; attackKey = 0; attackFinished = false; hitTimer = 0; slowTimer = 0; stunTimer = 0; allowFly = false; allowDoubleJump = false; doneDoubleJump = false; heroFalling = false; heroSlowed = false; heroStunned = false; level = 1; maxDamage = 0; healthBonus = 0; energyBonus = 0; baseHealth = 50; baseEnergy = 75; currentExp = 0; heroDead = false; expToLevel = expSplits[0]; maxHealth = getMaxHealth(); currentHealth = maxHealth; maxEnergy = getMaxEnergy(); currentEnergy = maxEnergy; currentTalentPoints = 0; changeHealth(0); changeEnergy(0); dodgeChance = 5; blockChance = 0; critChance = 0; healthRegen = 0.05; energyRegen = 0.15; damageTaken = 0; damageDelt = 0; hit = false; characterName = String(characterName); _root[hero]._y = ground; _root[hero]._x = 50; regenInterval = setInterval(regen, 100); enemiesKilledLvl = 0; damageDoneLvl = 0; damageTakenLvl = 0; criticalHitsLvl = 0; timeTakenLvl = 0; _root.timeTakenTot = 0; deathsLvl = 0; _root.deathsTot = 0; guardianSpiritOn = false; energyShieldOn = false; deadlyFocusOn = false; levelPerTier = [0, 0, 10, 17, 25]; topDepth = 90002; bottomDepth = 90001; enemyDepth = 1000; attackDepth = 10000; heroDepth = 999; _root.hotBar.portrait.gotoAndStop(hero); _root.hotBar.levelProgress._xscale = 0; _root.characterScreen._visible = false; _root.characterScreen._x = 325; _root.characterScreen._y = 225; _root.statsWindow._x = 325; _root.statsWindow._y = 250; _root.statsWindow._visible = false; _root.mapMenu._visible = false; _root.mapMenu._x = 325; _root.mapMenu._y = 250; _root[hero].swapDepths(heroDepth); _root.transitionWindow.swapDepths(999999); _root.tutorialWindow.swapDepths(999998); _root.respawnWindow.swapDepths(999997); _root.messageWindow.swapDepths(999996); _root.statsWindow.swapDepths(999995); _root.characterScreen.swapDepths(999994); _root.mapMenu.swapDepths(999993); _root.hotBar.swapDepths(999992); _root.characterBar.swapDepths(999991); _root.bossWindow.swapDepths(999990); _root.bgImage1.swapDepths(990); _root.bgImage2.swapDepths(991); _root.characterBar.expBar._xscale = 0; _root.hotBar.abilityMenu._y = -25; _root.mapMenu.nextLevelBtn._visible = false; _root.hotBar.tpNum.text = ''; shownCheckpoint = false; _root.characterScreen.dTalents.talentTree.gotoAndStop(hero); _root.characterScreen.oTalents.talentTree.gotoAndStop(hero); _root.characterScreen.oTalents.swapDepths(bottomDepth); _root.characterScreen.dTalents.swapDepths(topDepth); _root.characterScreen.oTalents.linkText.gotoAndStop(2); var iceColorTransform = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 40, 200, 0); var poisonColorTransform = new flash.geom.ColorTransform(0.6, 1, 0.6, 1, 0, 100, 0, 255); var grayColorTransform = new flash.geom.ColorTransform(0.3, 0.3, 0.3, 0.8, 0, 0, 0, 0); var blankColor = new flash.geom.ColorTransform(); _root.bossWindow._visible = false; var i = 0; while (i < 11) { var tName = allDTalents[i]; _root.characterScreen.dTalents.talentTree[tName + 'Txt'].text = _root[tName][1] + '/' + _root[tName][2]; _root.characterScreen.dTalents.talentTree[tName + 'MC'][tName + 'Un'].useHandCursor = false; var tName = allOTalents[i]; _root.characterScreen.oTalents.talentTree[tName + 'Txt'].text = _root[tName][1] + '/' + _root[tName][2]; _root.characterScreen.oTalents.talentTree[tName + 'MC'][tName + 'Un'].useHandCursor = false; ++i; } tutorialArray = [null, false, false, false, false, false, false]; _root.enemiesKilled = 0; enemyNum = 0; bossEffectX = 0; bossInterval = 0; chaseSpeed = heroSpeed + 2; enemyArray = []; scrollDead = []; toBeKilled = []; distanceTilBoss = [0, 4500, 5300, 6000, 6200, 6500, 7000, 7500]; skeleton = [15, 3, 40, 75, 0, -45, 5, 2, 3, 0, 0, 0, 0, 0, 0, 0, 0, null, 200]; monk = [20, 4, 90, 250, 0, -45, 5, 3, 4, 0, 0, 0, 0, 0, 0, 0, 0, null, 250]; ghost = [25, 3, 60, 250, 0, -45, 5, 3, 5, 0, 0, 0, 0, 0, 0, 0, 0, null, 350]; zombie = [35, 3, 65, 100, 0, -45, 5, 4, 9, 9, 0, 0, 0, 0, 0, 0, 0, null, 300]; hound = [45, 5, 40, 85, 0, -45, 5, 4, 9, 0, 0, 0, 0, 0, 0, 0, 0, null, 200]; bull = [53, 3, 60, 300, 0, -45, 5, 5, 7, 0, 0, 0, 0, 0, 0, 0, 0, null, 200]; ninja = [57, 4, 60, 250, 0, -45, 5, 5, 7, 0, 0, 0, 0, 0, 0, 0, 0, null, 300]; titan = [65, 5, 60, 100, 0, -45, 5, 6, 12, 0, 0, 0, 0, 0, 0, 0, 0, null, 200]; wizard = [80, 5, 60, 100, 0, -45, 5, 7, 12, 9, 0, 0, 0, 0, 0, 0, 0, null, 300]; gargoyle = [95, 2.5, 50, 100, 0, -45, 5, 8, 14, 12, 0, 0, 0, 0, 0, 0, 0, null, 300]; centaur = [100, 6, 65, 500, 0, -45, 5, 10, 7, 7, 7, 0, 0, 0, 0, 0, 0, null]; tauren = [400, 6, 65, 500, 0, -45, 5, 20, 10, 15, 0, 0, 0, 0, 0, 0, 0, null]; gladiator = [500, 8, 65, 500, 0, -45, 5, 30, 15, 20, 5, 0, 0, 0, 0, 0, 0, null]; hexin = [900, 2, 65, 500, 0, -45, 5, 0, 32, 33, 30, 0, 0, 0, 0, 0, 0, null]; princess = [20, 3, 40, 75, 0, -45, 5, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, null]; if (hero == 'cabon') { gladiator = [500, 8, 65, 500, 0, -45, 5, 30, 9, 15, 3, 0, 0, 0, 0, 0, 0, null]; } area1 = ['skeleton']; area2 = ['skeleton', 'monk']; area3 = ['monk', 'zombie']; area4 = ['zombie', 'hound']; area5 = ['hound', 'titan']; area6 = ['titan', 'wizard']; area7 = ['wizard', 'gargoyle']; bossArray = [null, null, 'centaur', null, 'tauren', null, 'gladiator', 'hexin']; doubleSpawn = [0, 25, 30, 35, 35, 35, 40, 45]; createHotKeys(); updateTalents(); setHotBar(); _root.playSound('theme1'); _root.bgImage1.gotoAndStop(area); _root.bgImage2.gotoAndStop(area); _root.staticBackground.gotoAndStop(area); placeBGItems('bgImage1'); placeBGItems('bgImage2'); pauseGame(); _root.mapMenu.nextLevelBtn._visible = false; _root.mapMenu._visible = true; _root.mapMenu.attachMovie('lvl1', 'lvl1', _root.mapMenu.getNextHighestDepth()); _root.onEnterFrame = function () { if (gamePaused == false) { ++timeTakenLvl; ++timeTakenTot; moveHero(); } }; onMouseDown = function () { if (!_root.hotBar.abilityMenu.hitTest(_xmouse, _ymouse, true)) { closeAbilityMenu(); } }; var keyListener = new Object(); Key.addListener(keyListener); keyListener.onKeyDown = function () { var v1 = Key.getCode(); if (v1 == 80) { togglePause(); } else { if (v1 == 67) { toggleCharacterScreen(); } else { if (v1 == 77) { toggleMap(); } else { if (v1 == 83) { toggleSound(); } else { if (v1 == 81) { toggleQuality(); } } } } } }; stop(); } movieClip 1432 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } } movieClip 1440 { } movieClip 1444 { } movieClip 1449 { } movieClip 1451 { } movieClip 1456 { } movieClip 1467 { frame 1 { stop(); } } movieClip 1476 { } movieClip 1485 { frame 6 { if (_root.isJumping) { this._parent.gotoAndStop('jump'); } else { this._parent.gotoAndStop('stand'); } } } movieClip 1490 { frame 4 { stop(); } } movieClip 1505 { frame 14 { stop(); } } movieClip 1518 { frame 4 { this.weapon._visible = false; _root.checkForHit('quickSlash'); } frame 5 { _root.playSound('quickSlashUse'); } frame 11 { _root.attackFinished = true; if (_root.isJumping) { this._parent.gotoAndStop('jump'); } else { this._parent.gotoAndStop('stand'); } } } movieClip 1529 { frame 1 { _root.playSound('stunPunchUse'); } frame 7 { this.weapon._visible = false; _root.checkForHit('stunPunch'); } frame 11 { _root.attackFinished = true; if (_root.isJumping) { this._parent.gotoAndStop('jump'); } else { this._parent.gotoAndStop('stand'); } } } movieClip 1544 { frame 6 { _root.playSound('impaleUse'); } frame 9 { this.weapon._visible = false; _root.checkForHit('impale'); } frame 14 { _root.attackMove(60); _root.attackFinished = true; if (_root.isJumping) { this._parent.gotoAndStop('jump'); } else { this._parent.gotoAndStop('stand'); } } } movieClip 1569 { frame 7 { this.weapon._visible = false; _root.playSound('tornadoUse'); _root.checkForHit('tornado'); } frame 12 { _root.playSound('tornadoUse2'); } frame 17 { this.weapon._visible = false; _root.checkForHit('tornado2'); } frame 22 { _root.attackMove(50); _root.attackFinished = true; if (_root.isJumping) { this._parent.gotoAndStop('jump'); } else { this._parent.gotoAndStop('stand'); } } } movieClip 1600 { frame 4 { _root.playSound('whirlwindUse'); } frame 7 { this.weapon._visible = false; _root.checkForHit('whirlwind'); } frame 14 { _root.playSound('whirlwindUse'); } frame 18 { this.weapon._visible = false; _root.checkForHit('whirlwind'); } frame 21 { _root.playSound('whirlwindUse'); } frame 23 { this.weapon._visible = false; _root.checkForHit('whirlwind'); } frame 30 { _root.attackMove(60); _root.attackFinished = true; if (_root.isJumping) { this._parent.gotoAndStop('jump'); } else { this._parent.gotoAndStop('stand'); } } } movieClip 1611 { frame 4 { _root.playSound('sliceUse'); } frame 5 { this.weapon._visible = false; _root.checkForHit('slice'); } frame 8 { _root.attackFinished = true; if (_root.isJumping) { this._parent.gotoAndStop('jump'); } else { this._parent.gotoAndStop('stand'); } } } movieClip 1612 { frame 1 { stop(); } } movieClip 1621 { } movieClip 1626 { frame 6 { if (_root.isFlying) { this._parent.gotoAndStop('fly'); } else { if (_root.isJumping) { this._parent.gotoAndStop('jump'); } else { this._parent.gotoAndStop('stand'); } } } } movieClip 1651 { frame 25 { stop(); } } movieClip 1658 { frame 3 { _root.playSound('stabUse'); } frame 4 { this.weapon._visible = false; _root.checkForHit('stab'); } frame 9 { _root.attackFinished = true; if (_root.isFlying) { this._parent.gotoAndStop('fly'); } else { if (_root.isJumping) { this._parent.gotoAndStop('jump'); } else { this._parent.gotoAndStop('stand'); } } } } movieClip 1677 { frame 7 { _root.useAttack('deathBolt'); } frame 9 { _root.playSound('deathBoltUse'); } frame 13 { _root.attackFinished = true; if (_root.isFlying) { this._parent.gotoAndStop('fly'); } else { if (_root.isJumping) { this._parent.gotoAndStop('jump'); } else { this._parent.gotoAndStop('stand'); } } } } movieClip 1684 { frame 4 { _root.useAttack('hellFire'); _root.playSound('hellFireUse'); } frame 9 { _root.attackFinished = true; if (_root.isFlying) { this._parent.gotoAndStop('fly'); } else { if (_root.isJumping) { this._parent.gotoAndStop('jump'); } else { this._parent.gotoAndStop('stand'); } } } } movieClip 1689 { frame 4 { _root.useAttack('blackIce'); } frame 7 { _root.playSound('blackIceUse'); } frame 10 { _root.attackFinished = true; if (_root.isFlying) { this._parent.gotoAndStop('fly'); } else { if (_root.isJumping) { this._parent.gotoAndStop('jump'); } else { this._parent.gotoAndStop('stand'); } } } } movieClip 1690 { } movieClip 1693 { frame 1 { _root.playSound('energyShieldCast'); } frame 4 { if (_root.energyShieldOn == false) { _root.cabon.attachMovie('energyShield', 'energyShield', 1); _root.cabon.energyShield._x = _root.cabon.weapon._x; _root.cabon.energyShield._y = _root.cabon.weapon._y; _root.energyShieldOn = true; } else { _root.energyShieldOn = false; _root.cabon.energyShield.removeMovieClip(); } } frame 5 { _root.attackFinished = true; if (_root.isFlying) { this._parent.gotoAndStop('fly'); } else { if (_root.isJumping) { this._parent.gotoAndStop('jump'); } else { this._parent.gotoAndStop('stand'); } } } } movieClip 1704 { frame 1 { _root.playSound('brimstoneCast'); } frame 7 { _root.useAttack('brimstone'); } frame 12 { _root.attackFinished = true; if (_root.isFlying) { this._parent.gotoAndStop('fly'); } else { if (_root.isJumping) { this._parent.gotoAndStop('jump'); } else { this._parent.gotoAndStop('stand'); } } } } movieClip 1705 { frame 1 { if (_root.isFlying) { this.gotoAndStop('fly'); } stop(); } } movieClip 1783 { frame 1 { stop(); } frame 4 { this.gotoAndStop(1); } frame 5 { this.gotoAndStop(1); } frame 6 { this.gotoAndStop(1); } frame 15 { this.gotoAndStop(1); } frame 16 { this.gotoAndStop(1); } frame 17 { this.gotoAndStop(1); } frame 30 { this.gotoAndStop(1); } frame 31 { this.gotoAndStop(1); } frame 32 { this.gotoAndStop(1); } frame 41 { this.gotoAndStop(1); } frame 42 { this.gotoAndStop(1); } frame 43 { this.gotoAndStop(1); } frame 44 { this.gotoAndStop(1); } frame 54 { this.gotoAndStop(1); } frame 55 { this.gotoAndStop(1); } frame 56 { this.gotoAndStop(1); } frame 57 { this.gotoAndStop(1); } frame 66 { this.gotoAndStop(1); } frame 67 { this.gotoAndStop(1); } frame 68 { this.gotoAndStop(1); } frame 77 { this.gotoAndStop(1); } frame 78 { this.gotoAndStop(1); } frame 79 { this.gotoAndStop(1); } frame 88 { this.gotoAndStop(1); } frame 97 { this.gotoAndStop(1); } frame 98 { this.gotoAndStop(1); } frame 99 { this.gotoAndStop(1); } frame 108 { this.gotoAndStop(1); } frame 109 { this.gotoAndStop(1); } frame 110 { this.gotoAndStop(1); } frame 111 { this.gotoAndStop(1); } frame 123 { this.gotoAndStop(1); } frame 124 { this.gotoAndStop(1); } frame 135 { this.gotoAndStop(1); } frame 136 { this.gotoAndStop(1); } frame 137 { this.gotoAndStop(1); } frame 138 { this.gotoAndStop(1); } frame 150 { this.gotoAndStop(1); } frame 151 { this.gotoAndStop(1); } frame 152 { this.gotoAndStop(1); } frame 153 { this.gotoAndStop(1); } frame 154 { this.gotoAndStop(1); } frame 162 { this.gotoAndStop(1); } frame 171 { this.gotoAndStop(1); } frame 182 { this.gotoAndStop(1); } frame 191 { this.gotoAndStop(1); } frame 192 { this.gotoAndStop(1); } frame 203 { this.gotoAndStop(1); } frame 214 { this.gotoAndStop(1); } frame 221 { this.gotoAndStop(1); } frame 231 { this.gotoAndStop(1); } frame 249 { this.gotoAndStop(1); } frame 261 { this.gotoAndStop(1); } frame 274 { this.gotoAndStop(1); } frame 284 { this.gotoAndStop(1); } frame 285 { this.gotoAndStop(1); } frame 295 { this.gotoAndStop(1); } frame 306 { this.gotoAndStop(1); } frame 318 { this.gotoAndStop(1); } frame 328 { this.gotoAndStop(1); } frame 335 { this.gotoAndStop(1); } frame 342 { this.gotoAndStop(1); } frame 349 { this.gotoAndStop(1); } frame 356 { this.gotoAndStop(1); } frame 363 { this.gotoAndStop(1); } frame 370 { this.gotoAndStop(1); } frame 377 { this.gotoAndStop(1); } frame 386 { this.gotoAndStop(1); } frame 395 { this.gotoAndStop(1); } frame 404 { this.gotoAndStop(1); } frame 412 { this.gotoAndStop(1); } frame 422 { this.gotoAndStop(1); } frame 429 { this.gotoAndStop(1); } frame 436 { this.gotoAndStop(1); } frame 443 { this.gotoAndStop(1); } frame 450 { this.gotoAndStop(1); } frame 460 { this.gotoAndStop(1); } frame 471 { this.gotoAndStop(1); } } movieClip 1788 { } movieClip 1793 { frame 1 { stop(); } } movieClip 1797 { } movieClip 1799 { } movieClip 1800 { frame 1 { stop(); } } movieClip 1801 { frame 1 { stop(); } } // unknown tag 88 length 148 button 1806 { on (release) { _root.toggleMap(); _root.showTutorial(1); } } movieClip 1807 { frame 1 { closeBtn.useHandCursor = false; } instance mapIcon of movieClip 1801 { onClipEvent (enterFrame) { this.heroIcon.gotoAndStop(_root.hero); } } } // unknown tag 88 length 148 movieClip 1810 { frame 1 { stop(); } } movieClip 1813 { } movieClip 1815 { } movieClip 1817 { } movieClip 1819 { } movieClip 1830 { frame 1 { stop(); } } movieClip 1831 { } button 1834 { on (release) { _root.closeAbilityMenu(); } } // unknown tag 88 length 60 button 1839 { on (release) { _root.setNewAbility(this.id); } } button 1843 { on (release) { _root.setNewAbility(this.id); } } button 1847 { on (release) { _root.setNewAbility(this.id); } } button 1851 { on (release) { _root.setNewAbility(this.id); } } button 1855 { on (release) { _root.setNewAbility(this.id); } } button 1859 { on (release) { _root.setNewAbility(this.id); } } button 1863 { on (release) { _root.setNewAbility(this.id); } } button 1867 { on (release) { _root.setNewAbility(this.id); } } button 1871 { on (release) { _root.setNewAbility(this.id); } } button 1875 { on (release) { _root.setNewAbility(this.id); } } button 1879 { on (release) { _root.setNewAbility(this.id); } } button 1883 { on (release) { _root.setNewAbility(this.id); } } movieClip 1884 { frame 1 { stop(); } } movieClip 1885 { frame 1 { btn.useHandCursor = false; } instance slot5 of movieClip 1884 { onClipEvent (load) { this.id = 5; } } instance slot4 of movieClip 1884 { onClipEvent (load) { this.id = 4; } } instance slot3 of movieClip 1884 { onClipEvent (load) { this.id = 3; } } instance slot2 of movieClip 1884 { onClipEvent (load) { this.id = 2; } } instance slot1 of movieClip 1884 { onClipEvent (load) { this.id = 1; this.useHandCursor = false; } } instance slot6 of movieClip 1884 { onClipEvent (load) { this.id = 6; } } } movieClip 1887 { } movieClip 1893 { } button 1895 { on (release) { _root.openAbilityMenu(this.id); } on (rollOver) { _root.showAbilityTooltip(this.id); } on (rollOut) { _root.hotBar.abilityText.gotoAndStop(1); } } button 1898 { on (release) { _root.openAbilityMenu(this.id); } on (rollOver) { _root.showAbilityTooltip(this.id); } on (rollOut) { _root.hotBar.abilityText.gotoAndStop(1); } } button 1902 { on (release) { _root.openAbilityMenu(this.id); } on (rollOver) { _root.showAbilityTooltip(this.id); } on (rollOut) { _root.hotBar.abilityText.gotoAndStop(1); } } button 1906 { on (release) { _root.openAbilityMenu(this.id); } on (rollOver) { _root.showAbilityTooltip(this.id); } on (rollOut) { _root.hotBar.abilityText.gotoAndStop(1); } } button 1910 { on (release) { _root.openAbilityMenu(this.id); } on (rollOver) { _root.showAbilityTooltip(this.id); } on (rollOut) { _root.hotBar.abilityText.gotoAndStop(1); } } button 1914 { on (release) { _root.openAbilityMenu(this.id); } on (rollOver) { _root.showAbilityTooltip(this.id); } on (rollOut) { _root.hotBar.abilityText.gotoAndStop(1); } } movieClip 1917 { } button 1918 { on (release) { _root.openAbilityMenu(this.id); } on (rollOver) { _root.showAbilityTooltip(this.id); } on (rollOut) { _root.hotBar.abilityText.gotoAndStop(1); } } button 1921 { on (release) { _root.openAbilityMenu(this.id); } on (rollOver) { _root.showAbilityTooltip(this.id); } on (rollOut) { _root.hotBar.abilityText.gotoAndStop(1); } } button 1924 { on (release) { _root.openAbilityMenu(this.id); } on (rollOver) { _root.showAbilityTooltip(this.id); } on (rollOut) { _root.hotBar.abilityText.gotoAndStop(1); } } button 1927 { on (release) { _root.openAbilityMenu(this.id); } on (rollOver) { _root.showAbilityTooltip(this.id); } on (rollOut) { _root.hotBar.abilityText.gotoAndStop(1); } } button 1930 { on (release) { _root.openAbilityMenu(this.id); } on (rollOver) { _root.showAbilityTooltip(this.id); } on (rollOut) { _root.hotBar.abilityText.gotoAndStop(1); } } button 1933 { on (release) { _root.openAbilityMenu(this.id); } on (rollOver) { _root.showAbilityTooltip(this.id); } on (rollOut) { _root.hotBar.abilityText.gotoAndStop(1); } } movieClip 1934 { frame 1 { stop(); } } movieClip 1939 { frame 1 { stop(); } } movieClip 1944 { frame 1 { stop(); } } movieClip 1951 { frame 1 { stop(); } } button 1956 { on (release) { _root.togglePause(); } on (rollOver) { _root.hotBar.tooltip.gotoAndStop(5); _root.playSound('rollOver'); } on (rollOut) { _root.hotBar.tooltip.gotoAndStop(1); } } button 1957 { on (release) { _root.toggleSound(); } on (rollOver) { _root.hotBar.tooltip.gotoAndStop(4); _root.playSound('rollOver'); } on (rollOut) { _root.hotBar.tooltip.gotoAndStop(1); } } button 1958 { on (release) { _root.toggleMap(); } on (rollOver) { _root.hotBar.tooltip.gotoAndStop(3); _root.playSound('rollOver'); } on (rollOut) { _root.hotBar.tooltip.gotoAndStop(1); } } button 1959 { on (release) { _root.toggleCharacterScreen(); } on (rollOver) { _root.hotBar.tooltip.gotoAndStop(2); _root.playSound('rollOver'); } on (rollOut) { _root.hotBar.tooltip.gotoAndStop(1); } } button 1960 { on (release) { _root.toggleQuality(); } on (rollOver) { _root.hotBar.tooltip.gotoAndStop(6); _root.playSound('rollOver'); } on (rollOut) { _root.hotBar.tooltip.gotoAndStop(1); } } movieClip 1966 { frame 1 { stop(); } } movieClip 1979 { frame 1 { stop(); } } movieClip 1995 { frame 1 { btn1.useHandCursor = false; btn2.useHandCursor = false; btn3.useHandCursor = false; btn4.useHandCursor = false; btn5.useHandCursor = false; } instance slot3 of movieClip 1934 { onClipEvent (load) { this.id = 3; } } instance slot1 of movieClip 1934 { onClipEvent (load) { this.id = 1; } } instance slot6 of movieClip 1934 { onClipEvent (load) { this.id = 6; } } instance slot2 of movieClip 1934 { onClipEvent (load) { this.id = 2; } } instance slot4 of movieClip 1934 { onClipEvent (load) { this.id = 4; } } instance slot5 of movieClip 1934 { onClipEvent (load) { this.id = 5; } } instance portrait of movieClip 1944 { onClipEvent (release) { _root.toggleCharacterScreen(); } } } movieClip 1998 { } button 2005 { on (release) { this.gotoAndPlay('close'); } } movieClip 2006 { frame 1 { stop(); } frame 2 { _root[_root.hero].gotoAndStop('dying'); } frame 11 { btn1.useHandCursor = false; stop(); } frame 20 { _root.respawnHero(); } frame 29 { this.gotoAndStop(1); } } movieClip 2007 { frame 1 { stop(); } frame 10 { _root.startNewLevel(); } } movieClip 2013 { } button 2017 { on (release) { if (_root.characterScreen.oTalents.getDepth() == _root.bottomDepth) { _root.characterScreen.oTalents.linkText.gotoAndStop(1); _root.characterScreen.dTalents.linkText.gotoAndStop(2); _root.characterScreen.oTalents.swapDepths(_root.characterScreen.dTalents); } } } movieClip 2018 { frame 1 { stop(); } frame 2 { oBtn.useHandCursor = false; } } movieClip 2198 { frame 1 { stop(); } } movieClip 2201 { } movieClip 2202 { frame 1 { stop(); } frame 10 { stop(); } } button 2203 { on (release) { _root.processTalent('stunPunchT'); } on (rollOver) { _root.getTalentText('stunPunchT'); } on (rollOut) { _root.resetTalentText(); } } movieClip 2204 { } button 2208 { on (release) { _root.processTalent('powerSwing'); } on (rollOver) { _root.getTalentText('powerSwing'); } on (rollOut) { _root.resetTalentText(); } } movieClip 2209 { } button 2210 { on (release) { _root.processTalent('quickSlashT'); } on (rollOver) { _root.getTalentText('quickSlashT'); } on (rollOut) { _root.resetTalentText(); } } movieClip 2211 { } button 2215 { on (rollOver) { _root.getHiddenTalentText('forceBlade'); } on (rollOut) { _root.resetTalentText(); } } button 2216 { on (release) { _root.processTalent('forceBlade'); } on (rollOver) { _root.getTalentText('forceBlade'); } on (rollOut) { _root.resetTalentText(); } } movieClip 2217 { frame 1 { stop(); } } button 2218 { on (rollOver) { _root.getHiddenTalentText('impaleT'); } on (rollOut) { _root.resetTalentText(); } } button 2219 { on (release) { _root.processTalent('impaleT'); } on (rollOver) { _root.getTalentText('impaleT'); } on (rollOut) { _root.resetTalentText(); } } movieClip 2220 { frame 1 { stop(); } } button 2223 { on (rollOver) { _root.getHiddenTalentText('stoneBreaker'); } on (rollOut) { _root.resetTalentText(); } } button 2224 { on (release) { _root.processTalent('stoneBreaker'); } on (rollOver) { _root.getTalentText('stoneBreaker'); } on (rollOut) { _root.resetTalentText(); } } movieClip 2225 { frame 1 { stop(); } } button 2228 { on (rollOver) { _root.getHiddenTalentText('medusaBlade'); } on (rollOut) { _root.resetTalentText(); } } button 2229 { on (release) { _root.processTalent('medusaBlade'); } on (rollOver) { _root.getTalentText('medusaBlade'); } on (rollOut) { _root.resetTalentText(); } } movieClip 2230 { frame 1 { stop(); } } button 2231 { on (rollOver) { _root.getHiddenTalentText('tornadoT'); } on (rollOut) { _root.resetTalentText(); } } button 2232 { on (release) { _root.processTalent('tornadoT'); } on (rollOver) { _root.getTalentText('tornadoT'); } on (rollOut) { _root.resetTalentText(); } } movieClip 2233 { frame 1 { stop(); } } button 2236 { on (rollOver) { _root.getHiddenTalentText('deadEye'); } on (rollOut) { _root.resetTalentText(); } } button 2237 { on (release) { _root.processTalent('deadEye'); } on (rollOver) { _root.getTalentText('deadEye'); } on (rollOut) { _root.resetTalentText(); } } movieClip 2238 { frame 1 { stop(); } } button 2239 { on (rollOver) { _root.getHiddenTalentText('whirlwindT'); } on (rollOut) { _root.resetTalentText(); } } button 2240 { on (release) { _root.processTalent('whirlwindT'); } on (rollOver) { _root.getTalentText('whirlwindT'); } on (rollOut) { _root.resetTalentText(); } } movieClip 2241 { frame 1 { stop(); } } button 2252 { on (release) { _root.processTalent('blackIceT'); } on (rollOver) { _root.getTalentText('blackIceT'); } on (rollOut) { _root.resetTalentText(); } } movieClip 2253 { } button 2256 { on (release) { _root.processTalent('focusedMind'); } on (rollOver) { _root.getTalentText('focusedMind'); } on (rollOut) { _root.resetTalentText(); } } movieClip 2257 { } button 2260 { on (rollOver) { _root.getHiddenTalentText('shatter'); } on (rollOut) { _root.resetTalentText(); } } button 2261 { on (release) { _root.processTalent('shatter'); } on (rollOver) { _root.getTalentText('shatter'); } on (rollOut) { _root.resetTalentText(); } } movieClip 2262 { frame 1 { stop(); } } button 2265 { on (rollOver) { _root.getHiddenTalentText('precision'); } on (rollOut) { _root.resetTalentText(); } } button 2266 { on (release) { _root.processTalent('precision'); } on (rollOver) { _root.getTalentText('precision'); } on (rollOut) { _root.resetTalentText(); } } movieClip 2267 { frame 1 { stop(); } } button 2268 { on (release) { _root.processTalent('hellFireT'); } on (rollOver) { _root.getTalentText('hellFireT'); } on (rollOut) { _root.resetTalentText(); } } movieClip 2269 { } button 2270 { on (rollOver) { _root.getHiddenTalentText('deathBoltT'); } on (rollOut) { _root.resetTalentText(); } } button 2271 { on (release) { _root.processTalent('deathBoltT'); } on (rollOver) { _root.getTalentText('deathBoltT'); } on (rollOut) { _root.resetTalentText(); } } movieClip 2272 { frame 1 { stop(); } } button 2275 { on (rollOver) { _root.getHiddenTalentText('fireAndIce'); } on (rollOut) { _root.resetTalentText(); } } button 2276 { on (release) { _root.processTalent('fireAndIce'); } on (rollOver) { _root.getTalentText('fireAndIce'); } on (rollOut) { _root.resetTalentText(); } } movieClip 2277 { frame 1 { stop(); } } button 2280 { on (rollOver) { _root.getHiddenTalentText('feedback'); } on (rollOut) { _root.resetTalentText(); } } button 2281 { on (release) { _root.processTalent('feedback'); } on (rollOver) { _root.getTalentText('feedback'); } on (rollOut) { _root.resetTalentText(); } } movieClip 2282 { frame 1 { stop(); } } button 2283 { on (rollOver) { _root.getHiddenTalentText('brimstoneT'); } on (rollOut) { _root.resetTalentText(); } } button 2284 { on (release) { _root.processTalent('brimstoneT'); } on (rollOver) { _root.getTalentText('brimstoneT'); } on (rollOut) { _root.resetTalentText(); } } movieClip 2285 { frame 1 { stop(); } } button 2288 { on (rollOver) { _root.getHiddenTalentText('deadlyFocus'); } on (rollOut) { _root.resetTalentText(); } } button 2289 { on (release) { _root.processTalent('deadlyFocus'); } on (rollOver) { _root.getTalentText('deadlyFocus'); } on (rollOut) { _root.resetTalentText(); } } movieClip 2290 { frame 1 { stop(); } } movieClip 2301 { frame 1 { stop(); } frame 2 { stunPunchTMC.stunPunchTBtn.useHandCursor = false; quickSlashTMC.quickSlashTBtn.useHandCursor = false; powerSwingMC.powerSwingBtn.useHandCursor = false; } frame 11 { blackIceTMC.blackIceTBtn.useHandCursor = false; focusedMindMC.focusedMindBtn.useHandCursor = false; hellFireTMC.hellFireTBtn.useHandCursor = false; } } movieClip 2302 { } movieClip 2305 { } button 2309 { on (release) { if (_root.characterScreen.dTalents.getDepth() == _root.bottomDepth) { _root.characterScreen.oTalents.linkText.gotoAndStop(2); _root.characterScreen.dTalents.linkText.gotoAndStop(1); _root.characterScreen.dTalents.swapDepths(_root.characterScreen.oTalents); } } } movieClip 2310 { frame 1 { stop(); } frame 2 { dBtn.useHandCursor = false; } } // unknown tag 88 length 215 // unknown tag 88 length 68 movieClip 2477 { frame 1 { stop(); } } button 2480 { on (rollOver) { _root.getHiddenTalentText('improvedBlock'); } on (rollOut) { _root.resetTalentText(); } } button 2481 { on (release) { _root.processTalent('improvedBlock'); } on (rollOver) { _root.getTalentText('improvedBlock'); } on (rollOut) { _root.resetTalentText(); } } movieClip 2482 { frame 1 { stop(); } } button 2485 { on (rollOver) { _root.getHiddenTalentText('guardianSpirit'); } on (rollOut) { _root.resetTalentText(); } } button 2486 { on (release) { _root.processTalent('guardianSpirit'); } on (rollOver) { _root.getTalentText('guardianSpirit'); } on (rollOut) { _root.resetTalentText(); } } movieClip 2487 { frame 1 { stop(); } } button 2490 { on (release) { _root.processTalent('rejuvinate'); } on (rollOver) { _root.getTalentText('rejuvinate'); } on (rollOut) { _root.resetTalentText(); } } movieClip 2491 { } button 2494 { on (rollOver) { _root.getHiddenTalentText('shieldOfValor'); } on (rollOut) { _root.resetTalentText(); } } button 2495 { on (release) { _root.processTalent('shieldOfValor'); } on (rollOver) { _root.getTalentText('shieldOfValor'); } on (rollOut) { _root.resetTalentText(); } } movieClip 2496 { frame 1 { stop(); } } button 2499 { on (rollOver) { _root.getHiddenTalentText('siphonLife'); } on (rollOut) { _root.resetTalentText(); } } button 2500 { on (release) { _root.processTalent('siphonLife'); } on (rollOver) { _root.getTalentText('siphonLife'); } on (rollOut) { _root.resetTalentText(); } } movieClip 2501 { frame 1 { stop(); } } button 2504 { on (rollOver) { _root.getHiddenTalentText('lifeTap'); } on (rollOut) { _root.resetTalentText(); } } button 2505 { on (release) { _root.processTalent('lifeTap'); } on (rollOver) { _root.getTalentText('lifeTap'); } on (rollOut) { _root.resetTalentText(); } } movieClip 2506 { frame 1 { stop(); } } button 2509 { on (rollOver) { _root.getHiddenTalentText('energize'); } on (rollOut) { _root.resetTalentText(); } } button 2510 { on (release) { _root.processTalent('energize'); } on (rollOver) { _root.getTalentText('energize'); } on (rollOut) { _root.resetTalentText(); } } movieClip 2511 { frame 1 { stop(); } } button 2514 { on (release) { _root.processTalent('block'); } on (rollOver) { _root.getTalentText('block'); } on (rollOut) { _root.resetTalentText(); } } movieClip 2515 { } button 2518 { on (rollOver) { _root.getHiddenTalentText('vitality'); } on (rollOut) { _root.resetTalentText(); } } button 2519 { on (release) { _root.processTalent('vitality'); } on (rollOver) { _root.getTalentText('vitality'); } on (rollOut) { _root.resetTalentText(); } } movieClip 2520 { frame 1 { stop(); } } button 2523 { on (release) { _root.processTalent('stoneSkin'); } on (rollOver) { _root.getTalentText('stoneSkin'); } on (rollOut) { _root.resetTalentText(); } } movieClip 2524 { } button 2537 { on (release) { _root.processTalent('glider'); } on (rollOver) { _root.getTalentText('glider'); } on (rollOut) { _root.resetTalentText(); } } movieClip 2538 { } button 2540 { on (rollOver) { _root.getHiddenTalentText('stamina'); } on (rollOut) { _root.resetTalentText(); } } button 2541 { on (release) { _root.processTalent('stamina'); } on (rollOver) { _root.getTalentText('stamina'); } on (rollOut) { _root.resetTalentText(); } } movieClip 2542 { frame 1 { stop(); } } button 2544 { on (release) { _root.processTalent('flowingThought'); } on (rollOver) { _root.getTalentText('flowingThought'); } on (rollOut) { _root.resetTalentText(); } } movieClip 2545 { } button 2548 { on (release) { _root.processTalent('expansiveMind'); } on (rollOver) { _root.getTalentText('expansiveMind'); } on (rollOut) { _root.resetTalentText(); } } movieClip 2549 { } button 2552 { on (rollOver) { _root.getHiddenTalentText('evasion'); } on (rollOut) { _root.resetTalentText(); } } button 2553 { on (release) { _root.processTalent('evasion'); } on (rollOver) { _root.getTalentText('evasion'); } on (rollOut) { _root.resetTalentText(); } } movieClip 2554 { frame 1 { stop(); } } button 2555 { on (rollOver) { _root.getHiddenTalentText('energyShieldT'); } on (rollOut) { _root.resetTalentText(); } } button 2556 { on (release) { _root.processTalent('energyShieldT'); } on (rollOver) { _root.getTalentText('energyShieldT'); } on (rollOut) { _root.resetTalentText(); } } movieClip 2557 { frame 1 { stop(); } } movieClip 2560 { } button 2561 { on (rollOver) { _root.getHiddenTalentText('drainSoul'); } on (rollOut) { _root.resetTalentText(); } } button 2562 { on (release) { _root.processTalent('drainSoul'); } on (rollOver) { _root.getTalentText('drainSoul'); } on (rollOut) { _root.resetTalentText(); } } movieClip 2563 { frame 1 { stop(); } } button 2566 { on (rollOver) { _root.getHiddenTalentText('fly'); } on (rollOut) { _root.resetTalentText(); } } button 2567 { on (release) { _root.processTalent('fly'); } on (rollOver) { _root.getTalentText('fly'); } on (rollOut) { _root.resetTalentText(); } } movieClip 2568 { frame 1 { stop(); } } button 2571 { on (rollOver) { _root.getHiddenTalentText('frostAura'); } on (rollOut) { _root.resetTalentText(); } } button 2572 { on (release) { _root.processTalent('frostAura'); } on (rollOver) { _root.getTalentText('frostAura'); } on (rollOut) { _root.resetTalentText(); } } movieClip 2573 { frame 1 { stop(); } } button 2576 { on (rollOver) { _root.getHiddenTalentText('synergy'); } on (rollOut) { _root.resetTalentText(); } } button 2577 { on (release) { _root.processTalent('synergy'); } on (rollOver) { _root.getTalentText('synergy'); } on (rollOut) { _root.resetTalentText(); } } movieClip 2578 { frame 1 { stop(); } } movieClip 2589 { frame 1 { stop(); } frame 2 { blockMC.blockBtn.useHandCursor = false; vitalityMC.vitalityBtn.useHandCursor = false; stoneSkinMC.stoneSkinBtn.useHandCursor = false; } frame 8 { gliderMC.gliderBtn.useHandCursor = false; expansiveMindMC.expansiveMindBtn.useHandCursor = false; flowingThoughtMC.flowingThoughtBtn.useHandCursor = false; } } movieClip 2590 { } button 2591 { on (release) { _root.toggleCharacterScreen(); } } // unknown tag 88 length 62 // unknown tag 88 length 63 movieClip 2626 { frame 1 { closeBtn.useHandCursor = false; } } button 2633 { on (release) { _root.closeTutorials(); } on (rollOver) { _root.playSound('rollOver'); } } button 2636 { on (release) { _root.cancleTutorials(); } on (rollOver) { _root.playSound('rollOver'); } } movieClip 2637 { } movieClip 2655 { frame 1 { stop(); } frame 2 { closeBtn.useHandCursor = false; tutBtn.useHandCursor = false; } frame 3 { closeBtn.useHandCursor = false; tutBtn.useHandCursor = false; } frame 4 { closeBtn.useHandCursor = false; tutBtn.useHandCursor = false; } frame 5 { closeBtn.useHandCursor = false; tutBtn.useHandCursor = false; } frame 6 { closeBtn.useHandCursor = false; tutBtn.useHandCursor = false; } frame 7 { closeBtn.useHandCursor = false; tutBtn.useHandCursor = false; } } movieClip 2657 { } movieClip 2670 { frame 1 { stop(); } } movieClip 2673 { frame 1 { stop(); } } movieClip 2674 { instance hpBar of movieClip 2657 { onClipEvent (enterFrame) { if (this._xscale < 0) { this._xscale = 0; } } } } button 2692 { on (rollOver) { _root.playSound('rollOver'); } on (release) { _root.playSound('click'); if (_root.area == 7) { if (_root.hero == 'maxx') { _root.princessEvent(); } else { stopAllSounds(); _root.playSound('princessFree'); _root.attachMovie('fadeToBlack', 'fadeToBlack', _root.getNextHighestDepth()); _root.fadeToBlack.goal = 'victory'; } } else { _root.transitionWindow.gotoAndPlay('open'); } } } movieClip 2693 { frame 1 { nextLevelBtn.useHandCursor = false; } } frame 28 { function myFirstItemHandler() { getURL('http://www.axis-games.com/castlequest.php', ''); } var my_cm; my_cm = new ContextMenu(); my_cm.hideBuiltInItems(); var myFirstItem_cmi; myFirstItem_cmi = new ContextMenuItem('(c)2009 - axis-games.com', myFirstItemHandler); my_cm.customItems.push(myFirstItem_cmi); _root.menu = my_cm; _root[hero].removeMovieClip(); _root.transitionWindow.removeMovieClip(); _root.tutorialWindow.removeMovieClip(); _root.respawnWindow.removeMovieClip(); _root.messageWindow.removeMovieClip(); _root.statsWindow.removeMovieClip(); _root.characterScreen.removeMovieClip(); _root.mapMenu.removeMovieClip(); _root.hotBar.removeMovieClip(); _root.characterBar.removeMovieClip(); _root.bossWindow.removeMovieClip(); _root.bgImage1.removeMovieClip(); _root.bgImage2.removeMovieClip(); _root.statsWindow.removeMovieClip(); Key.removeListener(keyListener); _root.victoryText.gotoAndStop(_root.hero); _root.mainMnu.useHandCursor = false; _root.attachMovie('fadeToWhite', 'fadeToWhite', _root.getNextHighestDepth()); var time = int(timeTakenTot / 25); _root.kongregateStats.submit('TimeToComplete', time); var min = int(time / 60); var sec = int(time - min * 60); if (sec < 10) { sec = '0' + sec; } _root.totalTime.text = min + ':' + sec; _root.totalKills.text = _root.enemiesKilled; _root.totalDeaths.text = _root.deathsTot; _root.kongregateStats.submit('Deaths', _root.deathsTot); _root.kongregateStats.submit('GameComplete', 1); stop(); } button 2697 { on (release) { _root.attachMovie('fadeToBlack', 'fadeToBlack', _root.getNextHighestDepth()); _root.fadeToBlack.goal = 'title'; } } // unknown tag 88 length 62 movieClip 2702 { frame 1 { stop(); } } frame 36 { _root.mainMnu.useHandCursor = false; _root.mapleBtn.useHandCursor = false; _root.attachMovie('fadeToWhite', 'fadeToWhite', _root.getNextHighestDepth()); stop(); } frame 44 { trace('here'); stop(); }




http://swfchan.com/21/100788/info.shtml
Created: 21/3 -2019 02:47:52 Last modified: 21/3 -2019 02:47:52 Server time: 20/04 -2024 13:59:30