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

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

Epic Battle Fantasy.swf

This is the info page for
Flash #54429

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


ActionScript [AS1/AS2]
Combined Code
frame 1 { NewgroundsAPI.connectMovie(6293); _root.API_Settings = {'movie_id': 6293, 'enc_key': 'F3svaQ0s75puKoAdNnWGQvWYPine8vtC', 'debug_mode': false, 'movie_version': ''}; } frame 1 { _focusrect = false; Stage.showMenu = false; swordCount = new Array(); swordCount = [1, 0, 0, 0, 0, 0, 0]; boobCount = 0; medalCount = new Array(); medalCount = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; } movieClip 21 { } button 28 { on (keyPress '<Left>') { xx -= 5; } on (keyPress '<Right>') { xx += 5; } on (keyPress '<Down>') { yy += 5; } on (keyPress '<Up>') { yy -= 5; } } movieClip 30 { } movieClip 31 { frame 1 { function damage() { _root.dam.duplicateMovieClip('bob' + b, b); ++b; bb = 'bob' + (b - 1); tellTarget (''_root.' + bb') { _x = _root.bb._x + 70; _y = _root.bb._y; } } function go() { _x = _x + xx; _y = _y + yy; _rotation = _rotation + (xx + yy); yy *= 0.97; xx *= 0.97; if (_x < 0) { xx = 1; _x = 0; } if (_y < -20) { yy = 1; _y = -20; } if (_x > 720) { xx = -1; _x = 720; } if (_y > 420) { yy = -1; _y = 420; } if (xx > ms) { xx = ms; } if (xx < -ms) { xx = -ms; } if (yy > ms) { yy = ms; } if (yy < -ms) { yy = -ms; } if (xx > 0) { _xscale = -100; } if (xx < 0) { _xscale = 100; } if (_root.cc.cc.hitTest(this)) { damage(); _root.cc.speed = 3; if (_global.score > _global.hscore) { _global.hscore = _global.score; } _global.score = 0; _x = 550; _y = 450; yy = 0; xx = 0; _root.cc._x = 50; _root.cc._y = 430; _root.cc.xx = 2; _root.cc.yy = -2; } } xx = 0; yy = 0; ms = 10; b = 0; } frame 4 { go(); } frame 5 { go(); gotoAndPlay(4); } } movieClip 34 { } button 37 { on (release) { this._visible = false; } } movieClip 46 { frame 1 { _visible = false; var checkConnection = function (event) { if (!event.success) { _visible = true; gotoAndStop(3); } }; if (com.Newgrounds.NewgroundsAPI.isNewgrounds() || _root.API_Settings.debug_mode) { com.Newgrounds.NewgroundsAPI.addEventListener(com.Newgrounds.NewgroundsAPI.events.MOVIE_CONNECTED, checkConnection); if (!com.Newgrounds.NewgroundsAPI.hasUserSession() && !_root.API_Settings.debug_mode) { _visible = true; gotoAndStop(2); } } com.Newgrounds.NewgroundsAPI.setMovieVersion(_root.API_Settings.movie_version); com.Newgrounds.NewgroundsAPI.connectMovie(_root.API_Settings.movie_id, _root.API_Settings.enc_key, _root.API_Settings.debug_mode); com.Newgrounds.NewgroundsAPI.loadMedals(); stop(); } } movieClip 48 { frame 1 { stop(); } frame 10 { if (_global.dir == 'forward') { _root.play(); } else { if (_global.dir == 'over') { _root.gotoAndStop('gameover'); } else { if (_global.dir == 'begin') { _root.gotoAndStop(2); } else { if (_global.dir == 'credits' or _global.dir == 'gallery' or _global.dir == 'main' or _global.dir == 'play') { _root.gotoAndStop(_global.dir); } else { _root.prevFrame(); } } } } } } movieClip 2111 __Packages.NewgroundsAPI { #initclip if (!_global.NewgroundsAPI) { var v1 = function () {}; _global.NewgroundsAPI = v1; var v2 = v1.prototype; v1.connectMovie = function (id) { if (!id) { NewgroundsAPI.SendError('Missing required \'id\' parameter in NewgroundsAPI.connectMovie(id:Number)'); } else { if (!NewgroundsAPI.tracker_id) { NewgroundsAPI.SendMessage('Connecting to API gateway...'); NewgroundsAPI.tracker_id = id; NewgroundsAPI.host = (_url.split('/'))[2].toLowerCase(); if (NewgroundsAPI.host.length < 1) { NewgroundsAPI.host = 'localhost'; } var v2 = new Object(); NewgroundsAPI.SendEvent(NewgroundsAPI.MOVIE_VIEWS); } } }; v1.setMovieVersion = function (movie_version) { if (!movie_version) { NewgroundsAPI.SendError('Missing required \'version\' in NewgroundsAPI.setMovieVersion(version:String)'); } else { NewgroundsAPI.version = movie_version; } }; v1.debugMode = function () { NewgroundsAPI.debug = true; }; v1.addCustomEvent = function (stat_id, stat_name) { if (!stat_id) { NewgroundsAPI.SendError('Missing required \'id\' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)'); } else { if (!stat_name) { NewgroundsAPI.SendError('Missing required \'event_name\' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)'); } else { NewgroundsAPI.custom_events[stat_name] = NewgroundsAPI.CUSTOM_STATS + stat_id; NewgroundsAPI.SendMessage('Created custom event: ' + stat_name); } } }; v1.addCustomLink = function (stat_id, stat_name) { if (!stat_id) { NewgroundsAPI.SendError('Missing required \'id\' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)'); } else { if (!stat_name) { NewgroundsAPI.SendError('Missing required \'link_name\' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)'); } else { NewgroundsAPI.custom_links[stat_name] = NewgroundsAPI.CUSTOM_STATS + stat_id; NewgroundsAPI.SendMessage('Created custom link ' + stat_id + ': ' + stat_name); } } }; v1.loadMySite = function () { NewgroundsAPI.SendLink(NewgroundsAPI.AUTHOR_SITE); }; v1.loadNewgrounds = function (special) { if (special) { var v1 = {'page': special}; } NewgroundsAPI.SendLink(NewgroundsAPI.NEWGROUNDS, v1); }; v1.logCustomEvent = function (event_name) { if (!event_name) { NewgroundsAPI.SendError('Missing required \'event_name\' parameter in NewgroundsAPI.logCustomEvent(event_name:String)'); } else { if (!NewgroundsAPI.custom_events[event_name]) { NewgroundsAPI.SendError('Attempted to log undefined custom event: ' + event_name); } else { NewgroundsAPI.SendEvent(NewgroundsAPI.custom_events[event_name]); } } }; v1.loadCustomLink = function (link_name) { if (!link_name) { NewgroundsAPI.SendError('Missing required \'link_name\' parameter in NewgroundsAPI.loadCustomLink(link_name:String)'); } else { if (!NewgroundsAPI.custom_links[link_name]) { NewgroundsAPI.SendError('Attempted to open undefined custom link: ' + link_name); } else { NewgroundsAPI.SendLink(NewgroundsAPI.custom_links[link_name]); } } }; v1.getAdURL = function () { return NewgroundsAPI.movie_options.ad_url; }; v1.getMovieURL = function () { if (NewgroundsAPI.movie_options.movie_url) { return NewgroundsAPI.movie_options.movie_url; } else { return 'Newgrounds.com'; } }; v1.getNewVersionURL = function () { return NewgroundsAPI.GATEWAY_URL + '?&id=' + NewgroundsAPI.tracker_id + '&host=' + escape(NewgroundsAPI.host) + '&stat=' + NewgroundsAPI.NEW_VERSION; }; v1.SendEvent = function (id) { NewgroundsAPI.SendStat(id, false); }; v1.SendLink = function (id, extra) { NewgroundsAPI.SendStat(id, true, extra); }; v1.ReadGatewayData = function (params) { for (var v2 in params) { params[v2] = unescape(params[v2]); NewgroundsAPI.movie_options[v2] = params[v2]; } if (params.settings_loaded) { NewgroundsAPI.SendMessage('You have successfully connected to the Newgrounds API gateway!'); NewgroundsAPI.SendMessage('Movie Identified as \'' + NewgroundsAPI.movie_options.movie_name + '\''); if (NewgroundsAPI.movie_options.message) { NewgroundsAPI.SendMessage(NewgroundsAPI.movie_options.message); } if (NewgroundsAPI.movie_options.ad_url) { NewgroundsAPI.SendMessage('Your movie has been approved to run Flash Ads'); NewgroundsAPI.onAdsApproved(NewgroundsAPI.movie_options.ad_url); } if (NewgroundsAPI.movie_options.movie_version and NewgroundsAPI.movie_options.movie_version.toString() != NewgroundsAPI.version.toString()) { NewgroundsAPI.SendMessage('WARNING: The movie version configured in your API settings does not match this movie\'s version!'); NewgroundsAPI.onNewVersionAvailable(NewgroundsAPI.movie_options.movie_version, NewgroundsAPI.getMovieURL(), NewgroundsAPI.getNewVersionURL()); } if (NewgroundsAPI.movie_options.deny_host) { NewgroundsAPI.SendMessage('You have blocked \'localHost\' in your API settings.'); NewgroundsAPI.SendMessage('If you wish to test your movie you will need to remove this block.'); NewgroundsAPI.onDenyHost(NewgroundsAPI.host, NewgroundsAPI.getMovieURL(), NewgroundsAPI.getNewVersionURL()); } if (NewgroundsAPI.movie_options.request_portal_url == 1) { var v4 = NewgroundsAPI.GATEWAY_URL + '?&id=' + NewgroundsAPI.tracker_id + '&portal_url=' + escape(_url); var v3 = new XML(); v3.ignoreWhite = true; v3.load(v4); } } else { if (!NewgroundsAPI.movie_options.settings_loaded) { NewgroundsAPI.SendError('Could not establish connection to the API gateway.'); } } }; v1.SendStat = function (stat_id, open_in_browser, extra) { if (!NewgroundsAPI.tracker_id) { NewgroundsAPI.SendError('API calls cannot be made without a valid movie id.'); NewgroundsAPI.SendError('Did you remember to add the "NewgroundsAPI.connectMovie()" code?'); } else { var v7 = NewgroundsAPI.GATEWAY_URL + '?&id=' + NewgroundsAPI.tracker_id + '&host=' + escape(NewgroundsAPI.host) + '&stat=' + stat_id; for (var v9 in extra) { v7 += '&' + escape(v9) + '=' + escape(extra[v9]); } trace(v7); if (NewgroundsAPI.debug) { v7 += '&debug=1'; } if (open_in_browser) { getURL(v7, '_blank'); } else { var v10 = new XML(); v10.ignoreWhite = true; v10.onLoad = function (success) { var v6 = new Object(); var v3 = 0; while (v3 < this.firstChild.childNodes.length) { var v4 = this.firstChild.childNodes[v3]; var v5 = v4.nodeName; var v2 = v4.attributes.value; if (v2 == Number(v2)) { v2 = Number(v2); } v6[v5] = v2; ++v3; } NewgroundsAPI.ReadGatewayData(v6); }; v10.load(v7); } } }; v1.SendError = function (msg) { trace('[NEWGROUNDS API ERROR] :: ' + msg); }; v1.SendMessage = function (msg) { trace('[NEWGROUNDS API] :: ' + msg); }; v1.InitTextFormats = function () { if (!NewgroundsAPI.error_format) { NewgroundsAPI.error_format = new TextFormat(); NewgroundsAPI.error_format.font = 'Arial Black'; NewgroundsAPI.error_format.size = 48; NewgroundsAPI.error_format.color = 16711680; } if (!NewgroundsAPI.header_format) { NewgroundsAPI.header_format = new TextFormat(); NewgroundsAPI.header_format.font = 'Arial Black'; NewgroundsAPI.header_format.size = 24; NewgroundsAPI.header_format.color = 16777215; } if (!NewgroundsAPI.normal_format) { NewgroundsAPI.normal_format = new TextFormat(); NewgroundsAPI.normal_format.font = 'Arial'; NewgroundsAPI.normal_format.bold = true; NewgroundsAPI.normal_format.size = 12; NewgroundsAPI.normal_format.color = 16777215; } if (!NewgroundsAPI.link_format) { NewgroundsAPI.link_format = new TextFormat(); NewgroundsAPI.link_format.color = 16776960; NewgroundsAPI.link_format.underline = true; } }; v1.onNewVersionAvailable = function (version, movie_url, redirect_url) { NewgroundsAPI.InitTextFormats(); var v2 = new Object(); v2.x = Stage.width / 2; v2.y = Stage.height / 2; _root.createEmptyMovieClip('NGAPI_new_version_overlay', _root.getNextHighestDepth()); _root.NGAPI_new_version_overlay.lineStyle(1, 0, 100); _root.NGAPI_new_version_overlay.beginFill(0, 70); _root.NGAPI_new_version_overlay.moveTo(-10, -10); _root.NGAPI_new_version_overlay.lineTo(-10, 1000); _root.NGAPI_new_version_overlay.lineTo(1000, 1000); _root.NGAPI_new_version_overlay.lineTo(1000, -10); _root.NGAPI_new_version_overlay.lineTo(-10, -10); _root.NGAPI_new_version_overlay.endFill(); _root.NGAPI_new_version_overlay.lineStyle(10, 0, 100); _root.NGAPI_new_version_overlay.beginFill(51); _root.NGAPI_new_version_overlay.moveTo(v2.x - 240, v2.y - 120); _root.NGAPI_new_version_overlay.lineTo(v2.x + 240, v2.y - 120); _root.NGAPI_new_version_overlay.lineTo(v2.x + 240, v2.y + 80); _root.NGAPI_new_version_overlay.lineTo(v2.x - 240, v2.y + 80); _root.NGAPI_new_version_overlay.lineTo(v2.x - 240, v2.y - 120); _root.NGAPI_new_version_overlay.endFill(); _root.NGAPI_new_version_overlay.createEmptyMovieClip('exit', 1000); _root.NGAPI_new_version_overlay.exit.lineStyle(2, 39423, 100); _root.NGAPI_new_version_overlay.exit.beginFill(0, 50); _root.NGAPI_new_version_overlay.exit.moveTo(v2.x + 210, v2.y - 110); _root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 230, v2.y - 110); _root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 230, v2.y - 90); _root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 210, v2.y - 90); _root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 210, v2.y - 110); _root.NGAPI_new_version_overlay.exit.endFill(); _root.NGAPI_new_version_overlay.exit.moveTo(v2.x + 214, v2.y - 106); _root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 226, v2.y - 94); _root.NGAPI_new_version_overlay.exit.moveTo(v2.x + 226, v2.y - 106); _root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 214, v2.y - 94); _root.NGAPI_new_version_overlay.exit.onMouseUp = function () { if (_root.NGAPI_new_version_overlay.exit.hitTest(_root._xmouse, _root._ymouse)) { _root.NGAPI_new_version_overlay.removeMovieClip(); } }; var v3 = 'Version ' + version + ' is now available at:' + '\n'; var v5 = v3.length; v3 += movie_url; var v4 = v3.length; _root.NGAPI_new_version_overlay.createTextField('mouseblocker', 99, -10, -10, 1000, 1000); _root.NGAPI_new_version_overlay.createTextField('newversion', 100, v2.x - 210, v2.y - 90, 400, 80); _root.NGAPI_new_version_overlay.newversion.text = 'New Version Available!'; _root.NGAPI_new_version_overlay.newversion.setTextFormat(NewgroundsAPI.header_format); _root.NGAPI_new_version_overlay.createTextField('message', 101, (Stage.width - 400) / 2, Stage.height / 2, 400, 40); _root.NGAPI_new_version_overlay.message.text = v3; _root.NGAPI_new_version_overlay.message.multiline = true; _root.NGAPI_new_version_overlay.message.wordWrap = true; _root.NGAPI_new_version_overlay.message.html = true; _root.NGAPI_new_version_overlay.message.setTextFormat(NewgroundsAPI.normal_format); NewgroundsAPI.link_format.url = redirect_url; _root.NGAPI_new_version_overlay.message.setTextFormat(v5, v4, NewgroundsAPI.link_format); }; v1.onDenyHost = function (hostname, movie_url, redirect_url) { NewgroundsAPI.InitTextFormats(); _root.createEmptyMovieClip('NGAPI_deny_host_overlay', _root.getNextHighestDepth()); _root.NGAPI_deny_host_overlay.lineStyle(20, 0, 100); _root.NGAPI_deny_host_overlay.beginFill(6684672); _root.NGAPI_deny_host_overlay.moveTo(0, 0); _root.NGAPI_deny_host_overlay.lineTo(Stage.width, 0); _root.NGAPI_deny_host_overlay.lineTo(Stage.width, Stage.height); _root.NGAPI_deny_host_overlay.lineTo(0, Stage.height); _root.NGAPI_deny_host_overlay.lineTo(0, 0); _root.NGAPI_deny_host_overlay.endFill(); var v2 = 'This movie has not been approved for use on ' + hostname + '.'; v2 += '\r\rFor an aproved copy, please visit:\r'; var v4 = v2.length; v2 += movie_url; var v3 = v2.length; _root.NGAPI_deny_host_overlay.createTextField('mousekill', 100, 0, 0, Stage.width, Stage.height); _root.NGAPI_deny_host_overlay.createTextField('error', 101, (Stage.width - 400) / 2, Stage.height / 2 - 100, 400, 200); _root.NGAPI_deny_host_overlay.error.text = 'ERROR!'; _root.NGAPI_deny_host_overlay.error.setTextFormat(NewgroundsAPI.error_format); _root.NGAPI_deny_host_overlay.createTextField('message', 102, (Stage.width - 400) / 2, Stage.height / 2, 400, 200); _root.NGAPI_deny_host_overlay.message.text = v2; _root.NGAPI_deny_host_overlay.message.multiline = true; _root.NGAPI_deny_host_overlay.message.wordWrap = true; _root.NGAPI_deny_host_overlay.message.html = true; _root.NGAPI_deny_host_overlay.message.setTextFormat(NewgroundsAPI.normal_format); NewgroundsAPI.link_format.url = redirect_url; _root.NGAPI_deny_host_overlay.message.setTextFormat(v4, v3, NewgroundsAPI.link_format); }; v1.isInstalled = function () { return true; }; v1.onAdsApproved = function (ad_url) {}; v1.movie_options = new Object(); v1.custom_events = new Object(); v1.custom_links = new Object(); v1.MOVIE_VIEWS = 1; v1.AUTHOR_SITE = 2; v1.NEWGROUNDS = 3; v1.NEW_VERSION = 4; v1.CUSTOM_STATS = 50; v1.GATEWAY_URL = 'http://www.ngads.com/gateway.php'; ASSetPropFlags(_global.NewgroundsAPI.prototype, null, 1); } #endinitclip } movieClip 2112 __Packages.com.Newgrounds.BaseN { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.Newgrounds) { _global.com.Newgrounds = new Object(); } if (!_global.com.Newgrounds.BaseN) { var v1 = function (hash) { this.ceiling = 100000000000000.0; if (hash) { this.hashIndex = hash; } else { this.hashIndex = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`~@#$%^&*()+|;/'; } this.bitSize = this.hashIndex.length; this.hashVal = new Object(); this.i = 0; while (this.i < this.bitSize) { this.hashVal[this.hashIndex.charAt(this.i)] = this.i; ++this.i; } }; com.Newgrounds.BaseN = v1; var v2 = v1.prototype; v2.verify = function (s) { if (this.hashVal[s] != undefined) { return true; } else { return false; } }; v2.encode = function (n, minchars) { this.debug.lastencode = ''; if (typeof this.i != 'string') { n = n.toString(); } if (n.charAt(0) == '-') { var v3 = '-'; n = n.substring(1); } else { var v3 = ''; } if ((String(n)).indexOf('.') > -1) { var v4 = (String(n)).split('.', 2); return v3 + this.baseNEncoder(v4[0], minchars) + '.' + this.baseNEncoder(v4[1]); } else { this.debug.lastencode += '\tNo decimal\r'; return v3 + this.baseNEncoder(n, minchars); } }; v2.decode = function (s) { var v4 = 1; if (s.charAt(0) == '-') { v4 = -1; s = s.substring(1, s.length); } var v3 = s.indexOf('.'); if (v3 > -1) { var v5 = Math.pow(10, this.baseNDecoder(s.substring(v3 + 1, s.length))); return (this.baseNDecoder(s.substring(0, v3)) / v5) * v4; } else { return this.baseNDecoder(s) * v4; } }; v2.baseNEncoder = function (n, minchars) { if (!minchars) { minchars = 1; } var v4 = ''; while (n != 0) { n = Math.round(n); var v3 = n % this.bitSize; if (Math.round(v3) != v3) { trace('BaseN failed on ' + n + '%' + this.bitSize + ' = ' + v3 + ' ' + int(n) + ' ' + int(this.bitSize)); } v4 = this.hashIndex.charAt(v3) + v4; this.debug.lastencode += '\t-> n:' + n + ' % bitSize:' + this.bitSize + ' = ' + v3 + ', final char=' + v4 + '\n'; n -= v3; n /= this.bitSize; } if (minchars) { while (v4.length < minchars) { v4 = this.hashIndex.charAt(0) + v4; } } return v4; }; v2.baseNDecoder = function (s) { var v2 = 0; var v6 = 0; this.i = 0; while (this.i < s.length) { var v3 = s.charAt(s.length - this.i - 1); if (v3 == this.hashIndex.charAt(0)) { var v5 = 0; } else { var v5 = this.hashVal[v3] * Math.pow(this.bitSize, this.i); } v2 += v5; if (v2 >= this.ceiling) { v6 += (v2 - v2 % this.ceiling) / this.ceiling; v2 %= this.ceiling; } ++this.i; } if (v6 > 0) { v2 = '' + v2; while (v2.length < (this.ceiling.toString()).length - 1) { v2 = '0' + v2; } v2 = '' + v6 + v2; } return v2; }; v2.debug = new Object(); ASSetPropFlags(com.Newgrounds.BaseN.prototype, null, 1); } #endinitclip } movieClip 2113 __Packages.com.Newgrounds.NewgroundsAPIError { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.Newgrounds) { _global.com.Newgrounds = new Object(); } if (!_global.com.Newgrounds.NewgroundsAPIError) { var v1 = function (error, msg) { if ((Number(error)).toString() == String(error)) { error = Number(error); } else { if (com.Newgrounds.NewgroundsAPIError.error_codes[String(error)]) { error = com.Newgrounds.NewgroundsAPIError.error_codes[String(error)]; } else { error = 0; } } this.code = error; this.message = msg; this.name = com.Newgrounds.NewgroundsAPIError.error_names[error]; this.alias = com.Newgrounds.NewgroundsAPIError.aliases[error]; }; com.Newgrounds.NewgroundsAPIError = v1; var v2 = v1.prototype; v1.init_codes = function () { var v2 = new Object(); var v1 = 0; while (v1 < com.Newgrounds.NewgroundsAPIError.aliases.length) { v2[com.Newgrounds.NewgroundsAPIError.aliases[v1]] = v1; ++v1; } return v2; }; v1.init_names = function () { var v5 = new Array(); var v3 = 0; while (v3 < com.Newgrounds.NewgroundsAPIError.aliases.length) { var v2 = (com.Newgrounds.NewgroundsAPIError.aliases[v3].toLowerCase()).split('_'); var v1 = 0; while (v1 < v2.length) { v2[v1] = (v2[v1].substr(0, 1)).toUpperCase() + v2[v1].substr(1, v2[v1].length); for (var v4 in com.Newgrounds.NewgroundsAPIError.always_caps) { if (v2[v1].toUpperCase() == com.Newgrounds.NewgroundsAPIError.always_caps[v4]) { v2[v1] = v2[v1].toUpperCase(); } } ++v1; } v5[v3] = v2.join(' '); ++v3; } return v5; }; v2.isError = function () { return true; }; v1.aliases = new Array('UNKNOWN_ERROR', 'INVALID_API_ID', 'MISSING_PARAM', 'INVALID_STAT_ID', 'INVALID_COMMAND_ID', 'FLASH_ADS_NOT_APPROVED', 'PERMISSION_DENIED', 'IDENTIFICATION_REQUIRED', 'INVALID_EMAIL_ADDRESS', 'BANNED_USER', 'SESSION_EXPIRED', 'INVALID_SCORE', 'INVALID_MEDAL', 'INVALID_FOLDER', 'FILE_NOT_FOUND', 'SITE_ID_REQUIRED', 'UPLOAD_IN_PROGRESS', 'USER_CANCELLED', 'CONFIRM_REQUEST', 'CONNECTION_FAILED'); v1.always_caps = new Array('API', 'URL', 'ID'); v1.error_codes = com.Newgrounds.NewgroundsAPIError.init_codes(); v1.error_names = com.Newgrounds.NewgroundsAPIError.init_names(); v2.code = 0; ASSetPropFlags(com.Newgrounds.NewgroundsAPIError.prototype, null, 1); } #endinitclip } movieClip 2114 __Packages.com.Newgrounds.NewgroundsAPI { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.Newgrounds) { _global.com.Newgrounds = new Object(); } if (!_global.com.Newgrounds.NewgroundsAPI) { var v1 = function () {}; com.Newgrounds.NewgroundsAPI = v1; var v2 = v1.prototype; v1.setMovieVersion = function (v) { if (v) { com.Newgrounds.NewgroundsAPI.version = String(v); } }; v1.setUserEmail = function (e) { com.Newgrounds.NewgroundsAPI.user_email = e; }; v1.getOfficialVersionURL = function () { var v1 = com.Newgrounds.NewgroundsAPI.GATEWAY_URL + '?tracker_id=' + com.Newgrounds.NewgroundsAPI.movie_id + '&command_id=' + com.Newgrounds.NewgroundsAPI.getCommandID('loadOfficalVersion') + '&seed=' + Math.random(); if (com.Newgrounds.NewgroundsAPI.debug) { v1 += '&debug=1'; } return v1; }; v1.hasUserSession = function () { if (com.Newgrounds.NewgroundsAPI.session_id && com.Newgrounds.NewgroundsAPI.publisher_id) { return true; return false; } if (_root.NewgroundsAPI_PublisherID && _root.NewgroundsAPI_SessionID) { return true; } return false; }; v1.isNewgrounds = function () { return com.Newgrounds.NewgroundsAPI.publisher_id == 1 || _root.NewgroundsAPI_PublisherID == 1 || ((com.Newgrounds.NewgroundsAPI.getHost()).toLowerCase()).indexOf('ungrounded.net') > -1; }; v1.hasPublisher = function () { return com.Newgrounds.NewgroundsAPI.publisher_id || _root.NewgroundsAPI_PublisherID; }; v1.hasUserEmail = function () { if (com.Newgrounds.NewgroundsAPI.user_email) { return true; } return false; }; v1.connectionTimeOut = function () { clearInterval(com.Newgrounds.NewgroundsAPI.timeout); com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.MOVIE_CONNECTED, false, new com.Newgrounds.NewgroundsAPIError('CONNECTION_FAILED', 'Connection to NewgroundsAPI gateway timed out.')); }; v1.connectMovie = function (m_id, encrypt_key, debug_mode) { if (com.Newgrounds.NewgroundsAPI.connected) { return undefined; } var v2 = function () { com.Newgrounds.NewgroundsAPI.connectionTimeOut(); }; com.Newgrounds.NewgroundsAPI.timeout = setInterval(v2, 8000, null); if (!m_id) { com.Newgrounds.NewgroundsAPI.fatalError('NewgroundsAPI.connectMovie() - missing required movie_id parameter', 'connectMovie'); } com.Newgrounds.NewgroundsAPI.movie_id = String(m_id); com.Newgrounds.NewgroundsAPI.tracker_id = Number(com.Newgrounds.NewgroundsAPI.movie_id.substring(0, com.Newgrounds.NewgroundsAPI.movie_id.indexOf(':'))); com.Newgrounds.NewgroundsAPI.encryption_key = encrypt_key; com.Newgrounds.NewgroundsAPI.debug = debug_mode; if (_root.NewgroundsAPI_PublisherID) { com.Newgrounds.NewgroundsAPI.publisher_id = _root.NewgroundsAPI_PublisherID; if (_root.NewgroundsAPI_SessionID) { com.Newgrounds.NewgroundsAPI.session_id = _root.NewgroundsAPI_SessionID; } } else { com.Newgrounds.NewgroundsAPI.publisher_id = 1; com.Newgrounds.NewgroundsAPI.session_id = null; com.Newgrounds.NewgroundsAPI.user_id = 0; com.Newgrounds.NewgroundsAPI.user_name = 'Guest'; } if (_root.NewgroundsAPI_UserName) { com.Newgrounds.NewgroundsAPI.user_name = _root.NewgroundsAPI_UserName; } if (_root.NewgroundsAPI_UserID) { com.Newgrounds.NewgroundsAPI.user_id = _root.NewgroundsAPI_UserID; } com.Newgrounds.NewgroundsAPI.connected = true; com.Newgrounds.NewgroundsAPI.sendCommand('connectMovie', {'host': com.Newgrounds.NewgroundsAPI.getHost(), 'movie_version': com.Newgrounds.NewgroundsAPI.version}); }; v1.getHost = function () { if (!com.Newgrounds.NewgroundsAPI.host) { var v1 = _url; if (v1.indexOf('http://') > -1 or v1.indexOf('https://') > -1) { com.Newgrounds.NewgroundsAPI.host = (v1.split('/'))[2].toLowerCase(); return com.Newgrounds.NewgroundsAPI.host; } com.Newgrounds.NewgroundsAPI.host = 'localhost'; } return com.Newgrounds.NewgroundsAPI.host; }; v1.loadNewgrounds = function () { com.Newgrounds.NewgroundsAPI.sendCommand('loadNewgrounds', {'host': com.Newgrounds.NewgroundsAPI.getHost()}, true); }; v1.loadMySite = function () { com.Newgrounds.NewgroundsAPI.sendCommand('loadMySite', {'host': com.Newgrounds.NewgroundsAPI.getHost()}); }; v1.loadCustomLink = function (link) { com.Newgrounds.NewgroundsAPI.sendCommand('loadCustomLink', {'host': com.Newgrounds.NewgroundsAPI.getHost(), 'link': link}, true); }; v1.logCustomEvent = function (event) { com.Newgrounds.NewgroundsAPI.sendCommand('logCustomEvent', {'host': com.Newgrounds.NewgroundsAPI.getHost(), 'event': event}); }; v1.postScore = function (score, value, get_best) { if (!score or value == undefined) { com.Newgrounds.NewgroundsAPI.sendError({'command_id': com.Newgrounds.NewgroundsAPI.getCommandID('postScore')}, new com.Newgrounds.NewgroundsAPIError('MISSING_PARAM', 'missing required parameter(s)')); return undefined; } com.Newgrounds.NewgroundsAPI.sendSecureCommand('postScore', {'score': score, 'value': value, 'get_best': get_best}); }; v1.getTodaysScores = function (score, params) { com.Newgrounds.NewgroundsAPI.getScores(score, 't', params, 'getTodaysScores'); }; v1.getYesterdaysScores = function (score, params) { com.Newgrounds.NewgroundsAPI.getScores(score, 'y', params, 'getYesterdaysScores'); }; v1.getThisWeeksScores = function (score, params) { com.Newgrounds.NewgroundsAPI.getScores(score, 'w', params, 'getThisWeeksScores'); }; v1.getThisMonthsScores = function (score, params) { com.Newgrounds.NewgroundsAPI.getScores(score, 'm', params, 'getThisMonthsScores'); }; v1.getThisYearsScores = function (score, params) { com.Newgrounds.NewgroundsAPI.getScores(score, 'y', params, 'getThisYearsScores'); }; v1.getAlltimeScores = function (score, params) { com.Newgrounds.NewgroundsAPI.getScores(score, 'a', params, 'getAlltimeScores'); }; v1.getScores = function (score, period, params, command_name) { if (!score) { com.Newgrounds.NewgroundsAPI.sendError({'command_id': com.Newgrounds.NewgroundsAPI.getCommandID(command_name)}, new com.Newgrounds.NewgroundsAPIError('MISSING_PARAM', 'missing required score name')); return undefined; } if (!params) { params = new Object(); } if (!com.Newgrounds.NewgroundsAPI.hasUserSession()) { com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.SCORES_LOADED, false, new com.Newgrounds.NewgroundsAPIError('SITE_ID_REQUIRED', 'Host \'' + com.Newgrounds.NewgroundsAPI.getHost() + '\' does not have high scores enabled')); return undefined; } params.publisher_id = com.Newgrounds.NewgroundsAPI.publisher_id; params.period = period; params.score = score; if (params.user_id) { var v3 = period; } else { var v3 = period + '-u'; } if (com.Newgrounds.NewgroundsAPI.score_page_counts[v3] == undefined) { params.request_page_count = true; } com.Newgrounds.NewgroundsAPI.sendCommand('getScores', params); }; v1.unlockMedal = function (medal, get_score) { if (!medal) { com.Newgrounds.NewgroundsAPI.sendError({'command_id': com.Newgrounds.NewgroundsAPI.getCommandID('unlockMedal')}, new com.Newgrounds.NewgroundsAPIError('MISSING_PARAM', 'missing required medal name')); return undefined; } var v1 = new Object(); v1.medal = medal; if (get_score) { v1.get_score = get_score; } com.Newgrounds.NewgroundsAPI.sendSecureCommand('unlockMedal', v1); }; v1.loadMedals = function () { if (com.Newgrounds.NewgroundsAPI.medals) { com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.MEDALS_LOADED, true, {'medals': com.Newgrounds.NewgroundsAPI.medals}); return undefined; } var v1 = new Object(); if (com.Newgrounds.NewgroundsAPI.hasUserSession()) { v1.publisher_id = com.Newgrounds.NewgroundsAPI.publisher_id; v1.user_id = com.Newgrounds.NewgroundsAPI.user_id; } com.Newgrounds.NewgroundsAPI.sendCommand('getMedals', v1); }; v1.getMedals = function () { return com.Newgrounds.NewgroundsAPI.medals; }; v1.saveLocal = function (save_id, save_data, size_allocation) { if (!com.Newgrounds.NewgroundsAPI.sharedObjects[save_id]) { com.Newgrounds.NewgroundsAPI.sharedObjects[save_id] = SharedObject.getLocal('ng_ap_secure_' + com.Newgrounds.NewgroundsAPI.movie_id + '_' + save_id); } com.Newgrounds.NewgroundsAPI.sharedObjects[save_id].data[save_id] = com.Newgrounds.NewgroundsAPI.encodeData(save_data); com.Newgrounds.NewgroundsAPI.sharedObjects[save_id].flush(); }; v1.loadLocal = function (save_id) { if (!com.Newgrounds.NewgroundsAPI.sharedObjects[save_id]) { com.Newgrounds.NewgroundsAPI.sharedObjects[save_id] = SharedObject.getLocal('ng_ap_secure_' + com.Newgrounds.NewgroundsAPI.movie_id + '_' + save_id); } com.Newgrounds.NewgroundsAPI.sharedObjects[save_id].flush(); if (com.Newgrounds.NewgroundsAPI.sharedObjects[save_id].data[save_id]) { return com.Newgrounds.NewgroundsAPI.decodeData(com.Newgrounds.NewgroundsAPI.sharedObjects[save_id].data[save_id]); } else { return null; } }; v1.encodeData = function (data) { return com.Newgrounds.NewgroundsAPI.compressHex(com.Newgrounds.RC4.encrypt(com.Newgrounds.JSON.encode(data), com.Newgrounds.NewgroundsAPI.encryption_key)); }; v1.decodeData = function (base) { return com.Newgrounds.JSON.decode(com.Newgrounds.RC4.decrypt(com.Newgrounds.NewgroundsAPI.uncompressHex(base), com.Newgrounds.NewgroundsAPI.encryption_key)); }; v1.compressHex = function (hex_value) { var v5 = hex_value.length % 6; var v4 = ''; var v1 = 0; while (v1 < hex_value.length) { var v2 = Number('0x' + hex_value.substr(v1, 6)); v4 += com.Newgrounds.NewgroundsAPI.compressor.encode(v2, 4); v1 += 6; } return v5 + v4; }; v1.uncompressHex = function (base_value) { var v8 = Number(base_value.charAt(0)); var v7 = ''; var v3; var v2 = 1; while (v2 < base_value.length) { var v6 = base_value.substr(v2, 4); var v5 = com.Newgrounds.NewgroundsAPI.compressor.decode(v6); var v1 = com.Newgrounds.NewgroundsAPI.dec2hex(v5); if (v2 + 4 < base_value.length) { v3 = 6; } else { v3 = v8; } while (v1.length < v3) { v1 = '0' + v1; } v7 += v1; v2 += 4; } return v7; }; v1.dec2hex = function (dec) { var v4 = '0123456789ABCDEF'; var v3 = ''; while (dec > 0) { var v2 = dec % 16; v3 = v4.charAt(v2) + v3; dec = (dec - v2) / 16; } return v3; }; v1.saveFile = function (folder, filename, contents, thumbnail_source) { if (!com.Newgrounds.NewgroundsAPI.save_file) { com.Newgrounds.NewgroundsAPI.save_file = new com.Newgrounds.NewgroundsAPISaveFile(com.Newgrounds.NewgroundsAPI.movie_id, folder, filename); com.Newgrounds.NewgroundsAPI.save_file.setContents(contents); if (thumbnail_source) { com.Newgrounds.NewgroundsAPI.save_file.setThumbnail(thumbnail_source); } com.Newgrounds.NewgroundsAPI.save_file.onError = function (msg) { var v1 = new com.Newgrounds.NewgroundsAPIError('PERMISSION_DENIED', msg); com.Newgrounds.NewgroundsAPI.sendError({'command_id': com.Newgrounds.NewgroundsAPI.getCommandID('saveFile')}, v1); com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.FILE_SAVED, false, v1); }; com.Newgrounds.NewgroundsAPI.save_file.onCancel = function (msg) { var v1 = new com.Newgrounds.NewgroundsAPIError('USER_CANCELLED', msg); com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.FILE_SAVED, false, v1); }; com.Newgrounds.NewgroundsAPI.save_file.submit(); } else { var v1 = new com.Newgrounds.NewgroundsAPIError('UPLOAD_IN_PROGRESS', 'Please wait for the previous file to finish uploading'); com.Newgrounds.NewgroundsAPI.sendError({'command_id': com.Newgrounds.NewgroundsAPI.getCommandID('saveFile')}, v1); com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.FILE_SAVED, false, v1); } }; v1.checkFilePrivs = function (folder, filename) { if (com.Newgrounds.NewgroundsAPI.user_id) { var v1 = com.Newgrounds.NewgroundsAPI.user_id; } else { var v1 = 0; } var v2 = {'folder': folder, 'filename': filename, 'user_id': v1, 'publisher_id': com.Newgrounds.NewgroundsAPI.publisher_id}; com.Newgrounds.NewgroundsAPI.sendCommand('checkFilePrivs', v2); }; v1.finishFileSave = function (folder, filename, description, share, file, thumbnail) { var v2; v2 = {'folder': folder, 'filename': filename, 'description': description, 'share': share}; var v1; v1 = {'file': file, 'thumbnail': thumbnail}; com.Newgrounds.NewgroundsAPI.sendSecureCommand('saveFile', v2, null, v1); }; v1.getFiles = function (folder, options) { var v7 = {'name': 1, 'date': 2, 'score': 3}; var v2 = {'user_only': false, 'sort_on': 'date', 'page': 1, 'results_per_page': 20, 'sort_descending': true}; var v6 = new Array(); for (var v10 in v7) { v6.push('\'' + v10 + '\''); } var v4 = new Array(); for (var v9 in v2) { v4.push('\'' + v9 + '\''); } if (options.sort_descending && !v7[options.sort_descending]) { var v3 = new com.Newgrounds.NewgroundsAPIError('MISSING_PARAM', '\'' + options.sort_descending + '\' is not a valid sort_on value. Valid values are: ' + v6.join(', ')); com.Newgrounds.NewgroundsAPI.sendError({'command_id': com.Newgrounds.NewgroundsAPI.getCommandID('getFiles')}, v3); delete options.sort_descending; } var v8; if (options) { for (v10 in options) { if (v2[v10] == undefined) { v3 = new com.Newgrounds.NewgroundsAPIError('MISSING_PARAM', '\'' + v10 + '\' is not a valid option. Valid options are: ' + v4.join(', ')); com.Newgrounds.NewgroundsAPI.sendError({'command_id': com.Newgrounds.NewgroundsAPI.getCommandID('getFiles')}, v3); delete options[v10]; } else { if (typeof options[v10] != typeof v2[v10]) { v3 = new com.Newgrounds.NewgroundsAPIError('MISSING_PARAM', 'option \'' + v10 + '\' should be the following type: ' + typeof v2[v10]); com.Newgrounds.NewgroundsAPI.sendError({'command_id': com.Newgrounds.NewgroundsAPI.getCommandID('getFiles')}, v3); delete options[v10]; } } } v8 = options; } else { v8 = new Object(); } if (com.Newgrounds.NewgroundsAPI.hasUserSession()) { v8.publisher_id = com.Newgrounds.NewgroundsAPI.publisher_id; v8.user_id = com.Newgrounds.NewgroundsAPI.user_id; } v8.folder = folder; com.Newgrounds.NewgroundsAPI.sendCommand('getFiles', v8); }; v1.getConfirmation = function (command_name, event, msg, target, confirm, cancel) { var v1 = new com.Newgrounds.NewgroundsAPIError('CONFIRM_REQUEST', msg); v1.confirm = function () { target[confirm](); }; v1.cancel = function () { target[cancel](); }; v1.command = com.Newgrounds.NewgroundsAPI.getCommandID(command_name); com.Newgrounds.NewgroundsAPI.callListener(event, false, v1); }; v1.doBlockHost = function (event) { _root.stop(); com.Newgrounds.NewgroundsAPI.initTextFormats(); _root.createEmptyMovieClip('NGAPI_deny_host_overlay', _root.getNextHighestDepth()); _root.NGAPI_deny_host_overlay.lineStyle(20, 0, 100); _root.NGAPI_deny_host_overlay.beginFill(6684672); _root.NGAPI_deny_host_overlay.moveTo(0, 0); _root.NGAPI_deny_host_overlay.lineTo(Stage.width, 0); _root.NGAPI_deny_host_overlay.lineTo(Stage.width, Stage.height); _root.NGAPI_deny_host_overlay.lineTo(0, Stage.height); _root.NGAPI_deny_host_overlay.lineTo(0, 0); _root.NGAPI_deny_host_overlay.endFill(); var v2 = 'This movie has not been approved for use on ' + com.Newgrounds.NewgroundsAPI.getHost() + '.'; v2 += '\r\rFor an aproved copy, please visit:\r'; var v4 = v2.length; v2 += event.data.movie_url; var v3 = v2.length; _root.NGAPI_deny_host_overlay.createTextField('mousekill', 100, 0, 0, Stage.width, Stage.height); _root.NGAPI_deny_host_overlay.createTextField('error', 101, (Stage.width - 400) / 2, Stage.height / 2 - 100, 400, 200); _root.NGAPI_deny_host_overlay.error.text = 'ERROR!'; _root.NGAPI_deny_host_overlay.error.setTextFormat(com.Newgrounds.NewgroundsAPI.error_format); _root.NGAPI_deny_host_overlay.createTextField('message', 102, (Stage.width - 400) / 2, Stage.height / 2, 400, 200); _root.NGAPI_deny_host_overlay.message.text = v2; _root.NGAPI_deny_host_overlay.message.multiline = true; _root.NGAPI_deny_host_overlay.message.wordWrap = true; _root.NGAPI_deny_host_overlay.message.html = true; _root.NGAPI_deny_host_overlay.message.setTextFormat(com.Newgrounds.NewgroundsAPI.normal_format); com.Newgrounds.NewgroundsAPI.link_format.url = event.data.redirect_url; _root.NGAPI_deny_host_overlay.message.setTextFormat(v4, v3, com.Newgrounds.NewgroundsAPI.link_format); }; v1.onNewVersionAvailable = function (event) { _root.stop(); com.Newgrounds.NewgroundsAPI.initTextFormats(); var v2 = new Object(); v2.x = Stage.width / 2; v2.y = Stage.height / 2; _root.createEmptyMovieClip('NGAPI_new_version_overlay', _root.getNextHighestDepth()); _root.NGAPI_new_version_overlay.lineStyle(1, 0, 100); _root.NGAPI_new_version_overlay.beginFill(0, 70); _root.NGAPI_new_version_overlay.moveTo(-10, -10); _root.NGAPI_new_version_overlay.lineTo(-10, 1000); _root.NGAPI_new_version_overlay.lineTo(1000, 1000); _root.NGAPI_new_version_overlay.lineTo(1000, -10); _root.NGAPI_new_version_overlay.lineTo(-10, -10); _root.NGAPI_new_version_overlay.endFill(); _root.NGAPI_new_version_overlay.lineStyle(10, 0, 100); _root.NGAPI_new_version_overlay.beginFill(51); _root.NGAPI_new_version_overlay.moveTo(v2.x - 240, v2.y - 120); _root.NGAPI_new_version_overlay.lineTo(v2.x + 240, v2.y - 120); _root.NGAPI_new_version_overlay.lineTo(v2.x + 240, v2.y + 80); _root.NGAPI_new_version_overlay.lineTo(v2.x - 240, v2.y + 80); _root.NGAPI_new_version_overlay.lineTo(v2.x - 240, v2.y - 120); _root.NGAPI_new_version_overlay.endFill(); _root.NGAPI_new_version_overlay.createEmptyMovieClip('exit', 1000); _root.NGAPI_new_version_overlay.exit.lineStyle(2, 39423, 100); _root.NGAPI_new_version_overlay.exit.beginFill(0, 50); _root.NGAPI_new_version_overlay.exit.moveTo(v2.x + 210, v2.y - 110); _root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 230, v2.y - 110); _root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 230, v2.y - 90); _root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 210, v2.y - 90); _root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 210, v2.y - 110); _root.NGAPI_new_version_overlay.exit.endFill(); _root.NGAPI_new_version_overlay.exit.moveTo(v2.x + 214, v2.y - 106); _root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 226, v2.y - 94); _root.NGAPI_new_version_overlay.exit.moveTo(v2.x + 226, v2.y - 106); _root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 214, v2.y - 94); _root.NGAPI_new_version_overlay.exit.onMouseUp = function () { if (_root.NGAPI_new_version_overlay.exit.hitTest(_root._xmouse, _root._ymouse)) { _root.NGAPI_new_version_overlay.removeMovieClip(); } }; var v3 = 'Version ' + event.data.movie_version + ' is now available at:' + '\n'; var v6 = v3.length; v3 += event.data.movie_url; var v4 = v3.length; _root.NGAPI_new_version_overlay.createTextField('mouseblocker', 99, -10, -10, 1000, 1000); _root.NGAPI_new_version_overlay.createTextField('newversion', 100, v2.x - 210, v2.y - 90, 400, 80); _root.NGAPI_new_version_overlay.newversion.text = 'New Version Available!'; _root.NGAPI_new_version_overlay.newversion.setTextFormat(com.Newgrounds.NewgroundsAPI.header_format); _root.NGAPI_new_version_overlay.createTextField('message', 101, (Stage.width - 400) / 2, Stage.height / 2, 400, 40); _root.NGAPI_new_version_overlay.message.text = v3; _root.NGAPI_new_version_overlay.message.multiline = true; _root.NGAPI_new_version_overlay.message.wordWrap = true; _root.NGAPI_new_version_overlay.message.html = true; _root.NGAPI_new_version_overlay.message.setTextFormat(com.Newgrounds.NewgroundsAPI.normal_format); com.Newgrounds.NewgroundsAPI.link_format.url = event.data.redirect_url; _root.NGAPI_new_version_overlay.message.setTextFormat(v6, v4, com.Newgrounds.NewgroundsAPI.link_format); }; v1.initTextFormats = function () { if (!com.Newgrounds.NewgroundsAPI.error_format) { com.Newgrounds.NewgroundsAPI.error_format = new TextFormat(); com.Newgrounds.NewgroundsAPI.error_format.font = 'Arial Black'; com.Newgrounds.NewgroundsAPI.error_format.size = 48; com.Newgrounds.NewgroundsAPI.error_format.color = 16711680; } if (!com.Newgrounds.NewgroundsAPI.header_format) { com.Newgrounds.NewgroundsAPI.header_format = new TextFormat(); com.Newgrounds.NewgroundsAPI.header_format.font = 'Arial Black'; com.Newgrounds.NewgroundsAPI.header_format.size = 24; com.Newgrounds.NewgroundsAPI.header_format.color = 16777215; } if (!com.Newgrounds.NewgroundsAPI.normal_format) { com.Newgrounds.NewgroundsAPI.normal_format = new TextFormat(); com.Newgrounds.NewgroundsAPI.normal_format.font = 'Arial'; com.Newgrounds.NewgroundsAPI.normal_format.bold = true; com.Newgrounds.NewgroundsAPI.normal_format.size = 12; com.Newgrounds.NewgroundsAPI.normal_format.color = 16777215; } if (!com.Newgrounds.NewgroundsAPI.link_format) { com.Newgrounds.NewgroundsAPI.link_format = new TextFormat(); com.Newgrounds.NewgroundsAPI.link_format.color = 16776960; com.Newgrounds.NewgroundsAPI.link_format.underline = true; } }; v1.doEvent = function (e) { switch (com.Newgrounds.NewgroundsAPI.getCommandName(e.command_id)) { case 'connectMovie': clearInterval(com.Newgrounds.NewgroundsAPI.timeout); com.Newgrounds.NewgroundsAPI.sendMessage('You have successfully connected to the Newgrounds API Gateway'); com.Newgrounds.NewgroundsAPI.sendMessage('Movie identified as "' + e.movie_name + '"'); com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.MOVIE_CONNECTED, e.success, {'movie_name': e.movie_name}); var v4 = false; if (e.ad_status === -1) { var v6 = 'This movie was not approved to run Flash Ads.'; com.Newgrounds.NewgroundsAPI.sendWarning(v6); com.Newgrounds.NewgroundsAPI.sendWarning('visit ' + com.Newgrounds.NewgroundsAPI.AD_TERMS_URL + ' to view our approval guidelines'); if (!e.ad_url) { com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.ADS_APPROVED, false, new com.Newgrounds.NewgroundsAPIError('FLASH_ADS_NOT_APPROVED', v6)); } else { v4 = true; } } else { if (e.ad_status === 0) { var v6 = 'Flash Ads are currently awaiting approval.'; com.Newgrounds.NewgroundsAPI.sendNotice(v6); if (!e.ad_url) { com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.ADS_APPROVED, false, new com.Newgrounds.NewgroundsAPIError('FLASH_ADS_NOT_APPROVED', v6)); } else { v4 = true; } } } if (e.ad_url) { com.Newgrounds.NewgroundsAPI.ad_url = unescape(e.ad_url); if (!v4) { com.Newgrounds.NewgroundsAPI.sendMessage('This movie has been approved to run Flash Ads!'); } com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.ADS_APPROVED, true); } if (e.deny_host) { v6 = com.Newgrounds.NewgroundsAPI.getHost() + ' does not have permission to run this movie!'; com.Newgrounds.NewgroundsAPI.sendWarning(v6); com.Newgrounds.NewgroundsAPI.sendWarning('\tUpdate your API configuration to unblock ' + com.Newgrounds.NewgroundsAPI.getHost()); com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.HOST_BLOCKED, true, {'movie_url': unescape(e.movie_url), 'redirect_url': com.Newgrounds.NewgroundsAPI.getOfficialVersionURL()}); } if (e.movie_version) { com.Newgrounds.NewgroundsAPI.sendWarning('According to your API Configuration, this version is out of date.'); if (com.Newgrounds.NewgroundsAPI.version) { com.Newgrounds.NewgroundsAPI.sendWarning('\tThe this movie is version ' + com.Newgrounds.NewgroundsAPI.version); } com.Newgrounds.NewgroundsAPI.sendWarning('\tThe most current version is ' + e.movie_version); com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.NEW_VERSION_AVAILABLE, true, {'movie_version': e.movie_version, 'movie_url': unescape(e.movie_url), 'redirect_url': com.Newgrounds.NewgroundsAPI.getOfficialVersionURL()}); } if (e.request_portal_url) { com.Newgrounds.NewgroundsAPI.sendCommand('setPortalID', {'portal_url': _url}); } break; case 'logCustomEvent': if (e.success) { com.Newgrounds.NewgroundsAPI.sendMessage('Event \'' + e.event + '\' was logged.'); } com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.EVENT_LOGGED, e.success, {'event': e.event}); break; case 'postScore': var v7; if (e.success) { var v3 = 'User'; if (com.Newgrounds.NewgroundsAPI.user_email) { v3 = com.Newgrounds.NewgroundsAPI.user_email; } else { if (com.Newgrounds.NewgroundsAPI.user_name) { v3 = com.Newgrounds.NewgroundsAPI.user_name; } } com.Newgrounds.NewgroundsAPI.sendMessage(v3 + ' posted ' + e.value + ' to \'' + e.score + '\''); v7 = {'score': e.score, 'value': e.value, 'username': v3}; } com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.SCORE_POSTED, e.success, v7); break; case 'getScores': var v7 = new Object(); if (e.user_id) { var v5 = e.period; } else { var v5 = e.period + '-u'; } if (e.total_pages) { com.Newgrounds.NewgroundsAPI.score_page_counts[v5] = e.total_pages; } v7.user_id = e.user_id; v7.current_page = e.current_page; v7.total_pages = com.Newgrounds.NewgroundsAPI.score_page_counts[v5]; v7.scores = e.scores; v7.period = com.Newgrounds.NewgroundsAPI.getPeriodName(e.period); com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.SCORES_LOADED, e.success, v7); break; case 'unlockMedal': if (com.Newgrounds.NewgroundsAPI.medals) { var v2 = 0; while (v2 < com.Newgrounds.NewgroundsAPI.medals.length) { if (com.Newgrounds.NewgroundsAPI.medals[v2].medal_name === e.medal_name) { com.Newgrounds.NewgroundsAPI.medals[v2].medal_unlocked = true; break; } ++v2; } } var v7 = {'medal_name': e.medal_name, 'medal_value': e.medal_value, 'medal_difficulty': e.medal_difficulty}; com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.MEDAL_UNLOCKED, e.success, v7); break; case 'getMedals': com.Newgrounds.NewgroundsAPI.medals = e.medals; var v7 = {'medals': e.medals}; com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.MEDALS_LOADED, e.success, v7); break; break; case 'getFiles': case 'getSystemFiles': break; case 'saveFile': com.Newgrounds.NewgroundsAPI.save_file = null; var v7 = {'file_id': e.file_id, 'filename': e.filename, 'file_url': e.file_url, 'thumbnail': e.thumbnail, 'icon': e.icon}; com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.FILE_SAVED, e.success, v7); break; case 'checkFilePrivs': if (com.Newgrounds.NewgroundsAPI.save_file) { com.Newgrounds.NewgroundsAPI.save_file.checkPrivs(e); } else { var v7 = {'filename': e.filename, 'folder': e.folder, 'can_read': e.can_read, 'can_write': e.can_write}; com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.FILE_PRIVS_LOADED, e.success, v7); } } }; v1.setDefaultListeners = function () { var v1 = new Array(); v1[com.Newgrounds.NewgroundsAPI.events.HOST_BLOCKED] = {'listener': com.Newgrounds.NewgroundsAPI.doBlockHost}; v1[com.Newgrounds.NewgroundsAPI.events.NEW_VERSION_AVAILABLE] = {'listener': com.Newgrounds.NewgroundsAPI.onNewVersionAvailable}; return v1; }; v1.addEventListener = function (event, listener, params) { com.Newgrounds.NewgroundsAPI.listeners[event] = {'listener': listener, 'params': params}; }; v1.removeEventListener = function (event) { delete com.Newgrounds.NewgroundsAPI.listeners[event]; }; v1.getEventName = function (event) { for (var v2 in com.Newgrounds.NewgroundsAPI.events) { if (com.Newgrounds.NewgroundsAPI.events[v2] == event) { return v2; } } return undefined; }; v1.callListener = function (event, success, data, target) { com.Newgrounds.NewgroundsAPI.echo('Fired Event: ' + com.Newgrounds.NewgroundsAPI.getEventName(event)); if (com.Newgrounds.NewgroundsAPI.listeners[event]) { if (data.isError()) { com.Newgrounds.NewgroundsAPI.listeners[event].listener({'event': event, 'success': success, 'error': data, 'target': target}, com.Newgrounds.NewgroundsAPI.listeners[event].params); } else { com.Newgrounds.NewgroundsAPI.listeners[event].listener({'event': event, 'success': success, 'data': data, 'target': target}, com.Newgrounds.NewgroundsAPI.listeners[event].params); } } }; v1.getCommandName = function (id) { return id; }; v1.getCommandID = function (name) { return name; }; v1.getPeriodAliases = function () { var v1 = new Object(); for (var v2 in com.Newgrounds.NewgroundsAPI.period_aliases) { v1[com.Newgrounds.NewgroundsAPI.period_aliases[v2].alias] = v2; } return v1; }; v1.getPeriodName = function (p) { for (var v2 in com.Newgrounds.NewgroundsAPI.period_aliases) { if (v2 == p) { return com.Newgrounds.NewgroundsAPI.period_aliases[v2].name; } } return null; }; v1.getPeriodAlias = function (p) { for (var v2 in com.Newgrounds.NewgroundsAPI.period_aliases) { if (v2 == p) { return com.Newgrounds.NewgroundsAPI.period_aliases[v2].alias; } } return null; }; v1.sendError = function (c, e) { trace('[NewgroundsAPI ERROR] :: ' + com.Newgrounds.NewgroundsAPI.getCommandName(c.command_id) + '() - ' + e.name + ':' + '\n' + '\t\t\t\t' + e.message); }; v1.sendWarning = function (m, c) { if (c) { m += '\r[NewgroundsAPI WARNING] :: \tSee ' + com.Newgrounds.NewgroundsAPI.COMMANDS_WIKI_URL + c.toLowerCase() + ' for additional information.'; } trace('[NewgroundsAPI WARNING] :: ' + m); }; v1.sendNotice = function (m, c) { if (c) { m += '\r[NewgroundsAPI NOTICE] :: \tSee ' + com.Newgrounds.NewgroundsAPI.COMMANDS_WIKI_URL + c.toLowerCase() + ' for additional information.'; } trace('[NewgroundsAPI NOTICE] :: ' + m); }; v1.fatalError = function (m, c) { if (c) { m += '\r\tSee ' + com.Newgrounds.NewgroundsAPI.COMMANDS_WIKI_URL + c.toLowerCase() + ' for additional information.'; } throw '***ERROR*** frame=' + _root._currentframe + ', class=NewgroundsAPI' + '\n' + '\n' + m; }; v1.sendSecureCommand = function (command, secure_params, unsecure_params, files) { if (!com.Newgrounds.NewgroundsAPI.debug && !com.Newgrounds.NewgroundsAPI.hasUserSession() && !com.Newgrounds.NewgroundsAPI.hasUserEmail()) { com.Newgrounds.NewgroundsAPI.sendError({'command_id': com.Newgrounds.NewgroundsAPI.getCommandID(command)}, new com.Newgrounds.NewgroundsAPIError('IDENTIFICATION_REQUIRED', 'You must be logged in or provide an e-mail address ( using NewgroundsAPI.setUserEmail("name@domain.com"); ) to use ' + command + '().')); return undefined; } if (!command) { com.Newgrounds.NewgroundsAPI.fatalError('Missing command', 'sendSecureCommand'); } if (!secure_params) { com.Newgrounds.NewgroundsAPI.fatalError('Missing secure_params', 'sendSecureCommand'); } if (!unsecure_params) { unsecure_params = new Object(); } var v2 = ''; var v1 = 0; while (v1 < 16) { v2 += com.Newgrounds.NewgroundsAPI.compression_radix.charAt(Math.floor(Math.random() * com.Newgrounds.NewgroundsAPI.compression_radix.length)); ++v1; } if (com.Newgrounds.NewgroundsAPI.debug) { secure_params.session_id = ''; } else { secure_params.session_id = com.Newgrounds.NewgroundsAPI.session_id; } secure_params.as_version = 2; secure_params.user_email = com.Newgrounds.NewgroundsAPI.user_email; secure_params.publisher_id = com.Newgrounds.NewgroundsAPI.publisher_id; secure_params.seed = v2; secure_params.command_id = com.Newgrounds.NewgroundsAPI.getCommandID(command); var v8 = com.Newgrounds.MD5.calculate(v2); var v6 = com.Newgrounds.RC4.encrypt(com.Newgrounds.JSON.encode(secure_params), com.Newgrounds.NewgroundsAPI.encryption_key); var v7 = v8 + v6; unsecure_params.secure = com.Newgrounds.NewgroundsAPI.compressHex(v7); com.Newgrounds.NewgroundsAPI.sendCommand('securePacket', unsecure_params, false, files); }; v1.sendCommand = function (command, params, open_browser, files) { if (!com.Newgrounds.NewgroundsAPI.connected and command != 'connectMovie') { var v11 = 'NewgroundsAPI.' + command + '() - NewgroundsAPI.connectMovie() must be called before this command can be called' + '\n'; com.Newgrounds.NewgroundsAPI.fatalError(v11, 'connectMovie'); } if (open_browser) { var v1 = new Object(); } else { var v1 = new LoadVars(); } v1.command_id = com.Newgrounds.NewgroundsAPI.getCommandID(command); v1.tracker_id = com.Newgrounds.NewgroundsAPI.movie_id; if (com.Newgrounds.NewgroundsAPI.debug) { v1.debug = com.Newgrounds.NewgroundsAPI.debug; } if (params) { for (var v8 in params) { v1[v8] = params[v8]; } } if (files) { for (v8 in files) { v1[v8] = files[v8]; } } com.Newgrounds.NewgroundsAPI.echo('OUTPUT: \r' + com.Newgrounds.JSON.encode(v1) + '\n'); if (open_browser) { var v5 = com.Newgrounds.NewgroundsAPI.GATEWAY_URL + '?seed=' + Math.random(); for (v8 in v1) { v5 += '&' + escape(v8) + '=' + escape(v1[v8]); } getURL(v5, '_blank'); v1.removeMovieClip(); } else { var v9 = new LoadVars(); v9.onData = function (data) { com.Newgrounds.NewgroundsAPI.echo('INPUT: \r' + data + '\n'); if (data) { var v1 = com.Newgrounds.JSON.decode(data); } else { var v1 = {'success': false}; } if (!v1.success) { var v3 = new com.Newgrounds.NewgroundsAPIError(v1.error_code, v1.error_msg); com.Newgrounds.NewgroundsAPI.sendError(v1, v3); } else { com.Newgrounds.NewgroundsAPI.doEvent(v1); } }; var v4 = new Array(); for (var v7 in v1) { v4.push(v7 + '=' + escape(v1[v7])); } com.Newgrounds.NewgroundsAPI.echo('POST ' + com.Newgrounds.NewgroundsAPI.GATEWAY_URL + '?' + v4.join('&')); v1.sendAndLoad(com.Newgrounds.NewgroundsAPI.GATEWAY_URL + '?seed=' + Math.random(), v9, 'POST'); } }; v1.renderAd = function (target) { if (com.Newgrounds.NewgroundsAPI.ad_swf_url) { target.background = target.createEmptyMovieClip('background', 100); target.background.beginFill(0); target.background.moveTo(0, 0); target.background.lineTo(300, 0); target.background.lineTo(300, 250); target.background.lineTo(0, 250); target.background.lineTo(0, 0); target.background.endFill(); target.mask = target.createEmptyMovieClip('mask', 101); target.mask.beginFill(0); target.mask.moveTo(0, 0); target.mask.lineTo(300, 0); target.mask.lineTo(300, 250); target.mask.lineTo(0, 250); target.mask.lineTo(0, 0); target.mask.endFill(); target.clip = target.createEmptyMovieClip('clip', 102); target.clip.ad = target.clip.createEmptyMovieClip('ad', 100); target.clip.setMask(target.mask); loadMovie(com.Newgrounds.NewgroundsAPI.ad_swf_url, target.clip.ad); com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.AD_ATTACHED, true, null, target); } else { com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.AD_ATTACHED, false, new com.Newgrounds.NewgroundsAPIError('FLASH_ADS_NOT_APPROVED', 'Unable to render ad')); } }; v1.attachFlashAd = function (target) { System.security.allowDomain('http://server.cpmstar.com'); System.security.allowDomain('http://www.cpmstar.com'); System.security.allowDomain('https://server.cpmstar.com'); System.security.allowDomain('https://www.cpmstar.com'); System.security.allowInsecureDomain('http://server.cpmstar.com'); System.security.allowInsecureDomain('http://www.cpmstar.com'); System.security.allowInsecureDomain('https://server.cpmstar.com'); System.security.allowInsecureDomain('https://www.cpmstar.com'); com.Newgrounds.NewgroundsAPI.sendMessage('You may get a security sandbox violation from this ad. This is nothing to worry about!'); if (com.Newgrounds.NewgroundsAPI.resetAdTimer()) { if (com.Newgrounds.NewgroundsAPI.ad_url) { var v1 = new LoadVars(); v1.onData = function (data) { if (data) { com.Newgrounds.NewgroundsAPI.ad_swf_url = data; } else { com.Newgrounds.NewgroundsAPI.ad_swf_url = null; } com.Newgrounds.NewgroundsAPI.renderAd(target); }; if (com.Newgrounds.NewgroundsAPI.ad_url.indexOf('?') > -1) { v1.load(com.Newgrounds.NewgroundsAPI.ad_url + '&random=' + Math.random()); } else { v1.load(com.Newgrounds.NewgroundsAPI.ad_url + '?random=' + Math.random()); } } } else { com.Newgrounds.NewgroundsAPI.renderAd(target); } }; v1.resetAdTimer = function () { if (!com.Newgrounds.NewgroundsAPI.ad_url) { return false; } var v1 = new Date(); if (v1.getTime() >= com.Newgrounds.NewgroundsAPI.ad_reset) { com.Newgrounds.NewgroundsAPI.ad_reset = v1.getTime() + 300000; return true; } return false; }; v1.sendMessage = function (m, r) { var v1 = '[NewgroundsAPI] :: ' + m; if (r) { return v1; } else { trace(v1); } }; v1.echo = function (m) { if (com.Newgrounds.NewgroundsAPI.do_echo) { trace(m); } }; v1.do_echo = false; v1.GATEWAY_URL = 'http://www.ngads.com/gateway_v2.php'; v1.AD_TERMS_URL = 'http://www.newgrounds.com/wiki/flashads/terms/'; v1.COMMANDS_WIKI_URL = 'http://www.newgrounds.com/wiki/flashapi/commands/'; v1.ad_reset = 0; v1.save_file = null; v1.medals = null; v1.score_page_counts = new Object(); v1.compression_radix = '/g8236klvBQ#&|;Zb*7CEA59%s`Oue1wziFp$rDVY@TKxUPWytSaGHJ>dmoMR^<0~4qNLhc(I+fjn)X'; v1.compressor = new com.Newgrounds.BaseN(com.Newgrounds.NewgroundsAPI.compression_radix); v1.errors = com.Newgrounds.NewgroundsAPIError.init_codes(); v1.sharedObjects = new Object(); v1.events = {'MOVIE_CONNECTED': 1, 'ADS_APPROVED': 2, 'AD_ATTACHED': 3, 'HOST_BLOCKED': 4, 'NEW_VERSION_AVAILABLE': 5, 'EVENT_LOGGED': 6, 'SCORE_POSTED': 7, 'SCORES_LOADED': 8, 'MEDAL_UNLOCKED': 9, 'MEDALS_LOADED': 10, 'FILE_PRIVS_LOADED': 11, 'FILE_SAVED': 12}; v1.listeners = com.Newgrounds.NewgroundsAPI.setDefaultListeners(); v1.periods = com.Newgrounds.NewgroundsAPI.getPeriodAliases(); v1.period_aliases = {'t': {'name': 'Today', 'alias': 'TODAY'}, 'p': {'name': 'Yesterday', 'alias': 'YESTERDAY'}, 'w': {'name': 'This Week', 'alias': 'THIS_WEEK'}, 'm': {'name': 'This Month', 'alias': 'THIS_MONTH'}, 'y': {'name': 'This Year', 'alias': 'THIS_YEAR'}, 'a': {'name': 'All-Time', 'alias': 'ALL_TIME'}}; ASSetPropFlags(com.Newgrounds.NewgroundsAPI.prototype, null, 1); } #endinitclip } movieClip 2115 __Packages.com.Newgrounds.NewgroundsAPISaveFile { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.Newgrounds) { _global.com.Newgrounds = new Object(); } if (!_global.com.Newgrounds.NewgroundsAPISaveFile) { var v1 = function (tracker_id, folder, filename) { this.tracker_id = tracker_id; this.folder = folder; this.filename = filename; this.contents = null; this.thumbnail = null; this.icon_url = null; this.thumbnail_url = null; }; com.Newgrounds.NewgroundsAPISaveFile = v1; var v2 = v1.prototype; v2.setDescription = function (description) { this.description = description; }; v2.setShared = function (share) { this.share = share; }; v2.setContents = function (contents) { this.contents = contents; }; v2.setThumbnail = function (thumb) { if (thumb) { this.thumbnail = thumb; } else { this.thumbnail = null; } }; v2.onError = function (msg) { trace('[NewgroundsAPISaveFile ERROR] :: ' + msg); }; v2.onCancel = function (msg) { trace('[NewgroundsAPISaveFile] :: ' + msg); }; v2.submit = function () { this.scan = null; com.Newgrounds.NewgroundsAPI.checkFilePrivs(this.folder, this.filename); }; v2.checkPrivs = function (p) { if (p.success) { if (p.can_write) { this.can_write = p.can_write; if (p.exists) { com.Newgrounds.NewgroundsAPI.getConfirmation('saveFile', com.Newgrounds.NewgroundsAPI.events.FILE_SAVED, 'File \'' + this.filename + '\' exists, overwrite?', this, 'startFile', 'cancelFile'); } else { this.startFile(); } } else { this.onError('This filename is owned by another user.'); } } else { this.onError('There was a problem looking up your file\'s details'); } }; v2.cancelFile = function () { this.onCancel('Overwrite was cancelled'); }; v2.startFile = function () { if (this.can_write) { if (this.thumbnail) { this.scanner = new com.Newgrounds.ImageScanner(this.thumbnail); this.scanner.setCallback(this, 'writeFile'); this.scanner.startScan(100, 100, true); } else { this.writeFile(); } } else { this.onError('You cannot write to filename "' + this.filename + '"'); } }; v2.writeFile = function (img) { trace('FINISHED'); com.Newgrounds.NewgroundsAPI.finishFileSave(this.folder, this.filename, this.description, this.share, com.Newgrounds.JSON.encode(this.contents), img); }; v2.can_write = false; v2.share = true; ASSetPropFlags(com.Newgrounds.NewgroundsAPISaveFile.prototype, null, 1); } #endinitclip } movieClip 2116 __Packages.com.Newgrounds.ImageScanner { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.Newgrounds) { _global.com.Newgrounds = new Object(); } if (!_global.com.Newgrounds.ImageScanner) { var v1 = function (the_source) { if (the_source) { this.image_source = the_source; } else { this.image_source = _root; } this.reset(); if (typeof this.image_source == 'movieclip') { if (this.image_source == _root) { this.source_width = Stage.width; this.source_height = Stage.height; } else { this.source_width = Math.floor(this.image_source._width); this.source_height = Math.floor(this.image_source._height); } this.sourceBitmap = new flash.display.BitmapData(this.source_width, this.source_height, false, 4294967295.0); this.sourceBitmap.draw(_root); } else { if (this.image_source.width) { this.source_width = this.image_source.width; this.source_height = this.image_source.height; this.sourceBitmap = this.image_source; } else { this.error('You can only use BitMaptData and MovieClip objects to create images'); } } }; com.Newgrounds.ImageScanner = v1; var v2 = v1.prototype; v2.setCallback = function (target, funct) { if (target && funct) { this.callback_target = target; this.callback_function = funct; } }; v2.reset = function () { this.callback_target = null; this.callback_function = null; this.debug.bad_pixels = 0; this.hash = '0123456789aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ<>?:;-_=+()!&'; var v3 = Math.pow(this.hash.length, 2); trace('MAX COLORS: ' + v3); var v2 = Math.floor(Math.pow(v3, 0.3333333333333333)) - 1; var v4 = Math.pow(v2, 3); this.cube = v2; this.basen = new com.Newgrounds.BaseN(this.hash); this.xpos = 0; this.ypos = 0; this.pixels = 0; this.busy = false; }; v2.startScan = function (w, h, s) { if (w) { this.image_width = w; } if (h) { this.image_height = h; } if (s != undefined) { this.crop = s; } var v7 = _root.getNextHighestDepth(); var v6 = _root.createEmptyMovieClip('API_image_container_' + v7, v7); var v5 = v6.createEmptyMovieClip('canvas', 100); v5.attachBitmap(this.sourceBitmap, 100); if (this.crop) { if (this.image_width / this.source_width > this.image_height / this.source_height) { this.canvas_width = this.image_width; this.canvas_height = Math.ceil(this.source_height * (this.image_width / this.source_width)); } else { this.canvas_height = this.image_height; this.canvas_width = Math.ceil(this.source_width * (this.image_height / this.source_height)); } } else { this.canvas_width = this.image_width; this.canvas_height = this.image_height; } v5._x = Math.round((this.image_width - this.canvas_width) / 2); v5._width = this.canvas_width; v5._height = this.canvas_height; this.resizedBitmap = new flash.display.BitmapData(this.image_width, this.image_height, false, 4294967295.0); this.resizedBitmap.draw(v6); v6.removeMovieClip(); this.copyBitmap = new flash.display.BitmapData(this.image_width, this.image_height, false, 4294967295.0); var v3 = '' + this.image_width; while (v3.length < 3) { v3 = '0' + v3; } var v4 = '' + this.image_height; while (v4.length < 3) { v4 = '0' + v4; } this.output = v3 + v4; this.draw_interval = setInterval(this, 'drawChunk', 10); this.busy = false; return this.resizedBitmap; }; v2.getBitmapData = function () { return this.copyBitmap; }; v2.getBytesTotal = function () { return this.image_width * this.image_height * 2; }; v2.getBytesScanned = function () { return this.pixels * 2; }; v2.drawChunk = function () { if (!this.busy) { this.busy = true; var v2 = 0; while (v2 < 250) { if (!this.nextPixel()) { clearInterval(this.draw_interval); this.callback_interval = setInterval(this, 'doCallback', 25); this.busy = true; break; } ++v2; } this.busy = false; } }; v2.doCallback = function () { this.busy = false; clearInterval(this.callback_interval); if (this.callback_target and this.callback_function) { this.callback_target[this.callback_function](this.output); } else { this.onScanComplete(this.output); } }; v2.onScanComplete = function (packet) { this.sendMessage('packet size: ' + this.output.length + ' bytes', 'onScanComplete'); }; v2.nextPixel = function () { var v15 = this.xpos; var v14 = this.ypos; var v7 = this.resizedBitmap.getPixel(v15, v14); var v17 = v7 >> 16 & 255; var v20 = v7 >> 8 & 255; var v16 = v7 >> 0 & 255; var v11 = Math.round(((v17 + 1) / 256) * this.cube); var v10 = Math.round(((v20 + 1) / 256) * this.cube); var v13 = Math.round(((v16 + 1) / 256) * this.cube); var v12 = v11 * (this.cube + 1) * (this.cube + 1) + v10 * (this.cube + 1) + v13; var v6 = this.basen.encode(v12, 2); this.output += v6; if (v6.length != 2) { trace('bad pixel ' + v6); } var v5 = this.basen.decode(v6); var v18 = v5; var v8 = v5 % (this.cube + 1); v5 = (v5 - v8) / (this.cube + 1); var v9 = v5 % (this.cube + 1); var v19 = (v5 - v9) / (this.cube + 1); if (v13 != v8 and v10 != v9 and v11 != v10) { ++this.debug.bad_pixels; trace('BAD PIXEL ' + this.debug.bad_pixels + ') ' + v12 + ' != ' + v18 + ' ' + v6); trace(this.basen.debug.lastencode); } var v2 = (Math.round((v19 / this.cube) * 255)).toString(16); var v4 = (Math.round((v9 / this.cube) * 255)).toString(16); var v3 = (Math.round((v8 / this.cube) * 255)).toString(16); while (v2.length < 2) { v2 = '0' + v2; } while (v4.length < 2) { v4 = '0' + v4; } while (v3.length < 2) { v3 = '0' + v3; } this.copyBitmap.setPixel(v15, v14, Number('0x' + v2 + v4 + v3)); ++this.pixels; if (this.pixels >= this.image_width * this.image_height) { return false; } ++this.xpos; if (this.xpos >= this.image_width) { this.xpos = 0; ++this.ypos; } return true; }; v2.error = function (e, f) { this.sendMessage(e, f, 'ERROR'); }; v2.sendMessage = function (msg, func, type) { var v1 = 'ImageScanner'; if (func) { v1 += '.' + func + '()'; } if (type) { v1 = type + ' in ' + v1; } v1 += ' :: ' + msg; trace(v1); }; v2.image_width = 100; v2.image_height = 100; v2.crop = true; v2.debug = new Object(); ASSetPropFlags(com.Newgrounds.ImageScanner.prototype, null, 1); } #endinitclip } movieClip 2117 __Packages.com.Newgrounds.JSON { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.Newgrounds) { _global.com.Newgrounds = new Object(); } if (!_global.com.Newgrounds.JSON) { var v1 = function () {}; com.Newgrounds.JSON = v1; var v2 = v1.prototype; v1.encode = function (arg, noquotes) { var v3; var v2; var v6; var v1 = ''; var v4; if (arg.isSServerVar()) { var v8 = 'sservervariable'; } else { var v8 = typeof arg; } switch (v8) { return 'null'; case 'sservervariable': return '?' + arg.getEncodedValue(); break; case 'object': if (arg) { if (arg instanceof Array) { v2 = 0; while (v2 < arg.length) { v4 = com.Newgrounds.JSON.encode(arg[v2]); if (v1) { v1 += ','; } v1 += v4; ++v2; } return '[' + v1 + ']'; } else { if (typeof arg.toString != 'undefined') { for (v2 in arg) { v4 = arg[v2]; if (typeof v4 != 'undefined' && typeof v4 != 'function') { v4 = com.Newgrounds.JSON.encode(v4); if (v1) { v1 += ','; } v1 += com.Newgrounds.JSON.encode(v2) + ':' + v4; } } return '{' + v1 + '}'; } } } return 'null'; case 'number': return isFinite(arg) ? String(arg) : 'null'; case 'string': v6 = arg.length; if (noquotes) { var v7 = ''; } else { var v7 = '"'; } v1 = v7; v2 = 0; while (v2 < v6) { v3 = arg.charAt(v2); if (v3 >= ' ') { if (v3 == '\\' || v3 == '"') { v1 += '\\'; } v1 += v3; } else { switch (v3) { case '\b': v1 += '\\b'; break; case '\f': v1 += '\\f'; break; case '\n': v1 += '\\n'; break; case '\r': v1 += '\\r'; break; case '\t': v1 += '\\t'; break; default: v3 = v3.charCodeAt(); v1 += '\\u00' + (Math.floor(v3 / 16)).toString(16) + (v3 % 16).toString(16); } } v2 += 1; } return v1 + v7; case 'boolean': return String(arg); default: return 'null'; } }; v1.decode = function (text) { var at = 0; var ch = ' '; var _value; var _error = function (m) { throw {'name': 'JSONError', 'message': m, 'at': at - 1, 'text': text}; }; var _next = function () { ch = text.charAt(at); at += 1; return ch; }; var _white = function () { while (ch) { if (ch <= ' ') { _next(); } else { if (ch == '/') { switch (_next()) { case '/': for (;;) { if (!(_next() && ch != '\n' && ch != '\r')) break; } break; case '*': _next(); for (;;) { if (ch) { if (ch == '*') { if (_next() == '/') { _next(); break; } } else { _next(); } continue; } _error('Unterminated comment'); } break; default: _error('Syntax error'); } } else { break; } } } }; var _string = function () { var v4; var v1 = ''; var v3; var v2; var v5 = false; if (ch == '"') { while (_next()) { if (ch == '"') { _next(); return v1; } else { if (ch == '\\') { switch (_next()) { case 'b': v1 += '\b'; break; case 'f': v1 += '\f'; break; case 'n': v1 += '\n'; break; case 'r': v1 += '\r'; break; case 't': v1 += '\t'; break; case 'u': v2 = 0; v4 = 0; while (v4 < 4) { v3 = parseInt(_next(), 16); if (!isFinite(v3)) { v5 = true; break; } v2 = v2 * 16 + v3; v4 += 1; } if (v5) { v5 = false; } else { v1 += String.fromCharCode(v2); break; default: v1 += ch; } } } else { v1 += ch; } } } } _error('Bad string'); }; var _array = function () { var v1 = []; if (ch == '[') { _next(); _white(); if (ch == ']') { _next(); return v1; } while (ch) { v1.push(_value()); _white(); if (ch == ']') { _next(); return v1; } else { if (ch != ',') { break; } } _next(); _white(); } } _error('Bad array'); }; var _object = function () { var v2; var v1 = {}; if (ch == '{') { _next(); _white(); if (ch == '}') { _next(); return v1; } while (ch) { v2 = _string(); _white(); if (ch != ':') { break; } _next(); v1[v2] = _value(); _white(); if (ch == '}') { _next(); return v1; } else { if (ch != ',') { break; } } _next(); _white(); } } _error('Bad object'); }; var _number = function () { var v1 = ''; var v2; if (ch == '-') { v1 = '-'; _next(); } for (;;) { if (!(ch >= '0' && ch <= '9')) break; v1 += ch; _next(); } if (ch == '.') { v1 += '.'; for (;;) { if (!(_next() && ch >= '0' && ch <= '9')) break; v1 += ch; } } v2 = 1 * v1; if (!isFinite(v2)) { _error('Bad number'); } else { return v2; } }; var _word = function () { switch (ch) { case 't': if (_next() == 'r' && _next() == 'u' && _next() == 'e') { _next(); return true; } break; case 'f': if (_next() == 'a' && _next() == 'l' && _next() == 's' && _next() == 'e') { _next(); return false; } break; case 'n': if (_next() == 'u' && _next() == 'l' && _next() == 'l') { _next(); return null; } } _error('Syntax error'); }; _value = function () { _white(); switch (ch) { case '{': return _object(); case '[': return _array(); case '"': return _string(); case '-': return _number(); } return (ch >= '0' && ch <= '9') ? _number() : _word(); }; return _value(); }; ASSetPropFlags(com.Newgrounds.JSON.prototype, null, 1); } #endinitclip } movieClip 2118 __Packages.com.Newgrounds.RC4 { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.Newgrounds) { _global.com.Newgrounds = new Object(); } if (!_global.com.Newgrounds.RC4) { var v1 = function () {}; com.Newgrounds.RC4 = v1; var v2 = v1.prototype; v1.encrypt = function (src, key) { var v3 = com.Newgrounds.RC4.strToChars(src); var v1 = com.Newgrounds.RC4.strToChars(key); var v2 = com.Newgrounds.RC4.calculate(v3, v1); return com.Newgrounds.RC4.charsToHex(v2); }; v1.encryptbin = function (src, key) { var v3 = com.Newgrounds.RC4.strToChars(src); var v1 = com.Newgrounds.RC4.strToChars(key); var v2 = com.Newgrounds.RC4.calculate(v3, v1); return v2; }; v1.decrypt = function (src, key) { var v3 = com.Newgrounds.RC4.hexToChars(src); var v1 = com.Newgrounds.RC4.strToChars(key); var v2 = com.Newgrounds.RC4.calculate(v3, v1); return com.Newgrounds.RC4.charsToStr(v2); }; v1.initialize = function (pwd) { var v2 = 0; var v3; var v4 = pwd.length; var v1 = 0; while (v1 <= 255) { com.Newgrounds.RC4.mykey[v1] = pwd[v1 % v4]; com.Newgrounds.RC4.sbox[v1] = v1; ++v1; } v1 = 0; while (v1 <= 255) { v2 = (v2 + com.Newgrounds.RC4.sbox[v1] + com.Newgrounds.RC4.mykey[v1]) % 256; v3 = com.Newgrounds.RC4.sbox[v1]; com.Newgrounds.RC4.sbox[v1] = com.Newgrounds.RC4.sbox[v2]; com.Newgrounds.RC4.sbox[v2] = v3; ++v1; } }; v1.calculate = function (plaintxt, psw) { com.Newgrounds.RC4.initialize(psw); var v1 = 0; var v2 = 0; var v9 = new Array(); var v7; var v5; var v6; var v3 = 0; while (v3 < plaintxt.length) { v1 = (v1 + 1) % 256; v2 = (v2 + com.Newgrounds.RC4.sbox[v1]) % 256; v5 = com.Newgrounds.RC4.sbox[v1]; com.Newgrounds.RC4.sbox[v1] = com.Newgrounds.RC4.sbox[v2]; com.Newgrounds.RC4.sbox[v2] = v5; var v4 = (com.Newgrounds.RC4.sbox[v1] + com.Newgrounds.RC4.sbox[v2]) % 256; v7 = com.Newgrounds.RC4.sbox[v4]; v6 = plaintxt[v3] ^ v7; v9.push(v6); ++v3; } return v9; }; v1.charsToHex = function (chars) { var v4 = new String(''); var v3 = new Array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'); var v1 = 0; while (v1 < chars.length) { v4 += v3[chars[v1] >> 4] + v3[chars[v1] & 15]; ++v1; } return v4; }; v1.hexToChars = function (hex) { var v3 = new Array(); var v1 = (hex.substr(0, 2) == '0x') ? 2 : 0; while (v1 < hex.length) { v3.push(parseInt(hex.substr(v1, 2), 16)); v1 += 2; } return v3; }; v1.charsToStr = function (chars) { var v3 = new String(''); var v1 = 0; while (v1 < chars.length) { v3 += String.fromCharCode(chars[v1]); ++v1; } return v3; }; v1.strToChars = function (str) { var v3 = new Array(); var v1 = 0; while (v1 < str.length) { v3.push(str.charCodeAt(v1)); ++v1; } return v3; }; v1.sbox = new Array(255); v1.mykey = new Array(255); ASSetPropFlags(com.Newgrounds.RC4.prototype, null, 1); } #endinitclip } movieClip 2119 __Packages.com.Newgrounds.MD5 { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.Newgrounds) { _global.com.Newgrounds = new Object(); } if (!_global.com.Newgrounds.MD5) { var v1 = function () {}; com.Newgrounds.MD5 = v1; var v2 = v1.prototype; v1.calculate = function (src) { return com.Newgrounds.MD5.hex_md5(src); }; v1.hex_md5 = function (src) { return com.Newgrounds.MD5.binl2hex(com.Newgrounds.MD5.core_md5(com.Newgrounds.MD5.str2binl(src), src.length * 8)); }; v1.core_md5 = function (x, len) { x[len >> 5] |= 128 << len % 32; x[(len + 64 >>> 9 << 4) + 14] = len; var v4 = 1732584193; var v3 = -271733879; var v2 = -1732584194; var v1 = 271733878; var v5 = 0; while (v5 < x.length) { var v10 = v4; var v9 = v3; var v8 = v2; var v7 = v1; v4 = com.Newgrounds.MD5.md5_ff(v4, v3, v2, v1, x[v5 + 0], 7, -680876936); v1 = com.Newgrounds.MD5.md5_ff(v1, v4, v3, v2, x[v5 + 1], 12, -389564586); v2 = com.Newgrounds.MD5.md5_ff(v2, v1, v4, v3, x[v5 + 2], 17, 606105819); v3 = com.Newgrounds.MD5.md5_ff(v3, v2, v1, v4, x[v5 + 3], 22, -1044525330); v4 = com.Newgrounds.MD5.md5_ff(v4, v3, v2, v1, x[v5 + 4], 7, -176418897); v1 = com.Newgrounds.MD5.md5_ff(v1, v4, v3, v2, x[v5 + 5], 12, 1200080426); v2 = com.Newgrounds.MD5.md5_ff(v2, v1, v4, v3, x[v5 + 6], 17, -1473231341); v3 = com.Newgrounds.MD5.md5_ff(v3, v2, v1, v4, x[v5 + 7], 22, -45705983); v4 = com.Newgrounds.MD5.md5_ff(v4, v3, v2, v1, x[v5 + 8], 7, 1770035416); v1 = com.Newgrounds.MD5.md5_ff(v1, v4, v3, v2, x[v5 + 9], 12, -1958414417); v2 = com.Newgrounds.MD5.md5_ff(v2, v1, v4, v3, x[v5 + 10], 17, -42063); v3 = com.Newgrounds.MD5.md5_ff(v3, v2, v1, v4, x[v5 + 11], 22, -1990404162); v4 = com.Newgrounds.MD5.md5_ff(v4, v3, v2, v1, x[v5 + 12], 7, 1804603682); v1 = com.Newgrounds.MD5.md5_ff(v1, v4, v3, v2, x[v5 + 13], 12, -40341101); v2 = com.Newgrounds.MD5.md5_ff(v2, v1, v4, v3, x[v5 + 14], 17, -1502002290); v3 = com.Newgrounds.MD5.md5_ff(v3, v2, v1, v4, x[v5 + 15], 22, 1236535329); v4 = com.Newgrounds.MD5.md5_gg(v4, v3, v2, v1, x[v5 + 1], 5, -165796510); v1 = com.Newgrounds.MD5.md5_gg(v1, v4, v3, v2, x[v5 + 6], 9, -1069501632); v2 = com.Newgrounds.MD5.md5_gg(v2, v1, v4, v3, x[v5 + 11], 14, 643717713); v3 = com.Newgrounds.MD5.md5_gg(v3, v2, v1, v4, x[v5 + 0], 20, -373897302); v4 = com.Newgrounds.MD5.md5_gg(v4, v3, v2, v1, x[v5 + 5], 5, -701558691); v1 = com.Newgrounds.MD5.md5_gg(v1, v4, v3, v2, x[v5 + 10], 9, 38016083); v2 = com.Newgrounds.MD5.md5_gg(v2, v1, v4, v3, x[v5 + 15], 14, -660478335); v3 = com.Newgrounds.MD5.md5_gg(v3, v2, v1, v4, x[v5 + 4], 20, -405537848); v4 = com.Newgrounds.MD5.md5_gg(v4, v3, v2, v1, x[v5 + 9], 5, 568446438); v1 = com.Newgrounds.MD5.md5_gg(v1, v4, v3, v2, x[v5 + 14], 9, -1019803690); v2 = com.Newgrounds.MD5.md5_gg(v2, v1, v4, v3, x[v5 + 3], 14, -187363961); v3 = com.Newgrounds.MD5.md5_gg(v3, v2, v1, v4, x[v5 + 8], 20, 1163531501); v4 = com.Newgrounds.MD5.md5_gg(v4, v3, v2, v1, x[v5 + 13], 5, -1444681467); v1 = com.Newgrounds.MD5.md5_gg(v1, v4, v3, v2, x[v5 + 2], 9, -51403784); v2 = com.Newgrounds.MD5.md5_gg(v2, v1, v4, v3, x[v5 + 7], 14, 1735328473); v3 = com.Newgrounds.MD5.md5_gg(v3, v2, v1, v4, x[v5 + 12], 20, -1926607734); v4 = com.Newgrounds.MD5.md5_hh(v4, v3, v2, v1, x[v5 + 5], 4, -378558); v1 = com.Newgrounds.MD5.md5_hh(v1, v4, v3, v2, x[v5 + 8], 11, -2022574463); v2 = com.Newgrounds.MD5.md5_hh(v2, v1, v4, v3, x[v5 + 11], 16, 1839030562); v3 = com.Newgrounds.MD5.md5_hh(v3, v2, v1, v4, x[v5 + 14], 23, -35309556); v4 = com.Newgrounds.MD5.md5_hh(v4, v3, v2, v1, x[v5 + 1], 4, -1530992060); v1 = com.Newgrounds.MD5.md5_hh(v1, v4, v3, v2, x[v5 + 4], 11, 1272893353); v2 = com.Newgrounds.MD5.md5_hh(v2, v1, v4, v3, x[v5 + 7], 16, -155497632); v3 = com.Newgrounds.MD5.md5_hh(v3, v2, v1, v4, x[v5 + 10], 23, -1094730640); v4 = com.Newgrounds.MD5.md5_hh(v4, v3, v2, v1, x[v5 + 13], 4, 681279174); v1 = com.Newgrounds.MD5.md5_hh(v1, v4, v3, v2, x[v5 + 0], 11, -358537222); v2 = com.Newgrounds.MD5.md5_hh(v2, v1, v4, v3, x[v5 + 3], 16, -722521979); v3 = com.Newgrounds.MD5.md5_hh(v3, v2, v1, v4, x[v5 + 6], 23, 76029189); v4 = com.Newgrounds.MD5.md5_hh(v4, v3, v2, v1, x[v5 + 9], 4, -640364487); v1 = com.Newgrounds.MD5.md5_hh(v1, v4, v3, v2, x[v5 + 12], 11, -421815835); v2 = com.Newgrounds.MD5.md5_hh(v2, v1, v4, v3, x[v5 + 15], 16, 530742520); v3 = com.Newgrounds.MD5.md5_hh(v3, v2, v1, v4, x[v5 + 2], 23, -995338651); v4 = com.Newgrounds.MD5.md5_ii(v4, v3, v2, v1, x[v5 + 0], 6, -198630844); v1 = com.Newgrounds.MD5.md5_ii(v1, v4, v3, v2, x[v5 + 7], 10, 1126891415); v2 = com.Newgrounds.MD5.md5_ii(v2, v1, v4, v3, x[v5 + 14], 15, -1416354905); v3 = com.Newgrounds.MD5.md5_ii(v3, v2, v1, v4, x[v5 + 5], 21, -57434055); v4 = com.Newgrounds.MD5.md5_ii(v4, v3, v2, v1, x[v5 + 12], 6, 1700485571); v1 = com.Newgrounds.MD5.md5_ii(v1, v4, v3, v2, x[v5 + 3], 10, -1894986606); v2 = com.Newgrounds.MD5.md5_ii(v2, v1, v4, v3, x[v5 + 10], 15, -1051523); v3 = com.Newgrounds.MD5.md5_ii(v3, v2, v1, v4, x[v5 + 1], 21, -2054922799); v4 = com.Newgrounds.MD5.md5_ii(v4, v3, v2, v1, x[v5 + 8], 6, 1873313359); v1 = com.Newgrounds.MD5.md5_ii(v1, v4, v3, v2, x[v5 + 15], 10, -30611744); v2 = com.Newgrounds.MD5.md5_ii(v2, v1, v4, v3, x[v5 + 6], 15, -1560198380); v3 = com.Newgrounds.MD5.md5_ii(v3, v2, v1, v4, x[v5 + 13], 21, 1309151649); v4 = com.Newgrounds.MD5.md5_ii(v4, v3, v2, v1, x[v5 + 4], 6, -145523070); v1 = com.Newgrounds.MD5.md5_ii(v1, v4, v3, v2, x[v5 + 11], 10, -1120210379); v2 = com.Newgrounds.MD5.md5_ii(v2, v1, v4, v3, x[v5 + 2], 15, 718787259); v3 = com.Newgrounds.MD5.md5_ii(v3, v2, v1, v4, x[v5 + 9], 21, -343485551); v4 = com.Newgrounds.MD5.safe_add(v4, v10); v3 = com.Newgrounds.MD5.safe_add(v3, v9); v2 = com.Newgrounds.MD5.safe_add(v2, v8); v1 = com.Newgrounds.MD5.safe_add(v1, v7); v5 += 16; } return new Array(v4, v3, v2, v1); }; v1.md5_cmn = function (q, a, b, x, s, t) { return com.Newgrounds.MD5.safe_add(com.Newgrounds.MD5.bit_rol(com.Newgrounds.MD5.safe_add(com.Newgrounds.MD5.safe_add(a, q), com.Newgrounds.MD5.safe_add(x, t)), s), b); }; v1.md5_ff = function (a, b, c, d, x, s, t) { return com.Newgrounds.MD5.md5_cmn(b & c | ~b & d, a, b, x, s, t); }; v1.md5_gg = function (a, b, c, d, x, s, t) { return com.Newgrounds.MD5.md5_cmn(b & d | c & ~d, a, b, x, s, t); }; v1.md5_hh = function (a, b, c, d, x, s, t) { return com.Newgrounds.MD5.md5_cmn(b ^ c ^ d, a, b, x, s, t); }; v1.md5_ii = function (a, b, c, d, x, s, t) { return com.Newgrounds.MD5.md5_cmn(c ^ (b | ~d), a, b, x, s, t); }; v1.bit_rol = function (num, cnt) { return num << cnt | num >>> 32 - cnt; }; v1.safe_add = function (x, y) { var v1 = (x & 65535) + (y & 65535); var v2 = (x >> 16) + (y >> 16) + (v1 >> 16); return v2 << 16 | v1 & 65535; }; v1.str2binl = function (str) { var v3 = new Array(); var v4 = 255; var v1 = 0; while (v1 < str.length * 8) { v3[v1 >> 5] |= (str.charCodeAt(v1 / 8) & v4) << v1 % 32; v1 += 8; } return v3; }; v1.binl2hex = function (binarray) { var v4 = new String(''); var v3 = new String('0123456789abcdef'); var v1 = 0; while (v1 < binarray.length * 4) { v4 += v3.charAt(binarray[v1 >> 2] >> (v1 % 4) * 8 + 4 & 15) + v3.charAt(binarray[v1 >> 2] >> (v1 % 4) * 8 & 15); ++v1; } return v4; }; ASSetPropFlags(com.Newgrounds.MD5.prototype, null, 1); } #endinitclip } frame 2 { _global.sword = 'heaven'; _global.dif = 1; } movieClip 56 { } movieClip 60 { } movieClip 70 { frame 40 { stop(); } } movieClip 83 { } button 84 { on (press) { tellTarget ('_root') { nextFrame(); } } } button 85 { on (press) { gotoAndStop('end'); _root.fade.play(); _global.dir = 'forward'; } } movieClip 86 { instance of movieClip 60 { onClipEvent (load) { _root.stop(); PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100); if (PercentLoaded != 100) { _parent.gotoAndStop(PercentLoaded); } else { _parent.gotoAndStop('lastframe'); } } onClipEvent (enterFrame) { PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100); if (PercentLoaded != 100) { _parent.gotoAndStop(PercentLoaded); } else { _parent.gotoAndPlay('loaded'); } } } frame 101 { play(); } frame 165 { stop(); } } button 92 { on (release) { NewgroundsAPI.loadNewgrounds(); } } button 97 { on (release) { NewgroundsAPI.loadNewgrounds(); } } movieClip 98 { } movieClip 99 { frame 1 { function startAd(ngad_url) { trace('opening ' + ngad_url); System.security.allowDomain('70.87.128.99'); System.security.allowInsecureDomain('70.87.128.99'); System.security.allowDomain('ads.shizmoo.com'); System.security.allowInsecureDomain('ads.shizmoo.com'); System.security.allowDomain('www.cpmstar.com'); System.security.allowInsecureDomain('www.cpmstar.com'); System.security.allowDomain('server.cpmstar.com'); System.security.allowInsecureDomain('server.cpmstar.com'); var ngads_redirect = new XML(); ngads_redirect.ignoreWhite = true; ngads_redirect.onLoad = function (success) { trace('[NEWGROUNDS FLASH ADS] :: You may get a \'Security Sandbox Violation\' ... this is normal, do not freak out!'); if (success) { ng_ad.loadMovie(ngads_redirect.toString(), 'GET'); } else {} }; ngads_redirect.load(ngad_url); } if (NewgroundsAPI.getAdURL()) { startAd(NewgroundsAPI.getAdURL()); } NewgroundsAPI.onAdsApproved = function (ad_url) { startAd(ad_url); }; stop(); } } frame 3 { stop(); } frame 3 { _quality = 'HIGH'; } movieClip 103 { } movieClip 119 { } movieClip 126 { frame 40 { stop(); } } movieClip 128 { } movieClip 130 { } button 132 { on (release) { fade.play(); _global.dir = 'play'; } } button 133 { on (release) { fade.play(); _global.dir = 'gallery'; } } button 134 { on (release) { fade.play(); _global.dir = 'credits'; } } button 135 { on (release) { getURL('http://kupo707.deviantart.com', '_blank'); } } movieClip 141 { } movieClip 147 { } movieClip 148 { frame 1 { function unlockMedal(m_name) { clearInterval(pop_delay); var v1 = com.Newgrounds.NewgroundsAPI.getMedals(); var v2 = null; for (i in v1) { if (v1[i].medal_name == m_name) { v2 = v1[i]; medal_name = v2.medal_name; medal_value = v2.medal_value + 'pts'; com.Newgrounds.NewgroundsAPI.unlockMedal(medal_name); pop_delay = setInterval(endDelay, 3000); _visible = true; gotoAndPlay(2); break; } } } function endDelay(params) { gotoAndPlay(10); clearInterval(pop_delay); } var pop_delay; var medal_name = '?????'; var medal_value = '???'; _visible = false; } frame 10 { var myBitmapData = flash.display.BitmapData.loadBitmap(medal_name + '.gif'); medal_icon.attachBitmap(myBitmapData, 111); stop(); } } frame 4 { if (!_root.medalCount[12]) { _root.medal_popup.unlockMedal('Credits Guy'); _root.medalCount[12] = 1; trace(_root.medalCount); } } button 153 { on (release) { getURL('http://kupo707.deviantart.com', '_blank'); } } button 155 { on (release) { fade.play(); _global.dir = 'main'; } } movieClip 158 { } movieClip 162 { } movieClip 172 { } movieClip 173 { } movieClip 184 { frame 1 { gotoAndStop(random(10) + 2); } } movieClip 186 { } movieClip 187 { } movieClip 188 { } movieClip 191 { } movieClip 193 { } movieClip 197 { } movieClip 199 { } movieClip 202 { } movieClip 204 { } movieClip 207 { } button 209 { on (release) { _parent.nextFrame(); } } button 210 { on (release) { _parent.prevFrame(); } } movieClip 211 { } movieClip 220 { } movieClip 229 { } movieClip 231 { } movieClip 237 { } movieClip 238 { } movieClip 242 { } movieClip 244 { } movieClip 246 { } movieClip 249 { } movieClip 253 { } movieClip 255 { } button 256 { on (press) { gotoAndPlay(2); } } movieClip 257 { frame 1 { stop(); } frame 17 { _root.boobCount += 1; if (_root.boobCount == 10) { if (!_root.medalCount[13]) { _root.medal_popup.unlockMedal('Pervert'); _root.medalCount[13] = 1; trace(_root.medalCount); } } } } movieClip 260 { } movieClip 265 { } movieClip 268 { } movieClip 272 { } movieClip 275 { } movieClip 276 { } movieClip 284 { } movieClip 291 { } movieClip 302 { } movieClip 316 { } movieClip 318 { } movieClip 320 { } movieClip 323 { } movieClip 324 { } movieClip 325 { } movieClip 330 { } movieClip 332 { } movieClip 336 { } movieClip 339 { } movieClip 346 { } movieClip 356 { } movieClip 358 { } movieClip 364 { } movieClip 365 { } movieClip 371 { } movieClip 377 { } movieClip 379 { } movieClip 381 { } movieClip 384 { } movieClip 386 { } movieClip 387 { } movieClip 392 { } movieClip 394 { } movieClip 396 { } movieClip 399 { } movieClip 401 { } movieClip 403 { } movieClip 404 { } movieClip 412 { } movieClip 414 { } movieClip 416 { } movieClip 418 { } movieClip 420 { } movieClip 422 { } movieClip 424 { } movieClip 426 { } movieClip 428 { } movieClip 430 { } movieClip 467 { } movieClip 492 { } movieClip 495 { } movieClip 497 { } movieClip 501 { } movieClip 503 { } movieClip 506 { } movieClip 508 { } movieClip 510 { } movieClip 512 { } movieClip 514 { } movieClip 516 { } movieClip 518 { } movieClip 520 { } movieClip 522 { } movieClip 524 { } movieClip 527 { } movieClip 529 { } movieClip 534 { } movieClip 536 { } movieClip 540 { } movieClip 550 { } movieClip 580 { } movieClip 583 { } movieClip 593 { } movieClip 596 { } movieClip 598 { } movieClip 600 { } movieClip 602 { } movieClip 604 { } movieClip 606 { } movieClip 609 { } movieClip 611 { } movieClip 613 { } movieClip 616 { } movieClip 620 { } movieClip 622 { } movieClip 624 { } movieClip 626 { } movieClip 627 { } movieClip 659 { frame 1 { stop(); } frame 34 { if (!_root.medalCount[11]) { _root.medal_popup.unlockMedal('Art Guy'); _root.medalCount[11] = 1; trace(_root.medalCount); } } } frame 6 { stop(); } button 665 { on (release) { fade.play(); _global.dir = 'main'; } } button 666 { on (release) { fade.play(); _global.dir = 'forward'; } } frame 7 { _global.money = 14000; itemz1 = 0; itemz2 = 0; itemz3 = 0; itemz4 = 0; itemz5 = 0; itemz6 = 0; itemz7 = 0; itemz8 = 0; itemz9 = 0; } frame 7 { stop(); } button 670 { on (release) { fade.play(); _global.dir = 'back'; } } button 671 { on (release) { _global.dif = 0.8; joo.gotoAndStop(2); } } button 672 { on (release) { _global.dif = 1.2; joo.gotoAndStop(3); } } button 673 { on (release) { _global.dif = 1.4; joo.gotoAndStop(4); } } movieClip 674 { frame 1 { stop(); if (_global.dif == 1.4) { gotoAndStop(4); } if (_global.dif == 0.8) { gotoAndStop(2); } if (_global.dif == 1.2) { gotoAndStop(3); } } } button 675 { on (release) { _global.dif = 1; joo.gotoAndStop(1); } } frame 8 { stop(); } frame 8 { stop(); } movieClip 680 { } button 681 { on (release) { if (_global.money >= 150) { _global.money -= 150; itemz1 += 1; } } } button 682 { on (release) { if (itemz1 >= 1) { _global.money += 150; itemz1 -= 1; } } } button 683 { on (release) { if (_global.money >= 350) { _global.money -= 350; itemz2 += 1; } } } button 684 { on (release) { if (itemz2 >= 1) { _global.money += 350; itemz2 -= 1; } } } button 685 { on (release) { if (_global.money >= 1000) { _global.money -= 1000; itemz3 += 1; } } } button 686 { on (release) { if (itemz3 >= 1) { _global.money += 1000; itemz3 -= 1; } } } button 687 { on (release) { if (_global.money >= 2200) { _global.money -= 2200; itemz4 += 1; } } } button 688 { on (release) { if (itemz4 >= 1) { _global.money += 2200; itemz4 -= 1; } } } button 689 { on (release) { if (_global.money >= 50) { _global.money -= 50; itemz5 += 1; } } } button 690 { on (release) { if (itemz5 >= 1) { _global.money += 50; itemz5 -= 1; } } } button 691 { on (release) { if (_global.money >= 1000) { _global.money -= 1000; itemz8 += 1; } } } button 692 { on (release) { if (itemz8 >= 1) { _global.money += 1000; itemz8 -= 1; } } } button 693 { on (release) { if (_global.money >= 300) { _global.money -= 300; itemz7 += 1; } } } button 694 { on (release) { if (itemz7 >= 1) { _global.money += 300; itemz7 -= 1; } } } button 695 { on (release) { if (_global.money >= 300) { _global.money -= 300; itemz6 += 1; } } } button 696 { on (release) { if (itemz6 >= 1) { _global.money += 300; itemz6 -= 1; } } } movieClip 704 { } movieClip 709 { } button 712 { on (release) { if (_global.money >= 600) { _global.money -= 600; itemz9 += 1; } } } button 713 { on (release) { if (itemz9 >= 1) { _global.money += 600; itemz9 -= 1; } } } movieClip 727 { } frame 9 { stop(); } frame 10 { function nextBG() { stop(); menu.stop(); pause = function () { clearInterval(pause1); play(); menu.play(); }; pause1 = setInterval(pause, 1500); BG.play(); if (live[1]) { P1.gotoAndPlay('run'); } if (live[2]) { P2.gotoAndPlay('run'); } } _global.help = 1; } frame 10 { stopAllSounds(); } frame 10 { Playin = true; } frame 11 { function hideButtons() { B1._visible = false; B2._visible = false; B3._visible = false; BP1._visible = false; BP2._visible = false; } function showButtons() { if (live[3] == 1) { B1._visible = true; } if (live[4] == 1) { B2._visible = true; } if (live[5] == 1) { B3._visible = true; } } function showButtons2() { if (live[1] == 1 or _global.magic == 'water') { BP1._visible = true; } if (live[2] == 1 or _global.magic == 'water') { BP2._visible = true; } } function randam() { return Math.round(_global.damage * (1 + Math.random() / 10)); } function damageNo() { trace('damage: ' + damage); _root.dam.duplicateMovieClip('bob' + b, b); ++b; bb = 'bob' + (b - 1); tellTarget (''_root.' + bb') { _x = 0; _y = 0; damage = _root.P1.damage; } } function hurt() { p = 0; if ((_global.T == 'P1' or _global.T == 'Pall') and live[1] == 1) { P1.damage = randam(); tellTarget ('/P1') { gotoAndPlay('hit'); } } if ((_global.T == 'P2' or _global.T == 'Pall') and live[2] == 1) { P2.damage = randam(); tellTarget ('/P2') { gotoAndPlay('hit'); } } if ((_global.T == 'T1' or _global.T == 'Tall') and live[3] == 1) { T1.damage = randam(); tellTarget ('/T1') { gotoAndPlay('hit'); } } if ((_global.T == 'T2' or _global.T == 'Tall') and live[4] == 1) { T2.damage = randam(); tellTarget ('/T2') { gotoAndPlay('hit'); } } if ((_global.T == 'T3' or _global.T == 'Tall') and live[5] == 1) { T3.damage = randam(); tellTarget ('/T3') { gotoAndPlay('hit'); } } } function t1() { _global.timer += 1; trace('Up to: ' + _global.timer); } function t2() { _global.timer -= 1; trace('Down to: ' + _global.timer); if (_global.timer == 0) { _root.menu.play(); } if (_global.timer < 0) { trace('OVERFLOW'); _global.timer = 0; } } function cheer() { if (_global.user == 'P1') { tellTarget ('/P1') { gotoAndPlay('cheer'); } } if (_global.user == 'P2') { tellTarget ('/P2') { gotoAndPlay('cheer'); } } } function ranplay() { if (live[1] == 0 and live[2] == 0) { return 0; } if (live[1] == 0) { _global.T = 'P2'; } else { if (live[2] == 0) { _global.T = 'P1'; } else { t = random(2); if (t == 0) { _global.T = 'P1'; } if (t == 1) { _global.T = 'P2'; } } } } function randomT() { while (!false) { u = random(3); if (u == 0 and live[3]) { _global.T = 'T1'; break; } if (u == 1 and live[4]) { _global.T = 'T2'; break; } if (u == 2 and live[5]) { _global.T = 'T3'; break; } } } if (itemz9 > 9) { if (!_root.medalCount[15]) { _root.medal_popup.unlockMedal('Terrorist'); _root.medalCount[15] = 1; trace(_root.medalCount); } } DamageCount = 0; live = new Array(); live[1] = 1; live[2] = 1; live[3] = 1; live[4] = 1; live[5] = 0; hideButtons(); _global.txtspeed = 'slow'; _global.sword = 'heaven'; _global.timer = 0; _quality = 'MEDIUM'; _global.damage = 0; _focusrect = false; Stage.showMenu = false; } movieClip 740 { frame 1 { stop(); } frame 34 { stop(); } frame 67 { stop(); } frame 100 { stop(); } frame 133 { stop(); } frame 166 { stop(); } frame 199 { stop(); } frame 232 { stop(); } frame 265 { stop(); } } movieClip 744 { } movieClip 747 { } movieClip 750 { } movieClip 751 { } movieClip 753 { } movieClip 755 { } movieClip 761 { } movieClip 763 { } movieClip 765 { } movieClip 769 { } movieClip 771 { } movieClip 772 { frame 1 { gotoAndStop(_global.sword); } } movieClip 773 { } movieClip 777 { } movieClip 779 { } movieClip 781 { } movieClip 783 { } movieClip 785 { } movieClip 786 { frame 1 { function symbols() { a1._visible = false; b1._visible = false; c1._visible = false; d1._visible = false; po._visible = false; se._visible = false; if (_global.P1atk > 1) { a1._visible = true; a1._alpha = (_global.P1atk - 1) * 300; } if (_global.P1def > 1) { b1._visible = true; b1._alpha = (_global.P1def - 1) * 300; } if (_global.P1matk > 1) { c1._visible = true; c1._alpha = (_global.P1matk - 1) * 300; } if (_global.P1mdef > 1) { d1._visible = true; d1._alpha = (_global.P1mdef - 1) * 300; } if (_global.P1poison > 0) { po._visible = true; } if (_global.P1seal > 0) { se._visible = true; } } symbols(); } frame 29 { symbols(); } } movieClip 796 { frame 1 { gotoAndStop(random(9) + 2); } } movieClip 809 { frame 1 { gotoAndStop(random(20) + 2); } } movieClip 824 { } movieClip 825 { frame 1 { gotoAndStop(random(25) + 1); } } movieClip 841 { frame 1 { gotoAndStop(random(15) + 1); } } movieClip 842 { } movieClip 843 { frame 17 { stop(); } } movieClip 845 { frame 1 { gotoAndStop(_global.magic); } } movieClip 846 { frame 24 { stop(); } } movieClip 847 { } movieClip 857 { frame 1 { gotoAndStop(random(6) + 1); } } movieClip 859 { } movieClip 860 { } movieClip 862 { } movieClip 863 { } movieClip 872 { frame 1 { gotoAndStop(_global.magic); } } movieClip 878 { } movieClip 880 { } movieClip 882 { } movieClip 883 { } movieClip 889 { } movieClip 896 { } movieClip 921 { } movieClip 927 { frame 1 { function k() { gotoAndPlay('stand'); q = 0; } function run(X, Y) { this._x += X; this._y += Y; } function damageNo() { _root.dam.duplicateMovieClip('bob' + b, b); (eval('_root.bob' + b))._x = _x - 320 + random(50); (eval('_root.bob' + b))._y = _y + random(50); (eval('_root.bob' + b)).damage = damage; b += 2; } function heal() { _root.heal.duplicateMovieClip('bob' + b, b); (eval('_root.bob' + b))._x = _x - 200; (eval('_root.bob' + b))._y = _y + 100; (eval('_root.bob' + b)).cure = cure; b += 2; } function getXY() { X = (_root.X() - _root.coords[0] - 160) / 12; Y = -(_root.coords[1] - _root.Y()) / 12; } q = 0; b = 1; } frame 9 { _root.t1(); } frame 36 { if (_global.command == 'windslash') { _root.t2(); } if (_global.sword == 'blood' and _global.command == 'windslash') { gotoAndPlay('heal'); _global.cure = _global.damage / 2; _global.magic = 'pot'; } if (_global.sword == 'devil' and _global.command == 'windslash') { _global.magic = 'ether'; gotoAndPlay('heal'); _global.cure = Math.round(_global.damage / 15); } } frame 37 { _root.t2(); } frame 39 { stop(); } frame 44 { k(); } frame 45 { if (_global.def1 == 1) { damage = Math.round(damage / 2); } if (_global.def1 == 1 and _global.atype == 'p') { damage = Math.round(damage / 4); } if (_global.atype == 'p') { damage = Math.round(damage / _global.P1def / _global.P1def2); } else { damage = Math.round(damage / _global.P1mdef / _global.P1mdef2); } if (q == 0) { _root.t1(); q = 1; } damageNo(); _global.P1HP -= damage; if (damage > 9999) { if (!_root.medalCount[18]) { _root.medal_popup.unlockMedal('Owned'); _root.medalCount[18] = 1; trace(_root.medalCount); } } _root.DamageCount += damage; if (_root.DamageCount > 200000) { if (!_root.medalCount[17]) { _root.medal_popup.unlockMedal('Punching Bag'); _root.medalCount[17] = 1; trace(_root.medalCount); } } if (_global.P1HP <= 0) { _global.P1HP = 0; gotoAndPlay('die'); } else { if (_global.def1 == 1) { gotoAndPlay('defhit'); } else { if (damage > 4000) { gotoAndPlay('hit2'); } } } } frame 47 { clearInterval(pause1); } frame 74 { k(); _root.t2(); } frame 133 { k(); _root.t2(); } frame 134 { _root.t1(); } frame 152 { _global.def1 = 1; } frame 177 { k(); _root.t2(); } frame 183 { _root.itemGet(); } frame 221 { _root.go = 1; } frame 222 { k(); } frame 223 { cure = Math.round(_global.cure * (1 + Math.random(1) / 20)); if (_global.magic != 'ant' and _global.magic != 'ether' and _global.magic != 'maxether' and _global.magic != 'atkpot' and _global.magic != 'magpot') { _global.P1HP += cure; if (_global.P1HP > _global.P1HPmax) { _global.P1HP = _global.P1HPmax; } } else { if (_global.magic != 'ant' and _global.magic != 'atkpot' and _global.magic != 'magpot') { _global.P1MP += _global.cure; if (_global.P1MP > _global.P1MPmax) { _global.P1MP = _global.P1MPmax; } } } } frame 224 { if (_global.magic != 'ant' and _global.magic != 'atkpot' and _global.magic != 'magpot') { heal(); } _root.t1(); } frame 255 { k(); if (_global.command == 'windslash' or _global.command == 'attack' or _global.command == 'legend' or _global.command == 'drain') { _root.t2(); } _root.t2(); } frame 256 { _root.t1(); } frame 302 { if (_global.magic == 'mog') { _root.summons.gotoAndPlay(_global.magic); } else { _root.spells.gotoAndPlay(_global.magic); } } frame 323 { k(); } frame 324 { _root.live[1] = 0; } frame 362 { stop(); _root.t2(); } frame 363 { _root.t1(); _root.live[1] = 1; } frame 364 { if (_global.magic == 'revive') { cure = Math.round(5700 * (1 + Math.random(1) / 10) * _global.P2matk); } else { cure = Math.round(3000 * (1 + Math.random(1) / 10)); } _global.P1HP += cure; if (_global.P1HP > _global.P1HPmax) { _global.P1HP = _global.P1HPmax; } heal(); } frame 371 { _global.P1seal = 0; _global.P1poison = 0; } frame 403 { k(); _root.t2(); } frame 405 { getXY(); _root.t1(); } frame 408 { _global.damage = _global.P1atk * 5800 * _global.P1atk2; _global.atype = 'p'; } frame 415 { run(X, Y); } frame 416 { run(X, Y); } frame 417 { run(X, Y); } frame 417 { if (_global.sword == 'inferno') { _global.magic = 'erupt'; } if (_global.sword == 'heaven') { _global.magic = 'seiken'; } } frame 418 { run(X, Y); } frame 419 { run(X, Y); } frame 420 { run(X, Y); } frame 421 { run(X, Y); } frame 422 { run(X, Y); } frame 423 { run(X, Y); } frame 424 { run(X, Y); } frame 425 { run(X, Y); } frame 426 { run(X, Y); } frame 427 { _root.hurt(); } frame 429 { X = -X; Y = -Y; } frame 431 { run(X, Y); } frame 432 { run(X, Y); } frame 433 { run(X, Y); } frame 434 { run(X, Y); } frame 435 { run(X, Y); } frame 436 { run(X, Y); } frame 437 { run(X, Y); } frame 438 { run(X, Y); } frame 439 { run(X, Y); } frame 440 { run(X, Y); } frame 441 { run(X, Y); } frame 442 { run(X, Y); } frame 447 { if (_global.sword == 'blood') { _global.magic = 'pot'; gotoAndPlay('heal'); _global.cure = _global.damage / 2; } else { if (_global.sword == 'devil') { _global.magic = 'ether'; gotoAndPlay('heal'); _global.cure = Math.round(_global.damage / 10); } else { k(); _root.t2(); } } } frame 448 { _root.t1(); } frame 496 { _root.items.gotoAndPlay(_global.magic); } frame 499 { k(); } frame 501 { X = random(200) + 70; X /= 12; _root.t1(); } frame 511 { run(X); } frame 512 { run(X); } frame 513 { run(X); } frame 514 { run(X); } frame 515 { run(X); } frame 516 { run(X); } frame 517 { run(X); } frame 518 { run(X); } frame 519 { run(X); } frame 520 { run(X); } frame 521 { run(X); } frame 522 { run(X); } frame 525 { X = -X; } frame 527 { run(X); } frame 528 { run(X); } frame 529 { run(X); } frame 530 { run(X); } frame 531 { run(X); } frame 532 { run(X); } frame 533 { run(X); } frame 534 { run(X); } frame 535 { run(X); } frame 536 { run(X); } frame 537 { run(X); } frame 538 { run(X); } frame 543 { k(); _root.t2(); } frame 544 { _root.t1(); } frame 571 { _global.atype = 'p'; _root.shake('small'); } frame 581 { _root.spells.gotoAndPlay(_global.magic); } frame 598 { k(); } frame 599 { _root.t1(); _global.P1MP -= 33; } frame 615 { if (_global.sword == 'inferno') { _global.magic = 'erupt'; } if (_global.sword == 'heaven') { _global.magic = 'seiken'; } } frame 616 { _global.damage = _global.P1atk * 3000 * _global.P1atk2; _global.atype = 'p'; _global.T = 'Tall'; _root.hurt(); } frame 632 { _global.command = 'windslash'; } frame 633 { gotoAndPlay('intro'); } frame 634 { _root.t1(); } frame 647 { _global.sword = _global.magic; } frame 665 { if (_global.sword == 'heaven') { _global.Text = 2; } else { if (_global.sword == 'devil') { _global.Text = 3; } else { if (_global.sword == 'stone') { _global.Text = 5; } else { if (_global.sword == 'blood') { _global.Text = 4; } else { if (_global.sword == 'inferno') { _global.Text = 6; } else { if (_global.sword == 'soul') { _global.Text = 8; } else { if (_global.sword == 'cross') { _global.Text = 7; } } } } } } } _root.maintext.play(); } frame 672 { k(); _root.t2(); } frame 673 { getXY(); _root.t1(); _global.P1MP -= 22; } frame 682 { X = random(150) + 120; X /= 12; } frame 687 { run(X, Y); } frame 688 { run(X, Y); } frame 689 { run(X, Y); } frame 690 { run(X, Y); } frame 691 { run(X, Y); } frame 692 { run(X, Y); } frame 693 { run(X, Y); } frame 694 { run(X, Y); } frame 695 { run(X, Y); } frame 696 { run(X, Y); } frame 697 { run(X, Y); } frame 698 { run(X, Y); } frame 699 { if (_global.sword == 'inferno') { _global.magic = 'erupt'; } if (_global.sword == 'heaven') { _global.magic = 'seiken'; } } frame 700 { _global.damage = _global.P1atk * 4200 * _global.P1atk2; _global.atype = 'p'; if (_global.sword == 'blood') { _global.damage *= 1.6; } _root.hurt(); } frame 701 { _global.magic = 'nil'; } frame 701 { X = -X; Y = -Y; } frame 703 { run(X, Y); } frame 704 { run(X, Y); } frame 705 { run(X, Y); } frame 706 { run(X, Y); } frame 707 { run(X, Y); } frame 708 { run(X, Y); } frame 709 { run(X, Y); } frame 710 { run(X, Y); } frame 711 { run(X, Y); } frame 712 { run(X, Y); } frame 713 { run(X, Y); } frame 714 { run(X, Y); } frame 715 { _global.cure = _global.damage / 2; } frame 720 { gotoAndPlay('heal'); } frame 748 { k(); _root.t2(); } frame 765 { stop(); } frame 767 { _global.P1MP -= 99; } frame 768 { getXY(); _root.t1(); } frame 775 { if (_global.sword == 'inferno') { _global.magic = 'erupt'; } if (_global.sword == 'heaven') { _global.magic = 'seiken'; } } frame 778 { run(X, Y); } frame 779 { run(X, Y); } frame 780 { run(X, Y); } frame 781 { run(X, Y); } frame 782 { run(X, Y); } frame 783 { run(X, Y); } frame 784 { run(X, Y); } frame 785 { run(X, Y); } frame 786 { run(X, Y); } frame 787 { run(X, Y); } frame 788 { run(X, Y); } frame 789 { run(X, Y); } frame 790 { _global.damage = _global.P1atk * 1000 * _global.P1atk2; _global.atype = 'p'; _root.hurt(); } frame 794 { _global.damage = _global.P1atk * 1000 * _global.P1atk2; _global.atype = 'p'; _root.hurt(); } frame 802 { _global.damage = _global.P1atk * 800 * _global.P1atk2; _global.atype = 'p'; _root.hurt(); } frame 809 { _global.damage = _global.P1atk * 800 * _global.P1atk2; _global.atype = 'p'; _root.hurt(); } frame 817 { _global.damage = _global.P1atk * 800 * _global.P1atk2; _global.atype = 'p'; _root.hurt(); } frame 827 { _global.damage = _global.P1atk * 1000 * _global.P1atk2; _global.atype = 'p'; _root.hurt(); } frame 835 { _global.damage = _global.P1atk * 1000 * _global.P1atk2; _global.atype = 'p'; _root.hurt(); } frame 851 { _global.damage = _global.P1atk * 4000 * _global.P1atk2; _global.atype = 'p'; if (_global.sword == 'heaven') { _global.damage *= 1.2; } _root.hurt(); } frame 860 { X = -X; Y = -Y; } frame 861 { run(X, Y); } frame 862 { run(X, Y); } frame 863 { run(X, Y); } frame 864 { run(X, Y); } frame 865 { run(X, Y); } frame 866 { run(X, Y); } frame 867 { run(X, Y); } frame 868 { run(X, Y); } frame 869 { run(X, Y); } frame 870 { run(X, Y); } frame 871 { run(X, Y); } frame 872 { run(X, Y); } frame 877 { if (_global.sword == 'blood') { gotoAndPlay('heal'); _global.cure = _global.damage * 0.6; _global.magic = 'pot'; _root.t1(); } else { if (_global.sword == 'devil') { _global.magic = 'ether'; gotoAndPlay('heal'); _global.cure = Math.round(_global.damage / 15); _root.t1(); } else { k(); } } _root.t2(); } frame 893 { _global.P1poison = 0; } frame 912 { k(); } frame 913 { _root.t1(); } frame 951 { _root.spells.gotoAndPlay(_global.magic); } frame 964 { k(); } } movieClip 929 { } movieClip 930 { } movieClip 931 { frame 1 { function symbols() { a1._visible = false; b1._visible = false; c1._visible = false; d1._visible = false; po._visible = false; se._visible = false; if (_global.P2atk > 1) { a1._visible = true; a1._alpha = (_global.P2atk - 1) * 300; } if (_global.P2def > 1) { b1._visible = true; b1._alpha = (_global.P2def - 1) * 300; } if (_global.P2matk > 1) { c1._visible = true; c1._alpha = (_global.P2matk - 1) * 300; } if (_global.P2mdef > 1) { d1._visible = true; d1._alpha = (_global.P2mdef - 1) * 300; } if (_global.P2poison > 0) { po._visible = true; } if (_global.P2seal > 0) { se._visible = true; } } symbols(); } frame 28 { symbols(); } } movieClip 942 { frame 1 { gotoAndStop(random(10) + 1); } } movieClip 951 { frame 1 { gotoAndStop(random(20) + 2); } } movieClip 953 { } movieClip 954 { frame 28 { stop(); } } movieClip 957 { frame 1 { gotoAndStop(random(5) + 1); } } movieClip 963 { frame 1 { gotoAndStop(random(15) + 2); } } movieClip 965 { } movieClip 970 { frame 1 { gotoAndStop(_global.magic); } } movieClip 971 { frame 36 { stop(); } } movieClip 973 { } movieClip 978 { frame 1 { gotoAndStop(random(5) + 2); } } movieClip 981 { } movieClip 983 { } movieClip 984 { } movieClip 985 { frame 1 { hitt = 0; } frame 2 { function k() { gotoAndPlay('stand'); q = 0; } function run(X, Y) { this._x += X; this._y += Y; } function getXY() { X = (_root.X() - _root.coords[2] - 120) / 12; Y = -(_root.coords[3] - _root.Y()) / 12; } function damageNo() { _root.dam.duplicateMovieClip('bo' + b, b); (eval('_root.bo' + b))._x = _x - 260 + random(50); (eval('_root.bo' + b))._y = _y + random(50); (eval('_root.bo' + b)).damage = damage; b += 2; } function heal() { _root.heal.duplicateMovieClip('bo' + b, b); (eval('_root.bo' + b))._x = _x - 200; (eval('_root.bo' + b))._y = _y + 100; (eval('_root.bo' + b)).cure = cure; b += 2; } q = 0; b = 0; } frame 6 { _root.t1(); } frame 31 { _root.t2(); if (hitt) { _root.t2(); } hitt = 1; } frame 33 { stop(); } frame 40 { k(); } frame 41 { if (_global.def2 == 1) { damage = Math.round(damage / 2); } if (_global.atype == 'p') { damage = Math.round(damage / _global.P2def); } else { damage = Math.round(damage / _global.P2mdef); } if (q == 0) { _root.t1(); q = 1; } damageNo(); _global.P2HP -= damage; if (damage > 9999) { if (!_root.medalCount[18]) { _root.medal_popup.unlockMedal('Owned'); _root.medalCount[18] = 1; trace(_root.medalCount); } } _root.DamageCount += damage; if (_root.DamageCount > 200000) { if (!_root.medalCount[17]) { _root.medal_popup.unlockMedal('Punching Bag'); _root.medalCount[17] = 1; trace(_root.medalCount); } } if (_global.P2HP <= 0) { _global.P2HP = 0; gotoAndPlay('die'); } else { if (_global.def2 == 1) { gotoAndPlay('defhit'); } else { if (damage > 3500) { gotoAndPlay('hit2'); } } } } frame 70 { k(); _root.t2(); } frame 72 { _global.magic = 'yes'; } frame 92 { gotoAndPlay('intro'); } frame 93 { _root.t1(); } frame 110 { _global.def2 = 1; } frame 136 { k(); _root.t2(); } frame 140 { if (_root.live[1] == 0) { _root.getItem(); } } frame 174 { if (_root.live[1] == 0) { _root.go = 1; } } frame 175 { k(); } frame 176 { cure = Math.round(_global.cure * (1 + Math.random(1) / 20)); if (_global.magic != 'ant' and _global.magic != 'ether' and _global.magic != 'maxether' and _global.magic != 'atkpot' and _global.magic != 'magpot') { _global.P2HP += cure; if (_global.P2HP > _global.P2HPmax) { _global.P2HP = _global.P2HPmax; } } else { if (_global.magic != 'ant' and _global.magic != 'atkpot' and _global.magic != 'magpot') { _global.P2MP += _global.cure; if (_global.P2MP > _global.P2MPmax) { _global.P2MP = _global.P2MPmax; } } } } frame 177 { if (_global.magic != 'ant' and _global.magic != 'atkpot' and _global.magic != 'magpot') { heal(); } _root.t1(); } frame 178 { if (_global.def2 == 1 and _global.atype == 'm') { _root.t2(); } } frame 208 { k(); _root.t2(); } frame 209 { _root.t1(); } frame 266 { _global.atype = 'm'; _root.spells.gotoAndPlay(_global.magic); } frame 274 { k(); } frame 275 { _root.t1(); } frame 326 { _global.atype = 'm'; _root.spells.gotoAndPlay(_global.magic); } frame 336 { k(); } frame 337 { _root.live[2] = 0; } frame 376 { stop(); _root.t2(); } frame 377 { _root.t1(); _root.live[2] = 1; } frame 378 { cure = Math.round(3000 * (1 + Math.random(1) / 10)); _global.P2HP += cure; if (_global.P2HP > _global.P2HPmax) { _global.P2HP = _global.P2HPmax; } heal(); } frame 394 { _global.P2seal = 0; _global.P2poison = 0; } frame 423 { k(); _root.t2(); } frame 424 { getXY(); _root.t1(); } frame 429 { _global.damage = _global.P2atk * 1200; _global.atype = 'p'; } frame 431 { run(X, Y); } frame 432 { run(X, Y); } frame 433 { run(X, Y); } frame 434 { run(X, Y); } frame 435 { run(X, Y); } frame 436 { run(X, Y); } frame 437 { run(X, Y); } frame 438 { run(X, Y); } frame 439 { run(X, Y); } frame 440 { run(X, Y); } frame 441 { run(X, Y); } frame 442 { _root.hurt(); } frame 442 { run(X, Y); } frame 444 { X = -X; Y = -Y; } frame 447 { run(X, Y); } frame 448 { run(X, Y); } frame 449 { run(X, Y); } frame 450 { run(X, Y); } frame 451 { run(X, Y); } frame 452 { run(X, Y); } frame 453 { run(X, Y); } frame 454 { run(X, Y); } frame 455 { run(X, Y); } frame 456 { run(X, Y); } frame 457 { run(X, Y); } frame 458 { run(X, Y); } frame 466 { k(); _root.t2(); } frame 467 { _root.t1(); } frame 496 { _root.items.gotoAndPlay(_global.magic); } frame 501 { k(); } frame 525 { stop(); _root.summons.gotoAndPlay(_global.magic); } frame 544 { if (_global.atype == 'm') { _global.cure = Math.round(damage / 8); _global.magic = 'ether'; gotoAndPlay('heal'); } } frame 545 { _root.t2(); k(); } frame 546 { _root.t1(); } frame 581 { if (_global.magic != 'cat') { gotoAndPlay('hide'); if (_root.live[1] == 1) { tellTarget ('/P1') { gotoAndPlay('hide'); } } } else { _root.summons.gotoAndPlay(_global.magic); k(); } } frame 597 { _global.P2poison = 0; } frame 615 { k(); } frame 616 { _root.t1(); } frame 637 { _root.spells.gotoAndPlay(_global.magic); } frame 648 { k(); } } movieClip 991 { frame 1 { gotoAndStop(_parent.animal + 1); } } movieClip 998 { frame 1 { gotoAndStop(_parent.animal + 1); } } movieClip 1004 { frame 1 { gotoAndStop(_parent._parent.animal + 1); } } movieClip 1005 { } movieClip 1007 { frame 1 { function symbols() { a1._visible = false; b1._visible = false; c1._visible = false; d1._visible = false; if (_parent.atk2 < 1) { a1._visible = true; a1._alpha = (1 - _parent.atk2) * 300; } if (_parent.def2 < 1) { b1._visible = true; b1._alpha = (1 - _parent.def2) * 300; } if (_parent.matk2 < 1) { c1._visible = true; c1._alpha = (1 - _parent.matk2) * 300; } if (_parent.mdef2 < 1) { d1._visible = true; d1._alpha = (1 - _parent.mdef2) * 300; } } symbols(); } frame 20 { symbols(); } } movieClip 1011 { frame 1 { stop(); } } movieClip 1012 { frame 1 { HP1.gotoAndStop(Math.round((_parent.HP / _parent.HPmax) * 100) + 1); } } movieClip 1019 { frame 3 { function enemystats() { if (def2 < 1) { def2 += 0.05; } if (mdef2 < 1) { mdef2 += 0.05; } if (atk2 < 1) { atk2 += 0.05; } if (matk2 < 1) { matk2 += 0.05; } } function defdown() { def2 -= 0.25; if (def2 < 0.6) { def2 = 0.6; } } function mdefdown() { mdef2 -= 0.25; if (mdef2 < 0.6) { mdef2 = 0.6; } } function atkdown() { atk2 -= 0.25; if (atk2 < 0.6) { atk2 = 0.6; } } function matkdown() { matk2 -= 0.25; if (matk2 < 0.6) { matk2 = 0.6; } } atk2 = 1; def2 = 1; mdef2 = 1; matk2 = 1; } frame 4 { function k() { gotoAndPlay('stand'); q = 0; } function run(X, Y) { this._x += X; this._y += Y; } function damage() { bb = 'bob' + ID; _root.dam.duplicateMovieClip(bb, ID); _root.bb._x = this._x; _root.bb._y = this._y; } function getXY() { X = -(_x - _root.X()) / 12; Y = -(_y + 70 - _root.Y()) / 12; } function damageNo() { _root.dam.duplicateMovieClip('bob' + b, b + ID * 100); (eval('_root.bob' + b))._x = _x - 320 + random(50); (eval('_root.bob' + b))._y = _y + random(50); (eval('_root.bob' + b)).damage = damage; b += 3; } b = ID; q = 0; } frame 10 { HPmax = HP; } frame 42 { stop(); } frame 42 { pie.animal = animal; } frame 44 { k(); } frame 45 { damage(); } frame 45 { if (_global.atype == 'p') { damage = Math.round(damage / def * def2); } else { damage = Math.round(damage / mdef * mdef2); } if (q == 0) { _root.t1(); q = 1; } damageNo(); HP -= damage; if (HP <= 0) { HP = 0; gotoAndPlay('die'); } else { if (damage > 3500) { gotoAndPlay('hit2'); } } } frame 65 { k(); _root.t2(); } frame 66 { damage(); } frame 92 { k(); _root.t2(); } frame 93 { damage(); } frame 93 { _root.live[2 + ID] = 0; } frame 119 { _global.kills += 1; } frame 147 { stop(); _root.t2(); } frame 148 { _root.t1(); } frame 151 { _global.damage = atk * 480; } frame 156 { getXY(); } frame 158 { run(X, Y); } frame 159 { run(X, Y); } frame 160 { run(X, Y); } frame 161 { run(X, Y); } frame 162 { run(X, Y); } frame 163 { run(X, Y); } frame 164 { run(X, Y); } frame 165 { run(X, Y); } frame 166 { run(X, Y); } frame 167 { run(X, Y); } frame 168 { run(X, Y); } frame 169 { run(X, Y); } frame 170 { X = -X * 12; Y = -Y * 12; } frame 170 { _global.atype = 'p'; _root.hurt(); } frame 203 { run(X, Y); } frame 218 { k(); _root.t2(); } frame 219 { _root.t1(); } frame 222 { _global.damage = atk * 520; } frame 223 { getXY(); } frame 229 { run(X, Y); } frame 230 { run(X, Y); } frame 231 { run(X, Y); } frame 232 { run(X, Y); } frame 233 { run(X, Y); } frame 234 { run(X, Y); } frame 235 { run(X, Y); } frame 236 { run(X, Y); } frame 237 { run(X, Y); } frame 238 { run(X, Y); } frame 239 { run(X, Y); } frame 240 { run(X, Y); } frame 241 { X = -X; Y = -Y; } frame 241 { _global.atype = 'p'; _root.hurt(); } frame 250 { run(X, Y); } frame 251 { run(X, Y); } frame 252 { run(X, Y); } frame 253 { run(X, Y); } frame 254 { run(X, Y); } frame 255 { run(X, Y); } frame 256 { run(X, Y); } frame 257 { run(X, Y); } frame 258 { run(X, Y); } frame 259 { run(X, Y); } frame 260 { run(X, Y); } frame 261 { run(X, Y); } frame 280 { k(); _root.t2(); } } movieClip 1021 { } movieClip 1022 { frame 51 { this.removeMovieClip(); } frame 52 { stop(); } } movieClip 1024 { } movieClip 1025 { frame 1 { if (_global.magic == 'ether' or _global.magic == 'maxether') { cure += 'mp'; } } frame 50 { this.removeMovieClip(); } frame 52 { stop(); } } movieClip 1027 { frame 1 { function camControl() { parentColor.setTransform(camColor.getTransform()); var v4 = sX / this._width; var v3 = sY / this._height; _root._x = cX - this._x * v4; _root._y = cY - this._y * v3; _root._xscale = 100 * v4; _root._yscale = 100 * v3; } function resetStage() { var v2 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0}; parentColor.setTransform(v2); _root._xscale = 100; _root._yscale = 100; _root._x = 0; _root._y = 0; } this._visible = false; var oldMode = Stage.scaleMode; Stage.scaleMode = 'exactFit'; var cX = Stage.width / 2; var cY = Stage.height / 2; var sX = Stage.width; var sY = Stage.height; Stage.scaleMode = oldMode; var camColor = new Color(this); var parentColor = new Color(_parent); this.onEnterFrame = camControl; camControl(); this.onUnload = resetStage; } } movieClip 1028 { frame 1 { stop(); } frame 15 { gotoAndStop(1); } frame 41 { gotoAndStop(1); } } movieClip 1030 { frame 7 { stop(); } } button 1032 { on (press) { _global.T = 'T1'; menu.play(); } } button 1033 { on (press) { _global.T = 'T2'; menu.play(); } } button 1034 { on (press) { _global.T = 'T3'; menu.play(); } } button 1035 { on (press) { menu.play(); } } movieClip 1043 { } movieClip 1045 { } movieClip 1060 { } movieClip 1063 { } movieClip 1066 { } movieClip 1068 { } movieClip 1069 { } movieClip 1072 { } movieClip 1073 { frame 17 { stop(); } } movieClip 1077 { } movieClip 1078 { frame 5 { this._x = random(200) + 100; this._y = random(100) + 130; } } movieClip 1081 { } movieClip 1082 { frame 18 { stop(); } } movieClip 1086 { } movieClip 1089 { } movieClip 1093 { } movieClip 1097 { } movieClip 1100 { } movieClip 1115 { frame 1 { gotoAndStop(random(10) + 2); } } movieClip 1118 { } movieClip 1120 { } movieClip 1122 { } movieClip 1124 { } movieClip 1126 { } movieClip 1130 { frame 1 { gotoAndPlay(random(26) + 2); } frame 60 { stop(); } } movieClip 1131 { } movieClip 1135 { } movieClip 1139 { } movieClip 1164 { } movieClip 1166 { } movieClip 1186 { frame 1 { function k() { gotoAndStop('nil'); _global.magic = 'nil'; _root.t2(); } function getXY(type) { if (type == 0) { _x = 0; _y = 0; } else { _x = _root.X() + 80; _y = _root.Y() - 120; } } } frame 1 { function shake(X) { tellTarget ('/shake') { gotoAndPlay(X); } } } frame 3 { stop(); } frame 4 { getXY(1); _global.P2MP -= 30; } frame 11 { _global.atype = 'm'; _global.damage = _global.P2matk * 5500; _root.hurt(); } frame 37 { k(); } frame 38 { getXY(1); _global.P1MP -= 44; } frame 41 { shake('small'); } frame 42 { _global.atype = 'p'; _global.damage = _global.P1atk * 4300 * _global.P1atk2 + _global.P1matk * _global.P1matk2 * 1500; if (_global.sword == 'stone') { _global.damage *= 1.7; } _root.hurt(); } frame 82 { k(); } frame 83 { getXY(1); _global.P2MP -= 25; } frame 94 { _global.cure = 6000 * _global.P2matk; if (_global.T == 'P1') { _root.P1.gotoAndPlay('heal'); } else { _root.P2.gotoAndPlay('heal'); } } frame 105 { k(); } frame 106 { getXY(1); _global.atype = 'm'; } frame 139 { _global.atype = 'm'; _root.hurt(); } frame 142 { if (_global.T == 'P1' and _root.live[1]) { _global.P1poison += 2; _global.Text = 25; _root.maintext.play(); } if (_global.T == 'P2' and _root.live[2]) { _global.P2poison += 2; _global.Text = 25; _root.maintext.play(); } } frame 158 { k(); } frame 159 { getXY(1); _global.atype = 'm'; _global.P2MP -= 30; } frame 178 { _global.damage = _global.P2matk * 5500; _root.hurt(); } frame 205 { k(); } frame 206 { getXY(1); _global.atype = 'm'; _global.P2MP -= 30; } frame 207 { _global.damage = _global.P2matk * 1100; _root.hurt(); } frame 211 { _root.hurt(); } frame 215 { _root.hurt(); } frame 221 { _root.hurt(); } frame 227 { _root.hurt(); } frame 239 { k(); } frame 240 { _x = 600; _y = 200; _global.atype = 'm'; _global.P2MP -= 100; } frame 325 { _global.damage = _global.P2matk * 8200; _global.T = 'Tall'; } frame 328 { _root.hurt(); } frame 328 { shake('small'); } frame 352 { k(); } frame 353 { _global.P2MP -= 75; _x = 300; _y = 130; } frame 413 { _global.cure = 5000 * _global.P2matk; if (_root.live[1] == 1) { _root.P1.gotoAndPlay('heal'); } if (_root.live[2] == 1) { _root.P2.gotoAndPlay('heal'); } } frame 429 { k(); } frame 430 { _global.T = 'P1'; getXY(); _global.P2MP -= 90; } frame 479 { if (_root.live[1] == 0) { _root.P1.gotoAndPlay('revive'); } } frame 491 { k(); } frame 492 { _global.P2MP -= 5; } frame 492 { getXY(1); _global.atype = 'm'; } frame 518 { if (_global.T == 'P1') { _global.P1poison = 0; _global.P1seal = 0; } else { _global.P2poison = 0; _global.P2seal = 0; } } frame 541 { _global.Text = 14; _root.maintext.play(); } frame 544 { k(); } frame 545 { _x = 400; _y = 140; _global.P1MP -= 100; _global.atype = 'm'; } frame 578 { _global.cure = 2500 * _global.P1matk * _global.P1matk2; if (_root.live[1] == 1) { _root.P1.gotoAndPlay('heal'); } if (_root.live[2] == 1) { _root.P2.gotoAndPlay('heal'); } } frame 629 { _global.damage = 4800 * _global.P1matk * _global.P1matk2; _global.T = 'Tall'; _root.hurt(); } frame 638 { k(); } frame 668 { getXY(1); _global.P1MP -= 77; _global.atype = 'p'; } frame 689 { _global.damage = _global.P1atk * 6200 * _global.P1atk2 + _global.P1matk * 2000 * _global.P1matk2; if (_global.sword == 'heaven' or _global.sword == 'cross') { _global.damage *= 1.5; } _root.hurt(); } frame 689 { shake('small'); } frame 722 { k(); } frame 723 { getXY(1); _global.P1MP -= 55; _global.atype = 'p'; } frame 727 { _global.damage = _global.P1atk * 5000 * _global.P1atk2 + _global.P1matk * 2000 * _global.P1matk2; if (_global.sword == 'inferno') { _global.damage *= 1.5; } if (_global.sword == 'stone') { _global.damage *= 1.2; } _root.hurt(); } frame 727 { shake('small'); } frame 765 { k(); } frame 766 { getXY(1); _global.P2MP -= 20; _global.atype = 'm'; } frame 787 { _global.damage = _global.P2matk * (2000 + random(9000)); _root.hurt(); } frame 826 { k(); } frame 827 { getXY(); _global.atype = 'm'; } frame 832 { _root.hurt(); } frame 840 { _root.hurt(); } frame 886 { k(); } frame 887 { _x = 315; _y = 200; _global.P1MP -= 75; _global.atype = 'm'; } frame 921 { _global.damage = 4500 * _global.P1matk * _global.P1matk2; _global.T = 'Tall'; _root.hurt(); } frame 924 { if (_root.live[3] == 1) { tellTarget ('/T1') { mdefdown(); } } if (_root.live[4] == 1) { tellTarget ('/T2') { mdefdown(); } } if (_root.live[5] == 1) { tellTarget ('/T3') { mdefdown(); } } } frame 929 { if (_root.live[3] or _root.live[4] or _root.live[5]) { _global.Text = 13; _root.maintext.play(); } } frame 931 { k(); } frame 932 { _x = 280; _y = 160; _global.damage = 3000; _global.T = 'Pall'; } frame 932 { shake('small'); } frame 938 { _global.atype = 'm'; _root.hurt(); } frame 973 { l = random(3); if (l) { if (_root.live[1]) { _global.P1poison += 1; _global.Text = 25; _root.maintext.play(); } } l = random(3); if (l) { if (_root.live[2]) { _global.P2poison += 1; _global.Text = 25; _root.maintext.play(); } } } frame 982 { k(); } frame 983 { _x = 380; _y = 130; _global.P2MP -= 25; } frame 1013 { _global.P1mdef = 1.65; _global.P2mdef = 1.65; } frame 1036 { _global.Text = 11; _root.maintext.play(); } frame 1043 { k(); } frame 1044 { getXY(); } frame 1045 { _root.hurt(); } frame 1103 { k(); } frame 1104 { b = random(2); if (b != 0) { gotoAndPlay('airstrike2'); } } frame 1104 { getXY(); _global.P1MP -= 50; } frame 1105 { _global.atype = 'm'; } frame 1111 { shake('small'); } frame 1137 { shake('small'); } frame 1138 { _global.damage = 13000; _root.hurt(); } frame 1177 { k(); } frame 1178 { _x = 350; _y = 150; } frame 1210 { shake('small'); } frame 1211 { _global.damage = 1800; _global.atype = 'm'; _global.T = 'Tall'; _root.hurt(); } frame 1214 { _global.damage = 1800; _global.T = 'Tall'; _root.hurt(); } frame 1216 { shake('small'); } frame 1217 { _global.damage = 1800; _global.T = 'Tall'; _root.hurt(); } frame 1252 { k(); } frame 1253 { getXY(); _global.atype = 'm'; _global.P2MP -= 100; } frame 1282 { shake('big'); } frame 1285 { _global.damage = _global.P2matk * 10000; _root.hurt(); } frame 1313 { _global.cure = 4000 * _global.P2matk; _root.P2.gotoAndPlay('heal'); } frame 1318 { } frame 1325 { k(); } frame 1328 { _global.atype = 'm'; getXY(); } frame 1351 { b = random(3); if (b) { _global.damage = random(10) + 2; } else { _global.damage = 66666; } _root.hurt(); } frame 1373 { k(); } frame 1377 { getXY(); _global.atype = 'p'; } frame 1391 { _root.hurt(); } frame 1437 { k(); } frame 1438 { _global.damage = 7500; _global.atype = 'm'; _root.hurt(); getXY(); } frame 1449 { } frame 1454 { k(); } frame 1455 { _x = 380; _y = 200; _global.P1MP -= 25; } frame 1481 { _global.P1def = 1.65; _global.P2def = 1.65; } frame 1494 { _global.Text = 10; _root.maintext.play(); } frame 1502 { k(); } frame 1503 { _x = 350; _y = 150; _global.P1MP -= 15; } frame 1533 { _global.P1atk = 1.5; } frame 1546 { _global.magic = 'atkpot'; _root.P1.gotoAndPlay('heal'); } frame 1563 { _global.Text = 9; _root.maintext.play(); } frame 1566 { k(); } frame 1567 { getXY(); _root.itemz9 -= 1; } frame 1569 { _global.damage = 10500; _global.atype = 'm'; _global.magic = 'airstrike'; _root.hurt(); } frame 1596 { k(); } frame 1597 { _x = 380; _y = 200; } frame 1624 { _global.P1atk = 1; _global.P1matk = 1; _global.P1def = 1; _global.P1mdef = 1; _global.P2atk = 1; _global.P2matk = 1; _global.P2def = 1; _global.P2mdef = 1; } frame 1630 { _global.Text = 31; _root.maintext.play(); } frame 1636 { k(); } } movieClip 1197 { } movieClip 1198 { } movieClip 1205 { } movieClip 1208 { } movieClip 1210 { } movieClip 1212 { } movieClip 1214 { } movieClip 1218 { } movieClip 1220 { } movieClip 1222 { } movieClip 1224 { } movieClip 1228 { } movieClip 1230 { } movieClip 1248 { } movieClip 1250 { } movieClip 1253 { } movieClip 1255 { } movieClip 1256 { } movieClip 1257 { frame 1 { gotoAndStop(_global.guitar); } } movieClip 1259 { } movieClip 1265 { } movieClip 1275 { } movieClip 1283 { } movieClip 1285 { } movieClip 1286 { } movieClip 1291 { } movieClip 1296 { } movieClip 1308 { frame 1 { function k() { gotoAndStop('nil'); tellTarget ('/P2') { gotoAndPlay('intro'); } if (_root.live[1] == 1) { tellTarget ('/P1') { gotoAndPlay('intro'); } } _global.magic = 'yes'; } function shake(X) { tellTarget ('/shake') { gotoAndPlay(X); } } function hideGuys() { _root.P1._visible = false; _root.P2._visible = false; _root.T1._visible = false; _root.T2._visible = false; _root.T3._visible = false; } function showGuys() { _root.P1._visible = true; _root.P2._visible = true; _root.T1._visible = true; _root.T2._visible = true; _root.T3._visible = true; } stop(); } frame 2 { p = random(2); _global.atype = 'm'; _global.magic = 'thunderbolt'; if (p == 0) { gotoAndPlay('pichu2'); } _global.P2MP -= 40; } frame 60 { _global.T = 'Tall'; _global.damage = 3900; _root.hurt(); } frame 69 { k(); } frame 107 { _root.t1(); _root.randomT(); } frame 109 { _root.spells.gotoAndPlay('bolt'); } frame 154 { k(); } frame 155 { _global.P2MP -= 70; _global.atype = 'm'; } frame 333 { shake('small'); } frame 350 { shake('big'); _global.damage = 5000; _global.T = 'Tall'; _root.hurt(); } frame 353 { if (_root.live[3] == 1) { trace('T1 def down'); tellTarget ('/T1') { defdown(); } } if (_root.live[4] == 1) { tellTarget ('/T2') { defdown(); } } if (_root.live[5] == 1) { tellTarget ('/T3') { defdown(); } } } frame 378 { if (_root.live[3] or _root.live[4] or _root.live[5]) { _global.Text = 12; _root.maintext.play(); } } frame 380 { k(); } frame 381 { g = random(4); _global.atype = 'p'; if (g == 0) { _global.guitar = 'razorback'; _global.damage = 24000; } else { _global.guitar = 'gibson'; _global.damage = 14500; } _global.P2MP -= 120; } frame 449 { shake('small'); } frame 458 { shake('small'); } frame 465 { shake('small'); } frame 474 { shake('big'); } frame 480 { shake('small'); } frame 498 { _root.randomT(); _root.hurt(); } frame 530 { k(); } frame 531 { _global.command = 'magic'; if (_global.user == 'P1') { _global.P1MP -= 5; } _global.T = 'P1'; if (_root.live[1] == 0) { _global.T = 'P2'; } else { if (_root.live[2] == 1) { k = random(2); if (k == 0) { _global.T = 'P2'; } } } j = random(15); if (j == 0) { _global.magic = 'maxpot'; } else { if (j == 1) { _global.magic = 'ether'; } else { if (j == 2) { _global.magic = 'ant'; } else { if (j == 3) { _global.magic = 'atkpot'; } else { if (j == 4) { _global.magic = 'magpot'; } else { if (j == 5) { _global.magic = 'ether'; } else { if (j == 6) { _global.magic = 'maxether'; } else { if (j == 7) { _global.magic = 'water'; u = random(2); if (u) { _global.T = 'P1'; } else { _global.T = 'P2'; } } else { _global.magic = 'pot'; } } } } } } } } } frame 583 { _root.t1(); _root.items.gotoAndPlay(_global.magic); } frame 618 { gotoAndStop('nil'); _root.t2(); } frame 622 { hideGuys(); } frame 622 { _global.P2MP -= 300; _global.atype = 'p'; } frame 626 { if (!_root.medalCount[16]) { _root.medal_popup.unlockMedal('Chaos'); _root.medalCount[16] = 1; trace(_root.medalCount); } } frame 752 { shake('small'); } frame 792 { shake('small'); } frame 852 { shake('small'); } frame 996 { showGuys(); } frame 1009 { _global.damage = 5000; _global.T = 'Tall'; _root.hurt(); } frame 1009 { shake('small'); } frame 1019 { _global.damage = 5000; _global.T = 'Tall'; _root.hurt(); } frame 1019 { shake('small'); } frame 1027 { _global.damage = 5000; _global.T = 'Tall'; _root.hurt(); } frame 1027 { shake('small'); } frame 1036 { _global.damage = 8000; _global.T = 'P2'; _root.hurt(); } frame 1036 { shake('small'); } frame 1061 { _global.damage = 25000; _global.T = 'Tall'; _root.hurt(); } frame 1061 { shake('big'); } frame 1166 { gotoAndStop('nil'); _root.t2(); } } movieClip 1358 { frame 1 { gotoAndStop(_global.Text); if (_global.txtspeed == 'off') { _visible = false; } } frame 16 { _root.itemz1 += 1; } frame 17 { _root.itemz2 += 1; } frame 18 { _root.itemz3 += 1; } frame 19 { _root.itemz4 += 1; } frame 20 { _root.itemz5 += 1; } frame 21 { _root.itemz8 += 1; } frame 22 { _root.itemz9 += 1; } frame 23 { _root.itemz6 += 1; } frame 24 { _root.itemz7 += 1; } } movieClip 1359 { frame 1 { stop(); } frame 3 { if (_global.txtspeed == 'off') { gotoAndPlay(90); } else { _root.t1(); } } frame 9 { if (_global.txtspeed == 'fast') { gotoAndPlay(50); } } frame 97 { _root.t2(); } } button 1360 { on (press) { _global.T = 'P1'; menu.play(); } } button 1361 { on (press) { _global.T = 'P2'; menu.play(); } } movieClip 1366 { } movieClip 1367 { } movieClip 1369 { frame 1 { function getXY() { if (_global.T == 'P2') { _x = dx - 110; _y = dy + 40; } else { _x = dx; _y = dy; } } dx = 20; dy = -100; } frame 1 { function k() { gotoAndStop('nil'); _root.t2(); } stop(); } frame 4 { getXY(); } frame 4 { if (_global.command != 'magic') { _root.itemz1 -= 1; } } frame 19 { _global.cure = 5000; if (_global.T == 'P1') { _root.P1.gotoAndPlay('heal'); } else { _root.P2.gotoAndPlay('heal'); } } frame 31 { k(); } frame 32 { getXY(); } frame 32 { if (_global.command != 'magic') { _root.itemz2 -= 1; } } frame 49 { _global.cure = 9999; if (_global.T == 'P1') { _root.P1.gotoAndPlay('heal'); } else { _root.P2.gotoAndPlay('heal'); } } frame 64 { k(); } frame 65 { getXY(); } frame 65 { if (_global.command != 'magic') { _root.itemz3 -= 1; } } frame 79 { _global.cure = 500; if (_global.T == 'P1') { _root.P1.gotoAndPlay('heal'); } else { _root.P2.gotoAndPlay('heal'); } } frame 88 { k(); } frame 89 { getXY(); } frame 89 { if (_global.command != 'magic') { _root.itemz4 -= 1; } } frame 111 { _global.cure = 999; if (_global.T == 'P1') { _root.P1.gotoAndPlay('heal'); } else { _root.P2.gotoAndPlay('heal'); } } frame 124 { k(); } frame 125 { getXY(); if (_global.command != 'magic') { _root.itemz5 -= 1; } } frame 133 { if (_global.T == 'P1') { _global.P1poison = 0; _global.P1seal = 0; } else { _global.P2poison = 0; _global.P2seal = 0; } if (_global.T == 'P1') { _root.P1.gotoAndPlay('heal'); } else { _root.P2.gotoAndPlay('heal'); } } frame 146 { _global.Text = 14; _root.maintext.play(); } frame 148 { k(); } frame 150 { getXY(); if (_global.command != 'magic') { _root.itemz6 -= 1; } } frame 159 { if (_global.T == 'P1') { _global.P1atk = 1.5; } else { _global.P2atk = 2; } } frame 164 { if (_global.T == 'P1') { _root.P1.gotoAndPlay('heal'); } else { _root.P2.gotoAndPlay('heal'); } } frame 169 { _global.Text = 9; _root.maintext.play(); } frame 170 { k(); } frame 171 { getXY(); if (_global.command != 'magic') { _root.itemz7 -= 1; } } frame 177 { if (_global.T == 'P1') { _global.P1matk = 1.5; } else { _global.P2matk = 1.6; } } frame 186 { if (_global.T == 'P1') { _root.P1.gotoAndPlay('heal'); } else { _root.P2.gotoAndPlay('heal'); } } frame 190 { _global.Text = 15; _root.maintext.play(); } frame 191 { k(); } frame 192 { getXY(); if (_global.command != 'magic') { _root.itemz8 -= 1; } } frame 213 { if (_global.T == 'P1') { if (_root.live[1] == 0) { _root.P1.gotoAndPlay('revive'); } else { _global.cure = 10000; _root.P1.gotoAndPlay('heal'); } } if (_global.T == 'P2') { if (_root.live[2] == 0) { _root.P2.gotoAndPlay('revive'); } else { _global.cure = 10000; _root.P2.gotoAndPlay('heal'); } } } frame 223 { k(); } frame 224 { _root.itemz9 -= 1; } frame 253 { k(); } } movieClip 1389 { frame 1 { if (_root.live[3] == 0 and _root.live[4] == 0 and _root.live[5] == 0 and _global.timer == 0 and _root.go) { _root.play(); _root.menu.gotoAndPlay(1); _root.go = 0; } HP1.gotoAndStop(Math.round((_global.P1HP / _global.P1HPmax) * 100) + 1); MP1.gotoAndStop(Math.round((_global.P1MP / _global.P1MPmax) * 100) + 1); HP2.gotoAndStop(Math.round((_global.P2HP / _global.P2HPmax) * 100) + 1); MP2.gotoAndStop(Math.round((_global.P2MP / _global.P2MPmax) * 100) + 1); } } movieClip 1395 { } button 1396 { on (release) { _global.help = 0; } } button 1397 { on (release) { _global.txtspeed = 'fast'; } } button 1398 { on (release) { _quality = 'LOW'; } } button 1399 { on (release) { _quality = 'MEDIUM'; } } button 1400 { on (release) { _quality = 'HIGH'; } } button 1401 { on (release) { play(); } } button 1402 { on (release) { _global.txtspeed = 'slow'; } } button 1403 { on (release) { _global.help = 1; } } movieClip 1406 { } movieClip 1433 { frame 1 { gotoAndStop(random(25) + 2); } } movieClip 1434 { frame 1 { stop(); } frame 9 { stop(); } } movieClip 1436 { frame 1 { stop(); } frame 26 { gotoAndPlay(2); } } movieClip 1438 { frame 1 { stop(); } frame 12 { stop(); } } button 1440 { on (release) { gotoAndStop('special'); } } button 1441 { on (release) { gotoAndStop('bushido'); } } button 1442 { on (release) { gotoAndStop('sword'); } } button 1443 { on (release) { gotoAndStop('item'); } } button 1444 { on (release) { _global.command = 'defend'; tellTarget ('/menu') { gotoAndPlay('P11'); } } } button 1445 { on (release) { _global.command = 'attack'; tellTarget ('/menu') { play(); } } } movieClip 1458 { frame 1 { stop(); } } button 1459 { on (rollOver) { if (_global.help) { help.gotoAndStop(3); } } on (release) { _global.command = 'windslash'; tellTarget ('/menu') { gotoAndPlay('P11'); } } } button 1460 { on (rollOver) { if (_global.help) { help.gotoAndStop(2); } } on (release) { _global.command = 'drain'; tellTarget ('/menu') { play(); } } } button 1461 { on (rollOver) { if (_global.help) { help.gotoAndStop(4); } } on (release) { _global.command = 'quake'; _global.magic = 'quake'; tellTarget ('/menu') { play(); } } } button 1462 { on (rollOver) { if (_global.help) { help.gotoAndStop(5); } } on (release) { _global.command = 'quake'; _global.magic = 'erupt'; tellTarget ('/menu') { play(); } } } button 1463 { on (rollOver) { if (_global.help) { help.gotoAndStop(6); } } on (release) { _global.command = 'magic'; _global.magic = 'seiken'; tellTarget ('/menu') { play(); } } } button 1464 { on (rollOver) { if (_global.help) { help.gotoAndStop(7); } } on (release) { _global.command = 'legend'; tellTarget ('/menu') { play(); } } } movieClip 1480 { frame 1 { if (_global.P1seal > 0) { gotoAndStop(7); } else { if (_global.P1MP >= 99) { stop(); } else { if (_global.P1MP >= 77) { gotoAndStop(2); } else { if (_global.P1MP >= 55) { gotoAndStop(3); } else { if (_global.P1MP >= 44) { gotoAndStop(4); } else { if (_global.P1MP >= 33) { gotoAndStop(5); } else { if (_global.P1MP >= 22) { gotoAndStop(6); } else { gotoAndStop(7); } } } } } } } if (!_global.help) { help.gotoAndStop(9); } } } movieClip 1481 { frame 10 { stop(); } } movieClip 1492 { frame 1 { stop(); } } button 1493 { on (rollOver) { if (_global.help) { help.gotoAndStop(5); } } on (release) { _global.command = 'magic'; _global.magic = 'airstrike'; tellTarget ('/menu') { play(); } } } button 1494 { on (rollOver) { if (_global.help) { help.gotoAndStop(4); } } on (release) { _global.command = 'magic'; _global.magic = 'protect'; tellTarget ('/menu') { gotoAndPlay('P11'); } } } button 1495 { on (rollOver) { if (_global.help) { help.gotoAndStop(6); } } on (release) { _global.command = 'magic'; _global.magic = 'screamer'; tellTarget ('/menu') { gotoAndPlay('P11'); } } } button 1496 { on (rollOver) { if (_global.help) { help.gotoAndStop(3); } } on (release) { _global.command = 'magic'; _global.magic = 'temper'; tellTarget ('/menu') { gotoAndPlay('P11'); } } } button 1497 { on (rollOver) { if (_global.help) { help.gotoAndStop(2); } } on (release) { _global.command = 'magic'; _global.magic = 'mog'; tellTarget ('/menu') { gotoAndPlay('P11'); } } } button 1498 { on (rollOver) { if (_global.help) { help.gotoAndStop(7); } } on (release) { _global.command = 'magic'; _global.magic = 'heavy'; tellTarget ('/menu') { gotoAndPlay('P11'); } } } movieClip 1513 { frame 1 { if (_global.P1seal > 0) { gotoAndStop(7); } else { if (_global.P1MP >= 100) { stop(); } else { if (_global.P1MP >= 75) { gotoAndStop(2); } else { if (_global.P1MP >= 50) { gotoAndStop(3); } else { if (_global.P1MP >= 25) { gotoAndStop(4); } else { if (_global.P1MP >= 15) { gotoAndStop(5); } else { if (_global.P1MP >= 5) { gotoAndStop(6); } else { gotoAndStop(7); } } } } } } } if (!_global.help) { help.gotoAndStop(9); } } } movieClip 1514 { frame 10 { stop(); } } button 1516 { on (rollOver) { if (_global.help) { help.gotoAndStop(5); } } on (release) { _global.command = 'swap'; _global.magic = 'stone'; _global.P1atk2 = 1.1; _global.P1matk2 = 0.9; _global.P1def2 = 1.4; _global.P1mdef2 = 1.2; swordCounter(3); tellTarget ('/menu') { gotoAndPlay('P11'); } } } button 1517 { on (rollOver) { if (_global.help) { help.gotoAndStop(4); } } on (release) { _global.command = 'swap'; _global.magic = 'blood'; _global.P1atk2 = 1; _global.P1matk2 = 1; _global.P1def2 = 1.1; _global.P1mdef2 = 1.1; swordCounter(2); tellTarget ('/menu') { gotoAndPlay('P11'); } } } button 1518 { on (rollOver) { if (_global.help) { help.gotoAndStop(6); } } on (release) { _global.command = 'swap'; _global.magic = 'inferno'; _global.P1atk2 = 1.1; _global.P1matk2 = 1.2; _global.P1def2 = 1; _global.P1mdef2 = 1.1; swordCounter(4); tellTarget ('/menu') { gotoAndPlay('P11'); } } } button 1519 { on (rollOver) { if (_global.help) { help.gotoAndStop(7); } } on (release) { _global.command = 'swap'; _global.magic = 'cross'; _global.P1atk2 = 0.9; _global.P1matk2 = 1.3; _global.P1def2 = 0.9; _global.P1mdef2 = 1.3; swordCounter(5); tellTarget ('/menu') { gotoAndPlay('P11'); } } } button 1520 { on (rollOver) { if (_global.help) { help.gotoAndStop(3); } } on (release) { _global.command = 'swap'; _global.magic = 'devil'; _global.P1atk2 = 0.7; _global.P1matk2 = 1.1; _global.P1def2 = 1.1; _global.P1mdef2 = 1.1; swordCounter(1); tellTarget ('/menu') { gotoAndPlay('P11'); } } } button 1521 { on (rollOver) { if (_global.help) { help.gotoAndStop(2); } } on (release) { _global.command = 'swap'; _global.magic = 'heaven'; _global.P1atk2 = 1.1; _global.P1matk2 = 1.1; _global.P1def2 = 1.1; _global.P1mdef2 = 1.1; swordCounter(0); tellTarget ('/menu') { gotoAndPlay('P11'); } } } button 1522 { on (rollOver) { if (_global.help) { help.gotoAndStop(8); } } on (release) { _global.command = 'swap'; _global.magic = 'soul'; _global.P1atk2 = 1.6; _global.P1matk2 = 0.8; _global.P1def2 = 0.8; _global.P1mdef2 = 0.8; swordCounter(6); tellTarget ('/menu') { gotoAndPlay('P11'); } } } movieClip 1534 { frame 1 { stop(); } } movieClip 1542 { frame 1 { function swordCounter(X) { if (_root.swordCount[X] == 0) { _root.swordCount[X] = 1; trace(_root.swordCount); if (_root.swordCount.toString() == '1,1,1,1,1,1,1') { _root.medalCount[14] = 1; trace(_root.medalCount); _root.medal_popup.unlockMedal('I Like Swords'); } } } } frame 1 { if (_global.sword == 'heaven') { _global.Text = 2; } else { if (_global.sword == 'devil') { _global.Text = 3; } else { if (_global.sword == 'stone') { _global.Text = 5; } else { if (_global.sword == 'blood') { _global.Text = 4; } else { if (_global.sword == 'inferno') { _global.Text = 6; } else { if (_global.sword == 'soul') { _global.Text = 8; } else { if (_global.sword == 'cross') { _global.Text = 7; } } } } } } } gotoAndStop(_global.Text); if (!_global.help) { help.gotoAndStop(9); } stop(); } } movieClip 1543 { frame 10 { stop(); } } movieClip 1556 { frame 1 { stop(); } } button 1567 { on (release) { if (_root.itemz6 > 0) { _global.command = 'item'; _global.magic = 'atkpot'; tellTarget ('/menu') { play(); } } } on (rollOver) { if (_global.help) { help.gotoAndStop(7); } } } button 1568 { on (release) { if (_root.itemz5 > 0) { _global.command = 'item'; _global.magic = 'ant'; tellTarget ('/menu') { play(); } } } on (rollOver) { if (_global.help) { help.gotoAndStop(6); } } } button 1569 { on (release) { if (_root.itemz7 > 0) { _global.command = 'item'; _global.magic = 'magpot'; tellTarget ('/menu') { play(); } } } on (rollOver) { if (_global.help) { help.gotoAndStop(8); } } } button 1570 { on (release) { if (_root.itemz8 > 0) { _global.command = 'item'; _global.magic = 'water'; tellTarget ('/menu') { play(); } } } on (rollOver) { if (_global.help) { help.gotoAndStop(9); } } } button 1571 { on (release) { if (_root.itemz4 > 0) { _global.command = 'item'; _global.magic = 'maxether'; tellTarget ('/menu') { play(); } } } on (rollOver) { if (_global.help) { help.gotoAndStop(5); } } } button 1572 { on (release) { if (_root.itemz3 > 0) { _global.command = 'item'; _global.magic = 'ether'; tellTarget ('/menu') { play(); } } } on (rollOver) { if (_global.help) { help.gotoAndStop(4); } } } button 1573 { on (release) { if (_root.itemz9 > 0) { _global.command = 'item2'; _global.magic = 'bob'; tellTarget ('/menu') { play(); } } } on (rollOver) { if (_global.help) { help.gotoAndStop(10); } } } button 1574 { on (release) { if (_root.itemz2 > 0) { _global.command = 'item'; _global.magic = 'maxpot'; tellTarget ('/menu') { play(); } } } on (rollOver) { if (_global.help) { help.gotoAndStop(3); } } } button 1575 { on (rollOver) { if (_global.help) { help.gotoAndStop(2); } } on (release) { if (_root.itemz1 > 0) { _global.command = 'item'; _global.magic = 'pot'; tellTarget ('/menu') { play(); } } } } movieClip 1577 { frame 1 { if (!_global.help) { help.gotoAndStop(11); } } } movieClip 1578 { frame 10 { stop(); } } movieClip 1579 { frame 1 { stop(); } } movieClip 1580 { frame 10 { stop(); } } button 1582 { on (release) { tellTarget ('/menu') { prevFrame(); } } } movieClip 1584 { } movieClip 1587 { frame 9 { stop(); } } button 1588 { on (release) { gotoAndStop('BM'); } } button 1589 { on (release) { gotoAndStop('WM'); } } button 1590 { on (release) { gotoAndStop('summon'); } } button 1591 { on (release) { gotoAndStop('item'); } } button 1592 { on (release) { _global.command = 'defend'; tellTarget ('/menu') { gotoAndPlay('P22'); } } } movieClip 1605 { frame 1 { stop(); } } button 1606 { on (release) { _global.command = 'wmagic'; _global.magic = 'healmore'; tellTarget ('/menu') { gotoAndPlay('P22'); } } on (rollOver) { if (_global.help) { help.gotoAndStop(5); } } } button 1607 { on (release) { _global.command = 'wmagic'; _global.magic = 'heal'; tellTarget ('/menu') { play(); } } on (rollOver) { if (_global.help) { help.gotoAndStop(4); } } } button 1608 { on (release) { _global.command = 'wmagic'; _global.magic = 'revive'; tellTarget ('/menu') { gotoAndPlay('P22'); } } on (rollOver) { if (_global.help) { help.gotoAndStop(6); } } } button 1609 { on (release) { _global.command = 'wmagic'; _global.magic = 'judgement'; tellTarget ('/menu') { play(); } } on (rollOver) { if (_global.help) { help.gotoAndStop(7); } } } button 1610 { on (release) { _global.command = 'wmagic'; _global.magic = 'barrier'; tellTarget ('/menu') { gotoAndPlay('P22'); } } on (rollOver) { if (_global.help) { help.gotoAndStop(3); } } } button 1611 { on (release) { _global.command = 'wmagic'; _global.magic = 'purify'; tellTarget ('/menu') { play(); } } on (rollOver) { if (_global.help) { help.gotoAndStop(2); } } } movieClip 1627 { frame 1 { if (_global.P2seal > 0) { gotoAndStop(6); } else { if (_global.P2MP >= 100) { stop(); } else { if (_global.P2MP >= 90) { gotoAndStop(2); } else { if (_global.P2MP >= 75) { gotoAndStop(3); } else { if (_global.P2MP >= 25) { gotoAndStop(4); } else { if (_global.P2MP >= 20) { gotoAndStop(5); } else { if (_global.P2MP >= 5) { gotoAndStop(6); } else { gotoAndStop(7); } } } } } } } if (!_global.help) { help.gotoAndStop(9); } } } movieClip 1628 { frame 10 { stop(); } } movieClip 1638 { frame 1 { stop(); } } button 1639 { on (release) { _global.command = 'bmagic'; _global.magic = 'thunderbolt'; tellTarget ('/menu') { play(); } } on (rollOver) { if (_global.help) { help.gotoAndStop(5); } } } button 1640 { on (release) { _global.command = 'bmagic'; _global.magic = 'pulsar'; tellTarget ('/menu') { gotoAndPlay('P22'); } } on (rollOver) { if (_global.help) { help.gotoAndStop(6); } } } button 1641 { on (release) { _global.command = 'bmagic'; _global.magic = 'glacier'; tellTarget ('/menu') { play(); } } on (rollOver) { if (_global.help) { help.gotoAndStop(4); } } } button 1642 { on (release) { _global.command = 'bmagic'; _global.magic = 'fireball'; tellTarget ('/menu') { play(); } } on (rollOver) { if (_global.help) { help.gotoAndStop(3); } } } button 1643 { on (rollOver) { if (_global.help) { help.gotoAndStop(2); } } on (release) { _global.command = 'bmagic'; _global.magic = 'lucky'; tellTarget ('/menu') { play(); } } } movieClip 1652 { frame 1 { if (_global.P2seal > 0) { gotoAndStop(5); } else { if (_global.P2MP >= 100) { stop(); } else { if (_global.P2MP >= 30) { gotoAndStop(2); } else { if (_global.P2MP >= 20) { gotoAndStop(3); } else { gotoAndStop(4); } } } } if (!_global.help) { help.gotoAndStop(9); } } } movieClip 1653 { frame 10 { stop(); } } movieClip 1661 { frame 1 { stop(); } } button 1662 { on (release) { _global.command = 'summon'; _global.magic = 'cat'; tellTarget ('/menu') { gotoAndPlay('P22'); } } on (rollOver) { if (_global.help) { help.gotoAndStop(5); } } } button 1663 { on (release) { _global.command = 'summon'; _global.magic = 'canti'; tellTarget ('/menu') { gotoAndPlay('P22'); } } on (rollOver) { if (_global.help) { help.gotoAndStop(4); } } } button 1664 { on (release) { _global.command = 'summon'; _global.magic = 'registeel'; tellTarget ('/menu') { gotoAndPlay('P22'); } } on (rollOver) { if (_global.help) { help.gotoAndStop(3); } } } button 1665 { on (rollOver) { if (_global.help) { help.gotoAndStop(2); } } on (release) { _global.command = 'summon'; _global.magic = 'pichu'; tellTarget ('/menu') { gotoAndPlay('P22'); } } } movieClip 1677 { frame 1 { if (_global.P2seal > 0) { gotoAndStop(6); } else { if (_global.P2MP >= 300) { stop(); } else { if (_global.P2MP >= 120) { gotoAndStop(2); } else { if (_global.P2MP >= 70) { gotoAndStop(3); } else { if (_global.P2MP >= 40) { gotoAndStop(4); } else { gotoAndStop(5); } } } } } if (!_global.help) { help.gotoAndStop(9); } } } movieClip 1678 { frame 10 { stop(); } } movieClip 1679 { frame 1 { stop(); } } movieClip 1680 { frame 10 { stop(); } } movieClip 1681 { frame 1 { if (h == undefined) { h = 2; stop(); } } frame 5 { _global.atype = 'p'; _global.def1 = 0; if (_global.P1poison >= 1 and _root.live[1] == 1 and _root.Playin == true) { stop(); _global.T = 'P1'; _global.damage = 400 * _global.P1poison * _global.dif; _root.hurt(); } else { _global.P1poison = 0; } } frame 6 { _global.def2 = 0; if (_global.P2poison >= 1 and _root.live[2] == 1 and _root.Playin == true) { stop(); _global.T = 'P2'; _global.damage = 400 * _global.P2poison * _global.dif; _root.hurt(); } else { _global.P2poison = 0; } } frame 7 { if (_global.P1def > 1) { _global.P1def -= 0.05; } if (_global.P1mdef > 1) { _global.P1mdef -= 0.05; } if (_global.P1atk > 1) { _global.P1atk -= 0.05; } if (_global.P1matk > 1) { _global.P1matk -= 0.05; } } frame 8 { stop(); if (_root.live[1] == 0 or _root.live[3] == 0 and _root.live[4] == 0 and _root.live[5] == 0) { gotoAndPlay('P111'); } } frame 8 { _root.hideButtons(); _global.user = 'P1'; } frame 8 { trace('PLAYER 1 TURN START'); trace('Atk:' + _global.P1atk + ' Atk2:' + _global.P1atk2 + ' Def:' + _global.P1def + ' Def2:' + _global.P1def2 + ' MAtk:' + _global.P1matk + ' MAtk2:' + _global.P1matk2 + ' Mdef:' + _global.P1mdef + ' Mdef2:' + _global.P1mdef2); } frame 8 { _global.command = 'nil'; _global.magic = 'nil'; } frame 9 { stop(); if (_global.magic == 'heal' or _global.command == 'item') { _root.showButtons2(); } else { _root.showButtons(); } } frame 9 { if (_global.command == 'nil') { prevFrame(); } } frame 10 { _root.hideButtons(); stop(); } frame 10 { tellTarget ('/P1') { gotoAndPlay(_global.command); } } frame 11 { _global.command = 'nil'; _global.spell = 'nil'; } frame 12 { if (_global.P2def > 1) { _global.P2def -= 0.05; } if (_global.P2mdef > 1) { _global.P2mdef -= 0.05; } if (_global.P2atk > 1) { _global.P2atk -= 0.05; } if (_global.P2matk > 1) { _global.P2matk -= 0.05; } } frame 13 { stop(); if (_root.live[2] == 0 or _root.live[3] == 0 and _root.live[4] == 0 and _root.live[5] == 0) { gotoAndPlay('P222'); } _global.def2 = 0; } frame 13 { _global.user = 'P2'; _root.hideButtons(); } frame 13 { trace('PLAYER 2 TURN START'); trace('Atk:' + _global.P2atk + ' Def:' + _global.P2def + ' MAtk:' + _global.P2matk + ' Mdef:' + _global.P2mdef); } frame 13 { _global.command = 'nil'; _global.magic = 'nil'; } frame 14 { stop(); if (_global.magic == 'heal' or _global.magic == 'purify' or _global.command == 'item') { _root.showButtons2(); } else { _root.showButtons(); } } frame 14 { if (_global.command == 'nil') { prevFrame(); } } frame 15 { stop(); _root.hideButtons(); } frame 15 { tellTarget ('/P2') { gotoAndPlay(_global.command); } trace(_global.command); } frame 16 { _global.command = 'nil'; _global.spell = 'nil'; } frame 17 { _global.user = 'T1'; if (_root.live[3] == 1 and (_root.live[1] or _root.live[2])) { _root.moveset(); stop(); tellTarget ('/T1') { enemystats(); } } } frame 17 { trace('ENEMY TURN START'); } frame 18 { _global.user = 'T2'; if (_root.live[4] == 1 and (_root.live[1] or _root.live[2])) { _root.moveset(); stop(); tellTarget ('/T2') { enemystats(); } } } frame 19 { _global.user = 'T3'; if (_root.live[5] == 1 and (_root.live[1] or _root.live[2])) { _root.moveset(); stop(); tellTarget ('/T3') { enemystats(); } } } frame 21 { if (_root.live[3] == 0 and _root.live[4] == 0 and _root.live[5] == 0) { trace('cheer'); stop(); if (_root.live[1]) { _root.P1.gotoAndPlay('cheer'); } if (_root.live[2]) { _root.P2.gotoAndPlay('cheer'); } if (!_root.live[1] and !_root.live[2]) { play(); } } } frame 22 { if (_root.live[1] == 0 and _root.live[2] == 0) { stop(); pause = function () { clearInterval(pause1); _root.fade.play(); _global.dir = 'over'; }; pause1 = setInterval(pause, 5000); } } frame 25 { m = random(10); if (m == 0 and (_root.live[1] or _root.live[2])) { stop(); _root.t1(); _root.summons.gotoAndPlay('mog'); _global.magic = 'mog'; _global.command = 'magic'; } } frame 26 { _global.command = 'nil'; _global.spell = 'nil'; if (_global.P1seal > 0) { _global.P1seal -= 1; } if (_global.P2seal > 0) { _global.P2seal -= 1; } } } movieClip 1684 { frame 113 { stop(); } } frame 12 { function moveset() { b = random(2); if (live[1] == 0 and live[2] == 0) { return 0; } if (live[1] == 0) { _global.T = 'P2'; } else { if (live[2] == 0) { _global.T = 'P1'; } else { t = random(2); if (t == 0) { _global.T = 'P1'; } if (t == 1) { _global.T = 'P2'; } } } if (b == 0) { _global.command = 'attack'; } if (b == 1) { _global.command = 'attack2'; } tellTarget ('_global.user') { gotoAndPlay(_global.command); } } function X() { if (_global.T == 'P1') { return _root.coords[0]; } if (_global.T == 'P2') { return _root.coords[2]; } if (_global.T == 'T1') { return _root.coords[4]; } if (_global.T == 'T2') { return _root.coords[6]; } if (_global.T == 'T3') { return _root.coords[8]; } } function Y() { if (_global.T == 'P1') { return _root.coords[1]; } if (_global.T == 'P2') { return _root.coords[3]; } if (_global.T == 'T1') { return _root.coords[5]; } if (_global.T == 'T2') { return _root.coords[7]; } if (_global.T == 'T3') { return _root.coords[9]; } } _global.P1HP = 9999; _global.P1MP = 999; _global.P1HPmax = 9999; _global.P1MPmax = 999; _global.P1atk = 1; _global.P1atk2 = 1.1; _global.P1matk = 1; _global.P1matk2 = 1.1; _global.P1def = 1; _global.P1mdef = 1; _global.P1mdef2 = 1.1; _global.P1def2 = 1.1; _global.P1poison = 0; _global.P1seal = 0; _global.P2HP = 9999; _global.P2MP = 999; _global.P2HPmax = 9999; _global.P2MPmax = 999; _global.P2atk = 1; _global.P2matk = 1; _global.P2def = 1; _global.P2mdef = 1; _global.P2poison = 0; _global.P2seal = 0; _global.damage = 0; _global.command = 0; _global.magic = 0; _global.atype = 0; _global.T = 0; _global.def1 = 0; _global.def2 = 0; _global.user = 'P1'; _global.kills = 0; coords = new Array(); coords = [180, 230, 60, 272, 530, 220, 560, 300, 0, 0]; tellTarget ('/T1') { HP = 5000 * _global.dif; atk = 1 * _global.dif; def = 1; matk = 1 * _global.dif; mdef = 1; animal = random(5) + 1; ID = 1; } tellTarget ('/T2') { HP = 5000 * _global.dif; atk = 1 * _global.dif; def = 1; matk = 1 * _global.dif; mdef = 1; animal = random(5) + 1; ID = 2; } } frame 13 { function itemGet() { b = random(20); if (b < 5) { _global.Text = 16; maintext.play(); } if (b == 19) { _global.Text = 17; maintext.play(); } } stop(); } frame 16 { live[3] = 1; live[4] = 1; live[5] = 0; tellTarget ('/T1') { HP = 5000 * _global.dif; atk = 1 * _global.dif; def = 1; matk = 1 * _global.dif; mdef = 1; animal = random(5) + 1; ID = 1; } tellTarget ('/T2') { HP = 5000 * _global.dif; atk = 1 * _global.dif; def = 1; matk = 1 * _global.dif; mdef = 1; animal = random(5) + 1; ID = 2; } } frame 17 { stop(); } frame 20 { live[3] = 1; live[4] = 1; live[5] = 1; coords = [180, 230, 60, 272, 540, 220, 590, 280, 510, 330]; tellTarget ('/T1') { HP = 5000 * _global.dif; atk = 1 * _global.dif; def = 1; matk = 1 * _global.dif; mdef = 1; animal = random(5) + 1; ID = 1; } tellTarget ('/T2') { HP = 5000 * _global.dif; atk = 1 * _global.dif; def = 1; matk = 1 * _global.dif; mdef = 1; animal = random(5) + 1; ID = 2; } tellTarget ('/T3') { HP = 5000 * _global.dif; atk = 1 * _global.dif; def = 1; matk = 1 * _global.dif; mdef = 1; animal = random(5) + 1; ID = 3; } } frame 21 { stop(); } frame 24 { live[3] = 1; live[4] = 1; live[5] = 1; tellTarget ('/T1') { HP = 5000 * _global.dif; atk = 1 * _global.dif; def = 1; matk = 1 * _global.dif; mdef = 1; animal = random(5) + 1; ID = 1; } tellTarget ('/T2') { HP = 5000 * _global.dif; atk = 1 * _global.dif; def = 1; matk = 1 * _global.dif; mdef = 1; animal = random(5) + 1; ID = 2; } tellTarget ('/T3') { HP = 5000 * _global.dif; atk = 1 * _global.dif; def = 1; matk = 1 * _global.dif; mdef = 1; animal = random(5) + 1; ID = 3; } } frame 25 { stop(); } movieClip 1686 { } movieClip 1688 { } movieClip 1690 { } movieClip 1692 { } movieClip 1694 { } movieClip 1696 { } movieClip 1698 { } movieClip 1701 { } movieClip 1705 { } movieClip 1710 { } movieClip 1712 { } movieClip 1714 { frame 1 { function symbols() { a1._visible = false; b1._visible = false; c1._visible = false; d1._visible = false; if (_parent.atk2 < 1) { a1._visible = true; a1._alpha = (1 - _parent.atk2) * 300; } if (_parent.def2 < 1) { b1._visible = true; b1._alpha = (1 - _parent.def2) * 300; } if (_parent.matk2 < 1) { c1._visible = true; c1._alpha = (1 - _parent.matk2) * 300; } if (_parent.mdef2 < 1) { d1._visible = true; d1._alpha = (1 - _parent.mdef2) * 300; } } symbols(); } frame 20 { symbols(); } } movieClip 1718 { } movieClip 1720 { } movieClip 1727 { } movieClip 1736 { frame 1 { function enemystats() { if (def2 < 1) { def2 += 0.05; } if (mdef2 < 1) { mdef2 += 0.05; } if (atk2 < 1) { atk2 += 0.05; } if (matk2 < 1) { matk2 += 0.05; } } function defdown() { def2 -= 0.25; if (def2 < 0.6) { def2 = 0.6; } } function mdefdown() { mdef2 -= 0.25; if (mdef2 < 0.6) { mdef2 = 0.6; } } function atkdown() { atk2 -= 0.25; if (atk2 < 0.6) { atk2 = 0.6; } } function matkdown() { matk2 -= 0.25; if (matk2 < 0.6) { matk2 = 0.6; } } atk2 = 1; def2 = 1; mdef2 = 1; matk2 = 1; } frame 1 { function k() { gotoAndPlay('stand'); q = 0; } function run(X, Y) { this._x += X; this._y += Y; } function getXY() { X = -(_x - _root.X()) / 12; Y = -(_y + 200 - _root.Y()) / 12; } function damageNo() { _root.dam.duplicateMovieClip('beb' + b, b + ID * 100); (eval('_root.beb' + b))._x = _x - 320 + random(50); (eval('_root.beb' + b))._y = _y + random(50); (eval('_root.beb' + b)).damage = damage; b += 1; } b = 7777; q = 0; } frame 8 { HPmax = HP; } frame 41 { stop(); } frame 42 { k(); } frame 43 { if (_global.atype == 'p') { damage = Math.round(damage / def * def2); } else { damage = Math.round(damage / mdef * mdef2); } if (q == 0) { _root.t1(); q = 1; } damageNo(); HP -= damage; if (HP <= 0) { HP = 0; gotoAndPlay('die'); } else { if (damage > 7000) { gotoAndPlay('hit2'); } } } frame 68 { k(); } frame 68 { _root.t2(); } frame 69 { damage(); } frame 95 { k(); } frame 95 { _root.t2(); } frame 96 { damage(); } frame 97 { _root.live[2 + ID] = 0; } frame 147 { if (!_root.medalCount[1]) { _root.medal_popup.unlockMedal('King Slime'); _root.medalCount[1] = 1; trace(_root.medalCount); } } frame 151 { _root.t2(); } frame 151 { stop(); } frame 152 { _root.t1(); } frame 165 { _global.atype = 'm'; _global.damage = atk * 4000; _root.hurt(); } frame 187 { k(); } frame 187 { _root.t2(); } frame 188 { _root.t1(); } frame 210 { _global.atype = 'p'; _global.T = 'Pall'; _global.damage = atk * 2500; _root.hurt(); } frame 210 { _root.shake('small'); } frame 230 { _root.t2(); } frame 231 { k(); } frame 232 { _root.t1(); } frame 232 { getXY(); } frame 245 { run(X, Y); } frame 246 { run(X, Y); } frame 247 { run(X, Y); } frame 248 { run(X, Y); } frame 249 { run(X, Y); } frame 250 { run(X, Y); } frame 251 { run(X, Y); } frame 252 { run(X, Y); } frame 253 { run(X, Y); } frame 254 { run(X, Y); } frame 255 { run(X, Y); } frame 256 { run(X, Y); } frame 257 { X = -X / 2; Y = -Y / 2; } frame 258 { _global.atype = 'p'; _global.damage = atk * 2500; _root.hurt(); } frame 263 { run(X, Y); } frame 264 { run(X, Y); } frame 265 { run(X, Y); } frame 266 { run(X, Y); } frame 267 { run(X, Y); } frame 268 { run(X, Y); } frame 269 { run(X, Y); } frame 270 { run(X, Y); } frame 271 { run(X, Y); } frame 272 { run(X, Y); } frame 273 { run(X, Y); } frame 274 { run(X, Y); } frame 275 { run(X, Y); } frame 276 { run(X, Y); } frame 277 { run(X, Y); } frame 278 { run(X, Y); } frame 279 { run(X, Y); } frame 280 { run(X, Y); } frame 281 { run(X, Y); } frame 282 { run(X, Y); } frame 283 { run(X, Y); } frame 284 { run(X, Y); } frame 285 { run(X, Y); } frame 286 { run(X, Y); } frame 301 { k(); } frame 301 { _root.t2(); } frame 302 { _root.t1(); } frame 368 { _root.shake('small'); } frame 370 { _global.atype = 'm'; _global.T = 'Pall'; _global.damage = atk * 4000; _root.hurt(); } frame 403 { _root.t2(); } frame 404 { k(); } frame 406 { _root.t1(); } frame 437 { function heal() { _root.heal.duplicateMovieClip('bob' + b, b); (eval('_root.bob' + b))._x = _x - 200; (eval('_root.bob' + b))._y = _y + 100; (eval('_root.bob' + b)).cure = cure; b += 2; } _global.magic = 'pot'; cure = Math.round(10000 * matk + 1000 * Math.random()); heal(); HP += cure; if (HP > HPmax) { HP = HPmax; } } frame 472 { _root.t2(); } frame 473 { k(); } } frame 28 { function moveset() { b = random(5); ranplay(); if (b == 0) { _global.command = 'attack'; } if (b == 1) { _global.command = 'attack2'; } if (b == 2) { _global.command = 'attack3'; } if (b == 3) { _global.command = 'special'; } if (b == 4) { _global.command = 'heal'; } tellTarget ('_global.user') { gotoAndPlay(_global.command); } } live[3] = 1; live[4] = 0; live[5] = 0; coords = [180, 230, 60, 272, 500, 280, 590, 280, 510, 330]; tellTarget ('/T1') { HP = 70000 * _global.dif; atk = 0.8 * _global.dif; def = 1; matk = 0.7 * _global.dif; mdef = 1; animal = random(5) + 1; ID = 1; } } frame 29 { function itemGet() { b = random(20); if (b < 5) { _global.Text = 19; maintext.play(); } else { _global.Text = 18; maintext.play(); } } stop(); } frame 30 { nextBG(); } frame 31 { function moveset() { b = random(5); ranplay(); if (b == 0 or b == 1) { _global.command = 'attack'; } if (b == 2) { _global.command = 'special2'; } if (b == 3 or b == 4) { _global.command = 'special'; } tellTarget ('_global.user') { gotoAndPlay(_global.command); } } } frame 31 { stopAllSounds(); } movieClip 1737 { frame 1 { function symbols() { a1._visible = false; b1._visible = false; c1._visible = false; d1._visible = false; if (_parent.atk2 < 1) { a1._visible = true; a1._alpha = (1 - _parent.atk2) * 300; } if (_parent.def2 < 1) { b1._visible = true; b1._alpha = (1 - _parent.def2) * 300; } if (_parent.matk2 < 1) { c1._visible = true; c1._alpha = (1 - _parent.matk2) * 300; } if (_parent.mdef2 < 1) { d1._visible = true; d1._alpha = (1 - _parent.mdef2) * 300; } } symbols(); } frame 22 { symbols(); } } movieClip 1738 { } movieClip 1742 { frame 3 { function enemystats() { if (def2 < 1) { def2 += 0.05; } if (mdef2 < 1) { mdef2 += 0.05; } if (atk2 < 1) { atk2 += 0.05; } if (matk2 < 1) { matk2 += 0.05; } } function defdown() { def2 -= 0.25; if (def2 < 0.6) { def2 = 0.6; } } function mdefdown() { mdef2 -= 0.25; if (mdef2 < 0.6) { mdef2 = 0.6; } } function atkdown() { atk2 -= 0.25; if (atk2 < 0.6) { atk2 = 0.6; } } function matkdown() { matk2 -= 0.25; if (matk2 < 0.6) { matk2 = 0.6; } } atk2 = 1; def2 = 1; mdef2 = 1; matk2 = 1; } frame 4 { function k() { gotoAndPlay('stand'); q = 0; } function run(X, Y) { this._x += X; this._y += Y; } function getXY() { X = -(_x - _root.X()) / 12; Y = -(_y + 160 - _root.Y()) / 12; } function damageNo() { _root.dam.duplicateMovieClip('bok' + b, b + 999); (eval('_root.bok' + b))._x = _x - 320 + random(50); (eval('_root.bok' + b))._y = _y + random(50); (eval('_root.bok' + b)).damage = damage; b += 3; } b = ID + 999; q = 0; } frame 8 { HPmax = HP; } frame 29 { stop(); } frame 31 { k(); } frame 32 { if (_global.atype == 'p') { damage = Math.round(damage / def * def2); } else { damage = Math.round(damage / mdef * mdef2); } if (_global.magic == 'glacier') { damage *= 2; } if (q == 0) { _root.t1(); q = 1; } damageNo(); HP -= damage; if (HP <= 0) { HP = 0; gotoAndPlay('die'); } else { if (damage > 5000) { gotoAndPlay('hit2'); } } } frame 49 { k(); _root.t2(); } frame 74 { k(); _root.t2(); } frame 76 { _root.live[2 + ID] = 0; } frame 112 { stop(); _root.t2(); } frame 113 { _root.t1(); getXY(); } frame 120 { run(X, Y); } frame 121 { run(X, Y); } frame 122 { run(X, Y); } frame 123 { run(X, Y); } frame 124 { run(X, Y); } frame 125 { run(X, Y); } frame 126 { run(X, Y); } frame 127 { run(X, Y); } frame 128 { run(X, Y); } frame 129 { run(X, Y); } frame 130 { run(X, Y); } frame 131 { run(X, Y); } frame 132 { X = -X / 2; Y = -Y / 2; } frame 133 { _global.atype = 'p'; _global.damage = atk * 1000; _root.hurt(); } frame 138 { run(X, Y); } frame 139 { run(X, Y); } frame 140 { run(X, Y); } frame 141 { run(X, Y); } frame 142 { run(X, Y); } frame 143 { run(X, Y); } frame 144 { run(X, Y); } frame 145 { run(X, Y); } frame 146 { run(X, Y); } frame 147 { run(X, Y); } frame 148 { run(X, Y); } frame 149 { run(X, Y); } frame 150 { run(X, Y); } frame 151 { run(X, Y); } frame 152 { run(X, Y); } frame 153 { run(X, Y); } frame 154 { run(X, Y); } frame 155 { run(X, Y); } frame 156 { run(X, Y); } frame 157 { run(X, Y); } frame 158 { run(X, Y); } frame 159 { run(X, Y); } frame 160 { run(X, Y); } frame 161 { run(X, Y); } frame 162 { k(); _root.t2(); } frame 163 { _root.t1(); } frame 187 { _global.atype = 'm'; _global.T = 'Pall'; _global.damage = matk * 1000; _root.hurt(); } frame 212 { k(); _root.t2(); } frame 213 { _root.t1(); } frame 234 { _global.atype = 'm'; _global.damage = matk * 2500; _root.hurt(); } frame 245 { k(); _root.t2(); } } frame 32 { live[3] = 1; live[4] = 1; live[5] = 0; coords = [180, 230, 60, 272, 490, 235, 580, 290, 510, 330]; tellTarget ('/T1') { HP = 13000 * _global.dif; atk = 1 * _global.dif; def = 1; matk = 1 * _global.dif; mdef = 1; ID = 1; } tellTarget ('/T2') { HP = 13000 * _global.dif; atk = 1 * _global.dif; def = 1; matk = 1 * _global.dif; mdef = 1; ID = 2; } } frame 33 { function itemGet() { b = random(10); if (b == 9) { _global.Text = 23; maintext.play(); } if (b == 8) { _global.Text = 24; maintext.play(); } } stop(); } frame 36 { live[3] = 1; live[4] = 1; live[5] = 1; coords = [180, 230, 60, 272, 470, 200, 540, 255, 600, 305]; tellTarget ('/T1') { HP = 12000 * _global.dif; atk = 1 * _global.dif; def = 1; matk = 0.9 * _global.dif; mdef = 1; ID = 1; } tellTarget ('/T2') { HP = 12000 * _global.dif; atk = 1 * _global.dif; def = 1; matk = 0.9 * _global.dif; mdef = 1; ID = 2; } tellTarget ('/T3') { HP = 12000 * _global.dif; atk = 1 * _global.dif; def = 1; matk = 0.9 * _global.dif; mdef = 1; ID = 3; } } frame 37 { stop(); } frame 39 { function moveset() { b = random(6); ranplay(); if (b == 0 or b == 1) { _global.command = 'attack'; } if (b == 2) { _global.command = 'special'; } if (b == 3 or b == 4) { _global.command = 'attack2'; } if (b == 5) { _global.command = 'rape'; } tellTarget ('_global.user') { gotoAndPlay(_global.command); } } } movieClip 1744 { frame 1 { function symbols() { a1._visible = false; b1._visible = false; c1._visible = false; d1._visible = false; if (_parent.atk2 < 1) { a1._visible = true; a1._alpha = (1 - _parent.atk2) * 300; } if (_parent.def2 < 1) { b1._visible = true; b1._alpha = (1 - _parent.def2) * 300; } if (_parent.matk2 < 1) { c1._visible = true; c1._alpha = (1 - _parent.matk2) * 300; } if (_parent.mdef2 < 1) { d1._visible = true; d1._alpha = (1 - _parent.mdef2) * 300; } } symbols(); } frame 18 { symbols(); } frame 33 { symbols(); } } movieClip 1761 { frame 3 { function enemystats() { if (def2 < 1) { def2 += 0.05; } if (mdef2 < 1) { mdef2 += 0.05; } if (atk2 < 1) { atk2 += 0.05; } if (matk2 < 1) { matk2 += 0.05; } } function defdown() { def2 -= 0.25; if (def2 < 0.6) { def2 = 0.6; } } function mdefdown() { mdef2 -= 0.25; if (mdef2 < 0.6) { mdef2 = 0.6; } } function atkdown() { atk2 -= 0.25; if (atk2 < 0.6) { atk2 = 0.6; } } function matkdown() { matk2 -= 0.25; if (matk2 < 0.6) { matk2 = 0.6; } } atk2 = 1; def2 = 1; mdef2 = 1; matk2 = 1; } frame 4 { function k() { gotoAndPlay('stand'); q = 0; } function run(X, Y) { this._x += X; this._y += Y; } function getXY() { X = -(_x - 170 - _root.X()) / 12; Y = -(_y + 220 - _root.Y()) / 12; } function damageNo() { _root.dam.duplicateMovieClip('bk' + b, b + 999); (eval('_root.bk' + b))._x = _x - 320 + random(50); (eval('_root.bk' + b))._y = _y + random(50); (eval('_root.bk' + b)).damage = damage; b += 1; } b = ID + 8; q = 0; } frame 8 { HPmax = HP; } frame 65 { stop(); } frame 68 { k(); } frame 69 { if (_global.atype == 'p') { damage = Math.round(damage / def * def2); } else { damage = Math.round(damage / mdef * mdef2); } if (_global.magic == 'glacier') { damage *= 2; } if (q == 0) { _root.t1(); q = 1; } damageNo(); HP -= damage; if (HP <= 0) { HP = 0; gotoAndPlay('die'); } else { if (damage > 7000) { gotoAndPlay('hit2'); } } } frame 88 { k(); } frame 88 { _root.t2(); } frame 112 { k(); _root.t2(); } frame 114 { _root.live[2 + ID] = 0; } frame 159 { if (!_root.medalCount[2]) { _root.medal_popup.unlockMedal('Beholder'); _root.medalCount[2] = 1; trace(_root.medalCount); } } frame 162 { stop(); _root.t2(); } frame 164 { _root.t1(); } frame 164 { getXY(); } frame 174 { run(X, Y); } frame 175 { run(X, Y); } frame 176 { run(X, Y); } frame 177 { run(X, Y); } frame 178 { run(X, Y); } frame 179 { run(X, Y); } frame 180 { run(X, Y); } frame 181 { run(X, Y); } frame 182 { run(X, Y); } frame 183 { run(X, Y); } frame 184 { run(X, Y); } frame 185 { run(X, Y); } frame 186 { X = -X / 2; Y = -Y / 2; } frame 193 { _global.atype = 'p'; _global.damage = atk * 2800; _root.hurt(); } frame 200 { run(X, Y); } frame 201 { run(X, Y); } frame 202 { run(X, Y); } frame 203 { run(X, Y); } frame 204 { run(X, Y); } frame 205 { run(X, Y); } frame 206 { run(X, Y); } frame 207 { run(X, Y); } frame 208 { run(X, Y); } frame 209 { run(X, Y); } frame 210 { run(X, Y); } frame 211 { run(X, Y); } frame 212 { run(X, Y); } frame 213 { run(X, Y); } frame 214 { run(X, Y); } frame 215 { run(X, Y); } frame 216 { run(X, Y); } frame 217 { run(X, Y); } frame 218 { run(X, Y); } frame 219 { run(X, Y); } frame 220 { run(X, Y); } frame 221 { run(X, Y); } frame 222 { run(X, Y); } frame 223 { run(X, Y); } frame 224 { _root.t2(); } frame 225 { k(); } frame 226 { _root.t1(); } frame 244 { _global.atype = 'm'; _global.T = 'Pall'; _global.damage = atk * 3300; _root.hurt(); } frame 276 { k(); _root.t2(); } frame 277 { _root.t1(); } frame 277 { getXY(); } frame 288 { run(X, Y); } frame 289 { run(X, Y); } frame 290 { run(X, Y); } frame 291 { run(X, Y); } frame 292 { run(X, Y); } frame 293 { run(X, Y); } frame 294 { run(X, Y); } frame 295 { run(X, Y); } frame 296 { run(X, Y); } frame 297 { run(X, Y); } frame 298 { run(X, Y); } frame 299 { run(X, Y); } frame 300 { X = -X / 2; Y = -Y / 2; } frame 341 { _global.atype = 'p'; _global.damage = atk * 4500; _root.hurt(); } frame 344 { run(X, Y); } frame 345 { run(X, Y); } frame 346 { run(X, Y); } frame 347 { run(X, Y); } frame 348 { run(X, Y); } frame 349 { run(X, Y); } frame 350 { run(X, Y); } frame 351 { run(X, Y); } frame 352 { run(X, Y); } frame 353 { if (_global.T == 'P1' and _root.live[1]) { _global.P1poison += 1; _global.Text = 25; _root.maintext.play(); } if (_global.T == 'P2' and _root.live[2]) { _global.P2poison += 1; _global.Text = 25; _root.maintext.play(); } } frame 353 { run(X, Y); } frame 354 { run(X, Y); } frame 355 { run(X, Y); } frame 356 { run(X, Y); } frame 357 { run(X, Y); } frame 358 { run(X, Y); } frame 359 { run(X, Y); } frame 360 { run(X, Y); } frame 361 { run(X, Y); } frame 362 { run(X, Y); } frame 363 { run(X, Y); } frame 364 { run(X, Y); } frame 365 { run(X, Y); } frame 366 { run(X, Y); } frame 367 { run(X, Y); } frame 369 { k(); _root.t2(); } frame 370 { _root.t1(); } frame 383 { _root.spells.gotoAndPlay('tentacle'); _global.atype = 'p'; _global.damage = atk * 3200; _root.t1(); } frame 437 { k(); _root.t2(); } } frame 40 { live[3] = 1; live[4] = 0; live[5] = 0; coords = [180, 230, 60, 272, 500, 280, 540, 255, 600, 305]; tellTarget ('/T1') { HP = 110000 * _global.dif; atk = 0.8 * _global.dif; def = 1; matk = 0.9 * _global.dif; mdef = 1; ID = 1; } } frame 41 { function itemGet() { b = random(20); if (b < 5) { _global.Text = 19; maintext.play(); } else { _global.Text = 21; maintext.play(); } } stop(); } frame 42 { nextBG(); } frame 43 { function moveset() { b = random(3); ranplay(); if (b == 0) { _global.command = 'special'; } if (b == 1) { _global.command = 'special2'; } if (b == 2) { _global.command = 'attack'; } trace(_global.command); tellTarget ('_global.user') { gotoAndPlay(_global.command); } } } frame 43 { stopAllSounds(); } movieClip 1763 { frame 1 { function symbols() { a1._visible = false; b1._visible = false; c1._visible = false; d1._visible = false; if (_parent.atk2 < 1) { a1._visible = true; a1._alpha = (1 - _parent.atk2) * 300; } if (_parent.def2 < 1) { b1._visible = true; b1._alpha = (1 - _parent.def2) * 300; } if (_parent.matk2 < 1) { c1._visible = true; c1._alpha = (1 - _parent.matk2) * 300; } if (_parent.mdef2 < 1) { d1._visible = true; d1._alpha = (1 - _parent.mdef2) * 300; } } symbols(); } frame 13 { symbols(); } } movieClip 1771 { frame 1 { function k() { gotoAndPlay('stand'); } function run(X, Y) { this._x += X; this._y += Y; } function damage() { _root.dam.duplicateMovieClip('bob' + b, b); ++b; bb = 'bob' + (b - 1); tellTarget (''_root.' + bb') { _x = random(100) + 80; _y = random(100) + 130; } } b = 0; } frame 4 { function enemystats() { if (def2 < 1) { def2 += 0.05; } if (mdef2 < 1) { mdef2 += 0.05; } if (atk2 < 1) { atk2 += 0.05; } if (matk2 < 1) { matk2 += 0.05; } } function defdown() { def2 -= 0.25; if (def2 < 0.6) { def2 = 0.6; } } function mdefdown() { mdef2 -= 0.25; if (mdef2 < 0.6) { mdef2 = 0.6; } } function atkdown() { atk2 -= 0.25; if (atk2 < 0.6) { atk2 = 0.6; } } function matkdown() { matk2 -= 0.25; if (matk2 < 0.6) { matk2 = 0.6; } } atk2 = 1; def2 = 1; mdef2 = 1; matk2 = 1; } frame 5 { function k() { gotoAndPlay('stand'); q = 0; } function run(X, Y) { this._x += X; this._y += Y; } function getXY() { X = -(_x - 170 - _root.X()) / 12; Y = -(_y + 220 - _root.Y()) / 12; } function damageNo() { trace(damage); _root.dam.duplicateMovieClip('bkl' + b, b + 7); (eval('_root.bkl' + b))._x = X2 - 300 + random(50); (eval('_root.bkl' + b))._y = Y2 - 100 + random(50); (eval('_root.bkl' + b)).damage = damage; b += 3; } b = ID + 8; q = 0; } frame 15 { HPmax = HP; } frame 39 { stop(); } frame 41 { k(); } frame 42 { if (_global.atype == 'p') { damage = Math.round(damage / def * def2); } else { damage = Math.round(damage / mdef * mdef2); } trace(_global.magic); if (_global.magic == 'fireball') { damage *= 2; trace('I AM HIT WITH FIYAH'); } if (_global.magic == 'erupt') { damage = Math.round(damage * 1.5); } if (q == 0) { _root.t1(); q = 1; } damageNo(); HP -= damage; if (HP <= 0) { HP = 0; gotoAndPlay('die'); } else { if (damage > 6000) { gotoAndPlay('hit2'); } } } frame 70 { k(); _root.t2(); } frame 104 { k(); _root.t2(); } frame 106 { _root.live[2 + ID] = 0; } frame 145 { stop(); _root.t2(); } frame 147 { _root.t1(); _root.t1(); } frame 151 { _global.atype = 'p'; _global.magic = 'vines'; _global.damage = atk * 1500; } frame 166 { _root.spells.gotoAndPlay('vines'); } frame 239 { k(); _root.t2(); } frame 240 { _root.t1(); } frame 276 { _global.atype = 'm'; _global.T = 'Pall'; _global.damage = atk * 500; _root.hurt(); } frame 289 { l = random(2); if (l) { if (_root.live[1]) { _global.P1poison += 1; _global.Text = 25; _root.maintext.play(); } } l = random(2); if (l) { if (_root.live[2]) { _global.P2poison += 1; _global.Text = 25; _root.maintext.play(); } } } frame 291 { k(); _root.t2(); } frame 292 { _root.t1(); } frame 328 { _global.atype = 'm'; _global.T = 'Pall'; _global.damage = atk * 1000; _root.hurt(); } frame 343 { k(); _root.t2(); } } frame 44 { live[3] = 1; live[4] = 0; live[5] = 0; coords = [180, 230, 60, 272, 530, 265, 540, 255, 600, 305]; tellTarget ('/T1') { HP = 33000 * _global.dif; atk = 2 * _global.dif; def = 1; matk = 2 * _global.dif; mdef = 1; X2 = _root.coords[4]; Y2 = _root.coords[5]; ID = 1; } } frame 45 { function itemGet() { b = random(20); if (b < 8) { _global.Text = 20; maintext.play(); } if (b == 19) { _global.Text = 21; maintext.play(); } } stop(); } frame 48 { live[3] = 1; live[4] = 1; live[5] = 0; coords = [180, 230, 60, 272, 500, 230, 550, 290, 600, 305]; tellTarget ('/T1') { HP = 24000 * _global.dif; atk = 1 * _global.dif; def = 1; matk = 1 * _global.dif; mdef = 1; X2 = _root.coords[4]; Y2 = _root.coords[5]; ID = 1; } tellTarget ('/T2') { HP = 24000 * _global.dif; atk = 1.5 * _global.dif; def = 1; matk = 1.5 * _global.dif; mdef = 1; X2 = _root.coords[6]; Y2 = _root.coords[7]; ID = 2; } } frame 49 { stop(); } frame 50 { hideButtons(); } frame 52 { live[3] = 1; live[4] = 1; live[5] = 1; coords = [180, 230, 60, 272, 505, 210, 540, 260, 544, 325]; tellTarget ('/T1') { HP = 19000 * _global.dif; atk = 1 * _global.dif; def = 1; matk = 1 * _global.dif; mdef = 1; X2 = _root.coords[4]; Y2 = _root.coords[5]; ID = 1; } tellTarget ('/T2') { HP = 19000 * _global.dif; atk = 1 * _global.dif; def = 1; matk = 1 * _global.dif; mdef = 1; X2 = _root.coords[6]; Y2 = _root.coords[7]; ID = 2; } tellTarget ('/T3') { HP = 19000 * _global.dif; atk = 1 * _global.dif; def = 1; matk = 1 * _global.dif; mdef = 1; X2 = _root.coords[8]; Y2 = _root.coords[9]; ID = 3; } } frame 53 { stop(); hideButtons(); } frame 54 { nextBG(); } frame 55 { function moveset() { if (T1.HP > 130000 * _global.dif) { b = random(3); } else { if (T1.HP > 40000 * _global.dif) { b = random(5); } else { b = 4; } } ranplay(); if (b == 0) { _global.command = 'attack'; } if (b == 1) { _global.command = 'attack2'; } if (b == 2) { _global.command = 'attack3'; } if (b == 3) { _global.command = 'attack4'; } if (b == 4) { _global.command = 'attack5'; } trace(_global.command); tellTarget ('_global.user') { gotoAndPlay(_global.command); } } } frame 55 { stopAllSounds(); } movieClip 1775 { frame 1 { function symbols() { a1._visible = false; b1._visible = false; c1._visible = false; d1._visible = false; if (_parent.atk2 < 1) { a1._visible = true; a1._alpha = (1 - _parent.atk2) * 300; } if (_parent.def2 < 1) { b1._visible = true; b1._alpha = (1 - _parent.def2) * 300; } if (_parent.matk2 < 1) { c1._visible = true; c1._alpha = (1 - _parent.matk2) * 300; } if (_parent.mdef2 < 1) { d1._visible = true; d1._alpha = (1 - _parent.mdef2) * 300; } } symbols(); } } movieClip 1785 { } movieClip 1788 { } movieClip 1797 { frame 4 { function enemystats() { if (def2 < 1) { def2 += 0.05; } if (mdef2 < 1) { mdef2 += 0.05; } if (atk2 < 1) { atk2 += 0.05; } if (matk2 < 1) { matk2 += 0.05; } } function defdown() { def2 -= 0.25; if (def2 < 0.6) { def2 = 0.6; } } function mdefdown() { mdef2 -= 0.25; if (mdef2 < 0.6) { mdef2 = 0.6; } } function atkdown() { atk2 -= 0.25; if (atk2 < 0.6) { atk2 = 0.6; } } function matkdown() { matk2 -= 0.25; if (matk2 < 0.6) { matk2 = 0.6; } } atk2 = 1; def2 = 1; mdef2 = 1; matk2 = 1; } frame 5 { function k() { gotoAndPlay('stand'); q = 0; } function run(X, Y) { this._x += X; this._y += Y; } function getXY() { X = -(X2 - 120 - _root.X()) / 12; Y = -(Y2 - _root.Y()) / 12; } function damageNo() { _root.dam.duplicateMovieClip('bk' + b, b + 999); (eval('_root.bk' + b))._x = _x + 100 + random(50); (eval('_root.bk' + b))._y = _y + 200 + random(50); (eval('_root.bk' + b)).damage = damage; b += 1; } b = ID + 8; q = 0; } frame 6 { HPmax = HP; } frame 51 { stop(); } frame 53 { k(); } frame 54 { if (_global.atype == 'p') { damage = Math.round(damage / def * def2); } else { damage = Math.round(damage / mdef * mdef2); } if (_global.magic == 'airstrike') { damage = Math.round(damage * 1.8); } if (_global.magic == 'quake') { damage = Math.round(damage * 0.5); } if (_global.magic == 'screamer') { damage = Math.round(damage * 0.2); } if (_global.magic == 'thunderbolt') { damage *= 2; } if (q == 0) { _root.t1(); q = 1; } damageNo(); HP -= damage; if (HP <= 0) { HP = 0; gotoAndPlay('die'); } else { if (damage > 8000) { gotoAndPlay('hit2'); } } } frame 67 { k(); _root.t2(); } frame 88 { k(); _root.t2(); } frame 91 { _root.live[2 + ID] = 0; } frame 95 { _root.Playin = false; } frame 135 { if (!_root.medalCount[3]) { _root.medal_popup.unlockMedal('Defender'); _root.medalCount[3] = 1; trace(_root.medalCount); } } frame 138 { stop(); _root.t2(); } frame 139 { _root.t1(); } frame 139 { getXY(); } frame 140 { run(X, Y); } frame 141 { run(X, Y); } frame 142 { run(X, Y); } frame 143 { run(X, Y); } frame 144 { run(X, Y); } frame 145 { run(X, Y); } frame 146 { run(X, Y); } frame 147 { run(X, Y); } frame 148 { run(X, Y); } frame 149 { run(X, Y); } frame 150 { run(X, Y); } frame 151 { run(X, Y); } frame 152 { X = -X / 2; Y = -Y / 2; } frame 154 { _global.atype = 'p'; _global.damage = atk * (2500 + random(1500)); _root.hurt(); } frame 164 { run(X, Y); } frame 165 { run(X, Y); } frame 166 { run(X, Y); } frame 167 { run(X, Y); } frame 168 { run(X, Y); } frame 169 { run(X, Y); } frame 170 { run(X, Y); } frame 171 { run(X, Y); } frame 172 { run(X, Y); } frame 173 { run(X, Y); } frame 174 { run(X, Y); } frame 175 { run(X, Y); } frame 176 { run(X, Y); } frame 177 { run(X, Y); } frame 178 { run(X, Y); } frame 179 { run(X, Y); } frame 180 { run(X, Y); } frame 181 { run(X, Y); } frame 182 { run(X, Y); } frame 183 { run(X, Y); } frame 184 { run(X, Y); } frame 185 { run(X, Y); } frame 186 { run(X, Y); } frame 187 { run(X, Y); } frame 188 { _root.t2(); } frame 188 { k(); } frame 189 { _root.t1(); } frame 189 { getXY(); } frame 190 { run(X, Y); } frame 191 { run(X, Y); } frame 192 { run(X, Y); } frame 193 { run(X, Y); } frame 194 { run(X, Y); } frame 195 { run(X, Y); } frame 196 { run(X, Y); } frame 197 { run(X, Y); } frame 198 { run(X, Y); } frame 199 { run(X, Y); } frame 200 { run(X, Y); } frame 201 { run(X, Y); } frame 202 { X = -X / 2; Y = -Y / 2; } frame 205 { _global.atype = 'p'; _global.damage = atk * 3700; _root.hurt(); } frame 214 { run(X, Y); } frame 215 { run(X, Y); } frame 216 { run(X, Y); } frame 217 { run(X, Y); } frame 218 { run(X, Y); } frame 219 { run(X, Y); } frame 220 { run(X, Y); } frame 221 { run(X, Y); } frame 222 { run(X, Y); } frame 223 { run(X, Y); } frame 224 { run(X, Y); } frame 225 { run(X, Y); } frame 226 { run(X, Y); } frame 227 { run(X, Y); } frame 228 { run(X, Y); } frame 229 { run(X, Y); } frame 230 { run(X, Y); } frame 231 { run(X, Y); } frame 232 { run(X, Y); } frame 233 { run(X, Y); } frame 234 { run(X, Y); } frame 235 { run(X, Y); } frame 236 { run(X, Y); } frame 237 { run(X, Y); } frame 238 { k(); _root.t2(); } frame 239 { _root.t1(); } frame 246 { _global.atype = 'p'; _global.damage = atk * 400; _root.hurt(); } frame 250 { _root.hurt(); } frame 254 { _root.hurt(); } frame 258 { _root.hurt(); } frame 262 { _root.hurt(); } frame 266 { _root.hurt(); } frame 270 { _root.hurt(); } frame 274 { _root.hurt(); } frame 278 { _root.hurt(); } frame 282 { _root.hurt(); } frame 293 { k(); _root.t2(); } frame 294 { _root.t1(); } frame 303 { _global.atype = 'm'; _global.T = 'Pall'; _global.damage = atk * 500; _root.hurt(); } frame 307 { _root.hurt(); } frame 311 { _root.hurt(); } frame 315 { _root.hurt(); } frame 319 { _root.hurt(); } frame 323 { _root.hurt(); } frame 336 { k(); _root.t2(); } frame 337 { _root.t1(); } frame 368 { _root.shake('big'); } frame 369 { _global.atype = 'm'; _global.T = 'Pall'; _global.damage = atk * 4500; _root.hurt(); } frame 405 { k(); _root.t2(); } } frame 56 { live[3] = 1; live[4] = 0; live[5] = 0; coords = [180, 230, 60, 272, 510, 280, 540, 255, 600, 305]; tellTarget ('/T1') { HP = 190000 * _global.dif; atk = 0.9 * _global.dif; def = 1.1; matk = 1 * _global.dif; mdef = 1.1; X2 = _root.coords[4]; Y2 = _root.coords[5]; ID = 1; } } frame 57 { function itemGet() { b = random(20); if (b < 5) { _global.Text = 19; maintext.play(); } else { _global.Text = 22; maintext.play(); } } stop(); } frame 58 { stopAllSounds(); } frame 59 { stop(); fade.play(); _global.dir = 'forward'; _global.money += 7000; } frame 60 { BG.play(); } frame 60 { stopAllSounds(); } movieClip 1804 { frame 118 { stop(); } } frame 61 { stop(); } frame 62 { stop(); } frame 62 { live[1] = 1; live[2] = 1; _global.P1HP = 9999; _global.P1MP = 999; _global.P1HPmax = 9999; _global.P1MPmax = 999; _global.P1atk = 1; _global.P1matk = 1; _global.P1def = 1; _global.P1mdef = 1; _global.P1poison = 0; _global.P1seal = 0; _global.P2HP = 9999; _global.P2MP = 999; _global.P2HPmax = 9999; _global.P2MPmax = 999; _global.P2atk = 1; _global.P2matk = 1; _global.P2def = 1; _global.P2mdef = 1; _global.P2poison = 0; _global.P2seal = 0; } frame 63 { stopAllSounds(); if (itemz9 > 9) { if (!_root.medalCount[15]) { _root.medal_popup.unlockMedal('Terrorist'); _root.medalCount[15] = 1; trace(_root.medalCount); } } } frame 63 { Playin = true; } frame 64 { play(); _root.hideButtons(); } frame 65 { function moveset() { b = random(3); if ((eval(_global.user)).defend) { if (b == 2) { _global.command = 'undefend'; tellTarget ('_global.user') { gotoAndPlay(_global.command); } } else { _global.command = 'nothing'; tellTarget ('_global.user') { gotoAndPlay(_global.command); } } } else { ranplay(); if (b == 0) { _global.command = 'attack'; } if (b == 1) { _global.command = 'attack2'; } if (b == 2) { _global.command = 'defend'; } tellTarget ('_global.user') { gotoAndPlay(_global.command); } } trace(_global.command); } } frame 65 { _root.hideButtons(); } movieClip 1808 { frame 1 { function symbols() { a1._visible = false; b1._visible = false; c1._visible = false; d1._visible = false; if (_parent.atk2 < 1) { a1._visible = true; a1._alpha = (1 - _parent.atk2) * 300; } if (_parent.def2 < 1) { b1._visible = true; b1._alpha = (1 - _parent.def2) * 300; } if (_parent.matk2 < 1) { c1._visible = true; c1._alpha = (1 - _parent.matk2) * 300; } if (_parent.mdef2 < 1) { d1._visible = true; d1._alpha = (1 - _parent.mdef2) * 300; } } symbols(); } frame 22 { symbols(); } } movieClip 1813 { } movieClip 1814 { frame 1 { function k() { gotoAndPlay('stand'); } function run(X, Y) { this._x += X; this._y += Y; } } frame 5 { function enemystats() { if (def2 < 1) { def2 += 0.05; } if (mdef2 < 1) { mdef2 += 0.05; } if (atk2 < 1) { atk2 += 0.05; } if (matk2 < 1) { matk2 += 0.05; } } function defdown() { def2 -= 0.25; if (def2 < 0.6) { def2 = 0.6; } } function mdefdown() { mdef2 -= 0.25; if (mdef2 < 0.6) { mdef2 = 0.6; } } function atkdown() { atk2 -= 0.25; if (atk2 < 0.6) { atk2 = 0.6; } } function matkdown() { matk2 -= 0.25; if (matk2 < 0.6) { matk2 = 0.6; } } atk2 = 1; def2 = 1; mdef2 = 1; matk2 = 1; } frame 6 { function k() { gotoAndPlay('stand'); q = 0; } function run(X, Y) { this._x += X; this._y += Y; } function getXY() { X = -(_x + 250 - _root.X()) / 12; Y = -(_y + 250 - _root.Y()) / 12; } function damageNo() { _root.dam.duplicateMovieClip('bk' + b, b + 999); (eval('_root.bk' + b))._x = _x - 20 + random(50); (eval('_root.bk' + b))._y = _y + 120 + random(50); (eval('_root.bk' + b)).damage = damage; b += 1; } b = ID + 8; q = 0; } frame 11 { HPmax = HP; } frame 42 { stop(); } frame 43 { k(); } frame 44 { if (_global.atype == 'p') { damage = Math.round(damage / def * def2); } else { damage = Math.round(damage / mdef * mdef2); } if (_global.magic == 'airstrike') { damage = Math.round(damage * 1.7); } if (_global.magic == 'quake') { damage = Math.round(damage * 2.2); } if (_global.magic == 'thunderbolt') { damage *= 2; } if (defend) { damage = Math.round(damage * 0.5); } if (q == 0) { _root.t1(); q = 1; } damageNo(); HP -= damage; if (HP <= 0) { HP = 0; gotoAndPlay('die'); } else { if (defend) { gotoAndPlay('defhit'); } else { if (damage > 6000) { gotoAndPlay('hit2'); } } } } frame 74 { k(); _root.t2(); } frame 106 { k(); _root.t2(); } frame 108 { _root.live[2 + ID] = 0; } frame 163 { stop(); _root.t2(); } frame 165 { _root.t1(); } frame 165 { getXY(); } frame 175 { run(X, Y); } frame 176 { run(X, Y); } frame 177 { run(X, Y); } frame 178 { run(X, Y); } frame 179 { run(X, Y); } frame 180 { run(X, Y); } frame 181 { run(X, Y); } frame 182 { run(X, Y); } frame 183 { run(X, Y); } frame 184 { run(X, Y); } frame 185 { run(X, Y); } frame 186 { run(X, Y); } frame 187 { X = -X / 2; Y = -Y / 2; } frame 193 { _global.atype = 'p'; _global.damage = atk * 2000; _root.hurt(); } frame 201 { run(X, Y); } frame 202 { run(X, Y); } frame 203 { run(X, Y); } frame 204 { run(X, Y); } frame 205 { run(X, Y); } frame 206 { run(X, Y); } frame 207 { run(X, Y); } frame 208 { run(X, Y); } frame 209 { run(X, Y); } frame 210 { run(X, Y); } frame 211 { run(X, Y); } frame 212 { run(X, Y); } frame 213 { run(X, Y); } frame 214 { run(X, Y); } frame 215 { run(X, Y); } frame 216 { run(X, Y); } frame 217 { run(X, Y); } frame 218 { run(X, Y); } frame 219 { run(X, Y); } frame 220 { run(X, Y); } frame 221 { run(X, Y); } frame 222 { run(X, Y); } frame 223 { run(X, Y); } frame 224 { run(X, Y); } frame 239 { k(); _root.t2(); } frame 241 { defend = 1; } frame 243 { _root.t1(); } frame 272 { stop(); _root.t2(); } frame 274 { _root.t1(); } frame 294 { gotoAndStop('defend1'); } frame 315 { gotoAndStop('defend1'); q = 0; } frame 316 { _root.t1(); } frame 318 { defend = 0; } frame 349 { k(); _root.t2(); } frame 350 { _root.t1(); } frame 350 { getXY(); } frame 361 { run(X, Y); } frame 362 { run(X, Y); } frame 363 { run(X, Y); } frame 364 { run(X, Y); } frame 365 { run(X, Y); } frame 366 { run(X, Y); } frame 367 { run(X, Y); } frame 368 { run(X, Y); } frame 369 { run(X, Y); } frame 370 { run(X, Y); } frame 371 { run(X, Y); } frame 372 { run(X, Y); } frame 373 { X = -X / 2; Y = -Y / 2; } frame 383 { _global.atype = 'm'; _global.damage = atk * 2000; _root.hurt(); } frame 399 { run(X, Y); } frame 400 { run(X, Y); } frame 401 { run(X, Y); } frame 402 { run(X, Y); } frame 403 { run(X, Y); } frame 404 { run(X, Y); } frame 405 { run(X, Y); } frame 406 { run(X, Y); } frame 407 { run(X, Y); } frame 408 { run(X, Y); } frame 409 { run(X, Y); } frame 410 { run(X, Y); } frame 411 { run(X, Y); } frame 412 { run(X, Y); } frame 413 { run(X, Y); } frame 414 { run(X, Y); } frame 415 { run(X, Y); } frame 416 { run(X, Y); } frame 417 { run(X, Y); } frame 418 { run(X, Y); } frame 419 { run(X, Y); } frame 420 { run(X, Y); } frame 421 { run(X, Y); } frame 422 { run(X, Y); } frame 437 { k(); _root.t2(); } } frame 66 { live[3] = 1; live[4] = 1; live[5] = 0; coords = [180, 230, 60, 272, 520, 200, 530, 290, 600, 305]; tellTarget ('/T1') { HP = 30000 * _global.dif; atk = 1.2 * _global.dif; def = 1.2; matk = 1.2 * _global.dif; mdef = 1; defend = 0; ID = 1; } tellTarget ('/T2') { HP = 30000 * _global.dif; atk = 1.2 * _global.dif; def = 1.2; matk = 1.2 * _global.dif; mdef = 1; defend = 0; ID = 2; } } frame 67 { function itemGet() { b = random(3); if (b == 0) { _global.Text = 21; maintext.play(); } } stop(); } frame 70 { live[3] = 1; live[4] = 1; live[5] = 1; coords = [180, 230, 60, 272, 530, 210, 580, 255, 535, 320]; tellTarget ('/T1') { HP = 30000 * _global.dif; atk = 1 * _global.dif; def = 1.2; matk = 1 * _global.dif; mdef = 1; defend = 0; ID = 1; } tellTarget ('/T2') { HP = 30000 * _global.dif; atk = 1 * _global.dif; def = 1.2; matk = 1 * _global.dif; mdef = 1; defend = 0; ID = 2; } tellTarget ('/T3') { HP = 30000 * _global.dif; atk = 1 * _global.dif; def = 1.2; matk = 1 * _global.dif; mdef = 1; defend = 0; ID = 3; } } frame 71 { stop(); } frame 72 { stopAllSounds(); } frame 73 { function moveset() { b = random(5); ranplay(); if (b == 0) { _global.command = 'attack'; } if (b == 1) { _global.command = 'special'; } if (b > 1) { _global.command = 'magic'; } trace(_global.command); tellTarget ('_global.user') { gotoAndPlay(_global.command); } } } movieClip 1817 { frame 1 { function symbols() { a1._visible = false; b1._visible = false; c1._visible = false; d1._visible = false; if (_parent.atk2 < 1) { a1._visible = true; a1._alpha = (1 - _parent.atk2) * 300; } if (_parent.def2 < 1) { b1._visible = true; b1._alpha = (1 - _parent.def2) * 300; } if (_parent.matk2 < 1) { c1._visible = true; c1._alpha = (1 - _parent.matk2) * 300; } if (_parent.mdef2 < 1) { d1._visible = true; d1._alpha = (1 - _parent.mdef2) * 300; } } symbols(); } frame 23 { symbols(); } frame 43 { symbols(); } } movieClip 1820 { frame 17 { stop(); } } movieClip 1829 { frame 1 { function k() { gotoAndPlay('stand'); } function run(X, Y) { this._x += X; this._y += Y; } } frame 4 { function enemystats() { if (def2 < 1) { def2 += 0.05; } if (mdef2 < 1) { mdef2 += 0.05; } if (atk2 < 1) { atk2 += 0.05; } if (matk2 < 1) { matk2 += 0.05; } } function defdown() { def2 -= 0.25; if (def2 < 0.6) { def2 = 0.6; } } function mdefdown() { mdef2 -= 0.25; if (mdef2 < 0.6) { mdef2 = 0.6; } } function atkdown() { atk2 -= 0.25; if (atk2 < 0.6) { atk2 = 0.6; } } function matkdown() { matk2 -= 0.25; if (matk2 < 0.6) { matk2 = 0.6; } } atk2 = 1; def2 = 1; mdef2 = 1; matk2 = 1; } frame 5 { function k() { gotoAndPlay('stand'); q = 0; } function run(X, Y) { this._x += X; this._y += Y; } function getXY() { X = -(X2 - 150 - _root.X()) / 12; Y = -(Y2 - _root.Y()) / 12; } function damageNo() { _root.dam.duplicateMovieClip('bk' + b, b + 777); (eval('_root.bk' + b))._x = X2 - 400 + random(50); (eval('_root.bk' + b))._y = Y2 - 200 + random(50); (eval('_root.bk' + b)).damage = damage; b += 2; } function heal() { _root.heal.duplicateMovieClip('bk' + b, b + 888); (eval('_root.bk' + b))._x = X2 - 400 + random(50); (eval('_root.bk' + b))._y = Y2 - 200 + random(50); (eval('_root.bk' + b)).cure = cure; b += 2; } b = ID + 8; q = 0; } frame 8 { HPmax = HP; } frame 41 { stop(); } frame 44 { k(); } frame 45 { if (_global.atype == 'p') { damage = Math.round(damage / def * def2); } else { damage = Math.round(damage / mdef * mdef2); } if (_global.magic == 'erupt') { damage = Math.round(damage * 2); } if (_global.magic == 'quake') { damage = Math.round(damage * 1.6); } if (_global.magic == 'fireball') { damage = Math.round(damage * 2); } if (_global.magic == 'airstrike') { damage = Math.round(damage * 1.5); } if (_global.magic == 'thunderbolt') { damage = Math.round(damage * 1.3); } if (_global.magic == 'glacier') { damage = Math.round(damage * 5); } if (q == 0) { _root.t1(); q = 1; } if (_global.magic != 'glacier') { damageNo(); HP -= damage; if (HP <= 0 and di) { HP = 0; gotoAndPlay('hide'); } else { if (HP <= 0) { HP = 0; gotoAndPlay('die'); } else { if (damage > 8000) { gotoAndPlay('hit2'); } } } } else { gotoAndPlay('heal'); } } frame 65 { k(); _root.t2(); } frame 67 { _root.live[2 + ID] = 0; } frame 116 { if (!_root.medalCount[4]) { _root.medal_popup.unlockMedal('Regice'); _root.medalCount[4] = 1; trace(_root.medalCount); } } frame 118 { stop(); _root.t2(); } frame 119 { _root.t1(); } frame 155 { _root.spells.gotoAndPlay('frost'); _global.atype = 'm'; _global.damage = matk * 2300; } frame 187 { gotoAndPlay('stand'); } frame 188 { _root.t1(); } frame 221 { _global.atype = 'm'; _global.T = 'Pall'; _global.damage = matk * 3300; _root.hurt(); } frame 266 { k(); _root.t2(); } frame 268 { _root.live[2 + ID] = 0; } frame 296 { stop(); _root.t2(); } frame 297 { cure = damage; heal(); } frame 321 { k(); _root.t2(); } frame 322 { getXY(); _root.t1(); } frame 328 { run(X, Y); } frame 329 { run(X, Y); } frame 330 { run(X, Y); } frame 331 { run(X, Y); } frame 332 { run(X, Y); } frame 333 { run(X, Y); } frame 334 { run(X, Y); } frame 335 { run(X, Y); } frame 336 { run(X, Y); } frame 337 { run(X, Y); } frame 338 { run(X, Y); } frame 339 { run(X, Y); } frame 340 { X = -X / 2; Y = -Y / 2; } frame 344 { _global.atype = 'p'; _global.damage = matk * 2500; _root.hurt(); } frame 346 { run(X, Y); } frame 347 { run(X, Y); } frame 348 { run(X, Y); } frame 349 { run(X, Y); } frame 350 { run(X, Y); } frame 351 { run(X, Y); } frame 352 { run(X, Y); } frame 353 { run(X, Y); } frame 354 { run(X, Y); } frame 355 { run(X, Y); } frame 356 { run(X, Y); } frame 357 { run(X, Y); } frame 358 { run(X, Y); } frame 359 { run(X, Y); } frame 360 { run(X, Y); } frame 361 { run(X, Y); } frame 362 { run(X, Y); } frame 363 { run(X, Y); } frame 364 { run(X, Y); } frame 365 { run(X, Y); } frame 366 { run(X, Y); } frame 367 { run(X, Y); } frame 368 { run(X, Y); } frame 369 { run(X, Y); } frame 370 { k(); _root.t2(); } frame 391 { k(); _root.t2(); } } frame 74 { live[3] = 1; live[4] = 0; live[5] = 0; coords = [180, 230, 60, 272, 550, 265, 540, 255, 600, 305]; tellTarget ('/T1') { HP = 100000 * _global.dif; atk = 1.1 * _global.dif; def = 0.9; matk = 1.1 * _global.dif; mdef = 1.2; X2 = _root.coords[4]; Y2 = _root.coords[5]; di = 1; ID = 1; } } frame 75 { function itemGet() {} stop(); } frame 76 { nextBG(); } frame 77 { function moveset() { b = random(5); ranplay(); if (b == 0) { _global.command = 'attack3'; } if (b == 1) { _global.command = 'special'; } if (b == 2) { _global.command = 'attack2'; } if (b > 2) { _global.command = 'attack'; } trace(_global.command); tellTarget ('_global.user') { gotoAndPlay(_global.command); } } } movieClip 1832 { } movieClip 1834 { } movieClip 1836 { } movieClip 1838 { } movieClip 1840 { } movieClip 1842 { } movieClip 1844 { } movieClip 1846 { } movieClip 1848 { } movieClip 1850 { } movieClip 1852 { } movieClip 1854 { frame 1 { function symbols() { a1._visible = false; b1._visible = false; c1._visible = false; d1._visible = false; if (_parent.atk2 < 1) { a1._visible = true; a1._alpha = (1 - _parent.atk2) * 300; } if (_parent.def2 < 1) { b1._visible = true; b1._alpha = (1 - _parent.def2) * 300; } if (_parent.matk2 < 1) { c1._visible = true; c1._alpha = (1 - _parent.matk2) * 300; } if (_parent.mdef2 < 1) { d1._visible = true; d1._alpha = (1 - _parent.mdef2) * 300; } } symbols(); } frame 23 { symbols(); } frame 43 { symbols(); } } movieClip 1863 { frame 17 { stop(); } } movieClip 1868 { frame 1 { function k() { gotoAndPlay('stand'); } function run(X, Y) { this._x += X; this._y += Y; } } frame 1 { function shake(X) { tellTarget ('/shake') { gotoAndPlay(X); } } } frame 5 { function enemystats() { if (def2 < 1) { def2 += 0.05; } if (mdef2 < 1) { mdef2 += 0.05; } if (atk2 < 1) { atk2 += 0.05; } if (matk2 < 1) { matk2 += 0.05; } } function defdown() { def2 -= 0.25; if (def2 < 0.6) { def2 = 0.6; } } function mdefdown() { mdef2 -= 0.25; if (mdef2 < 0.6) { mdef2 = 0.6; } } function atkdown() { atk2 -= 0.25; if (atk2 < 0.6) { atk2 = 0.6; } } function matkdown() { matk2 -= 0.25; if (matk2 < 0.6) { matk2 = 0.6; } } atk2 = 1; def2 = 1; mdef2 = 1; matk2 = 1; } frame 6 { function k() { gotoAndPlay('stand'); q = 0; } function run(X, Y) { this._x += X; this._y += Y; } function getXY() { X = -(X2 - 250 - _root.X()) / 12; Y = -(Y2 - _root.Y()) / 12; } function damageNo() { _root.dam.duplicateMovieClip('bk' + b, b + 777); (eval('_root.bk' + b))._x = X2 - 400 + random(50); (eval('_root.bk' + b))._y = Y2 - 210 + random(50); (eval('_root.bk' + b)).damage = damage; b += 2; } function heal() { _root.heal.duplicateMovieClip('bk' + b, b + 888); (eval('_root.bk' + b))._x = X2 - 400 + random(50); (eval('_root.bk' + b))._y = Y2 - 210 + random(50); (eval('_root.bk' + b)).cure = cure; b += 2; } b = ID + 8; q = 0; } frame 6 { shake('small'); } frame 11 { HPmax = HP; } frame 24 { shake('small'); } frame 44 { stop(); } frame 46 { k(); } frame 47 { if (_global.atype == 'p') { damage = Math.round(damage / def * def2); } else { damage = Math.round(damage / mdef * mdef2); } if (_global.magic == 'erupt') { damage = Math.round(damage * 0.2); } if (_global.magic == 'quake') { damage = Math.round(damage * 3); } if (_global.magic == 'fireball') { damage = Math.round(damage * 0.5); } if (_global.magic == 'thunderbolt') { damage = Math.round(damage * 0.2); } if (_global.magic == 'glacier') { damage = Math.round(damage * 2); } if (_global.magic == 'airstrike') { damage = Math.round(damage * 1.6); } if (q == 0) { _root.t1(); q = 1; } if (_global.magic != 'quake') { damageNo(); HP -= damage; if (HP <= 0 and di) { HP = 0; gotoAndPlay('hit2'); _root.live[2 + ID] = 0; } else { if (HP <= 0) { HP = 0; gotoAndPlay('die'); } else { if (damage > 8000) { gotoAndPlay('hit2'); } } } } else { gotoAndPlay('heal'); } } frame 67 { k(); _root.t2(); } frame 69 { _root.live[2 + ID] = 0; } frame 120 { stop(); _root.t2(); } frame 121 { _root.t1(); } frame 143 { _global.atype = 'm'; _global.T = 'Pall'; _global.damage = matk * 3300; _root.hurt(); } frame 193 { gotoAndPlay('stand'); _root.t2(); } frame 194 { _root.t1(); } frame 219 { shake('small'); } frame 219 { _global.atype = 'p'; _global.T = 'Pall'; _global.damage = matk * 2700; _root.hurt(); } frame 236 { k(); _root.t2(); } frame 237 { cure = damage; heal(); } frame 260 { k(); _root.t2(); } frame 261 { _root.t1(); } frame 296 { _global.atype = 'p'; _global.T = 'Pall'; _global.damage = atk * 3800; _root.hurt(); } frame 321 { k(); _root.t2(); } frame 344 { k(); _root.t2(); } frame 345 { _root.t1(); } frame 349 { getXY(); } frame 359 { run(X, Y); } frame 360 { run(X, Y); } frame 361 { run(X, Y); } frame 362 { run(X, Y); } frame 363 { run(X, Y); } frame 364 { run(X, Y); } frame 365 { run(X, Y); } frame 366 { run(X, Y); } frame 367 { run(X, Y); } frame 368 { run(X, Y); } frame 369 { run(X, Y); } frame 370 { run(X, Y); } frame 371 { X = -X / 2; Y = -Y / 2; } frame 376 { _global.atype = 'p'; _global.damage = atk * 2500; _root.hurt(); } frame 377 { run(X, Y); } frame 378 { run(X, Y); } frame 379 { run(X, Y); } frame 380 { run(X, Y); } frame 381 { run(X, Y); } frame 382 { run(X, Y); } frame 383 { run(X, Y); } frame 384 { run(X, Y); } frame 385 { run(X, Y); } frame 386 { run(X, Y); } frame 387 { run(X, Y); } frame 388 { run(X, Y); } frame 389 { run(X, Y); } frame 390 { run(X, Y); } frame 391 { run(X, Y); } frame 392 { run(X, Y); } frame 393 { run(X, Y); } frame 394 { run(X, Y); } frame 395 { run(X, Y); } frame 396 { run(X, Y); } frame 397 { run(X, Y); } frame 398 { run(X, Y); } frame 399 { run(X, Y); } frame 400 { k(); _root.t2(); } frame 400 { run(X, Y); } } frame 78 { live[3] = 0; live[4] = 1; live[5] = 0; coords = [180, 230, 60, 272, 550, 265, 550, 265, 600, 305]; tellTarget ('/T2') { HP = 110000 * _global.dif; atk = 1.1 * _global.dif; def = 1.2; matk = 1.1 * _global.dif; mdef = 0.9; X2 = _root.coords[4]; Y2 = _root.coords[5]; di = 1; ID = 2; } } frame 79 { stop(); } frame 81 { function moveset() { b = random(5); ranplay(); if (_global.user == 'T1') { if (b == 0) { _global.command = 'attack'; } if (b == 1) { _global.command = 'special'; } if (b > 1) { _global.command = 'magic'; } trace(_global.command); tellTarget ('_global.user') { gotoAndPlay(_global.command); } } else { if (b == 0) { _global.command = 'attack3'; } if (b == 1) { _global.command = 'special'; } if (b == 2) { _global.command = 'attack2'; } if (b > 2) { _global.command = 'attack'; } trace(_global.command); tellTarget ('_global.user') { gotoAndPlay(_global.command); } } } } frame 82 { live[3] = 1; live[4] = 1; live[5] = 0; coords = [180, 230, 60, 272, 600, 300, 550, 265, 600, 305]; tellTarget ('/T2') { HP = 100000 * _global.dif; atk = 0.8 * _global.dif; def = 1.2; matk = 0.8 * _global.dif; mdef = 0.9; X2 = _root.coords[4]; Y2 = _root.coords[5]; di = 0; ID = 2; } tellTarget ('/T1') { HP = 90000 * _global.dif; atk = 0.8 * _global.dif; def = 0.9; matk = 0.7 * _global.dif; mdef = 1.2; X2 = _root.coords[4]; Y2 = _root.coords[5]; di = 0; ID = 1; } } frame 83 { function itemGet() { b = random(2); if (b == 0) { _global.Text = 23; maintext.play(); } else { _global.Text = 24; maintext.play(); } } stop(); } frame 84 { nextBG(); } frame 85 { function moveset() { b = random(6); ranplay(); if (b == 0 or b == 1) { _global.command = 'attack'; } else { if (b == 2) { _global.command = 'attack2'; } else { if (b == 3 or b == 4) { _global.command = 'special2'; } else { _global.command = 'special'; } } } tellTarget ('_global.user') { gotoAndPlay(_global.command); } } } frame 85 { stopAllSounds(); } movieClip 1869 { frame 1 { function symbols() { a1._visible = false; b1._visible = false; c1._visible = false; d1._visible = false; if (_parent.atk2 < 1) { a1._visible = true; a1._alpha = (1 - _parent.atk2) * 300; } if (_parent.def2 < 1) { b1._visible = true; b1._alpha = (1 - _parent.def2) * 300; } if (_parent.matk2 < 1) { c1._visible = true; c1._alpha = (1 - _parent.matk2) * 300; } if (_parent.mdef2 < 1) { d1._visible = true; d1._alpha = (1 - _parent.mdef2) * 300; } } symbols(); } frame 14 { symbols(); } } movieClip 1873 { } movieClip 1876 { frame 4 { function enemystats() { if (def2 < 1) { def2 += 0.05; } if (mdef2 < 1) { mdef2 += 0.05; } if (atk2 < 1) { atk2 += 0.05; } if (matk2 < 1) { matk2 += 0.05; } } function defdown() { def2 -= 0.25; if (def2 < 0.6) { def2 = 0.6; } } function mdefdown() { mdef2 -= 0.25; if (mdef2 < 0.6) { mdef2 = 0.6; } } function atkdown() { atk2 -= 0.25; if (atk2 < 0.6) { atk2 = 0.6; } } function matkdown() { matk2 -= 0.25; if (matk2 < 0.6) { matk2 = 0.6; } } atk2 = 1; def2 = 1; mdef2 = 1; matk2 = 1; } frame 5 { function k() { gotoAndPlay('stand'); q = 0; } function run(X, Y) { this._x += X; this._y += Y; } function getXY() { X = -(X2 - 100 - _root.X()) / 12; Y = -(Y2 - _root.Y()) / 12; } function damageNo() { _root.dam.duplicateMovieClip('bok' + b, b + 999); (eval('_root.bok' + b))._x = X2 - 350 + random(50); (eval('_root.bok' + b))._y = Y2 - 70 - 100 + random(50); (eval('_root.bok' + b)).damage = damage; b += 3; } b = ID + 999; q = 0; HPmax = HP; } frame 37 { stop(); } frame 38 { k(); } frame 39 { if (_global.atype == 'p') { damage = Math.round(damage / def * def2); } else { damage = Math.round(damage / mdef * mdef2); } if (_global.magic == 'glacier' or _global.magic == 'thunderbolt' or _global.magic == 'airstrike' or _global.magic == 'glacier') { damage = Math.round(damage * 1.5); } if (_global.magic == 'fireball' or _global.magic == 'erupt') { damage = Math.round(damage * 0.5); } if (_global.magic == 'screamer') { damage = Math.round(damage * 0.2); } if (q == 0) { _root.t1(); q = 1; } damageNo(); HP -= damage; if (HP <= 0) { HP = 0; gotoAndPlay('die'); } else { if (damage > 6000) { gotoAndPlay('hit2'); } } } frame 56 { k(); _root.t2(); } frame 79 { k(); _root.t2(); } frame 81 { _root.live[2 + ID] = 0; } frame 132 { stop(); _root.t2(); } frame 133 { _root.t1(); } frame 134 { getXY(); } frame 140 { run(X, Y); } frame 141 { run(X, Y); } frame 142 { run(X, Y); } frame 143 { run(X, Y); } frame 144 { run(X, Y); } frame 145 { run(X, Y); } frame 146 { run(X, Y); } frame 147 { run(X, Y); } frame 148 { run(X, Y); } frame 149 { run(X, Y); } frame 150 { run(X, Y); } frame 151 { run(X, Y); } frame 152 { X = -X / 2; Y = -Y / 2; } frame 157 { _global.atype = 'p'; _global.damage = atk * 2300; _root.hurt(); } frame 159 { run(X, Y); } frame 160 { run(X, Y); } frame 161 { run(X, Y); } frame 162 { run(X, Y); } frame 163 { run(X, Y); } frame 164 { run(X, Y); } frame 165 { run(X, Y); } frame 166 { run(X, Y); } frame 167 { run(X, Y); } frame 168 { run(X, Y); } frame 169 { run(X, Y); } frame 170 { run(X, Y); } frame 171 { run(X, Y); } frame 172 { run(X, Y); } frame 173 { run(X, Y); } frame 174 { run(X, Y); } frame 175 { run(X, Y); } frame 176 { run(X, Y); } frame 177 { run(X, Y); } frame 178 { run(X, Y); } frame 179 { run(X, Y); } frame 180 { run(X, Y); } frame 181 { run(X, Y); } frame 182 { run(X, Y); } frame 187 { k(); _root.t2(); } frame 188 { _root.t1(); getXY(); } frame 195 { run(X, Y); } frame 196 { run(X, Y); } frame 197 { run(X, Y); } frame 198 { run(X, Y); } frame 199 { run(X, Y); } frame 200 { run(X, Y); } frame 201 { run(X, Y); } frame 202 { run(X, Y); } frame 203 { run(X, Y); } frame 204 { run(X, Y); } frame 205 { run(X, Y); } frame 206 { run(X, Y); } frame 207 { X = -X / 2; Y = -Y / 2; } frame 212 { _global.atype = 'p'; _global.damage = atk * 1600; _root.hurt(); } frame 216 { _root.hurt(); } frame 218 { run(X, Y); } frame 219 { run(X, Y); } frame 220 { run(X, Y); } frame 221 { run(X, Y); } frame 222 { run(X, Y); } frame 223 { run(X, Y); } frame 224 { run(X, Y); } frame 225 { run(X, Y); } frame 226 { run(X, Y); } frame 227 { run(X, Y); } frame 228 { run(X, Y); } frame 229 { run(X, Y); } frame 230 { run(X, Y); } frame 231 { run(X, Y); } frame 232 { run(X, Y); } frame 233 { run(X, Y); } frame 234 { run(X, Y); } frame 235 { run(X, Y); } frame 236 { run(X, Y); } frame 237 { run(X, Y); } frame 238 { run(X, Y); } frame 239 { run(X, Y); } frame 240 { run(X, Y); } frame 241 { run(X, Y); } frame 246 { k(); _root.t2(); } frame 247 { _root.t1(); } frame 272 { if (_global.T == 'P1') { _global.P1seal += 4; } else { _global.P2seal += 4; } _global.atype = 'm'; _global.damage = atk * 600; _root.hurt(); _global.Text = 30; _root.maintext.play(); } frame 276 { k(); _root.t2(); } frame 277 { _root.t1(); } frame 295 { _global.atype = 'm'; _global.T = 'Pall'; _global.damage = atk * 400; } frame 298 { _root.hurt(); } frame 302 { _root.hurt(); } frame 306 { _root.hurt(); } frame 310 { _root.hurt(); } frame 312 { k(); _root.t2(); } } frame 86 { live[3] = 1; live[4] = 1; live[5] = 0; coords = [180, 230, 60, 272, 520, 210, 560, 280, 600, 305]; tellTarget ('/T1') { HP = 27000 * _global.dif; atk = 0.8 * _global.dif; def = 1.1; matk = 1 * _global.dif; mdef = 1.1; X2 = _root.coords[4]; Y2 = _root.coords[5]; ID = 1; } tellTarget ('/T2') { HP = 27000 * _global.dif; atk = 0.8 * _global.dif; def = 1.1; matk = 1 * _global.dif; mdef = 1.1; X2 = _root.coords[6]; Y2 = _root.coords[7]; ID = 2; } } frame 87 { function itemGet() { b = random(3); if (b == 0) { _global.Text = 22; maintext.play(); } } stop(); } frame 90 { live[3] = 1; live[4] = 1; live[5] = 1; coords = [180, 230, 60, 272, 530, 200, 560, 240, 590, 300]; tellTarget ('/T1') { HP = 25000 * _global.dif; atk = 0.7 * _global.dif; def = 1.1; matk = 1 * _global.dif; mdef = 1.1; X2 = _root.coords[4]; Y2 = _root.coords[5]; ID = 1; } tellTarget ('/T2') { HP = 25000 * _global.dif; atk = 0.7 * _global.dif; def = 1.1; matk = 1 * _global.dif; mdef = 1.1; X2 = _root.coords[6]; Y2 = _root.coords[7]; ID = 2; } tellTarget ('/T3') { HP = 25000 * _global.dif; atk = 0.7 * _global.dif; def = 1.1; matk = 1 * _global.dif; mdef = 1.1; X2 = _root.coords[8]; Y2 = _root.coords[9]; ID = 3; } } frame 91 { function itemGet() { b = random(2); if (b == 0) { _global.Text = 22; maintext.play(); } } stop(); } frame 92 { nextBG(); } frame 93 { function moveset() { b = random(9); ranplay(); if (T1.charge) { _global.command = 'special4'; } else { if (T1.HP > 200000 * _global.dif) { if (b == 0) { _global.command = 'attack'; } if (b == 1) { _global.command = 'attack2'; } if (b == 2) { _global.command = 'attack3'; } if (b == 3) { _global.command = 'attack3'; } if (b == 4) { _global.command = 'attack2'; } if (b == 5) { _global.command = 'attack'; } if (b == 6) { _global.command = 'special'; } if (b == 7) { _global.command = 'special2'; } if (b == 8) { _global.command = 'special'; } } else { if (T1.HP > 100000 * _global.dif) { if (b == 0) { _global.command = 'attack'; } if (b == 1) { _global.command = 'attack2'; } if (b == 2) { _global.command = 'attack3'; } if (b == 3) { _global.command = 'attack4'; } if (b == 4) { _global.command = 'attack5'; } if (b == 5) { _global.command = 'special2'; } if (b == 6) { _global.command = 'special2'; } if (b == 7) { _global.command = 'attack4'; } if (b == 8) { _global.command = 'attack5'; } } else { if (b == 0) { _global.command = 'special3'; } if (b == 1) { _global.command = 'special3'; } if (b == 2) { _global.command = 'attack4'; } if (b == 3) { _global.command = 'attack5'; } if (b == 4) { _global.command = 'attack5'; } if (b == 5) { _global.command = 'charge'; } if (b == 6) { _global.command = 'attack4'; } if (b == 7) { _global.command = 'attack5'; } if (b == 8) { _global.command = 'charge'; } } } } trace(_global.command); tellTarget ('_global.user') { gotoAndPlay(_global.command); } } } frame 93 { stopAllSounds(); } movieClip 1878 { frame 1 { function symbols() { a1._visible = false; b1._visible = false; c1._visible = false; d1._visible = false; if (_parent.atk2 < 1) { a1._visible = true; a1._alpha = (1 - _parent.atk2) * 300; } if (_parent.def2 < 1) { b1._visible = true; b1._alpha = (1 - _parent.def2) * 300; } if (_parent.matk2 < 1) { c1._visible = true; c1._alpha = (1 - _parent.matk2) * 300; } if (_parent.mdef2 < 1) { d1._visible = true; d1._alpha = (1 - _parent.mdef2) * 300; } } symbols(); } frame 19 { symbols(); } } movieClip 1879 { } movieClip 1883 { } movieClip 1957 { } movieClip 1977 { frame 1 { function k() { gotoAndPlay('stand'); } function run(X, Y) { this._x += X; this._y += Y; } function damage() { _root.dam.duplicateMovieClip('bob' + b, b); ++b; bb = 'bob' + (b - 1); tellTarget (''_root.' + bb') { _x = random(100) + 70; _y = random(100) + 70; } } b = 0; } frame 1 { charge = 0; } frame 5 { function enemystats() { if (def2 < 1) { def2 += 0.05; } if (mdef2 < 1) { mdef2 += 0.05; } if (atk2 < 1) { atk2 += 0.05; } if (matk2 < 1) { matk2 += 0.05; } } function defdown() { def2 -= 0.25; if (def2 < 0.6) { def2 = 0.6; } } function mdefdown() { mdef2 -= 0.25; if (mdef2 < 0.6) { mdef2 = 0.6; } } function atkdown() { atk2 -= 0.25; if (atk2 < 0.6) { atk2 = 0.6; } } function matkdown() { matk2 -= 0.25; if (matk2 < 0.6) { matk2 = 0.6; } } atk2 = 1; def2 = 1; mdef2 = 1; matk2 = 1; } frame 6 { function k() { gotoAndPlay('stand'); q = 0; } function run(X, Y) { this._x += X; this._y += Y; } function getXY() { X = -(X2 - 120 - _root.X()) / 12; Y = -(Y2 - _root.Y()) / 12; } function damageNo() { _root.dam.duplicateMovieClip('blk' + b, b + 99); (eval('_root.blk' + b))._x = X2 - 350 + random(50); (eval('_root.blk' + b))._y = Y2 - 250 + random(50); (eval('_root.blk' + b)).damage = damage; b += 1; } b = ID + 8; q = 0; } frame 8 { HPmax = HP; } frame 43 { stop(); } frame 45 { k(); } frame 46 { if (_global.atype == 'p') { damage = Math.round(damage / def * def2); } else { damage = Math.round(damage / mdef * mdef2); } if (_global.magic == 'airstrike') { damage = Math.round(damage * 2); } if (_global.magic == 'quake') { damage = Math.round(damage * 1.4); } if (_global.magic == 'screamer') { damage = Math.round(damage * 0.2); } if (_global.magic == 'thunderbolt') { damage = Math.round(damage * 2); } if (_global.magic == 'fireball') { damage = Math.round(damage * 0.2); } if (_global.magic == 'glacier') { damage = Math.round(damage * 0.2); } if (q == 0) { _root.t1(); q = 1; } damageNo(); HP -= damage; if (HP <= 0) { HP = 0; gotoAndPlay('die'); } else { if (damage > 10000) { gotoAndPlay('hit2'); } } } frame 64 { k(); _root.t2(); } frame 89 { k(); _root.t2(); } frame 91 { _root.live[2 + ID] = 0; } frame 92 { _root.shake('big'); } frame 106 { _root.shake('small'); } frame 114 { _root.shake('small'); } frame 160 { if (!_root.medalCount[5]) { _root.medal_popup.unlockMedal('Mecha'); _root.medalCount[5] = 1; trace(_root.medalCount); } } frame 165 { stop(); _root.t2(); } frame 166 { _root.t1(); } frame 174 { getXY(); } frame 175 { run(X, Y); } frame 176 { run(X, Y); } frame 177 { run(X, Y); } frame 178 { run(X, Y); } frame 179 { run(X, Y); } frame 180 { run(X, Y); } frame 181 { run(X, Y); } frame 182 { run(X, Y); } frame 183 { run(X, Y); } frame 184 { run(X, Y); } frame 185 { run(X, Y); } frame 186 { run(X, Y); } frame 187 { X = -X / 2; Y = -Y / 2; } frame 192 { _global.atype = 'p'; _global.damage = atk * (2500 + random(2000)); _root.hurt(); } frame 198 { run(X, Y); } frame 199 { run(X, Y); } frame 200 { run(X, Y); } frame 201 { run(X, Y); } frame 202 { run(X, Y); } frame 203 { run(X, Y); } frame 204 { run(X, Y); } frame 205 { run(X, Y); } frame 206 { run(X, Y); } frame 207 { run(X, Y); } frame 208 { run(X, Y); } frame 209 { run(X, Y); } frame 210 { run(X, Y); } frame 211 { run(X, Y); } frame 212 { run(X, Y); } frame 213 { run(X, Y); } frame 214 { run(X, Y); } frame 215 { run(X, Y); } frame 216 { run(X, Y); } frame 217 { run(X, Y); } frame 218 { run(X, Y); } frame 219 { run(X, Y); } frame 220 { run(X, Y); } frame 221 { run(X, Y); } frame 228 { k(); _root.t2(); } frame 229 { _root.t1(); } frame 237 { getXY(); } frame 238 { run(X, Y); } frame 239 { run(X, Y); } frame 240 { run(X, Y); } frame 241 { run(X, Y); } frame 242 { run(X, Y); } frame 243 { run(X, Y); } frame 244 { run(X, Y); } frame 245 { run(X, Y); } frame 246 { run(X, Y); } frame 247 { run(X, Y); } frame 248 { run(X, Y); } frame 249 { run(X, Y); } frame 250 { X = -X / 2; Y = -Y / 2; } frame 257 { _global.atype = 'p'; _global.damage = atk * 4800; _root.hurt(); } frame 261 { run(X, Y); } frame 262 { run(X, Y); } frame 263 { run(X, Y); } frame 264 { run(X, Y); } frame 265 { run(X, Y); } frame 266 { run(X, Y); } frame 267 { run(X, Y); } frame 268 { run(X, Y); } frame 269 { run(X, Y); } frame 270 { run(X, Y); } frame 271 { run(X, Y); } frame 272 { run(X, Y); } frame 273 { run(X, Y); } frame 274 { run(X, Y); } frame 275 { run(X, Y); } frame 276 { run(X, Y); } frame 277 { run(X, Y); } frame 278 { run(X, Y); } frame 279 { run(X, Y); } frame 280 { run(X, Y); } frame 281 { run(X, Y); } frame 282 { run(X, Y); } frame 283 { run(X, Y); } frame 284 { run(X, Y); } frame 291 { k(); } frame 291 { _root.t2(); } frame 292 { _root.t1(); } frame 300 { getXY(); } frame 301 { run(X, Y); } frame 302 { run(X, Y); } frame 303 { run(X, Y); } frame 304 { run(X, Y); } frame 305 { run(X, Y); } frame 306 { run(X, Y); } frame 307 { run(X, Y); } frame 308 { run(X, Y); } frame 309 { run(X, Y); } frame 310 { run(X, Y); } frame 311 { run(X, Y); } frame 312 { run(X, Y); } frame 313 { X = -X / 2; Y = -Y / 2; } frame 319 { _global.atype = 'p'; _global.damage = atk * 4200; _root.hurt(); } frame 324 { run(X, Y); } frame 325 { run(X, Y); } frame 326 { run(X, Y); } frame 327 { run(X, Y); } frame 328 { run(X, Y); } frame 329 { run(X, Y); } frame 330 { run(X, Y); } frame 331 { run(X, Y); } frame 332 { run(X, Y); } frame 333 { run(X, Y); } frame 334 { run(X, Y); } frame 335 { run(X, Y); } frame 336 { run(X, Y); } frame 337 { run(X, Y); } frame 338 { run(X, Y); } frame 339 { run(X, Y); } frame 340 { run(X, Y); } frame 341 { run(X, Y); } frame 342 { run(X, Y); } frame 343 { run(X, Y); } frame 344 { run(X, Y); } frame 345 { run(X, Y); } frame 346 { run(X, Y); } frame 347 { run(X, Y); } frame 354 { k(); } frame 354 { _root.t2(); } frame 355 { _root.t1(); } frame 363 { getXY(); } frame 364 { run(X, Y); } frame 365 { run(X, Y); } frame 366 { run(X, Y); } frame 367 { run(X, Y); } frame 368 { run(X, Y); } frame 369 { run(X, Y); } frame 370 { run(X, Y); } frame 371 { run(X, Y); } frame 372 { run(X, Y); } frame 373 { run(X, Y); } frame 374 { run(X, Y); } frame 375 { run(X, Y); } frame 376 { X = -X / 2; Y = -Y / 2; } frame 382 { _root.shake('small'); } frame 382 { _global.atype = 'p'; _global.damage = atk * 5800; _root.hurt(); } frame 387 { run(X, Y); } frame 388 { run(X, Y); } frame 389 { run(X, Y); } frame 390 { run(X, Y); } frame 391 { run(X, Y); } frame 392 { run(X, Y); } frame 393 { run(X, Y); } frame 394 { run(X, Y); } frame 395 { run(X, Y); } frame 396 { run(X, Y); } frame 397 { run(X, Y); } frame 398 { run(X, Y); } frame 399 { run(X, Y); } frame 400 { run(X, Y); } frame 401 { run(X, Y); } frame 402 { run(X, Y); } frame 403 { run(X, Y); } frame 404 { run(X, Y); } frame 405 { run(X, Y); } frame 406 { run(X, Y); } frame 407 { run(X, Y); } frame 408 { run(X, Y); } frame 409 { run(X, Y); } frame 410 { run(X, Y); } frame 417 { k(); _root.t2(); } frame 419 { _root.t1(); } frame 432 { _root.shake('small'); } frame 435 { _global.atype = 'p'; _global.T = 'Pall'; _global.damage = atk * 2300; _root.hurt(); } frame 443 { _root.hurt(); } frame 447 { _root.shake('big'); } frame 466 { k(); _root.t2(); } frame 467 { _root.t1(); } frame 479 { _global.atype = 'p'; _global.damage = atk * 700; _root.hurt(); } frame 482 { _root.hurt(); } frame 485 { _root.hurt(); } frame 488 { _root.hurt(); } frame 491 { _root.hurt(); } frame 494 { _root.hurt(); } frame 497 { _root.hurt(); } frame 512 { k(); _root.t2(); } frame 513 { _root.t1(); } frame 534 { _root.shake('small'); } frame 536 { _global.atype = 'm'; _global.T = 'Pall'; _global.damage = atk * 4400; _root.hurt(); } frame 554 { k(); _root.t2(); } frame 555 { _root.t1(); } frame 585 { _global.atype = 'm'; _global.T = 'Pall'; _global.damage = atk * 4400; _root.hurt(); } frame 600 { k(); _root.t2(); } frame 601 { _root.t1(); } frame 605 { charge = 1; } frame 624 { _root.shake('small'); } frame 638 { _root.shake('small'); } frame 643 { _root.shake('small'); } frame 656 { _root.shake('small'); } frame 673 { _root.shake('small'); } frame 684 { _global.Text = 27; _root.maintext.play(); } frame 690 { k(); _root.t2(); } frame 691 { _root.t1(); } frame 710 { _root.shake('small'); } frame 717 { charge = 0; } frame 722 { _root.shake('big'); } frame 727 { _root.shake('big'); } frame 727 { _global.atype = 'm'; _global.T = 'Pall'; _global.damage = atk * 9800; _root.hurt(); } frame 732 { _root.shake('big'); } frame 738 { _root.shake('big'); } frame 743 { _root.shake('small'); } frame 749 { _root.shake('small'); } frame 757 { _root.shake('small'); } frame 777 { k(); _root.t2(); } } frame 94 { live[3] = 1; live[4] = 0; live[5] = 0; coords = [180, 230, 60, 272, 505, 275, 540, 255, 600, 305]; tellTarget ('/T1') { HP = 260000 * _global.dif; atk = 0.9 * _global.dif; def = 1.1; matk = 1 * _global.dif; mdef = 1.1; X2 = _root.coords[4]; Y2 = _root.coords[5]; ID = 1; } } frame 95 { function itemGet() { b = random(20); if (b < 5) { _global.Text = 19; maintext.play(); } else { _global.Text = 22; maintext.play(); } } stop(); } frame 96 { nextBG(); } frame 97 { function moveset() { b = random(6); ranplay(); if (b == 0) { _global.command = 'attack'; } else { if (b == 1) { _global.command = 'attack2'; } else { _global.command = 'magic'; } } tellTarget ('_global.user') { gotoAndPlay(_global.command); } } } frame 97 { stopAllSounds(); } movieClip 1979 { frame 1 { function symbols() { a1._visible = false; b1._visible = false; c1._visible = false; d1._visible = false; if (_parent.atk2 < 1) { a1._visible = true; a1._alpha = (1 - _parent.atk2) * 300; } if (_parent.def2 < 1) { b1._visible = true; b1._alpha = (1 - _parent.def2) * 300; } if (_parent.matk2 < 1) { c1._visible = true; c1._alpha = (1 - _parent.matk2) * 300; } if (_parent.mdef2 < 1) { d1._visible = true; d1._alpha = (1 - _parent.mdef2) * 300; } } symbols(); } frame 14 { symbols(); } frame 30 { symbols(); } } movieClip 1982 { frame 5 { function enemystats() { if (def2 < 1) { def2 += 0.05; } if (mdef2 < 1) { mdef2 += 0.05; } if (atk2 < 1) { atk2 += 0.05; } if (matk2 < 1) { matk2 += 0.05; } } function defdown() { def2 -= 0.25; if (def2 < 0.6) { def2 = 0.6; } } function mdefdown() { mdef2 -= 0.25; if (mdef2 < 0.6) { mdef2 = 0.6; } } function atkdown() { atk2 -= 0.25; if (atk2 < 0.6) { atk2 = 0.6; } } function matkdown() { matk2 -= 0.25; if (matk2 < 0.6) { matk2 = 0.6; } } atk2 = 1; def2 = 1; mdef2 = 1; matk2 = 1; } frame 6 { function k() { gotoAndPlay('stand'); q = 0; } function run(X, Y) { this._x += X; this._y += Y; } function getXY() { X = -(X2 - 30 - _root.X()) / 12; Y = -(Y2 - _root.Y()) / 12; } function damageNo() { _root.dam.duplicateMovieClip('bok' + b, b + 999); (eval('_root.bok' + b))._x = X2 - 350 + random(50); (eval('_root.bok' + b))._y = Y2 - 70 - 100 + random(50); (eval('_root.bok' + b)).damage = damage; b += 3; } b = ID + 999; q = 0; HPmax = HP; } frame 39 { stop(); } frame 40 { k(); } frame 41 { if (_global.atype == 'p') { damage = Math.round(damage / def * def2); } else { damage = Math.round(damage / mdef * mdef2); } if (_global.magic == 'judgement') { damage *= 2; } if (_global.magic == 'fireball' or _global.magic == 'erupt') { damage = Math.round(damage * 1.5); } if (_global.magic == 'seiken') { damage = Math.round(damage * 1.8); } if (_global.magic == 'screamer') { damage = Math.round(damage * 0.3); } if (q == 0) { _root.t1(); q = 1; } damageNo(); HP -= damage; if (HP <= 0) { HP = 0; gotoAndPlay('die'); } else { if (damage > 5000) { gotoAndPlay('hit2'); } } } frame 72 { k(); _root.t2(); } frame 100 { k(); _root.t2(); } frame 101 { _root.live[2 + ID] = 0; } frame 153 { stop(); _root.t2(); } frame 154 { _root.t1(); getXY(); } frame 164 { run(X, Y); } frame 165 { run(X, Y); } frame 166 { run(X, Y); } frame 167 { run(X, Y); } frame 168 { run(X, Y); } frame 169 { run(X, Y); } frame 170 { run(X, Y); } frame 171 { run(X, Y); } frame 172 { run(X, Y); } frame 173 { run(X, Y); } frame 174 { run(X, Y); } frame 175 { run(X, Y); } frame 176 { X = -X / 2; Y = -Y / 2; } frame 178 { _global.atype = 'p'; _global.damage = atk * 1800; _root.hurt(); } frame 182 { run(X, Y); } frame 183 { run(X, Y); } frame 184 { run(X, Y); } frame 185 { run(X, Y); } frame 186 { run(X, Y); } frame 187 { run(X, Y); } frame 188 { run(X, Y); } frame 189 { run(X, Y); } frame 190 { run(X, Y); } frame 191 { run(X, Y); } frame 192 { run(X, Y); } frame 193 { run(X, Y); } frame 194 { run(X, Y); } frame 195 { run(X, Y); } frame 196 { run(X, Y); } frame 197 { run(X, Y); } frame 198 { run(X, Y); } frame 199 { run(X, Y); } frame 200 { run(X, Y); } frame 201 { run(X, Y); } frame 202 { run(X, Y); } frame 203 { run(X, Y); } frame 204 { run(X, Y); } frame 205 { run(X, Y); } frame 219 { k(); _root.t2(); } frame 220 { _root.t1(); } frame 268 { b = random(3); if (b == 0) { _global.magic = 'death'; } if (b == 1) { _global.magic = 'toxic'; _global.damage = matk * 800; } else { _global.magic = 'dispel'; } _root.spells.gotoAndPlay(_global.magic); } frame 291 { k(); } frame 292 { _root.t1(); getXY(); } frame 302 { run(X, Y); } frame 303 { run(X, Y); } frame 304 { run(X, Y); } frame 305 { run(X, Y); } frame 306 { run(X, Y); } frame 307 { run(X, Y); } frame 308 { run(X, Y); } frame 309 { run(X, Y); } frame 310 { run(X, Y); } frame 311 { run(X, Y); } frame 312 { run(X, Y); } frame 313 { run(X, Y); } frame 314 { X = -X / 2; Y = -Y / 2; } frame 316 { _global.atype = 'p'; _global.damage = atk * 2200; _root.hurt(); } frame 320 { run(X, Y); } frame 321 { run(X, Y); } frame 322 { run(X, Y); } frame 323 { run(X, Y); } frame 324 { run(X, Y); } frame 325 { run(X, Y); } frame 326 { run(X, Y); } frame 327 { run(X, Y); } frame 328 { run(X, Y); } frame 329 { run(X, Y); } frame 330 { run(X, Y); } frame 331 { run(X, Y); } frame 332 { run(X, Y); } frame 333 { run(X, Y); } frame 334 { run(X, Y); } frame 335 { run(X, Y); } frame 336 { run(X, Y); } frame 337 { run(X, Y); } frame 338 { run(X, Y); } frame 339 { run(X, Y); } frame 340 { run(X, Y); } frame 341 { run(X, Y); } frame 342 { run(X, Y); } frame 343 { run(X, Y); } frame 357 { k(); _root.t2(); } } frame 98 { live[3] = 1; live[4] = 1; live[5] = 0; coords = [180, 230, 60, 272, 530, 220, 590, 280, 600, 305]; tellTarget ('/T1') { HP = 45000 * _global.dif; atk = 1 * _global.dif; def = 1; matk = 1 * _global.dif; mdef = 1; X2 = _root.coords[4]; Y2 = _root.coords[5]; ID = 1; } tellTarget ('/T2') { HP = 45000 * _global.dif; atk = 1 * _global.dif; def = 1; matk = 1 * _global.dif; mdef = 1; X2 = _root.coords[6]; Y2 = _root.coords[7]; ID = 2; } } frame 99 { function itemGet() { b = random(2); if (b == 0) { _global.Text = 23; maintext.play(); } else { _global.Text = 24; maintext.play(); } } stop(); } frame 102 { live[3] = 1; live[4] = 1; live[5] = 1; coords = [180, 230, 60, 272, 530, 210, 590, 260, 550, 330]; tellTarget ('/T1') { HP = 40000 * _global.dif; atk = 0.8 * _global.dif; def = 1; matk = 1 * _global.dif; mdef = 1; X2 = _root.coords[4]; Y2 = _root.coords[5]; ID = 1; } tellTarget ('/T2') { HP = 40000 * _global.dif; atk = 0.8 * _global.dif; def = 1; matk = 1 * _global.dif; mdef = 1; X2 = _root.coords[6]; Y2 = _root.coords[7]; ID = 2; } tellTarget ('/T3') { HP = 40000 * _global.dif; atk = 0.8 * _global.dif; def = 1; matk = 1 * _global.dif; mdef = 1; X2 = _root.coords[8]; Y2 = _root.coords[9]; ID = 3; } } frame 103 { function itemGet() { b = random(2); if (b == 0) { _global.Text = 23; maintext.play(); } else { _global.Text = 24; maintext.play(); } } stop(); } frame 104 { stopAllSounds(); } frame 105 { function moveset() { _root.t1(); trace('goku turn start'); b = random(9); ranplay(); if (T1.charge) { _global.command = 'special4'; } else { if (T1.HP > 380000 * _global.dif) { if (b == 0) { _global.command = 'attack'; } if (b == 1) { _global.command = 'attack2'; } if (b == 2) { _global.command = 'attack3'; } if (b == 3) { _global.command = 'attack4'; } if (b == 4) { _global.command = 'attack2'; } if (b == 5) { _global.command = 'attack'; } if (b == 6) { _global.command = 'magic'; } if (b == 7) { _global.command = 'magic'; } if (b == 8) { _global.command = 'magic2'; } } else { if (T1.HP > 220000 * _global.dif) { if (b == 0) { _global.command = 'special'; } if (b == 1) { _global.command = 'attack2'; } if (b == 2) { _global.command = 'attack3'; } if (b == 3) { _global.command = 'attack4'; } if (b == 4) { _global.command = 'attack3'; } if (b == 5) { _global.command = 'special'; } if (b == 6) { _global.command = 'magic2'; } if (b == 7) { _global.command = 'special2'; } if (b == 8) { _global.command = 'magic'; } } else { if (b == 0) { _global.command = 'special3'; } if (b == 1) { _global.command = 'special3'; } if (b == 2) { _global.command = 'attack4'; } if (b == 3) { _global.command = 'attack3'; } if (b == 4) { _global.command = 'special2'; } if (b == 5) { _global.command = 'special2'; } if (b == 6) { _global.command = 'magic2'; } if (b == 7) { _global.command = 'magic'; } if (b == 8) { _global.command = 'special'; } } } } trace(_global.command); tellTarget ('_global.user') { gotoAndPlay(_global.command); } } } movieClip 1984 { } movieClip 1987 { } movieClip 1989 { } movieClip 1991 { } movieClip 1994 { } movieClip 2000 { } movieClip 2001 { } movieClip 2005 { } movieClip 2007 { } movieClip 2008 { } movieClip 2010 { } movieClip 2014 { } movieClip 2017 { } movieClip 2019 { } movieClip 2021 { } movieClip 2026 { } movieClip 2028 { } movieClip 2030 { } movieClip 2032 { } movieClip 2034 { } movieClip 2036 { } movieClip 2038 { } movieClip 2040 { frame 1 { function symbols() { a1._visible = false; b1._visible = false; c1._visible = false; d1._visible = false; if (_parent.atk2 < 1) { a1._visible = true; a1._alpha = (1 - _parent.atk2) * 300; } if (_parent.def2 < 1) { b1._visible = true; b1._alpha = (1 - _parent.def2) * 300; } if (_parent.matk2 < 1) { c1._visible = true; c1._alpha = (1 - _parent.matk2) * 300; } if (_parent.mdef2 < 1) { d1._visible = true; d1._alpha = (1 - _parent.mdef2) * 300; } } symbols(); } frame 17 { symbols(); } frame 38 { symbols(); } } movieClip 2049 { } movieClip 2051 { } movieClip 2060 { } movieClip 2064 { } movieClip 2066 { } movieClip 2068 { } movieClip 2073 { } movieClip 2077 { } movieClip 2080 { frame 4 { _root.shake('big'); } frame 6 { function enemystats() { if (def2 < 1) { def2 += 0.05; } if (mdef2 < 1) { mdef2 += 0.05; } if (atk2 < 1) { atk2 += 0.05; } if (matk2 < 1) { matk2 += 0.05; } } function defdown() { def2 -= 0.25; if (def2 < 0.6) { def2 = 0.6; } } function mdefdown() { mdef2 -= 0.25; if (mdef2 < 0.6) { mdef2 = 0.6; } } function atkdown() { atk2 -= 0.25; if (atk2 < 0.6) { atk2 = 0.6; } } function matkdown() { matk2 -= 0.25; if (matk2 < 0.6) { matk2 = 0.6; } } atk2 = 1; def2 = 1; mdef2 = 1; matk2 = 1; } frame 7 { function k() { gotoAndPlay('stand'); q = 0; } function run(X, Y) { this._x += X; this._y += Y; } function getXY() { X = -(X2 - 100 - _root.X()); Y = -(Y2 - _root.Y()); } function damageNo() { _root.dam.duplicateMovieClip('bk' + b, b + 999); (eval('_root.bk' + b))._x = X2 - 400 + random(50); (eval('_root.bk' + b))._y = Y2 - 200 + random(50); (eval('_root.bk' + b)).damage = damage; b += 1; } b = ID + 8; q = 0; } frame 8 { HPmax = HP; charge = 0; } frame 78 { stop(); } frame 83 { k(); } frame 84 { if (_global.atype == 'p') { damage = Math.round(damage / def * def2); } else { damage = Math.round(damage / mdef * mdef2); } if (_global.magic == 'seiken') { damage = Math.round(damage * 1.8); } if (_global.magic == 'judgement') { damage = Math.round(damage * 2); } if (_global.magic == 'screamer') { damage = Math.round(damage * 0.2); } if (_global.magic == 'fireball' or _global.magic == 'erupt') { damage = Math.round(damage * 1.5); } if (q == 0) { _root.t1(); q = 1; } damageNo(); HP -= damage; if (HP <= 0) { HP = 0; gotoAndPlay('die'); } else { if (damage > 20000) { gotoAndPlay('hit3'); } else { if (damage > 10000) { gotoAndPlay('hit2'); } } } } frame 101 { k(); _root.t2(); } frame 126 { k(); _root.t2(); } frame 161 { k(); _root.t2(); } frame 164 { _root.live[2 + ID] = 0; } frame 194 { _root.Playin = false; } frame 204 { _root.shake('small'); } frame 218 { _root.shake('small'); } frame 226 { _root.shake('small'); } frame 235 { _root.shake('small'); } frame 245 { _root.shake('small'); } frame 252 { _root.shake('small'); } frame 284 { stopAllSounds(); } frame 285 { _root.shake('big'); } frame 291 { _root.shake('big'); } frame 301 { _root.shake('big'); } frame 316 { _root.shake('big'); } frame 324 { _root.shake('big'); } frame 324 { if (!_root.medalCount[6]) { _root.medal_popup.unlockMedal('Goku'); _root.medalCount[6] = 1; trace(_root.medalCount); } } frame 331 { _root.shake('big'); } frame 340 { _root.menu._alpha -= 10; } frame 341 { _root.menu._alpha -= 10; } frame 342 { _root.menu._alpha -= 10; } frame 343 { _root.menu._alpha -= 10; } frame 344 { _root.menu._alpha -= 10; } frame 345 { _root.menu._alpha -= 10; } frame 346 { _root.menu._alpha -= 10; } frame 347 { _root.menu._alpha -= 10; } frame 348 { _root.menu._alpha -= 10; } frame 349 { _root.menu._alpha -= 10; } frame 350 { stop(); _root.gotoAndStop('end'); } frame 352 { getXY(); } frame 365 { run(X, Y); } frame 374 { _global.atype = 'p'; _global.damage = atk * (3400 + random(200)); _root.hurt(); } frame 374 { X = -X; Y = -Y; } frame 382 { run(X, Y); } frame 395 { k(); _root.t2(); } frame 396 { getXY(); } frame 409 { run(X, Y); } frame 417 { _global.atype = 'p'; _global.damage = atk * 750; _root.hurt(); } frame 418 { X = -X; Y = -Y; } frame 421 { _root.hurt(); } frame 425 { _root.hurt(); } frame 430 { _root.hurt(); } frame 434 { _root.hurt(); } frame 438 { _root.hurt(); } frame 445 { run(X, Y); } frame 458 { k(); _root.t2(); } frame 459 { getXY(); } frame 472 { run(X, Y); } frame 481 { _root.shake('small'); } frame 481 { _global.atype = 'p'; _global.damage = atk * 5000; _root.hurt(); } frame 481 { X = -X; Y = -Y; } frame 494 { run(X, Y); } frame 507 { k(); _root.t2(); } frame 508 { getXY(); } frame 521 { run(X, Y); } frame 537 { _root.shake('small'); } frame 537 { _global.atype = 'p'; _global.damage = atk * 5500; _root.hurt(); } frame 537 { X = -X; Y = -Y; } frame 543 { if (_global.T == 'P1') { _global.P1atk = 1; _global.P1matk = 1; _global.P1def = 1; _global.P1mdef = 1; } else { _global.P2atk = 1; _global.P2matk = 1; _global.P2def = 1; _global.P2mdef = 1; } } frame 554 { run(X, Y); } frame 560 { _global.Text = 31; _root.maintext.play(); } frame 567 { k(); _root.t2(); } frame 602 { b = random(3); if (b == 0) { _global.magic = 'death'; } if (b == 1) { _global.magic = 'toxic'; _global.damage = matk * 3000; } else { _global.magic = 'thedead'; } _root.spells.gotoAndPlay(_global.magic); } frame 612 { k(); } frame 650 { k(); _root.t2(); } frame 687 { _global.P1seal += 3; _global.P2seal += 3; _global.atype = 'm'; _global.T = 'Pall'; _global.damage = atk * 700; _root.hurt(); _global.Text = 30; _root.maintext.play(); } frame 704 { k(); _root.t2(); } frame 716 { _global.atype = 'm'; _global.T = 'Pall'; _global.damage = atk * 500; _root.hurt(); } frame 719 { _root.hurt(); } frame 722 { _root.hurt(); } frame 725 { _root.hurt(); } frame 728 { _root.hurt(); } frame 731 { _root.hurt(); } frame 734 { _root.hurt(); } frame 748 { k(); _root.t2(); } frame 774 { charge = 1; } frame 863 { _root.shake('small'); } frame 873 { _global.Text = 32; _root.maintext.play(); } frame 881 { k(); _root.t2(); } frame 923 { _root.shake('big'); } frame 928 { _root.shake('big'); } frame 939 { _root.shake('big'); } frame 945 { charge = 0; } frame 948 { _root.shake('big'); } frame 959 { _root.shake('small'); } frame 977 { _root.shake('small'); } frame 1001 { _global.atype = 'm'; _global.T = 'Pall'; _global.damage = atk * 10000; _root.hurt(); } frame 1055 { b = random(4); if (b == 0) { _global.command = 'attack'; } if (b == 1) { _global.command = 'attack2'; } if (b == 2) { _global.command = 'attack3'; } if (b == 3) { _global.command = 'attack4'; } _root.ranplay(); gotoAndPlay(_global.command); } frame 1056 { stop(); } frame 1086 { _root.shake('big'); } frame 1091 { _global.atype = 'm'; _global.T = 'Pall'; _global.damage = atk * 4800; _root.hurt(); } frame 1092 { _root.shake('big'); } frame 1100 { _root.shake('small'); } frame 1129 { k(); _root.t2(); } } frame 106 { live[3] = 1; live[4] = 0; live[5] = 0; coords = [180, 230, 60, 272, 560, 290, 590, 280, 600, 305]; tellTarget ('/T1') { HP = 450000 * _global.dif; atk = 1 * _global.dif; def = 1; matk = 1 * _global.dif; mdef = 1; X2 = _root.coords[4]; Y2 = _root.coords[5]; ID = 1; } } frame 107 { function itemGet() { b = random(2); if (b == 0) { _global.Text = 23; maintext.play(); } else { _global.Text = 24; maintext.play(); } } stop(); } frame 118 { stop(); } frame 120 { stop(); } movieClip 2085 { } movieClip 2087 { } movieClip 2089 { } movieClip 2091 { } movieClip 2093 { } movieClip 2095 { } movieClip 2096 { } movieClip 2098 { } movieClip 2099 { frame 59 { if (!_root.medalCount[10]) { _root.medal_popup.unlockMedal('Fail'); _root.medalCount[10] = 1; trace(_root.medalCount); } } frame 157 { _root.fade.play(); _global.dir = 'begin'; } frame 158 { stopAllSounds(); } } frame 121 { stop(); } frame 124 { stop(); } movieClip 2104 { } movieClip 2108 { frame 1 { _parent.stop(); } frame 764 { _parent.play(); stop(); } } movieClip 2110 { frame 1 { stop(); pause = function () { clearInterval(pause1); play(); }; pause1 = setInterval(pause, 7000); } frame 2 { if (_global.dif == 1.4) { if (!_root.medalCount[9]) { _root.medal_popup.unlockMedal('Hero'); _root.medalCount[9] = 1; trace(_root.medalCount); } } if (_global.dif == 1) { if (!_root.medalCount[7]) { _root.medal_popup.unlockMedal('Warrior'); _root.medalCount[7] = 1; trace(_root.medalCount); } } if (_global.dif == 1.2) { if (!_root.medalCount[8]) { _root.medal_popup.unlockMedal('Knight'); _root.medalCount[8] = 1; trace(_root.medalCount); } } } frame 124 { stop(); pause = function () { clearInterval(pause1); play(); }; pause1 = setInterval(pause, 2000); } frame 197 { stop(); pause = function () { clearInterval(pause1); play(); }; pause1 = setInterval(pause, 10000); } frame 260 { stop(); _root.fade.play(); _global.dir = 'begin'; } }




http://swfchan.com/11/54429/info.shtml
Created: 21/4 -2019 18:08:54 Last modified: 21/4 -2019 18:08:54 Server time: 05/11 -2024 08:37:13