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

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

Murloc RPG 2.swf

This is the info page for
Flash #100065

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


ActionScript [AS1/AS2]
Combined Code
button 6 { on (release) { com.newgrounds.API.loadNewgrounds(); } } movieClip 12 { frame 1 { onEnterFrame = function () { if (_visible) { _rotation = _rotation + 30; } else { delete onEnterFrame; } }; } } movieClip 13 { frame 11 { gotoAndPlay(1); } } movieClip 14 Flash Ad (NewgroundsAPI) { #initclip Object.registerClass('Flash Ad (NewgroundsAPI)', com.newgrounds.components.FlashAd); #endinitclip } movieClip 44 { frame 10 { stop(); } } movieClip 46 { frame 37 { _parent.setGotoFrame('done'); stop(); } } movieClip 48 { } movieClip 50 NewgroundsAPIAsset_Medal_Icon_Placeholder { } movieClip 58 NewgroundsAPIAsset_Medal_Popup { frame 1 { function endDelay() { clearInterval(pop_delay); gotoAndPlay('closeme'); } _visible = true; icon._visible = false; pop_delay = setInterval(endDelay, 3000); } frame 2 { medal.attachIcon(icon); } frame 10 { icon._visible = true; medal_name = medal.getName(); medal_value = medal.getValue() + 'pts'; stop(); } frame 21 { this.removeMovieClip(); _visible = false; stop(); } } movieClip 64 NewgroundsAPIAsset_Login_Warning { frame 1 { function endDelay() { clearInterval(pop_delay); gotoAndPlay('closeme'); } _x = 0; _y = 0; _visible = true; pop_delay = setInterval(endDelay, 6000); } frame 10 { stop(); } frame 21 { this.removeMovieClip(); _visible = false; stop(); } } movieClip 67 NewgroundsAPIAsset_Connection_Error { frame 1 { function endDelay() { clearInterval(pop_delay); gotoAndPlay('closeme'); } _x = 0; _y = 0; _visible = true; pop_delay = setInterval(endDelay, 6000); } frame 10 { stop(); } frame 21 { this.removeMovieClip(); _visible = false; stop(); } } movieClip 69 { } movieClip 71 { } movieClip 73 { } movieClip 75 { } movieClip 77 { } movieClip 79 { } movieClip 81 { } movieClip 83 { } movieClip 85 { } movieClip 87 { } movieClip 88 NewgroundsAPIAsset_big_popup_background { frame 1 { var w = Math.round(this._width); var h = Math.round(this._height); if (w < 80) { w = 80; } if (h < 80) { h = 80; } this._width = 350; this._height = 120; t._width = w - 2; t._x = 1; b._width = w - 2; b._x = 1; c._width = w - 2; c._x = 1; c._height = h - 2; c._y = 1; l._height = h - 2; l._y = 1; r._height = h - 2; r._y = 1; tr._x = w - 7; r._x = w - 7; br._x = w - 7; b._y = h - 7; bl._y = h - 7; br._y = h - 7; shadow._width = w + 10; shadow._height = h + 10; } } button 92 { on (release) { this._visible = false; this.removeMovieClip(); } } button 98 { on (release) { getURL(official_version_url, '_blank'); } } movieClip 100 NewgroundsAsset_New_Version_Available { frame 1 { _x = Stage.width / 2; _y = Stage.height / 2; background._width = Stage.width + 200; background._height = Stage.height + 200; background._x = -(_x + 100); background._y = -(_y + 100); } } button 101 { on (release) { getURL(official_version_url, '_blank'); } } movieClip 105 NewgroundsAsset_Illegal_Host { frame 1 { _x = Stage.width / 2; _y = Stage.height / 2; background._width = Stage.width + 200; background._height = Stage.height + 200; background._x = -(_x + 100); background._y = -(_y + 100); } } movieClip 106 API Connector (NewgroundsAPI) { #initclip Object.registerClass('API Connector (NewgroundsAPI)', com.newgrounds.components.APIConnector); #endinitclip frame 20 { _visible = false; } } frame 1 { function onMedalUnlocked(event) { if (event.__get__success()) { var v1 = event.data.medal; trace('You unlocked \'' + v1.__get__name() + '\'! (value: ' + v1.__get__value() + ' points)'); } } com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCKED, onMedalUnlocked, this); stop(); } frame 1 { Stage.showMenu = false; } movieClip 112 { } // unknown tag 88 length 89 movieClip 115 { } instance of movieClip 106 API Connector (NewgroundsAPI) { onClipEvent (construct) { api_id = '19267:n1oKMhoT'; encryption_key = 'wqQq5MaqxSEx7ZvL2OqbEBdwNT3B5sEy'; version = '1.3'; fake_session = true; debug = true; error_screens = true; medal_popups = true; } } instance of movieClip 14 Flash Ad (NewgroundsAPI) { onClipEvent (construct) { show_background = true; } } movieClip 117 { } movieClip 120 { } movieClip 122 { } movieClip 123 { } button 124 { on (release) { getURL('http://www.newgrounds.com', '_blank'); } } movieClip 126 { } movieClip 128 { } movieClip 130 { frame 1 { function timerHandler() { if (!loadingComplete) { var v4 = _root.getBytesLoaded() / _root.getBytesTotal(); bar._yscale = 100 * v4; if (v4 == 1) { loadingComplete = true; if (AUTO_PLAY) { startMovie(); } else { gotoAndStop('loaded'); } return undefined; } } dt = getTimer() - time; time += dt; frameAccum += dt; var v3 = 0; for (;;) { if (!(frameAccum >= FRAME_TIME && v3 < MAX_FRAME_SKIP)) break; advanceFrame(tankLogo, true, true); advanceFrame(loadingText, false, true); advanceFrame(barGfx, false, true); if (loadingComplete) { advanceFrame(this, false, false); } frameAccum -= FRAME_TIME; v3++; } updateAfterEvent(); } function advanceFrame(clip, recurse, loop) { if (!clip) { return undefined; } clip.stop(); if (clip._currentframe == clip._totalframes) { if (loop) { clip.gotoAndStop(1); } } else { clip.nextFrame(); } if (recurse) { for (childName in clip) { if (typeof clip[childName] == 'movieclip') { advanceFrame(clip[childName], recurse, loop); } } } } function startMovie() { clearInterval(intervalId); _root.play(); } _root.stop(); stop(); var FRAME_TIME = 33.33333333333334; var AUTO_PLAY = false; var MAX_FRAME_SKIP = 5; var loadingComplete; var intervalId; var time; var frameAccum; loadingComplete = false; intervalId = setInterval(this, 'timerHandler', FRAME_TIME / 2); frameAccum = 0; time = getTimer(); timerHandler(); } frame 72 { startMovie(); } } movieClip 16 __Packages.com.newgrounds.API { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.API) { var v1 = function () {}; com.newgrounds.API = v1; var v2 = v1.prototype; v1.setVersion = function (v) { com.newgrounds.API.version = v; }; v1.setUserEmail = function (e) { com.newgrounds.API.user_email = e; }; v1.setFakeSession = function (fake) { com.newgrounds.API.fake_session = fake; }; v1.setPreload = function (p) { com.newgrounds.API.preload = p; }; v1.getPercentLoaded = function () { var v2; if (com.newgrounds.API.preload && com.newgrounds.API.preload_items > 0) { v2 = 80; var v4 = Math.round((com.newgrounds.API.preload_items_loaded / com.newgrounds.API.preload_items) * 20); var v3 = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * v2) + v4; return v3; } v2 = 100; v3 = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * v2); return v3; }; v1.reportNewAsset = function () { if (com.newgrounds.API.preload) { ++com.newgrounds.API.preload_items; } }; v1.reportAssetLoaded = function () { if (com.newgrounds.API.preload) { ++com.newgrounds.API.preload_items_loaded; } }; v1.populateMedals = function (medal_list) { if (com.newgrounds.API.medals === null) { com.newgrounds.API.medals = new Array(); var v2 = 0; while (v2 < medal_list.length) { var v1 = medal_list[v2]; com.newgrounds.API.medals.push(new com.newgrounds.Medal(v1.medal_id, v1.medal_name, v1.medal_value, v1.medal_difficulty, v1.medal_unlocked, v1.medal_icon)); ++v2; } } }; v1.populateSaveGroups = function (save_group_list, file_path, image_path) { com.newgrounds.SaveFile.setFilePath(file_path); com.newgrounds.SaveFile.setImagePath(image_path); com.newgrounds.API.save_groups = new Array(); var v6 = 0; while (v6 < save_group_list.length) { var v2 = save_group_list[v6]; var v5 = new com.newgrounds.SaveGroup(v2.group_id, v2.group_name, v2.group_type); var v4 = 0; while (v4 < v2.keys.length) { var v3 = v2.keys[v4]; v5.addKey(v3.id, v3.name, v3.type); ++v4; } v4 = 0; while (v4 < v2.ratings.length) { var v1 = v2.ratings[v4]; v5.addRating(v1.id, v1.name, v1.min, v1.max, v1.float); ++v4; } com.newgrounds.API.save_groups.push(v5); ++v6; } }; v1.populateScoreBoards = function (score_boards) { com.newgrounds.API.scoreboards = new Array(); var v1 = 0; while (v1 < score_boards.length) { com.newgrounds.API.scoreboards.push(new com.newgrounds.ScoreBoard(score_boards[v1].id, score_boards[v1].name)); ++v1; } }; v1.getOfficialURL = function () { var v1 = com.newgrounds.API.GATEWAY_URL + '?tracker_id=' + com.newgrounds.API.movie_id + '&command_id=loadOfficalVersion&seed=' + Math.random(); if (com.newgrounds.API.debug) { v1 += '&debug=1'; } return v1; }; v1.loadOfficialURL = function () { getURL(com.newgrounds.API.getOfficialURL(), '_blank'); }; v1.hasUserSession = function () { if (com.newgrounds.API.session_id && com.newgrounds.API.publisher_id) { return true; return false; } if (_root.NewgroundsAPI_PublisherID && _root.NewgroundsAPI_SessionID) { return true; } return false; }; v1.hostIsCompatible = function () { return _root.NewgroundsAPI_PublisherID !== undefined; }; v1.isNewgrounds = function () { return com.newgrounds.API.publisher_id == 1 || _root.NewgroundsAPI_PublisherID == 1 || ((com.newgrounds.API.getHost()).toLowerCase()).indexOf('ungrounded.net') > -1 || ((com.newgrounds.API.getHost()).toLowerCase()).indexOf('newgrounds.com') > -1; }; v1.hasPublisher = function () { return com.newgrounds.API.publisher_id || _root.NewgroundsAPI_PublisherID; }; v1.hasUserEmail = function () { if (com.newgrounds.API.user_email) { return true; } return false; }; v1.isConnected = function () { return com.newgrounds.API.connected; }; v1.getID = function () { return com.newgrounds.API.getTrackerID(); }; v1.getTrackerID = function () { return com.newgrounds.API.tracker_id; }; v1.getUserID = function () { return com.newgrounds.API.user_id; }; v1.getUserName = function () { return com.newgrounds.API.user_name; }; v1.connectionTimeOut = function () { com.newgrounds.API.reportAssetLoaded(); clearInterval(com.newgrounds.API.timeout); com.newgrounds.API.callListener(com.newgrounds.APIEvent.API_CONNECTED, false, new com.newgrounds.APIError('CONNECTION_FAILED', 'Connection to API gateway timed out.')); }; v1.connect = function (m_id, encrypt_key, debug_mode) { if (com.newgrounds.API.connected) { return undefined; } com.newgrounds.API.sendMessage('Connecting to the Newgrounds API Gateway...'); var v2 = function () { com.newgrounds.API.connectionTimeOut(); }; com.newgrounds.API.timeout = setInterval(v2, 10000, null); if (!m_id) { com.newgrounds.API.fatalError('API.connect() - missing required movie_id parameter', 'connect'); } com.newgrounds.API.movie_id = String(m_id); com.newgrounds.API.tracker_id = Number(com.newgrounds.API.movie_id.substring(0, com.newgrounds.API.movie_id.indexOf(':'))); com.newgrounds.API.encryption_key = encrypt_key; com.newgrounds.API.debug = debug_mode; com.newgrounds.API.user_id = 0; com.newgrounds.API.user_name = 'Guest'; if (_root.NewgroundsAPI_PublisherID) { com.newgrounds.API.publisher_id = _root.NewgroundsAPI_PublisherID; if (_root.NewgroundsAPI_SessionID) { com.newgrounds.API.session_id = _root.NewgroundsAPI_SessionID; } } else { if (com.newgrounds.API.fake_session) { com.newgrounds.API.publisher_id = 1; com.newgrounds.API.session_id = 'D3bu64p1U53R'; com.newgrounds.API.user_id = 10; com.newgrounds.API.user_name = 'API-Debugger'; } else { if (com.newgrounds.API.debug) { com.newgrounds.API.publisher_id = 1; } com.newgrounds.API.session_id = null; } } if (_root.NewgroundsAPI_UserName) { com.newgrounds.API.user_name = _root.NewgroundsAPI_UserName; } if (_root.NewgroundsAPI_UserID) { com.newgrounds.API.user_id = _root.NewgroundsAPI_UserID; } if (_root.NewgroundsAPI_UserpageFormat) { com.newgrounds.API.userpage_format = _root.NewgroundsAPI_UserpageFormat; } com.newgrounds.API.reportNewAsset(); com.newgrounds.API.connected = true; com.newgrounds.API.sendCommand('connectMovie', {'host': com.newgrounds.API.getHost(), 'movie_version': com.newgrounds.API.version}); }; v1.getHost = function () { if (!com.newgrounds.API.host) { var v1 = _url; if ((v1.toLowerCase()).indexOf('http://') > -1 or (v1.toLowerCase()).indexOf('https://') > -1) { if ((v1.toLowerCase()).indexOf(com.newgrounds.API.NEWGROUNDS_PREVIEW) > -1) { com.newgrounds.API.host = com.newgrounds.API.NEWGROUNDS_PREVIEW; } else { com.newgrounds.API.host = (v1.split('/'))[2].toLowerCase(); } return com.newgrounds.API.host; } com.newgrounds.API.host = com.newgrounds.API.LOCAL_HOST; } return com.newgrounds.API.host; }; v1.isPublishedHost = function () { for (var v1 in com.newgrounds.API.PREVIEW_HOSTS) { if (com.newgrounds.API.getHost() == com.newgrounds.API.PREVIEW_HOSTS[v1]) { return false; } } return true; }; v1.loadUserPage = function (u_id, u_name) { if (u_id == undefined && u_name == undefined) { if (com.newgrounds.API.hasUserSession()) { u_id = com.newgrounds.API.user_id; u_name = com.newgrounds.API.user_name; } else { return false; } } if (com.newgrounds.API.publisher_id == 1) { var v1 = 'http://' + com.newgrounds.API.user_name.toLowerCase() + '.newgrounds.com'; getURL(v1, '_blank'); return true; return false; } if (com.newgrounds.API.userpage_format) { v1 = com.newgrounds.API.userpage_format; v1 = (v1.split(':user_id:')).join(u_id.toString()); v1 = (v1.split(':user_name:')).join(escape(u_name)); getURL(v1, '_blank'); return true; } return false; }; v1.loadNewgrounds = function () { com.newgrounds.API.sendCommand('loadNewgrounds', {'host': com.newgrounds.API.getHost()}, true); }; v1.loadMySite = function () { com.newgrounds.API.sendCommand('loadMySite', {'host': com.newgrounds.API.getHost()}, true); }; v1.loadCustomLink = function (link) { com.newgrounds.API.sendCommand('loadCustomLink', {'host': com.newgrounds.API.getHost(), 'link': link}, true); }; v1.logCustomEvent = function (event) { com.newgrounds.API.sendCommand('logCustomEvent', {'host': com.newgrounds.API.getHost(), 'event': event}); }; v1.getScoreBoard = function (board) { if (!com.newgrounds.API.scoreboards || com.newgrounds.API.scoreboards.length < 1) { com.newgrounds.API.sendWarning('You do not have any scoreboards configured in your API setup.'); return null; } for (var v2 in com.newgrounds.API.scoreboards) { if (typeof board == 'string' && com.newgrounds.API.scoreboards[v2].name == board) { return com.newgrounds.API.scoreboards[v2]; } else { if (typeof board == 'number' && com.newgrounds.API.scoreboards[v2].id == board) { return com.newgrounds.API.scoreboards[v2]; } } } com.newgrounds.API.sendWarning('Could not find any scoreboards named \'' + board + '\'.'); return null; }; v1.postScore = function (board_name, value, tag) { var v3 = com.newgrounds.API.getScoreBoard(board_name); if (tag === undefined) { tag = ''; } if (!v3) { com.newgrounds.API.sendError({'command_id': 'postScore'}, new com.newgrounds.APIError('INVALID_SCOREBOARD', 'Failed to post score. Check the spelling of your board name.')); return undefined; } if (value == undefined) { com.newgrounds.API.sendError({'command_id': 'postScore'}, new com.newgrounds.APIError('MISSING_PARAM', 'Missing score value')); return undefined; } com.newgrounds.API.sendSecureCommand('postScore', {'user_name': com.newgrounds.API.user_name, 'board': v3.id, 'value': value, 'tag': tag, 'publisher_id': com.newgrounds.API.publisher_id}); }; v1.loadScores = function (board_name, period, tag) { var v3 = 'loadScores'; var v2 = com.newgrounds.API.getScoreBoard(board_name); if (!v2) { com.newgrounds.API.sendError({'command_id': v3}, new com.newgrounds.APIError('INVALID_SCOREBOARD', 'Failed to load scores. Check the spelling of your board name.')); return undefined; } var v1 = {}; v1.publisher_id = com.newgrounds.API.publisher_id; v1.board = v2.id; v1.num_results = v2.num_results; v1.page = v2.page; if (period === undefined) { v1.period = v2.period; } else { v1.period = period; } if (tag === undefined) { v1.tag = v2.tag; } else { v1.tag = tag; } com.newgrounds.API.sendCommand(v3, v1); }; v1.unlockMedal = function (medal, x, y) { if (!medal) { com.newgrounds.API.sendError({'command_id': 'unlockMedal'}, new com.newgrounds.APIError('MISSING_PARAM', 'missing required medal name')); return undefined; } if (typeof medal != 'object') { medal = com.newgrounds.API.getMedal(medal); } if (!medal) { com.newgrounds.API.sendError({'command_id': 'unlockMedal'}, new com.newgrounds.APIError('INVALID_MEDAL', 'medal unlock failed, check your medal name for correct spelling.')); return undefined; } com.newgrounds.API.callListener(com.newgrounds.APIEvent.UNLOCK_MEDAL, true, {'medal': medal, 'x': x, 'y': y}); if (com.newgrounds.API.hasUserSession() or com.newgrounds.API.debug) { com.newgrounds.API.sendMessage('Attempting to unlock \'' + medal.getName() + '\''); var v3 = new Object(); v3.medal_id = medal.getID(); com.newgrounds.API.sendSecureCommand('unlockMedal', v3); } else { com.newgrounds.API.sendMessage('Unlocking \'' + medal.getName() + '\''); medal.setUnlocked(true); var v2 = com.newgrounds.API.loadLocal('medals_unlocked'); if (!v2) { v2 = new Object(); } v2[medal.getID()] = true; com.newgrounds.API.saveLocal('medals_unlocked', v2); } }; v1.loadMedals = function () { if (com.newgrounds.API.medals) { com.newgrounds.API.callListener(com.newgrounds.APIEvent.MEDALS_LOADED, true, {'medals': com.newgrounds.API.medals}); return undefined; } var v1 = new Object(); if (com.newgrounds.API.hasUserSession()) { v1.publisher_id = com.newgrounds.API.publisher_id; v1.user_id = com.newgrounds.API.user_id; } com.newgrounds.API.sendCommand('getMedals', v1); }; v1.getMedals = function () { return com.newgrounds.API.medals; }; v1.getMedal = function (identifier) { if (!com.newgrounds.API.medals || com.newgrounds.API.medals.length < 1) { com.newgrounds.API.sendWarning('You do not have any medals configured on your API setup!'); return false; } for (var v3 in com.newgrounds.API.medals) { var v1 = com.newgrounds.API.medals[v3]; if (typeof identifier == 'string' && v1.getName() == identifier) { return v1; } else { if (v1.getID() == identifier) { return v1; } } } com.newgrounds.API.sendWarning('Could not find any medals named \'' + identifier + '\'.'); return false; }; v1.saveLocal = function (save_id, save_data, size_allocation) { if (!com.newgrounds.API.sharedObjects[save_id]) { com.newgrounds.API.sharedObjects[save_id] = SharedObject.getLocal('ng_ap_secure_' + com.newgrounds.API.movie_id + '_' + save_id); } com.newgrounds.API.sharedObjects[save_id].data[save_id] = com.newgrounds.API.encodeData(save_data); com.newgrounds.API.sharedObjects[save_id].flush(); }; v1.loadLocal = function (save_id) { if (!com.newgrounds.API.sharedObjects[save_id]) { com.newgrounds.API.sharedObjects[save_id] = SharedObject.getLocal('ng_ap_secure_' + com.newgrounds.API.movie_id + '_' + save_id); } com.newgrounds.API.sharedObjects[save_id].flush(); com.newgrounds.API.echo('sharedobject ' + save_id + ' is: ' + com.newgrounds.API.sharedObjects[save_id].data[save_id]); if (com.newgrounds.API.sharedObjects[save_id].data[save_id]) { com.newgrounds.API.echo('decoded: ' + com.newgrounds.API.decodeData(com.newgrounds.API.sharedObjects[save_id].data[save_id])); return com.newgrounds.API.decodeData(com.newgrounds.API.sharedObjects[save_id].data[save_id]); } else { return null; } }; v1.encodeData = function (data) { return com.newgrounds.API.compressHex(com.newgrounds.encoders.RC4.encrypt(com.newgrounds.encoders.JSON.encode(data), com.newgrounds.API.encryption_key)); }; v1.decodeData = function (base) { return com.newgrounds.encoders.JSON.decode(com.newgrounds.encoders.RC4.decrypt(com.newgrounds.API.uncompressHex(base), com.newgrounds.API.encryption_key)); }; v1.compressHex = function (hex_value) { var v6 = hex_value.length % 6; var v4 = ''; var v5 = new com.newgrounds.encoders.BaseN(com.newgrounds.API.compression_radix); var v1 = 0; while (v1 < hex_value.length) { var v2 = Number('0x' + hex_value.substr(v1, 6)); v4 += v5.encode(v2, 4); v1 += 6; } return v6 + v4; }; v1.uncompressHex = function (base_value) { var v9 = Number(base_value.charAt(0)); var v7 = ''; var v3; var v8 = new com.newgrounds.encoders.BaseN(com.newgrounds.API.compression_radix); var v2 = 1; while (v2 < base_value.length) { var v6 = base_value.substr(v2, 4); var v5 = v8.decode(v6); var v1 = com.newgrounds.API.dec2hex(v5); if (v2 + 4 < base_value.length) { v3 = 6; } else { v3 = v9; } 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.getSaveGroup = function (group) { if (com.newgrounds.API.save_groups == null || com.newgrounds.API.save_groups.length < 1) { com.newgrounds.API.sendWarning('You do not have any save groups configured in your API setup!'); return null; } var v1 = 0; while (v1 <= com.newgrounds.API.save_groups.length) { if (typeof group == 'number' or (Number(group)).toString() == String(group)) { if (com.newgrounds.API.save_groups[v1].getID() == Number(group)) { return com.newgrounds.API.save_groups[v1]; } } else { if (typeof group == 'string') { if ((com.newgrounds.API.save_groups[v1].getName()).toLowerCase() == group.toLowerCase()) { return com.newgrounds.API.save_groups[v1]; } } } ++v1; } com.newgrounds.API.sendWarning('Could not find any save groups named \'' + group + '\'.'); return null; }; v1.getCurrentSaveFile = function () { return com.newgrounds.API.save_file; }; v1.setCurrentSaveFile = function (current) { com.newgrounds.API.save_file = current; }; v1.loadSaveFile = function (save_id, get_contents) { if (get_contents === undefined) { get_contents = true; } var v1 = 'loadSaveFile'; var v2 = {'publisher_id': com.newgrounds.API.publisher_id, 'save_id': save_id, 'get_contents': get_contents}; com.newgrounds.API.save_file = null; com.newgrounds.API.sendCommand(v1, v2); }; v1.loadFilesByDate = function (group_name, sort_descending, key_name, key_value) { if (sort_descending === undefined) { sort_descending = true; } var v2 = com.newgrounds.API.getSaveGroup(group_name); if (!v2) { var v3 = new com.newgrounds.APIError('QUERY_INCOMPLETE', 'The query could not be preformed, check the spelling of your save group name.'); com.newgrounds.API.sendError({'command_id': 'loadFilesByDate'}, v3); return undefined; } var v1 = new com.newgrounds.SaveGroupQuery(v2); if (key_name) { v1.addKeyCondition(key_name, '=', key_value); } v1.sortOn('CREATED_ON', sort_descending ? 'DESC' : 'ASC'); v1.execute(); }; v1.loadFilesByViews = function (group_name, sort_descending, key_name, key_value) { if (sort_descending === undefined) { sort_descending = true; } var v2 = com.newgrounds.API.getSaveGroup(group_name); if (!v2) { var v3 = new com.newgrounds.APIError('QUERY_INCOMPLETE', 'The query could not be preformed, check the spelling of your save group name.'); com.newgrounds.API.sendError({'command_id': 'loadFilesByViews'}, v3); return undefined; } var v1 = new com.newgrounds.SaveGroupQuery(v2); if (key_name) { v1.addKeyCondition(key_name, '=', key_value); } v1.sortOn('TOTAL_VIEWS', sort_descending ? 'DESC' : 'ASC'); v1.execute(); }; v1.loadFilesByRating = function (group_name, rating_name, sort_descending, key_name, key_value) { if (sort_descending === undefined) { sort_descending = true; } var v2 = com.newgrounds.API.getSaveGroup(group_name); if (!v2) { var v3 = new com.newgrounds.APIError('QUERY_INCOMPLETE', 'The query could not be preformed, check the spelling of your save group name.'); com.newgrounds.API.sendError({'command_id': 'loadFilesByRating'}, v3); return undefined; } var v1 = new com.newgrounds.SaveGroupQuery(v2); if (key_name) { v1.addKeyCondition(key_name, '=', key_value); } v1.sortOnRating(rating_name, sort_descending ? 'DESC' : 'ASC', 'score'); v1.execute(); }; v1.lookupSaveFiles = function (save_group) { var v1 = 'lookupSaveFiles'; var v2 = {'publisher_id': com.newgrounds.API.publisher_id, 'group_id': save_group.getID(), 'query': com.newgrounds.encoders.JSON.encode(save_group.getQuery(true))}; com.newgrounds.API.sendCommand(v1, v2); }; v1.newSaveFile = function (group) { var v1 = com.newgrounds.API.getSaveGroup(group); if (v1) { return v1.newFile(); } else { var v2 = new com.newgrounds.APIError('INVALID_SAVE_GROUP', 'You can not create new files in invalid groups.'); com.newgrounds.API.sendError({'command_id': 'newSaveFile'}, v2); } }; v1.newSaveQuery = function (group) { var v1 = com.newgrounds.API.getSaveGroup(group); if (v1) { return v1.newQuery(); } else { var v2 = new com.newgrounds.APIError('INVALID_SAVE_GROUP', '\'' + group + '\' is not a valid save group.'); com.newgrounds.API.sendError({'command_id': 'newSaveQuery'}, v2); } }; v1.checkFilePrivs = function (file) { if (com.newgrounds.API.user_id) { var v1 = com.newgrounds.API.user_id; } else { var v1 = 0; } var v2 = {'group': (file.getGroup()).getID(), 'filename': file.getName(), 'user_id': v1, 'publisher_id': com.newgrounds.API.publisher_id}; com.newgrounds.API.sendCommand('checkFilePrivs', v2); }; v1.saveFile = function (file, overwrite) { var v1; v1 = {'group': (file.getGroup()).getID(), 'filename': file.getName(), 'description': file.getDescription(), 'draft': file.__get__draft(), 'user_name': com.newgrounds.API.user_name}; if (overwrite) { v1.overwrite = overwrite; } if (file.getDuplicateID()) { v1.save_id = file.getDuplicateID(); } if ((file.getKeys()).length > 0) { v1.keys = file.getKeys(); } var v3; v3 = {'file': file.getRawContents()}; if (file.getThumbnailImageScan()) { v3.thumbnail = file.getThumbnailImageScan(); } com.newgrounds.API.save_file = file; com.newgrounds.API.sendSecureCommand('saveFile', v1, null, v3); }; v1.rateSaveFile = function (file, rating, vote) { var v1 = {'group': (file.getGroup()).getID(), 'save_id': file.getID(), 'rating_id': rating.rating_id, 'vote': vote, 'user_id': com.newgrounds.API.user_id}; com.newgrounds.API.sendSecureCommand('rateSaveFile', v1); }; v1.getConfirmation = function (command_name, event, msg, target, confirm, cancel) { var v1 = new com.newgrounds.APIError('CONFIRM_REQUEST', msg); v1.confirm = function () { target[confirm](); }; v1.cancel = function () { target[cancel](); }; v1.command = command_name; com.newgrounds.API.callListener(event, false, v1); }; v1.onRemoteAuthentication = function (auth_result) { var v1 = com.newgrounds.encoders.JSON.decode(com.newgrounds.encoders.RC4.decrypt(auth_result, com.newgrounds.API.encryption_key)); delete com.newgrounds.API.remote_auth; com.newgrounds.API.user_id = v1.NewgroundsAPI_UserID; com.newgrounds.API.user_name = v1.NewgroundsAPI_UserName; com.newgrounds.API.session_id = v1.NewgroundsAPI_SessionID; com.newgrounds.API.publisher_id = v1.NewgroundsAPI_PublisherID; }; v1.doEvent = function (e) { switch (e.command_id) { case 'connectMovie': clearInterval(com.newgrounds.API.timeout); com.newgrounds.API.sendMessage('You have successfully connected to the Newgrounds API Gateway'); com.newgrounds.API.sendMessage('Movie identified as "' + e.movie_name + '"'); com.newgrounds.API.callListener(com.newgrounds.APIEvent.API_CONNECTED, e.success, {'title': e.movie_name}); var v7 = false; if (e.ad_status === -1) { var v11 = 'This movie was not approved to run Flash Ads.'; com.newgrounds.API.sendWarning(v11); com.newgrounds.API.sendWarning('visit ' + com.newgrounds.API.AD_TERMS_URL + ' to view our approval guidelines'); if (!e.ad_url) { com.newgrounds.API.callListener(com.newgrounds.APIEvent.ADS_APPROVED, false, new com.newgrounds.APIError('FLASH_ADS_NOT_APPROVED', v11)); } else { v7 = true; } } else { if (e.ad_status === 0) { var v11 = 'Flash Ads are currently awaiting approval.'; com.newgrounds.API.sendNotice(v11); if (!e.ad_url) { com.newgrounds.API.callListener(com.newgrounds.APIEvent.ADS_APPROVED, false, new com.newgrounds.APIError('FLASH_ADS_NOT_APPROVED', v11)); } else { v7 = true; } } } if (e.ad_url) { com.newgrounds.API.ad_url = unescape(e.ad_url); if (!v7) { com.newgrounds.API.sendMessage('This movie has been approved to run Flash Ads!'); } com.newgrounds.API.callListener(com.newgrounds.APIEvent.ADS_APPROVED, true); } if (e.deny_host) { v11 = com.newgrounds.API.getHost() + ' does not have permission to run this movie!'; com.newgrounds.API.sendWarning(v11); com.newgrounds.API.sendWarning('\tUpdate your API configuration to unblock ' + com.newgrounds.API.getHost()); com.newgrounds.API.callListener(com.newgrounds.APIEvent.HOST_BLOCKED, true, {'real_url': unescape(e.movie_url), 'url': com.newgrounds.API.getOfficialURL()}); } else { if (e.movie_version) { com.newgrounds.API.sendWarning('According to your API Configuration, this version is out of date.'); if (com.newgrounds.API.version) { com.newgrounds.API.sendWarning('\tThe this movie is version ' + com.newgrounds.API.version); } com.newgrounds.API.sendWarning('\tThe most current version is ' + e.movie_version); com.newgrounds.API.callListener(com.newgrounds.APIEvent.NEW_VERSION_AVAILABLE, true, {'version': e.movie_version, 'real_url': unescape(e.movie_url), 'url': com.newgrounds.API.getOfficialURL()}); } } if (e.request_portal_url) { com.newgrounds.API.sendCommand('setPortalID', {'portal_url': _url}); } if (com.newgrounds.API.preload) { com.newgrounds.API.reportNewAsset(); var v8 = {}; if (com.newgrounds.API.hasUserSession()) { v8.publisher_id = com.newgrounds.API.publisher_id; v8.user_id = com.newgrounds.API.user_id; } com.newgrounds.API.sendCommand('preloadSettings', v8); } com.newgrounds.API.reportAssetLoaded(); break; case 'preloadSettings': if (e.medals) { com.newgrounds.API.populateMedals(e.medals); if (!com.newgrounds.API.hasUserSession() and !com.newgrounds.API.debug) { com.newgrounds.API.echo('checking for sharedobject medals...'); var v4 = com.newgrounds.API.loadLocal('medals_unlocked'); if (v4) { for (var v32 in v4) { v32 = Number(v32); if (v4[v32]) { var v3 = com.newgrounds.API.getMedal(v32); com.newgrounds.API.echo('now unlocking ' + v3.getName()); v3.setUnlocked(true); } } } } } if (e.save_groups) { com.newgrounds.API.populateSaveGroups(e.save_groups, e.save_file_path); } if (e.score_boards) { com.newgrounds.API.populateScoreBoards(e.score_boards); } if (_root.NewgroundsAPI_SaveFileID && _root.NewgroundsAPI_SaveGroupID) { com.newgrounds.API.callListener(com.newgrounds.APIEvent.FILE_REQUESTED, true, {'save_id': _root.NewgroundsAPI_SaveFileID, 'group': com.newgrounds.API.getSaveGroup(_root.NewgroundsAPI_SaveGroupID)}); } com.newgrounds.API.callListener(com.newgrounds.APIEvent.METADATA_LOADED, true); com.newgrounds.API.reportAssetLoaded(); break; case 'logCustomEvent': if (e.success) { com.newgrounds.API.sendMessage('Event \'' + e.event + '\' was logged.'); } com.newgrounds.API.callListener(com.newgrounds.APIEvent.EVENT_LOGGED, e.success, {'event': e.event}); break; case 'postScore': var v9; if (e.success) { var v5 = 'User'; if (com.newgrounds.API.user_email) { v5 = com.newgrounds.API.user_email; } else { if (com.newgrounds.API.user_name) { v5 = com.newgrounds.API.user_name; } } var v19 = com.newgrounds.API.getScoreBoard(e.board); com.newgrounds.API.sendMessage(v5 + ' posted ' + e.value + ' to \'' + v19.name + '\''); v9 = {'board': v19, 'value': e.value, 'username': v5}; } com.newgrounds.API.callListener(com.newgrounds.APIEvent.SCORE_POSTED, e.success, v9); break; case 'loadScores': var v9 = new Object(); var v19 = com.newgrounds.API.getScoreBoard(e.board); if (v19.exists()) { v19.setScores(e.scores, e.period, e.page, e.num_results); } com.newgrounds.API.callListener(com.newgrounds.APIEvent.SCORES_LOADED, e.success, {'board': v19}); break; case 'unlockMedal': var v24 = com.newgrounds.API.getMedal(e.medal_name); v24.setUnlocked(true); com.newgrounds.API.sendMessage('Successfuly unlocked \'' + v24.getName() + '\''); com.newgrounds.API.callListener(com.newgrounds.APIEvent.MEDAL_UNLOCKED, e.success, {'medal_id': v24.id, 'medal': v24}); break; case 'getMedals': com.newgrounds.API.populateMedals(e.medals); com.newgrounds.API.callListener(com.newgrounds.APIEvent.MEDALS_LOADED, e.success, {'medals': com.newgrounds.API.medals}); break; case 'loadSaveFile': var v16 = com.newgrounds.API.getSaveGroup(e.group_id); var v14 = new com.newgrounds.SaveFile(v16); v14.id = e.file.save_id; v14.name = e.file.filename; v14.fileUrl = e.file.file; v14.thumbnailUrl = e.file.thumb; v14.authorName = e.file.user_name; v14.authorId = e.file.user_id; v14.description = e.file.description; v14.setPermissions(e.file.status, e.file.locked); for (var v6 in e.file.keys) { v14.setKey(e.file.keys[v6].id, e.file.keys[v6].value); } for (v6 in e.file.ratings) { v14.setRating(e.file.ratings[v6].id, e.file.ratings[v6].votes, e.file.ratings[v6].score); } if (e.get_contents) { v14.loadContents(); } com.newgrounds.API.callListener(com.newgrounds.APIEvent.FILE_INITIALIZED, e.success, {'save_id': v14.id, 'file': v14}); com.newgrounds.API.save_file = v14; break; case 'lookupSaveFiles': var v12 = (com.newgrounds.API.getSaveGroup(e.group_id)).getQuery(); v12.onExecuted(e.files); break; case 'rateSaveFile': var v16 = com.newgrounds.API.getSaveGroup(e.group_id); var v14 = v16.getFile(e.save_id); if (e.already_voted) { var v27 = new com.newgrounds.APIError('PERMISSION_DENIED', 'You have already voted on this item today'); com.newgrounds.API.callListener(com.newgrounds.APIEvent.VOTE_COMPLETE, false, {'error': v27, 'file': v14, 'save_id': v14.id}); return undefined; } else { if (e.success) { var v10 = v14.onVoted(e); com.newgrounds.API.callListener(com.newgrounds.APIEvent.VOTE_COMPLETE, e.success, {'rating': v10, 'file': v14, 'save_id': v14.id}); } else { com.newgrounds.API.callListener(com.newgrounds.APIEvent.VOTE_COMPLETE, e.success, {'file': v14, 'save_id': v14.id}); com.newgrounds.API.sendError('Your vote was not accepted.'); } } break; case 'saveFile': if (com.newgrounds.API.save_file) { if (!com.newgrounds.API.save_file.exists()) { com.newgrounds.API.save_file.setID(e.save_id, true); } com.newgrounds.API.save_file.onSaved(e); com.newgrounds.API.callListener(com.newgrounds.APIEvent.FILE_SAVED, e.success, {'save_id': com.newgrounds.API.save_file.__get__id(), 'file': com.newgrounds.API.save_file}); if (e.success) { com.newgrounds.API.sendMessage('You just saved a new file (id #' + e.save_id + ') to the \'' + (com.newgrounds.API.save_file.__get__group()).__get__name() + '\' save group.'); } } com.newgrounds.API.save_file = null; break; case 'checkFilePrivs': var v9 = {'file': com.newgrounds.API.save_file, 'filename': e.filename, 'group': e.group, 'exists': e.exists, 'can_write': e.can_write}; if (e.duplicate_id) { v9.duplicate_id = e.duplicate_id; } if (!e.success) { com.newgrounds.API.sendWarning('You do not have permission to save this file!'); } com.newgrounds.API.callListener(com.newgrounds.APIEvent.FILE_PRIVS_LOADED, e.success, v9); } }; v1.getDispatcher = function () { if (!com.newgrounds.API.eventDispatcher) { com.newgrounds.API.eventDispatcher = new com.newgrounds.APIEventDispatcher(); } return com.newgrounds.API.eventDispatcher; }; v1.hasEventListener = function (event) { return (com.newgrounds.API.getDispatcher()).hasEventListener(event); }; v1.addEventListener = function (event, listener, target) { com.newgrounds.API.echo('Adding a listener for \'' + event + '\''); (com.newgrounds.API.getDispatcher()).addEventListener(event, listener, target); }; v1.removeEventListener = function (event, target) { (com.newgrounds.API.getDispatcher()).removeEventListener(event, target); }; v1.callListener = function (event, success, data, target) { com.newgrounds.API.echo('Fired Event: ' + event); var v2 = new com.newgrounds.APIEvent(event, success, data); (com.newgrounds.API.getDispatcher()).dispatchEvent(v2); if (event == com.newgrounds.APIEvent.API_CONNECTED && !success) { com.newgrounds.API.connected = false; } com.newgrounds.API.bridge.sendEvent(event, {'success': success, 'data': data}); }; v1.sendError = function (c, e) { switch (c.command_id) { case 'connectMovie': clearInterval(com.newgrounds.API.timeout); com.newgrounds.API.callListener(com.newgrounds.APIEvent.API_CONNECTED, false, {'error': e, 'response': c}); break; case 'saveFile': com.newgrounds.API.callListener(com.newgrounds.APIEvent.FILE_SAVED, false, {'error': e, 'file': com.newgrounds.API.save_file, 'response': c}); com.newgrounds.API.save_file = null; } var v3 = '[Newgrounds API ERROR] :: ' + c.command_id + '() - ' + e.name + ':' + '\n' + '\t\t\t\t' + e.message; trace(v3); com.newgrounds.API.bridge.sendEvent('trace', {'data': v3}); }; v1.sendWarning = function (m, c) { if (c) { m += '\r[Newgrounds API WARNING] :: \tSee ' + com.newgrounds.API.COMMANDS_WIKI_URL + c.toLowerCase() + ' for additional information.'; } var v1 = '[Newgrounds API WARNING] :: ' + m; trace(v1); com.newgrounds.API.bridge.sendEvent('trace', {'data': v1}); }; v1.sendNotice = function (m, c) { if (c) { m += '\r[Newgrounds API NOTICE] :: \tSee ' + com.newgrounds.API.COMMANDS_WIKI_URL + c.toLowerCase() + ' for additional information.'; } trace('[Newgrounds API NOTICE] :: ' + m); }; v1.fatalError = function (m, c) { if (c) { m += '\r\tSee ' + com.newgrounds.API.COMMANDS_WIKI_URL + c.toLowerCase() + ' for additional information.'; } throw '***ERROR*** frame=' + _root._currentframe + ', class=API' + '\n' + '\n' + m; }; v1.openLoginPage = function () { if (com.newgrounds.API.hasUserSession()) { return undefined; } if (!com.newgrounds.API.remote_auth) { var v1 = com.newgrounds.encoders.MD5.calculate(Math.random() + 'a' + com.newgrounds.API.movie_id); v1 = 'POOPYPANTS'; com.newgrounds.API.remote_auth = new com.newgrounds.RemoteAuth(v1); } var v2 = com.newgrounds.encoders.RC4.encrypt(com.newgrounds.API.remote_auth.__get__token(), com.newgrounds.API.encryption_key); getURL(com.newgrounds.API.LOGIN_URL + '?api_auth_id=' + com.newgrounds.API.movie_id + '&api_auth_key=' + v2, '_blank'); }; v1.sendSecureCommand = function (command, secure_params, unsecure_params, files) { if (!com.newgrounds.API.debug && !com.newgrounds.API.hasUserSession() && !com.newgrounds.API.hasUserEmail()) { com.newgrounds.API.sendError({'command_id': command}, new com.newgrounds.APIError('IDENTIFICATION_REQUIRED', 'You must be logged in, or provide an e-mail address using \'API.setUserEmail("name@domain.com");\' to use ' + command + '().')); return undefined; } if (!command) { com.newgrounds.API.fatalError('Missing command', 'sendSecureCommand'); } if (!secure_params) { com.newgrounds.API.fatalError('Missing secure_params', 'sendSecureCommand'); } if (!unsecure_params) { unsecure_params = new Object(); } var v2 = ''; var v1 = 0; while (v1 < 16) { v2 += com.newgrounds.API.compression_radix.charAt(Math.floor(Math.random() * com.newgrounds.API.compression_radix.length)); ++v1; } if (com.newgrounds.API.debug && !com.newgrounds.API.fake_session && !com.newgrounds.API.session_id) { secure_params.session_id = ''; } else { secure_params.session_id = com.newgrounds.API.session_id; } secure_params.as_version = 2; secure_params.user_email = com.newgrounds.API.user_email; secure_params.publisher_id = com.newgrounds.API.publisher_id; secure_params.seed = v2; secure_params.command_id = command; var v8 = com.newgrounds.encoders.JSON.encode(secure_params); var v9 = com.newgrounds.encoders.MD5.calculate(v2); var v6 = com.newgrounds.encoders.RC4.encrypt(v8, com.newgrounds.API.encryption_key); var v7 = v9 + v6; unsecure_params.secure = com.newgrounds.API.compressHex(v7); com.newgrounds.API.sendCommand('securePacket', unsecure_params, false, files); }; v1.sendCommand = function (command, params, open_browser, files) { if (!com.newgrounds.API.connected and command != 'connectMovie') { var v12 = 'API.' + command + '() - API.connect() must be called before this command can be called' + '\n'; com.newgrounds.API.fatalError(v12, 'connect'); } if (open_browser) { var v2 = new Object(); } else { var v2 = new LoadVars(); } v2.command_id = command; v2.tracker_id = com.newgrounds.API.movie_id; if (com.newgrounds.API.debug) { v2.debug = com.newgrounds.API.debug; } if (params) { for (var v9 in params) { v2[v9] = params[v9]; } } if (files) { for (v9 in files) { v2[v9] = files[v9]; } } if (open_browser) { var v6 = com.newgrounds.API.GATEWAY_URL + '?seed=' + Math.random(); for (v9 in v2) { v6 += '&' + escape(v9) + '=' + escape(v2[v9]); } trace('OPENING ' + v6); getURL(v6, '_blank'); v2.removeMovieClip(); } else { var v10 = new LoadVars(); v10.remember_command_id = v2.command_id; v10.onData = function (data) { com.newgrounds.API.echo('INPUT: \r' + data + '\n'); if (data) { var v2 = com.newgrounds.encoders.JSON.decode(data); } else { var v2 = {'success': false}; } if (!v2.success) { if (!v2.error_code && !v2.error_msg) { v2.error_code = 'CONNECTION_FAILED'; v2.error_msg = 'Could not contact the API Gateway'; v2.command_id = this.remember_command_id; } var v4 = new com.newgrounds.APIError(v2.error_code, v2.error_msg); com.newgrounds.API.sendError(v2, v4); } else { com.newgrounds.API.doEvent(v2); } }; var v7 = new Array(); for (var v8 in v2) { v7.push(v8 + '=' + escape(v2[v8])); } com.newgrounds.API.echo('POST ' + com.newgrounds.API.GATEWAY_URL + '?' + v7.join('&')); v2.sendAndLoad(com.newgrounds.API.GATEWAY_URL + '?seed=' + Math.random(), v10, 'POST'); com.newgrounds.API.last_command = v2.command_id; } }; v1.renderAd = function (target) { if (com.newgrounds.API.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); target.clip.ad._lockroot = true; loadMovie(com.newgrounds.API.ad_swf_url, target.clip.ad); com.newgrounds.API.callListener(com.newgrounds.APIEvent.AD_ATTACHED, true, {'target': target}); } else { com.newgrounds.API.callListener(com.newgrounds.APIEvent.AD_ATTACHED, false, new com.newgrounds.APIError('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'); if (com.newgrounds.API.checkAdFlood()) { com.newgrounds.API.ad_swf_url = null; } else { if (com.newgrounds.API.checkAdCache()) { com.newgrounds.API.reportNewAsset(); var v1 = new LoadVars(); v1.onData = function (data) { if (data) { com.newgrounds.API.ad_swf_url = data; } else { com.newgrounds.API.ad_swf_url = null; } com.newgrounds.API.reportAssetLoaded(); com.newgrounds.API.renderAd(target); }; if (com.newgrounds.API.ad_url.indexOf('?') > -1) { v1.load(com.newgrounds.API.ad_url + '&random=' + Math.random()); } else { v1.load(com.newgrounds.API.ad_url + '?random=' + Math.random()); } if (!com.newgrounds.API.ad_warning) { com.newgrounds.API.ad_warning = true; com.newgrounds.API.sendMessage('You may get a security sandbox violation from this ad. This is nothing to worry about!'); } } else { if (com.newgrounds.API.ad_swf_url) { com.newgrounds.API.renderAd(target); } } } }; v1.checkAdFlood = function () { if (!com.newgrounds.API.ad_url) { return false; } var v2 = new Date(); var v1 = v2.getTime(); if (v1 >= com.newgrounds.API.ad_flood) { if (v1 - com.newgrounds.API.ad_flood > 1000) { com.newgrounds.API.ad_flood = v1 + 1000; return false; } com.newgrounds.API.ad_flood = v1; com.newgrounds.API.sendWarning('This movie is attempting to load multiple ads at too high of a frequency; you may have a bad preloader loop.'); return true; } return false; }; v1.checkAdCache = function () { if (!com.newgrounds.API.ad_url) { return false; } var v2 = new Date(); var v1 = v2.getTime(); if (v1 >= com.newgrounds.API.ad_url_cache) { com.newgrounds.API.ad_url_cache = v1 + 300000; return true; } return false; }; v1.sendMessage = function (m, r) { var v1 = '[Newgrounds API] :: ' + m; if (r) { return v1; } else { trace(v1); com.newgrounds.API.bridge.sendEvent('trace', {'data': v1}); } }; v1.echo = function (m) { if (com.newgrounds.API.do_echo) { trace(m); } }; v1.LOGIN_URL = 'http://ng-local.newgrounds.com/apilogin/'; v1.do_echo = true; v1.GATEWAY_URL = 'http://www.ngads.com/gateway_v2.php'; v1.NEWGROUNDS_PREVIEW = 'uploads.ungrounded.net/previews'; v1.AD_TERMS_URL = 'http://www.newgrounds.com/wiki/using-the-site/terms-of-use/flash-ads/'; v1.COMMANDS_WIKI_URL = 'http://www.newgrounds.com/wiki/developer-resources/flash-api/commands/'; v1.LOCAL_HOST = 'localhost'; v1.NEWGROUNDS_WWW = 'www.newgrounds.com'; v1.PREVIEW_HOSTS = new Array(com.newgrounds.API.LOCAL_HOST, com.newgrounds.API.NEWGROUNDS_PREVIEW); v1.ad_url_cache = 0; v1.ad_flood = 0; v1.ad_warning = false; v1.save_file = null; v1.publisher_id = 1; v1.fake_session = false; v1.medals = null; v1.userpage_format = null; v1.scoreboards = new Array(); v1.save_groups = null; v1.compression_radix = '/g8236klvBQ#&|;Zb*7CEA59%s`Oue1wziFp$rDVY@TKxUPWytSaGHJ>dmoMR^<0~4qNLhc(I+fjn)X'; v1.errors = com.newgrounds.APIError.init_codes(); v1.sharedObjects = new Object(); v1.bridge = new com.newgrounds.Bridge(_root.NewgroundsAPI_SandboxID); v1.preload = true; v1.preload_items = 0; v1.preload_items_loaded = 0; ASSetPropFlags(com.newgrounds.API.prototype, null, 1); } #endinitclip } movieClip 17 __Packages.com.newgrounds.Bridge { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.Bridge) { var v1 = function (id) { this.widget_id = id; this.receiver = new LocalConnection(); this.transmitter = new LocalConnection(); this.receiver.receiveEvent = function (event, params) { com.newgrounds.API.callListener(event, params.success, params.data); }; try { this.receiver.connect('rec_' + this.widget_id); } catch (v0) { if (Error(v0) != null) { var error = Error(v0); } else { throw v0; } } }; com.newgrounds.Bridge = v1; var v2 = v1.prototype; v2.sendEvent = function (event, params) { if (this.widget_id) { this.transmitter.send(this.widget_id, 'sendEvent', event, this.validateParams(params)); } }; v2.sendCommand = function (command, params) { if (this.widget_id) { this.transmitter.send(this.widget_id, 'sendCommand', command, this.validateParams(params)); } }; v2.validateParams = function (params) { var v2 = {}; for (var v3 in params) { if (typeof params[v3] == 'string' || typeof params[v3] == 'number') { v2[v3] = params[v3]; } } return v2; }; ASSetPropFlags(com.newgrounds.Bridge.prototype, null, 1); } #endinitclip } movieClip 18 __Packages.com.newgrounds.SaveFile { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.SaveFile) { var v1 = function (_group) { this._group = _group; this._filename = null; this._file_id = null; this._contents = null; this._thumbnail = null; this._thumbnail_url = null; this.raw = null; this.img = null; this._draft = false; this._keys = new Array(); this._ratings = new Array(); this._file_url = null; com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.FILE_PRIVS_LOADED, this.checkPrivs, this); }; com.newgrounds.SaveFile = v1; var v2 = v1.prototype; v1.setFilePath = function (path) { com.newgrounds.SaveFile.file_path = path + '/'; }; v1.setImagePath = function (path) { com.newgrounds.SaveFile.image_path = path + '/'; }; v2.__get__name = function () { return this._filename; }; v2.__set__name = function (s) { this._filename = s; return this.__get__name(); }; v2.__get__id = function () { return this._file_id; }; v2.__get__description = function () { return this._description; }; v2.__set__description = function (s) { this._description = s; return this.__get__description(); }; v2.__get__contents = function () { return this._contents; }; v2.__set__contents = function (o) { this._contents = o; return this.__get__contents(); }; v2.__get__thumbnailUrl = function () { return com.newgrounds.SaveFile.image_path + this._thumbnail_url; }; v2.__set__thumbnailUrl = function (s) { this._thumbnail_url = s; return this.__get__thumbnailUrl(); }; v2.__get__fileUrl = function () { return com.newgrounds.SaveFile.file_path + this._file_url; }; v2.__set__fileUrl = function (s) { this._file_url = s; return this.__get__fileUrl(); }; v2.__get__authorID = function () { return this._author_id; }; v2.__set__authorID = function (i) { this._author_id = i; return this.__get__authorID(); }; v2.__get__authorName = function () { return this._author_name; }; v2.__set__authorName = function (n) { this._author_name = n; return this.__get__authorName(); }; v2.__get__views = function () { return this._views; }; v2.__get__draft = function () { return this._draft; }; v2.__set__draft = function (d) { this._draft = d; return this.__get__draft(); }; v2.__get__group = function () { return this._group; }; v2.__get__groupId = function () { return this._group.getID(); }; v2.__get__groupName = function () { return this._group.getName(); }; v2.__get__groupType = function () { return this._group.getType(); }; v2.__get__locked = function () { return this._locked; }; v2.__get__shared = function () { return this._isShared(); }; v2.__get__isPrivate = function () { return this._isPrivate(); }; v2.__get__isPublic = function () { return this._isPublic(); }; v2.__get__approved = function () { return this._isApproved(); }; v2.__get__keys = function () { return this._keys; }; v2.__get__ratings = function () { return this._ratings; }; v2.loadAuthorPage = function () { com.newgrounds.API.loadUserPage(this._author_id, this._author_name); }; v2.getID = function () { return this._file_id; }; v2.exists = function () { return this._file_id !== null; }; v2.getGroup = function () { return this._group; }; v2.getName = function () { return this._filename; }; v2._isPrivate = function () { return this.status == com.newgrounds.SaveFile.STATUS.PRIVATE; }; v2._isShared = function () { return this.status > com.newgrounds.SaveFile.STATUS.PRIVATE; }; v2._isApproved = function () { return this.status > com.newgrounds.SaveFile.STATUS.UNAPPROVED; }; v2._isPublic = function () { if (this._isPrivate()) { return false; return false; } if (this._group.isType('SYSTEM') or this._group.isType('PRIVATE')) { return false; return false; } if (this._group.isType('PUBLIC')) { return true; return false; } if (this._isApproved()) { return true; } return false; }; v2.isLocked = function () { return this._locked; }; v2.getDescription = function () { return this._description; }; v2.getShared = function () { return this._draft; }; v2.getThumbnailImageScan = function () { return this.img; }; v2.getRawContents = function () { return this.raw; }; v2.getDuplicateID = function () { return this.duplicate_id; }; v2.getKeys = function () { return this._keys; }; v2.getKey = function (key) { var v3 = (this.getGroup()).getKey(key); var v2 = 0; while (v2 < this._keys.length) { if (this._keys[v2].id == v3.key_id) { return this._keys[v2].value; } ++v2; } }; v2.getRating = function (rating) { var v2 = (this.getGroup()).getRating(rating); if (this._ratings[v2.rating_id]) { return this._ratings[v2.rating_id]; } else { return null; } }; v2.overwriteAllowed = function () { return this.overwrite; }; v2.getFileURL = function () { return com.newgrounds.SaveFile.file_path + this._file_url; }; v2.getThumbnailURL = function () { return com.newgrounds.SaveFile.image_path + this._thumbnail_url; }; v2.overwriteExisting = function () { this.overwrite = true; }; v2.setID = function (id, add_to_group) { this._file_id = id; if (add_to_group) { (this.getGroup()).addFile(this); } }; v2.setName = function (filename, locked) { this._filename = filename; this._locked = locked; }; v2.setDescription = function (description) { this._description = description; }; v2.setDraft = function (draft) { this._draft = draft; }; v2.setContents = function (_contents) { this._contents = _contents; }; v2.setThumbnail = function (thumb) { if (thumb) { this._thumbnail = thumb; } else { this._thumbnail = null; } }; v2.setThumbnailURL = function (url) { this._thumbnail_url = url; }; v2.setFileURL = function (url) { this._file_url = url; }; v2.setPermissions = function (status, _locked) { this._locked = _locked; this.status = status; }; v2.setKey = function (key, val) { var v4 = (this.getGroup()).getKeyID(key); var v2; if (!v4) { this.onError('\'' + key + '\' is not a valid key for the \'' + this._group.__get__name() + '\' save group', 'setKey', 'INVALID_VALUE', true); return undefined; } if (!this._group.keyValueIsValid(key, val) && val !== null) { this.onError('\'' + val + '\' is not a valid ' + this._group.getKeyType(key, true), 'setKey', 'INVALID_VALUE', true); return undefined; } switch (this._group.getKeyType(key, true)) { case 'string': if (val) { val = String(val); } else { val = undefined; } break; default: val = Number(val); } var v5 = {'id': v4, 'value': val}; for (var v6 in this._keys) { v2 = this._keys[v6]; if (v2.id == v4) { this._keys[v6] = v5; return undefined; } } this._keys.push(v5); }; v2.setRating = function (rating, votes, score) { var v2 = (this.getGroup()).getRating(rating); if (!votes) { votes = 0; } if (!score) { score = 0; } if (!v2.is_float) { score = Math.round(Number(score)); } this._ratings[v2.rating_id] = {'id': Number(v2.rating_id), 'name': v2.rating_name, 'votes': Number(votes), 'score': Number(score)}; return this._ratings[v2.rating_id]; }; v2.clearBuffer = function () { this._contents = null; this.raw = null; this.img = null; this.scanner = null; this.overwrite = false; this.duplicate_id = null; }; v2.onError = function (msg, funct, code) { com.newgrounds.SaveFile.busy = false; if (!code) { code = 'SAVE_FILE_ERROR'; } if (!funct) { funct = 'unknown_function'; } var v3 = 'getSaveGroup(\'' + this._group.getName() + '\')'; if (this.exists()) { funct = v3 + '.getFile(\'' + this.getName() + '\').' + funct; } else { funct = v3 + '.getNewFile().' + funct; } var v5 = new com.newgrounds.APIError(code, msg); com.newgrounds.API.sendError({'command_id': funct}, v5); }; v2.onSaved = function (p) { com.newgrounds.SaveFile.busy = false; if (!this.exists()) { this.setID(p.save_id, true); } this.setName(p.filename); this.setFileURL(p.file_url); if (p.thumbnail) { this._thumbnail_url = p.thumbnail; } }; v2.onVoted = function (p) { trace('ONVOTED WAS CALLED'); return this.setRating(p.rating_id, p.votes, p.score); }; v2.sendRating = function (rating, vote) { var v6 = null; if (!com.newgrounds.API.hasUserSession()) { v6 = new com.newgrounds.APIError('PERMISSION_DENIED', 'You must be logged in to vote on save files'); } var v2 = this._group.getRating(rating); if (!v2) { v6 = new com.newgrounds.APIError('PERMISSION_DENIED', '\'' + rating + '\' is not a valid rating for the \'' + this._group.getName() + '\' save group'); } if (this.voted === true) { v6 = new com.newgrounds.APIError('PERMISSION_DENIED', 'You have already voted on this item today'); } if (vote < v2.min_value or vote > v2.max_value) { v6 = new com.newgrounds.APIError('PERMISSION_DENIED', '\'' + rating + '\' votes must be between ' + v2.min_value + ' and ' + v2.max_value); } if (v6) { com.newgrounds.API.callListener(com.newgrounds.APIEvent.VOTE_COMPLETE, false, {'error': v6, 'file': this}); return undefined; } this.voted = true; com.newgrounds.API.rateSaveFile(this, v2, vote); }; v2.replace = function () { if (com.newgrounds.SaveFile.busy) { this.onError('Another file is currently being saved, please try again later', 'replace'); return undefined; } this.overwriteExisting(); this.save(); }; v2.save = function () { if (com.newgrounds.API.hasUserSession() && !this._author_id && !this._author_name) { this._author_id = com.newgrounds.API.getUserID(); this._author_name = com.newgrounds.API.getUserName(); } if (com.newgrounds.SaveFile.busy) { this.onError('Another file is currently being saved, please try again later', 'save', 'UPLOAD_IN_PROGRESS'); return undefined; } com.newgrounds.SaveFile.busy = true; if (this.isLocked()) { this.onError('This file is _locked and cannot be overwritten.', 'save', 'PERMISSION_DENIED'); return undefined; } if (!this._filename) { this.onError('Please provide a name for your file.', 'save', 'MISSING_PARAM'); return undefined; } else { if (!this._contents) { this.onError('The file is empty.', 'save', 'MISSING_PARAM'); return undefined; } } this.img = null; com.newgrounds.API.checkFilePrivs(this); }; v2.checkPrivs = function (e) { if (e.data.file.id != this.__get__id()) { return undefined; } if (e.success) { if (e.data.can_write) { this.can_write = e.data.can_write; if (e.data.duplicate_id) { this.duplicate_id = e.data.duplicate_id; } if (e.data.exists && !this.overwriteAllowed()) { this.onError('You already have a file named \'' + this.getName() + '\'', 'save', 'CONFIRM_REQUEST'); } else { this.startFile(); } } else { this.onError('This file is _locked and cannot be overwritten', 'save', 'PERMISSION_DENIED'); } } else { this.onError('There was a problem looking up your file\'s details. The server may be down.', 'save', 'UNKNOWN_ERROR'); } }; v2.startFile = function () { if (this.can_write) { if (this._thumbnail) { this.scanner = new com.newgrounds.encoders.ImageScanner(this._thumbnail); this.scanner.setCallback(this, 'encodeFile'); this.scanner.startScan(100, 100, true); } else { this.encodeFile(); } } else { this.onError('You do not have permission to save this file.', 'save', 'PERMISSION_DENIED'); } }; v2.encodeFile = function (img) { this.img = img; this.raw = (com.newgrounds.encoders.SerialXML.encode(this._contents)).toString(); this.compressFile(); }; v2.compressFile = function () { com.newgrounds.encoders.LZW2.compress(this.raw, function (s, p) { p.file.onCompressed(s); }, {'file': this}); }; v2.onCompressed = function (compressed) { this.raw = escape(compressed); this.writeFile(); }; v2.getProgress = function () {}; v2.writeFile = function () { ((this.getGroup()).getQuery()).clearCache(); com.newgrounds.API.saveFile(this); this.clearBuffer(); }; v2.loadContents = function () { if (this._contents) { com.newgrounds.API.setCurrentSaveFile(this); com.newgrounds.API.callListener(com.newgrounds.APIEvent.FILE_LOADED, true, {'file': this}); return undefined; } if (!this.getFileURL()) { var v4 = new com.newgrounds.APIError('FILE_NOT_FOUND', 'Attempted to load contents of an unsaved file.'); com.newgrounds.API.callListener(com.newgrounds.APIEvent.FILE_LOADED, false, {'file': this, 'error': v4}); return undefined; } var v2 = new LoadVars(); v2.target = this; var target = this; v2.onData = function (encoded) { target.onLoaded(encoded); }; v2.load(this.getFileURL()); }; v2.onLoaded = function (encoded) { if (encoded == undefined) { var v3 = new com.newgrounds.APIError('FILE_NOT_FOUND', 'We could not find the contents for this file. It may have been deleted.'); com.newgrounds.API.callListener(com.newgrounds.APIEvent.FILE_LOADED, false, {'file': this, 'error': v3}); return undefined; } com.newgrounds.encoders.LZW.setXMLSafe(true); this._contents = com.newgrounds.encoders.SerialXML.decode(com.newgrounds.encoders.LZW.decompress(encoded)); com.newgrounds.API.callListener(com.newgrounds.APIEvent.FILE_LOADED, true, {'file': this}); }; v2.setViews = function (n) { this._views = n; }; v1.busy = false; v2.can_write = false; v2._draft = false; v2.status = 0; v2.voted = false; v2._views = 0; v2._locked = false; v2.overwrite = false; v2.duplicate_id = null; v2._keys = null; v2._ratings = null; v2._author_id = null; v2._author_name = null; v1.STATUS = {'PRIVATE': 1, 'PUBLIC': 2, 'UNAPPROVED': 3, 'APPROVED': 4}; v2.addProperty('approved', v2.__get__approved, function () {}); v2.addProperty('authorID', v2.__get__authorID, v2.__set__authorID); v2.addProperty('authorName', v2.__get__authorName, v2.__set__authorName); v2.addProperty('contents', v2.__get__contents, v2.__set__contents); v2.addProperty('description', v2.__get__description, v2.__set__description); v2.addProperty('draft', v2.__get__draft, v2.__set__draft); v2.addProperty('fileUrl', v2.__get__fileUrl, v2.__set__fileUrl); v2.addProperty('group', v2.__get__group, function () {}); v2.addProperty('groupId', v2.__get__groupId, function () {}); v2.addProperty('groupName', v2.__get__groupName, function () {}); v2.addProperty('groupType', v2.__get__groupType, function () {}); v2.addProperty('id', v2.__get__id, function () {}); v2.addProperty('isPrivate', v2.__get__isPrivate, function () {}); v2.addProperty('isPublic', v2.__get__isPublic, function () {}); v2.addProperty('keys', v2.__get__keys, function () {}); v2.addProperty('locked', v2.__get__locked, function () {}); v2.addProperty('name', v2.__get__name, v2.__set__name); v2.addProperty('ratings', v2.__get__ratings, function () {}); v2.addProperty('shared', v2.__get__shared, function () {}); v2.addProperty('thumbnailUrl', v2.__get__thumbnailUrl, v2.__set__thumbnailUrl); v2.addProperty('views', v2.__get__views, function () {}); ASSetPropFlags(com.newgrounds.SaveFile.prototype, null, 1); } #endinitclip } movieClip 19 __Packages.com.newgrounds.SaveGroup { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.SaveGroup) { var v1 = function (group_id, group_name, group_type) { this.group_name = group_name; this.group_id = group_id; this.group_type = group_type; this.query = new com.newgrounds.SaveGroupQuery(this); this.ratings = new Array(); this.keys = new Array(); this.files = new Array(); }; com.newgrounds.SaveGroup = v1; var v2 = v1.prototype; v2.__get__id = function () { return this.group_id; }; v2.__get__name = function () { return this.group_name; }; v2.__get__type = function () { return this.group_type; }; v2.addFile = function (file) { var v2 = 0; while (v2 < this.files.length) { if (this.files[v2].getID() == file.getID()) { this.files[v2] = file; return undefined; } ++v2; } this.files.push(file); }; v2.getFile = function (file_id) { trace('getting the file ' + file_id); var v2 = 0; while (v2 < this.files.length) { trace('Looking up ' + file_id + ' :: ' + this.files[v2].getID() + ' || ' + this.files[v2].getName()); if (com.newgrounds.SaveGroup.isNumeric(file_id) and this.files[v2].getID() == Number(file_id)) { return this.files[v2]; } else { if (this.files[v2].getName() == file_id) { return this.files[v2]; } } ++v2; } return null; }; v2.addRating = function (rating_id, rating_name, min_value, max_value, is_float) { var v3 = {'rating_id': rating_id, 'rating_name': rating_name, 'min_value': min_value, 'max_value': max_value, 'is_float': is_float}; if (!this.getRatingID(rating_name)) { this.ratings.push(v3); } }; v2.getRating = function (rating_id) { var v2 = 0; while (v2 < this.ratings.length) { if (com.newgrounds.SaveGroup.isNumeric(rating_id) and this.ratings[v2].rating_id == rating_id) { return this.ratings[v2]; } else { if (this.ratings[v2].rating_name == rating_id) { return this.ratings[v2]; } } ++v2; } return null; }; v2.getRatingID = function (rating_id) { var v2 = this.getRating(rating_id); if (v2) { return v2.rating_id; } return null; }; v2.getRatingName = function (rating_id) { var v2 = this.getRating(rating_id); if (v2) { return v2.rating_name; } return null; }; v2.addKey = function (key_id, key_name, key_type) { trace('>>>>>>>>>>> ADDING KEY ' + key_id + ' ' + key_name + ' ' + key_type); var v2 = {'key_id': key_id, 'key_name': key_name, 'key_type': key_type}; if (!this.getKey(key_name)) { this.keys.push(v2); } }; v2.getKey = function (key_id) { var v2 = 0; while (v2 < this.keys.length) { if (com.newgrounds.SaveGroup.isNumeric(key_id) and this.keys[v2].key_id == key_id) { return this.keys[v2]; } else { if (this.keys[v2].key_name == key_id) { return this.keys[v2]; } } ++v2; } return null; }; v2.getKeyType = function (key_name, as_string) { var v2 = this.getKey(key_name); if (v2) { return as_string ? com.newgrounds.SaveGroup.KEY_TYPES[v2.key_type] : v2.key_type; } return null; }; v2.getKeyID = function (key_id) { var v2 = this.getKey(key_id); if (v2) { return v2.key_id; } return null; }; v2.getKeyName = function (key_id) { var v2 = this.getKey(key_id); if (v2) { return v2.key_name; } return null; }; v2.keyValueIsValid = function (key, value) { var v4; var v7; if (typeof value == 'number' or (Number(value)).toString() == String(value)) { value = Number(value); v4 = (Math.round(value) === value) ? 'integer' : 'float'; } else { v4 = typeof value; if (v4 == 'string') { var v6 = '01234567890.-'; var v5 = true; var v2 = 0; while (v2 < value.length) { if (v6.indexOf(value.charAt(v2)) < 0) { v5 = false; break; } ++v2; } if (v5) { value = Number(value); v4 = 'float'; } } } switch (this.getKeyType(key, true)) { case 'integer': v7 = v4 == 'integer' or v4 == 'boolean'; return v7; case 'float': v7 = v4 == 'float' or v4 == 'integer' or v4 == 'boolean'; return v7; case 'string': v7 = v4 == 'string' or v4 == 'float' or v4 == 'integer' or v4 == 'boolean'; return v7; case 'boolean': v7 = v4 == 'boolean' or value == 1 or value == 0 or value == ''; return v7; } v7 = false; return v7; }; v2.isType = function (type) { return this.group_type == com.newgrounds.SaveGroup.TYPES[type.toUpperCase()]; }; v2.getID = function () { return this.group_id; }; v2.getName = function () { return this.group_name; }; v2.getType = function () { return this.group_type; }; v2.isSystem = function () { return undefined; }; v2.getQuery = function (as_object) { if (as_object) { return this.query.toObject(); } return this.query; }; v2.newQuery = function () { this.query.reset(); return this.query; }; v2.clearQuery = function () { this.query.reset(); }; v2.newFile = function () { var v2 = new com.newgrounds.SaveFile(this); return v2; }; v1.isNumeric = function (value) { return typeof value == 'number' or (Number(value)).toString() == String(value); }; v1.KEY_TYPES = [null, 'float', 'integer', 'string', 'boolean']; v1.TYPES = {'SYSTEM': 0, 'PRIVATE': 1, 'PUBLIC': 2, 'MODERATED': 3}; v2.addProperty('id', v2.__get__id, function () {}); v2.addProperty('name', v2.__get__name, function () {}); v2.addProperty('type', v2.__get__type, function () {}); ASSetPropFlags(com.newgrounds.SaveGroup.prototype, null, 1); } #endinitclip } movieClip 22 __Packages.com.newgrounds.SaveGroupQuery { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.SaveGroupQuery) { var v1 = function (_group) { this._group = _group; this.reset(); }; com.newgrounds.SaveGroupQuery = v1; var v2 = v1.prototype; v2.__get__group = function () { return this._group; }; v2.__get__groupId = function () { return this._group.getID(); }; v2.__get__resultsPerPage = function () { return this._num_results; }; v2.__set__resultsPerPage = function (n) { this._num_results = n; return this.__get__resultsPerPage(); }; v2.__get__pages = function () { return this._pages; }; v2.__get__page = function () { return this._page; }; v2.__set__page = function (n) { this._page = n; return this.__get__page(); }; v2.__get__randomize = function () { return this._randomize_results; }; v2.__set__randomize = function (b) { this._randomize_results = b; return this.__get__randomize(); }; v2.__get__results = function () { return this._results; }; v2.clearCache = function () { this._results = []; }; v2.reset = function () { this.file_conditions = new Array(); this.key_conditions = new Array(); this.rating_conditions = new Array(); this.sort_conditions = new Array(); this.lookup_keys = new Object(); this.lookup_ratings = new Object(); this._num_results = 20; this._page = 1; this._randomize_results = false; this._group_by = new Array(); this.clearCache(); }; v2.getGroup = function () { return this._group; }; v2.getGroupID = function () { return this._group.getID(); }; v2.isRandomized = function () { return this._randomize_results; }; v2.toObject = function () { var v2; var v11 = {'page': this._page, 'num_results': this._num_results}; if (this._randomize_results) { v11.randomize = 1; } if (!com.newgrounds.ValidationTools.isEmpty(this.file_conditions)) { var v12 = []; v2 = 0; while (v2 < this.file_conditions.length) { var v6 = this.file_conditions[v2]; v12.push({'field': com.newgrounds.SaveGroupQuery.file_fields[v6.field.toUpperCase()].id, 'operator': v6.operator, 'value': v6.value}); ++v2; } v11.file_conditions = v12; } if (!com.newgrounds.ValidationTools.isEmpty(this.key_conditions)) { v11.key_conditions = this.key_conditions; } if (!com.newgrounds.ValidationTools.isEmpty(this.rating_conditions)) { v11.rating_conditions = this.rating_conditions; } if (!com.newgrounds.ValidationTools.isEmpty(this.sort_conditions)) { var v14 = []; v2 = 0; while (v2 < this.sort_conditions.length) { var v3 = this.sort_conditions[v2]; if (v3.table == com.newgrounds.SaveGroupQuery.TABLE_FILES) { var v8 = com.newgrounds.SaveGroupQuery.file_fields[v3.field.toUpperCase()].id; } else { var v8 = v3.field; } var v5 = {'field': v8, 'table': v3.table}; if (v3.desc) { v5.desc = 1; } if (v3.extra) { v5.extra = v3.extra; } v14.push(v5); ++v2; } v11.sort_conditions = v14; } if (!com.newgrounds.ValidationTools.isEmpty(this.lookup_keys)) { var v15 = []; for (v2 in this.lookup_keys) { v15.push(v2); } v11.lookup_keys = v15; } if (!com.newgrounds.ValidationTools.isEmpty(this.lookup_ratings)) { var v13 = []; for (v2 in this.lookup_ratings) { v13.push(v2); } v11.lookup_ratings = v13; } if (!com.newgrounds.ValidationTools.isEmpty(this._group_by)) { var v16 = []; v2 = 0; while (v2 < this._group_by.length) { var v4 = this._group_by[v2]; if (v4.table == com.newgrounds.SaveGroupQuery.TABLE_FILES) { v8 = com.newgrounds.SaveGroupQuery.file_fields[v4.field.toUpperCase()].id; } else { v8 = v4.field; } v16.push({'field': v8, 'table': v4.table}); ++v2; } v11.group_by = v16; } return v11; }; v2.toString = function () { var v9; var v2; var v11 = []; v9 = 'Lookup:\r'; var v14 = []; for (var v6 in com.newgrounds.SaveGroupQuery.file_fields) { v14.push(' ' + v6); v2 = true; } v9 += v14.join('\n'); v11.push(v9); v9 = ''; v2 = false; var v16 = []; for (v6 in this.lookup_keys) { v16.push(' KEY \'' + this._group.getKeyName(v6) + '\''); v2 = true; } if (v2) { v9 += v16.join('\n'); v11.push(v9); } v9 = ''; v2 = false; var v15 = []; for (v6 in this.lookup_ratings) { v15.push(' RATING \'' + this._group.getRatingName(v6) + '\''); v2 = true; } if (v2) { v9 += v15.join('\n'); v11.push(v9); } v9 = 'Where:\r'; v2 = false; var v8 = []; v6 = 0; while (v6 < this.file_conditions.length) { var v7 = this.file_conditions[v6]; var v10 = ' ' + v7.field + ' ' + v7.operator + ' ' + v7.value; v8.push(v10); v2 = true; ++v6; } v6 = 0; while (v6 < this.key_conditions.length) { v7 = this.key_conditions[v6]; v10 = ' KEY \'' + this._group.getKeyName(v7.key_id) + '\' ' + v7.operator + ' ' + v7.value; v8.push(v10); v2 = true; ++v6; } v6 = 0; while (v6 < this.rating_conditions.length) { v7 = this.rating_conditions[v6]; v10 = ' RATING \'' + this._group.getRatingName(v7.rating_id) + '\' ' + v7.operator + ' ' + v7.value; v8.push(v10); v2 = true; ++v6; } if (v2) { v9 += v8.join('\n'); v11.push(v9); } v9 = 'Group By:\r'; v2 = false; var v13 = []; v6 = 0; while (v6 < this._group_by.length) { var v4 = this._group_by[v6]; var v5; if (v4.table == com.newgrounds.SaveGroupQuery.TABLE_KEYS) { v5 = ' KEY \'' + this._group.getKeyName(v4.field) + '\''; } else { if (v4.table == com.newgrounds.SaveGroupQuery.TABLE_RATINGS) { v5 = ' RATING \'' + this._group.getRatingName(v4.field) + '\''; } else { v5 = ' ' + v4.field; } } v13.push(v5); v2 = true; ++v6; } if (v2) { v9 += v13.join('\n'); v11.push(v9); } v9 = 'Order By:\r'; v2 = false; var v12 = []; if (this.isRandomized()) { v12.push(' RANDOM'); v2 = true; } v6 = 0; while (v6 < this.sort_conditions.length) { var v3 = this.sort_conditions[v6]; if (v3.table == com.newgrounds.SaveGroupQuery.TABLE_KEYS) { v5 = ' KEY \'' + this._group.getKeyName(v3.field) + '\''; } else { if (v3.table == com.newgrounds.SaveGroupQuery.TABLE_RATINGS) { v5 = ' RATING \'' + this._group.getRatingName(v3.field) + '\' ' + ((v3.extra == 'votes') ? 'VOTES' : 'SCORE'); } else { v5 = ' ' + v3.field; } } v5 += v3.desc ? ' (DESCENDING)' : ''; v12.push(v5); v2 = true; ++v6; } if (v2) { v9 += v12.join('\n'); v11.push(v9); } v11.push('Page:\r ' + this._page); v11.push('Results Per Page:\r ' + this._num_results); return v11.join('\n'); }; v2.setResultsPerPage = function (r) { this._num_results = r; this.clearCache(); }; v2.setPage = function (p) { this._page = p; this.clearCache(); }; v2.setRandomize = function (bool) { this._randomize_results = (bool === false) ? false : true; }; v2.includeKey = function (key) { if (!this._group.getKeyID(key)) { trace('[SaveGroupQuery Error] :: \'' + key + '\' is not a valid key for the \'' + this._group.__get__name() + '\' group.'); return undefined; } this.lookup_keys[this._group.getKeyID(key)] = 1; this.clearCache(); }; v2.includeRating = function (rating) { if (!this._group.getRatingID(rating)) { trace('[SaveGroupQuery Error] :: \'' + rating + '\' is not a valid rating for the \'' + this._group.__get__name() + '\' group.'); return undefined; } this.lookup_ratings[this._group.getRatingID(rating)] = 1; this.clearCache(); }; v2.groupBy = function (field) { this.addGroupItem(com.newgrounds.SaveGroupQuery.TABLE_FILES, field); }; v2.groupByKey = function (key) { if (!this._group.getKeyID(key)) { this.error('\'' + key + '\' is not a valid key for the \'' + this._group.getName() + '\' _group'); return undefined; } this.addGroupItem(com.newgrounds.SaveGroupQuery.TABLE_KEYS, this._group.getKeyID(key)); }; v2.groupByRating = function (rating) { if (!this._group.getRatingID(rating)) { this.error('\'' + rating + '\' is not a valid rating for the \'' + this._group.getName() + '\' _group'); return undefined; } this.addGroupItem(com.newgrounds.SaveGroupQuery.TABLE_RATINGS, this._group.getRatingID(rating)); }; v2.addGroupItem = function (table, field) { this._group_by.push({'table': table, 'field': field}); this.clearCache(); }; v2.excludeKey = function (key) { delete this.lookup_keys[this._group.getKeyID(key)]; this.clearCache(); }; v2.excludeRating = function (rating) { delete this.lookup_ratings[this._group.getRatingID(rating)]; this.clearCache(); }; v2.addCondition = function (field, operator, value) { if (field == 'FILE_STATUS' && typeof value == 'string' && com.newgrounds.SaveFile.STATUS[value.toUpperCase()] !== undefined) { value = com.newgrounds.SaveFile.STATUS[value.toUpperCase()]; } if (operator == '==') { operator = '='; } if (!this.validateOperator(operator) or !this.validateValue(field, value)) { return undefined; } this.file_conditions.push({'field': field, 'operator': operator, 'value': value}); this.clearCache(); }; v2.addKeyCondition = function (key, operator, value) { if (!this._group.getKeyID(key)) { this.error('\'' + key + '\' is not a valid key for the \'' + this._group.getName() + '\' save _group'); } else { if (!this.validateOperator(operator) or !this.validateKeyValue(key, value)) { return undefined; } } this.key_conditions.push({'key_id': this._group.getKeyID(key), 'operator': operator, 'value': value}); this.clearCache(); }; v2.addRatingCondition = function (rating, operator, value, column) { if (!column) { column = 'SCORE'; } if (!this._group.getRatingID(rating)) { this.error('\'' + rating + '\' is not a valid rating for the \'' + this._group.getName() + '\' save _group'); } else { if (!this.validateOperator(operator)) { return undefined; } else { if (!com.newgrounds.ValidationTools.isNumber(value)) { this.error('Expected numeric value for rating \'' + rating + '\''); return undefined; } } } if (!com.newgrounds.SaveGroupQuery.rating_columns[column]) { var v2 = []; for (var v3 in com.newgrounds.SaveGroupQuery.rating_columns) { v2.push(v3); } this.error('Invalid rating column \'' + column + '\'. Valid columns are ' + v2.join(', ')); return undefined; } this.rating_conditions.push({'rating_id': this._group.getRatingID(rating), 'operator': operator, 'value': value, 'column': com.newgrounds.SaveGroupQuery.rating_columns[column]}); this.clearCache(); }; v2.sortOn = function (field, order) { if (!com.newgrounds.SaveGroupQuery.file_fields[field]) { var v2 = []; for (var v3 in com.newgrounds.SaveGroupQuery.file_fields) { v2.push(v3); } this.error('\'' + field + '\' is not a valid sort field. Valid fields are: ' + v2.join(', ')); return undefined; } this.addSortCondition(com.newgrounds.SaveGroupQuery.TABLE_FILES, field, order); }; v2.sortOnKey = function (key, order) { if (!this._group.getKeyID(key)) { this.error('\'' + key + '\' is not a valid key for the \'' + this._group.getName() + '\' _group'); return undefined; } this.addSortCondition(com.newgrounds.SaveGroupQuery.TABLE_KEYS, this._group.getKeyID(key), order); }; v2.sortOnRating = function (rating, order, column) { if (!this._group.getRatingID(rating)) { this.error('\'' + rating + '\' is not a valid rating for the \'' + this._group.getName() + '\' _group'); return undefined; } if (!column) { column = 'score'; } this.addSortCondition(com.newgrounds.SaveGroupQuery.TABLE_RATINGS, this._group.getRatingID(rating), order, column); }; v2.sortOnRatingScore = function (rating, order) { this.sortOnRating(rating, order, 'score'); }; v2.sortOnRatingVotes = function (rating, order) { this.sortOnRating(rating, order, 'votes'); }; v2.addSortCondition = function (table, field, order, extra) { var v7; if (!order or order == '' or order.toUpperCase() == 'ASC') { v7 = false; } else { if (order.toUpperCase() == 'DESC') { v7 = true; } else { this.error('\'' + order + '\' is not a valid sort order!'); return undefined; } } var v3 = {'table': table, 'field': field, 'desc': v7}; if (extra) { v3.extra = extra; } this.sort_conditions.push(v3); this.clearCache(); }; v2.onExecuted = function (results) { this._results = []; var v6 = 0; while (v6 < results.length) { var v2 = results[v6]; var v3 = new com.newgrounds.SaveFile(this._group); v3.setName(v2.filename); v3.setID(v2.save_id); v3.setDescription(v2.description); v3.setThumbnailURL(v2.thumb); v3.setFileURL(v2.file); if (v2.views) { v3.setViews(v2.views); } v3.setPermissions(v2.status, v2.locked); v3.authorName = v2.user_name; v3.authorID = v2.user_id; var v5 = 0; while (v5 < v2.keys.length) { v3.setKey(v2.keys[v5].id, v2.keys[v5].value); ++v5; } var v4 = 0; while (v4 < v2.ratings.length) { v3.setRating(v2.ratings[v4].id, v2.ratings[v4].votes, v2.ratings[v4].score); ++v4; } (this.getGroup()).addFile(v3); this._results.push(v3); ++v6; } this.callEventDispatcher(); }; v2.hasResults = function () { return this._results && this._results.length > 0; }; v2.callEventDispatcher = function () { com.newgrounds.API.callListener(com.newgrounds.APIEvent.QUERY_COMPLETE, true, {'query': this}); }; v2.execute = function () { if (this.hasResults() && !this.isRandomized()) { this.callEventDispatcher(); return undefined; } this._group.query = this; com.newgrounds.API.lookupSaveFiles(this._group); }; v2.processResults = function (files) { return null; }; v2.validateKeyValue = function (key, value) { var v3 = this._group.getKeyType(key); if (v3) { var v2 = com.newgrounds.SaveGroup.KEY_TYPES[v3]; if (v2 == 'float' and com.newgrounds.ValidationTools.isFloat(value)) { return true; } else { if (v2 == 'integer' and com.newgrounds.ValidationTools.isInteger(value)) { return true; } else { if (v2 == 'string' and com.newgrounds.ValidationTools.isString(value)) { return true; } } } this.error('Expected type ' + v2 + ' for key \'' + key + '\''); } return false; }; v2.validateValue = function (field, value) { if (com.newgrounds.SaveGroupQuery.file_fields[field]) { if (com.newgrounds.SaveGroupQuery.file_fields[field].type == 'integer' and com.newgrounds.ValidationTools.isInteger(value)) { return true; } else { if (com.newgrounds.SaveGroupQuery.file_fields[field].type == 'float' and com.newgrounds.ValidationTools.isFloat(value)) { return true; } else { if (com.newgrounds.SaveGroupQuery.file_fields[field].type == 'string' and com.newgrounds.ValidationTools.isString(value)) { return true; } else { this.error('Expecting ' + com.newgrounds.SaveGroupQuery.file_fields[field].type + ' value on \'' + field + '\' condition'); } } } return false; } var v2 = []; for (var v4 in com.newgrounds.SaveGroupQuery.file_fields) { v2.push(v4); } this.error('\'' + field + '\' is not a searchable field. Valid fields are: ' + v2.join(', ')); return false; }; v2.validateOperator = function (operator) { var v2 = 0; while (v2 < com.newgrounds.SaveGroupQuery.valid_operators.length) { if (operator == com.newgrounds.SaveGroupQuery.valid_operators[v2]) { return true; } ++v2; } this.error('\'' + operator + '\' is not a valid lookup operation. Valid operations are: ' + com.newgrounds.SaveGroupQuery.valid_operators.join(', ')); return false; }; v2.error = function (msg) { trace('[QUERY ERROR] :: ' + msg); }; v1.TABLE_FILES = 1; v1.TABLE_KEYS = 2; v1.TABLE_RATINGS = 3; v2._results = []; v1.file_fields = {'FILE_ID': {'id': 0, 'field': 'file_id', 'type': 'integer'}, 'AUTHOR_ID': {'id': 1, 'field': 'user_id', 'type': 'integer'}, 'AUTHOR_NAME': {'id': 2, 'field': 'user_name', 'type': 'string'}, 'FILE_NAME': {'id': 3, 'field': 'file_name', 'type': 'string'}, 'CREATED_ON': {'id': 4, 'field': 'created', 'type': 'string'}, 'UPDATED_ON': {'id': 5, 'field': 'last_update', 'type': 'string'}, 'TOTAL_VIEWS': {'id': 6, 'field': 'views', 'type': 'integer'}, 'FILE_STATUS': {'id': 7, 'field': 'status', 'type': 'integer'}}; v1.rating_columns = {'TOTAL_VOTES': 'votes', 'SCORE': 'score'}; v1.valid_operators = ['=', '<', '>', '!=', '<>', '<=', '>=', '*', '!*', '!*=', '!=*', '*=', '=*']; v2.addProperty('group', v2.__get__group, function () {}); v2.addProperty('groupId', v2.__get__groupId, function () {}); v2.addProperty('page', v2.__get__page, v2.__set__page); v2.addProperty('pages', v2.__get__pages, function () {}); v2.addProperty('randomize', v2.__get__randomize, v2.__set__randomize); v2.addProperty('results', v2.__get__results, function () {}); v2.addProperty('resultsPerPage', v2.__get__resultsPerPage, v2.__set__resultsPerPage); ASSetPropFlags(com.newgrounds.SaveGroupQuery.prototype, null, 1); } #endinitclip } movieClip 24 __Packages.com.newgrounds.encoders.ImageScanner { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.encoders) { _global.com.newgrounds.encoders = new Object(); } if (!_global.com.newgrounds.encoders.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.encoders.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.encoders.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.getProgress = function () { return Math.round((this.getBytesScanned() / this.getBytesTotal()) * 100); }; v2.drawChunk = function () { if (!this.busy) { this.busy = true; var v2 = 0; while (v2 < this.pixels_per_chunk) { if (!this.nextPixel()) { trace(this.output.length); 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.pixels_per_chunk = 500; v2.debug = new Object(); ASSetPropFlags(com.newgrounds.encoders.ImageScanner.prototype, null, 1); } #endinitclip } movieClip 23 __Packages.com.newgrounds.encoders.BaseN { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.encoders) { _global.com.newgrounds.encoders = new Object(); } if (!_global.com.newgrounds.encoders.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.encoders.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.encoders.BaseN.prototype, null, 1); } #endinitclip } movieClip 34 __Packages.com.newgrounds.APIEventDispatcher { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.APIEventDispatcher) { var v1 = function () {}; com.newgrounds.APIEventDispatcher = v1; var v2 = v1.prototype; v2.addEventListener = function (event, callback, target) { if (!target) { throw 'Attempted to create a listener without providing a target object.'; } if (!this.listeners[event]) { this.listeners[event] = []; } else { this.removeEventListener(event, target); } this.listeners[event].push({'target': target, 'callback': callback}); }; v2.removeEventListener = function (event, target) { if (!target) { throw 'Attempted to remove a listener without providing a target object.'; } if (!this.listeners[event] || this.listeners[event].length < 1) { return undefined; } var v4 = []; var v2 = 0; while (v2 < this.listeners[event].length) { if (this.listeners[event][v2].target != target) { v4.push(this.listeners[event][v2]); } ++v2; } this.listeners[event] = v4; }; v2.dispatchEvent = function (event) { if (!this.hasEventListener(event.__get__type())) { return false; } this.collectGarbage(event.__get__type()); var v2 = 0; while (v2 < this.listeners[event.__get__type()].length) { var v4 = this.listeners[event.__get__type()][v2].callback; if (this.listeners[event.__get__type()][v2].target) { var v5 = this.listeners[event.__get__type()][v2].target; v4.call(v5, event); } else { v4(event); } ++v2; } return true; }; v2.hasEventListener = function (event) { return this.listeners[event] != undefined && this.listeners[event].length > 0; }; v2.collectGarbage = function (event) { var v5 = []; if (!this.hasEventListener) { return undefined; } var v2 = 0; while (v2 < this.listeners[event].length) { var v4 = this.listeners[event][v2].target; if (v4) { v5.push(this.listeners[event][v2]); } ++v2; } this.listeners[event] = v5; }; v2.listeners = {}; ASSetPropFlags(com.newgrounds.APIEventDispatcher.prototype, null, 1); } #endinitclip } movieClip 21 __Packages.com.newgrounds.APIEvent { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.APIEvent) { var v1 = function (type, success, data) { this._type = type; this._success = success; if (data.isError()) { this._error = data; this.data = null; } else { if (data.error && data.error.isError()) { this._error = data.error; this.data = data; } else { this.data = data; this._error = null; } } }; com.newgrounds.APIEvent = v1; var v2 = v1.prototype; v2.__get__error = function () { return this._error; }; v2.__get__type = function () { return this._type; }; v2.__get__success = function () { return this._success; }; v1.API_CONNECTED = 'apiConnected'; v1.ADS_APPROVED = 'adsApproved'; v1.AD_ATTACHED = 'adAttached'; v1.HOST_BLOCKED = 'hostBlocked'; v1.NEW_VERSION_AVAILABLE = 'newVersionAvailable'; v1.EVENT_LOGGED = 'eventLogged'; v1.SCORE_POSTED = 'scorePosted'; v1.SCORES_LOADED = 'scoresLoaded'; v1.UNLOCK_MEDAL = 'unlockMedal'; v1.MEDAL_UNLOCKED = 'medalUnlocked'; v1.MEDALS_LOADED = 'medalsLoaded'; v1.METADATA_LOADED = 'metadataLoaded'; v1.FILE_PRIVS_LOADED = 'filePrivsLoaded'; v1.FILE_SAVED = 'fileSaved'; v1.FILE_LOADED = 'fileLoaded'; v1.FILE_INITIALIZED = 'fileInitialized'; v1.FILE_REQUESTED = 'fileRequested'; v1.QUERY_COMPLETE = 'queryComplete'; v1.VOTE_COMPLETE = 'voteComplete'; v1.API_ERROR = 'apiError'; v1.UNCAUGHT_EVENT = 'uncaughtEvent'; v2.addProperty('error', v2.__get__error, function () {}); v2.addProperty('success', v2.__get__success, function () {}); v2.addProperty('type', v2.__get__type, function () {}); ASSetPropFlags(com.newgrounds.APIEvent.prototype, null, 1); } #endinitclip } movieClip 15 __Packages.com.newgrounds.APIError { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.APIError) { var v1 = function (error, msg) { if ((Number(error)).toString() == String(error)) { error = Number(error); } else { if (com.newgrounds.APIError.error_codes[String(error)]) { error = com.newgrounds.APIError.error_codes[String(error)]; } else { error = 0; } } this.code = error; this.message = msg; this.name = com.newgrounds.APIError.error_names[error]; this.alias = com.newgrounds.APIError.aliases[error]; }; com.newgrounds.APIError = v1; var v2 = v1.prototype; v1.init_codes = function () { var v2 = new Object(); var v1 = 0; while (v1 < com.newgrounds.APIError.aliases.length) { v2[com.newgrounds.APIError.aliases[v1]] = v1; ++v1; } return v2; }; v1.init_names = function () { var v5 = new Array(); var v3 = 0; while (v3 < com.newgrounds.APIError.aliases.length) { var v2 = (com.newgrounds.APIError.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.APIError.always_caps) { if (v2[v1].toUpperCase() == com.newgrounds.APIError.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_SAVE_GROUP', 'FILE_NOT_FOUND', 'SITE_ID_REQUIRED', 'UPLOAD_IN_PROGRESS', 'USER_CANCELLED', 'CONFIRM_REQUEST', 'ILLEGAL_REQUEST', 'CONNECTION_FAILED', 'QUERY_INCOMPLETE', 'SAVE_FILE_ERROR', 'INVALID_VALUE', 'SERVER_ERROR', 'INVALID_SCOREBOARD'); v1.always_caps = new Array('API', 'URL', 'ID'); v1.error_codes = com.newgrounds.APIError.init_codes(); v1.error_names = com.newgrounds.APIError.init_names(); v2.code = 0; ASSetPropFlags(com.newgrounds.APIError.prototype, null, 1); } #endinitclip } movieClip 28 __Packages.com.newgrounds.RemoteAuth { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.RemoteAuth) { var v1 = function (id) { this.auth_token = id; System.security.allowDomain('*'); this.receiver = new LocalConnection(); this.receiver.allowDomain = function () { return true; }; this.receiver.onAuth = function (auth_result) { trace('remote login is a success! ' + auth_result); com.newgrounds.API.onRemoteAuthentication(auth_result); }; this.receiver.connect('_' + this.auth_token); }; com.newgrounds.RemoteAuth = v1; var v2 = v1.prototype; v2.__get__token = function () { return this.auth_token; }; v2.addProperty('token', v2.__get__token, function () {}); ASSetPropFlags(com.newgrounds.RemoteAuth.prototype, null, 1); } #endinitclip } movieClip 29 __Packages.com.newgrounds.Medal { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.Medal) { var v1 = function (id, name, value, difficulty, unlocked, _icon_url) { if (id == undefined || name == undefined || value == undefined || difficulty == undefined) { com.newgrounds.API.fatalError('Medal instances require an id, name, value and difficulty'); } this._medal_id = id; this._medal_name = name; this._medal_value = value; this._medal_difficulty = difficulty; if (unlocked) { this._medal_unlocked = true; } if (_icon_url) { this._icon_url = _icon_url; } }; com.newgrounds.Medal = v1; var v2 = v1.prototype; v2.__get__difficulty = function () { return com.newgrounds.Medal.difficulty_names[this._medal_difficulty]; }; v2.__get__difficultyId = function () { return this._medal_difficulty; }; v2.__get__icon_url = function () { return this._icon_url; }; v2.__get__id = function () { return this._medal_id; }; v2.__get__name = function () { return this._medal_name; }; v2.__get__unlocked = function () { return this._medal_unlocked; }; v2.__get__value = function () { return this._medal_value; }; v2.isUnlocked = function () { return this._medal_unlocked; }; v2.unlock = function () { if (!this.isUnlocked()) { com.newgrounds.API.unlockMedal(this); } }; v2.setUnlocked = function (u) { this._medal_unlocked = u; }; v2.attachIcon = function (target, depth) { if (!depth) { depth = target.getNextHighestDepth(); } var v3 = target.createEmptyMovieClip('Asset_Medal_Icon_' + this.getID(), depth); if (this._icon_url) { v3.loadMovie(this._icon_url); } else { var v4 = flash.display.BitmapData.loadBitmap('Asset_default_medal_icon_' + this.getDifficulty(), depth); v3.attachBitmap(v4, depth, true); } }; v2.getID = function () { return this._medal_id; }; v2.getName = function () { return this._medal_name; }; v2.getValue = function () { return this._medal_value; }; v2.getDifficulty = function (as_string) { if (as_string) { return com.newgrounds.Medal.difficulty_names[this._medal_difficulty]; } else { return this._medal_difficulty; } }; v2._medal_unlocked = false; v2._icon_loaded = false; v2._icon_width = 50; v2._icon_height = 50; v2._icon_url = null; v1.difficulty_names = new Array(null, 'Easy', 'Moderate', 'Challenging', 'Difficult', 'Brutal'); v2.addProperty('difficulty', v2.__get__difficulty, function () {}); v2.addProperty('difficultyId', v2.__get__difficultyId, function () {}); v2.addProperty('icon_url', v2.__get__icon_url, function () {}); v2.addProperty('id', v2.__get__id, function () {}); v2.addProperty('name', v2.__get__name, function () {}); v2.addProperty('unlocked', v2.__get__unlocked, function () {}); v2.addProperty('value', v2.__get__value, function () {}); ASSetPropFlags(com.newgrounds.Medal.prototype, null, 1); } #endinitclip } movieClip 1 __Packages.com.newgrounds.components.FlashAd { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.components) { _global.com.newgrounds.components = new Object(); } if (!_global.com.newgrounds.components.FlashAd) { var v1 = function () { super(); this.background._visible = this.show_background; if (this.show_background) { this._x = Math.round(this._x); this._y = Math.round(this._y); this._xscale = 100; this._yscale = 100; } com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.ADS_APPROVED, this.loadAd, this); }; com.newgrounds.components.FlashAd = v1; com.newgrounds.components.FlashAd extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { com.newgrounds.API.attachFlashAd(this); }; v2.loadAd = function (event, params) { com.newgrounds.API.attachFlashAd(this); }; v2.onUnload = function () { this.clip.ad.unloadMovie(); this.clip.ad.removeMovieClip(); this.clip.removeMovieClip(); this.mask.removeMovieClip(); this.background.removeMovieClip(); com.newgrounds.API.removeEventListener(com.newgrounds.APIEvent.ADS_APPROVED, this); }; ASSetPropFlags(com.newgrounds.components.FlashAd.prototype, null, 1); } #endinitclip } movieClip 20 __Packages.com.newgrounds.ValidationTools { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.ValidationTools) { var v1 = function () {}; com.newgrounds.ValidationTools = v1; var v2 = v1.prototype; v1.isNumber = function (v) { if (typeof v == 'number') { return true; return false; } if (typeof v == 'string' and (Number(v)).toString() == v) { return true; } return false; }; v1.isInteger = function (v) { if (com.newgrounds.ValidationTools.isNumber(v)) { v = Number(v); return Math.floor(v) == v; } return false; }; v1.isFloat = function (v) { return com.newgrounds.ValidationTools.isNumber(v); }; v1.isString = function (v) { if (typeof v == 'string' or typeof v == 'number') { return true; } return false; }; v1.isEmpty = function (o) { for (var v2 in o) { return false; } return true; }; ASSetPropFlags(com.newgrounds.ValidationTools.prototype, null, 1); } #endinitclip } movieClip 25 __Packages.com.newgrounds.encoders.SerialXML { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.encoders) { _global.com.newgrounds.encoders = new Object(); } if (!_global.com.newgrounds.encoders.SerialXML) { var v1 = function () {}; com.newgrounds.encoders.SerialXML = v1; var v2 = v1.prototype; v1.decode = function (xml) { if (!(xml instanceof XML)) { xml = new XML(xml); } var v2 = com.newgrounds.encoders.SerialXML.populateObject(xml.firstChild, {}); return v2.DATA; }; v1.encode = function (obj) { var v1 = new XML(); com.newgrounds.encoders.SerialXML.populateXML(v1, obj, 'DATA'); return v1; }; v1.populateObject = function (child, object) { var v6 = child.nodeName; var v5 = com.newgrounds.encoders.SerialXML.getValue(v6, child.attributes.v); var v4 = child.attributes.n; if (object instanceof Array) { v4 = object.length; object.push(v5); } else { object[v4] = v5; } if (child.hasChildNodes()) { var v1 = 0; while (v1 < child.childNodes.length) { com.newgrounds.encoders.SerialXML.populateObject(child.childNodes[v1], object[v4]); ++v1; } } return object; }; v1.populateXML = function (child, obj, name) { if (obj === undefined) { return undefined; } var v5 = new XML(); var v2; if (obj instanceof Array) { v2 = v5.createElement(com.newgrounds.encoders.SerialXML.getType(obj)); if (name) { v2.attributes.n = name; } child.appendChild(v2); var v4 = 0; while (v4 < obj.length) { com.newgrounds.encoders.SerialXML.populateXML(v2, obj[v4]); ++v4; } } else { if (typeof obj == 'object') { v2 = v5.createElement(com.newgrounds.encoders.SerialXML.getType(obj)); if (name) { v2.attributes.n = name; } child.appendChild(v2); for (var v4 in obj) { com.newgrounds.encoders.SerialXML.populateXML(v2, obj[v4], v4); } } else { v2 = v5.createElement(com.newgrounds.encoders.SerialXML.getType(obj)); if (name) { v2.attributes.n = name; } if ((com.newgrounds.encoders.SerialXML.getType(obj)).length == 1) { v2.attributes.v = obj; } child.appendChild(v2); } } }; v1.getValue = function (type, stringval) { switch (type.toUpperCase()) { case 'O': return new Object(); break; case 'A': return new Array(); break; case 'N': return Number(stringval); break; case 'S': return String(stringval); break; case 'TRUE': return true; break; case 'FALSE': return false; break; default: return null; } }; v1.getType = function (obj) { switch (obj instanceof Array ? 'array' : typeof obj) { case 'array': return 'A'; break; case 'object': return 'O'; break; case 'string': return 'S'; break; case 'number': return 'N'; case 'boolean': return (obj === true) ? 'TRUE' : 'FALSE'; break; default: return 'NULL'; } }; ASSetPropFlags(com.newgrounds.encoders.SerialXML.prototype, null, 1); } #endinitclip } movieClip 26 __Packages.com.newgrounds.encoders.LZW2 { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.encoders) { _global.com.newgrounds.encoders = new Object(); } if (!_global.com.newgrounds.encoders.LZW2) { var v1 = function () {}; com.newgrounds.encoders.LZW2 = v1; var v2 = v1.prototype; v1.doCompressorConfig = function () { com.newgrounds.encoders.LZW2.comp_dict = []; var v1 = 0; while (v1 < 256) { com.newgrounds.encoders.LZW2.comp_dict[String.fromCharCode(v1)] = v1; ++v1; } com.newgrounds.encoders.LZW2.comp_dict.< = 256; com.newgrounds.encoders.LZW2.comp_dict.> = 257; com.newgrounds.encoders.LZW2.comp_dict.& = 258; com.newgrounds.encoders.LZW2.comp_dict." = 259; com.newgrounds.encoders.LZW2.comp_dict.\' = 260; com.newgrounds.encoders.LZW2.pos = 0; com.newgrounds.encoders.LZW2.result = ''; com.newgrounds.encoders.LZW2.buffer = ''; com.newgrounds.encoders.LZW2.nbChar = 256 + com.newgrounds.encoders.LZW2.skipnum; }; v1.compress = function (string, callback, callback_params) { com.newgrounds.encoders.LZW2.doCompressorConfig(); if (com.newgrounds.encoders.LZW2.busy) { trace('[LZW COMPRESSOR] :: Compression can not begin until previous compression or decompression is complete!'); return undefined; } com.newgrounds.encoders.LZW2.splitStr = string.split(''); string = ''; com.newgrounds.encoders.LZW2.len = com.newgrounds.encoders.LZW2.splitStr.length; com.newgrounds.encoders.LZW2.local = {'delay': 30, 'callback': callback, 'callback_params': callback_params, 'compress_chunk': function () { com.newgrounds.encoders.LZW2.compress_chunk(); }, 'busy': false, 'complete': false}; com.newgrounds.encoders.LZW2.interval = setInterval(com.newgrounds.encoders.LZW2.local, 'compress_chunk', 5); }; v1.getProgress = function () { return Math.round((com.newgrounds.encoders.LZW2.pos / com.newgrounds.encoders.LZW2.len) * 100); }; v1.compress_chunk = function () { if (com.newgrounds.encoders.LZW2.local.delay > 0) { --com.newgrounds.encoders.LZW2.local.delay; } else { if (!com.newgrounds.encoders.LZW2.local.busy) { com.newgrounds.encoders.LZW2.local.busy = true; var v1 = 0; while (v1 < com.newgrounds.encoders.LZW2.max_chunk_length) { com.newgrounds.encoders.LZW2.encode_next(); if (com.newgrounds.encoders.LZW2.local.complete) { break; } ++v1; } com.newgrounds.encoders.LZW2.local.busy = false; } } if (com.newgrounds.encoders.LZW2.local.complete) { trace('LZW2 complete ' + com.newgrounds.encoders.LZW2.nbChar + ' ' + com.newgrounds.encoders.LZW2.comp_dict.length + ' ' + com.newgrounds.encoders.LZW2.len + ' ' + com.newgrounds.encoders.LZW2.pos + ' ' + com.newgrounds.encoders.LZW2.skipnum); clearInterval(com.newgrounds.encoders.LZW2.interval); com.newgrounds.encoders.LZW2.local.callback(com.newgrounds.encoders.LZW2.result, com.newgrounds.encoders.LZW2.local.callback_params); com.newgrounds.encoders.LZW2.result = ''; com.newgrounds.encoders.LZW2.buffer = ''; } }; v1.encode_next = function () { if (com.newgrounds.encoders.LZW2.pos <= com.newgrounds.encoders.LZW2.len) { var v1 = com.newgrounds.encoders.LZW2.splitStr[com.newgrounds.encoders.LZW2.pos]; if (com.newgrounds.encoders.LZW2.comp_dict[com.newgrounds.encoders.LZW2.buffer + v1] !== undefined) { com.newgrounds.encoders.LZW2.buffer += v1; } else { com.newgrounds.encoders.LZW2.result += String.fromCharCode(com.newgrounds.encoders.LZW2.comp_dict[com.newgrounds.encoders.LZW2.buffer]); com.newgrounds.encoders.LZW2.comp_dict[com.newgrounds.encoders.LZW2.buffer + v1] = com.newgrounds.encoders.LZW2.nbChar; ++com.newgrounds.encoders.LZW2.nbChar; com.newgrounds.encoders.LZW2.buffer = v1; } ++com.newgrounds.encoders.LZW2.pos; } else { com.newgrounds.encoders.LZW2.local.complete = true; return undefined; } }; v1.comp_config = false; v1.skipnum = 5; v1.busy = false; v1.max_chunk_length = 12000; ASSetPropFlags(com.newgrounds.encoders.LZW2.prototype, null, 1); } #endinitclip } movieClip 27 __Packages.com.newgrounds.encoders.LZW { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.encoders) { _global.com.newgrounds.encoders = new Object(); } if (!_global.com.newgrounds.encoders.LZW) { var v1 = function () {}; com.newgrounds.encoders.LZW = v1; var v2 = v1.prototype; v1.setXMLSafe = function (x) { com.newgrounds.encoders.LZW.xmlsafe = x; }; v1.compress = function (str, escape_chars) { var v2 = new Array(); var v11 = com.newgrounds.encoders.LZW.xmlsafe ? 5 : 0; var v5 = 0; while (v5 < 256) { v2[String.fromCharCode(v5)] = v5; ++v5; } if (com.newgrounds.encoders.LZW.xmlsafe) { v2.< = 256; v2.> = 257; v2.& = 258; v2." = 259; v2.\' = 260; } var v7 = ''; var v8 = str.split(''); var v9 = v8.length; var v6 = 256 + v11; var v1 = ''; var v4; v5 = 0; while (v5 <= v9) { var v3 = v8[v5]; if (v2[v1 + v3] !== undefined) { v1 += v3; } else { v4 = String.fromCharCode(v2[v1]); if (escape_chars and (v2[v1] < 33 or v2[v1] > 126 or v4 == '%')) { v4 = escape(v4); } v7 += v4; v2[v1 + v3] = v6; ++v6; v1 = v3; } ++v5; } return v7; }; v1.decompress = function (str) { var v4 = new Array(); var v10 = com.newgrounds.encoders.LZW.xmlsafe ? 5 : 0; var v6 = 0; while (v6 < 256) { var v9 = String.fromCharCode(v6); v4[v6] = v9; ++v6; } if (com.newgrounds.encoders.LZW.xmlsafe) { v4[256] = '<'; v4[257] = '>'; v4[258] = '&'; v4[259] = '"'; v4[260] = '\''; } var v11 = str; var v13 = v11.split(''); var v12 = v13.length; var v7 = 256 + v10; var v1 = ''; var v2 = ''; var v8 = ''; v6 = 0; while (v6 < v12) { var v5 = v11.charCodeAt(v6); var v3 = v4[v5]; if (v1 == '') { v1 = v3; v8 += v3; } else { if (v5 <= 255 + v10) { v8 += v3; v2 = v1 + v3; v4[v7] = v2; ++v7; v1 = v3; } else { v2 = v4[v5]; if (v2 == undefined) { v2 = v1 + v1.slice(0, 1); } v8 += v2; v4[v7] = v1 + v2.slice(0, 1); ++v7; v1 = v2; } } ++v6; } return v8; }; v1.compress_fp6 = function (str) { var v3 = new Array(); var v10 = com.newgrounds.encoders.LZW.xmlsafe ? 5 : 0; var v4 = 0; while (v4 < 256) { v3[String(v4)] = v4; ++v4; } if (com.newgrounds.encoders.LZW.xmlsafe) { var v14 = String((new String('<')).charCodeAt(0)); var v11 = String((new String('>')).charCodeAt(0)); var v13 = String((new String('&')).charCodeAt(0)); var v15 = String((new String('"')).charCodeAt(0)); var v12 = String((new String('\'')).charCodeAt(0)); v3[v14] = 256; v3[v11] = 257; v3[v13] = 258; v3[v15] = 259; v3[v12] = 260; } var v7 = ''; var v16 = str; var v8 = v16.split(''); var v9 = v8.length; var v6 = 256 + v10; var v1 = new Array(); v4 = 0; while (v4 <= v9) { var v2 = v8[v4]; if (v1.length == 0) { var v5 = String(v2.charCodeAt(0)); } else { var v5 = v1.join('-') + '-' + String(v2.charCodeAt(0)); } if (v3[v5] !== undefined) { v1.push(v2.charCodeAt(0)); } else { v7 += String.fromCharCode(v3[v1.join('-')]); v3[v5] = v6; ++v6; false; v1 = new Array(); v1.push(v2.charCodeAt(0)); } ++v4; } return v7; }; v1.xmlsafe = false; ASSetPropFlags(com.newgrounds.encoders.LZW.prototype, null, 1); } #endinitclip } movieClip 30 __Packages.com.newgrounds.ScoreBoard { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.ScoreBoard) { var v1 = function (id, name, tag) { this._name = name; this._id = id; if (tag !== undefined) { this._tag = tag; } }; com.newgrounds.ScoreBoard = v1; var v2 = v1.prototype; v2.exists = function () { return Number(this._id) > 0; }; v2.__get__id = function () { return this._id; }; v2.__get__name = function () { return this._name; }; v2.__get__period = function () { return this._period; }; v2.__get__tag = function () { return this._tag; }; v2.__get__page = function () { return this._page; }; v2.__get__num_results = function () { return this._num_results; }; v2.__get__scores = function () { return this._scores; }; v2.postScore = function (value, tag) { if (tag !== undefined) { this._tag = tag; } com.newgrounds.API.postScore(this._name, value, this._tag); }; v2.loadScores = function (period, page, num_results, tag) { if (period) { this._period = period; } if (page) { this._page = page; } if (num_results) { this._num_results = num_results; } this._scores = []; com.newgrounds.API.loadScores(this._name, this._period, tag); }; v2.setScores = function (scores, period, page, num_results) { if (period) { this._period = period; } if (page) { this._page = page; } if (num_results) { this._num_results = num_results; } this._scores = []; var v2 = 0; while (v2 < scores.length) { var v4 = this._num_results * (this._page - 1) + 1 + v2; this._scores.push(new com.newgrounds.Score(this, v4, scores[v2].username, scores[v2].value, scores[v2].numeric_value)); ++v2; } }; v2._period = 'Today'; v2._num_results = 10; v2._page = 1; v2._tag = ''; v2.addProperty('id', v2.__get__id, function () {}); v2.addProperty('name', v2.__get__name, function () {}); v2.addProperty('num_results', v2.__get__num_results, function () {}); v2.addProperty('page', v2.__get__page, function () {}); v2.addProperty('period', v2.__get__period, function () {}); v2.addProperty('scores', v2.__get__scores, function () {}); v2.addProperty('tag', v2.__get__tag, function () {}); ASSetPropFlags(com.newgrounds.ScoreBoard.prototype, null, 1); } #endinitclip } movieClip 31 __Packages.com.newgrounds.Score { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.Score) { var v1 = function (board, position, username, value, numeric_value) { this._board = board; this._position = position; this._username = username; this._value = value; this._numeric_value = numeric_value; }; com.newgrounds.Score = v1; var v2 = v1.prototype; v2.__get__board = function () { return this._board; }; v2.__get__position = function () { return this._position; }; v2.__get__username = function () { return this._username; }; v2.__get__value = function () { return this._value; }; v2.__get__numeric_value = function () { return this._numeric_value; }; v1.fromTime = function (time) { var v1 = time.split(':'); var v2 = Math.round(Number(v1.pop()) * 1000); if (v1.length > 0) { v2 += Number(v1.pop()) * 60; } if (v1.length > 0) { v2 += Number(v1.pop()) * 3600; } return v2; }; v1.fromDistance = function (distance) { var v1 = distance.indexOf('\''); var v5 = distance.indexOf('"', v1); var v3 = Number(distance.substr(0, v1)); var v4 = Number(distance.substring(v1 + 1, v5)); return Math.round(v3 * 12 + v4); }; v2.addProperty('board', v2.__get__board, function () {}); v2.addProperty('numeric_value', v2.__get__numeric_value, function () {}); v2.addProperty('position', v2.__get__position, function () {}); v2.addProperty('username', v2.__get__username, function () {}); v2.addProperty('value', v2.__get__value, function () {}); ASSetPropFlags(com.newgrounds.Score.prototype, null, 1); } #endinitclip } movieClip 32 __Packages.com.newgrounds.encoders.RC4 { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.encoders) { _global.com.newgrounds.encoders = new Object(); } if (!_global.com.newgrounds.encoders.RC4) { var v1 = function () {}; com.newgrounds.encoders.RC4 = v1; var v2 = v1.prototype; v1.encrypt = function (src, key) { var v3 = com.newgrounds.encoders.RC4.strToChars(src); var v1 = com.newgrounds.encoders.RC4.strToChars(key); var v2 = com.newgrounds.encoders.RC4.calculate(v3, v1); return com.newgrounds.encoders.RC4.charsToHex(v2); }; v1.encryptbin = function (src, key) { var v3 = com.newgrounds.encoders.RC4.strToChars(src); var v1 = com.newgrounds.encoders.RC4.strToChars(key); var v2 = com.newgrounds.encoders.RC4.calculate(v3, v1); return v2; }; v1.decrypt = function (src, key) { var v3 = com.newgrounds.encoders.RC4.hexToChars(src); var v1 = com.newgrounds.encoders.RC4.strToChars(key); var v2 = com.newgrounds.encoders.RC4.calculate(v3, v1); return com.newgrounds.encoders.RC4.charsToStr(v2); }; v1.initialize = function (pwd) { var v2 = 0; var v3; var v4 = pwd.length; var v1 = 0; while (v1 <= 255) { com.newgrounds.encoders.RC4.mykey[v1] = pwd[v1 % v4]; com.newgrounds.encoders.RC4.sbox[v1] = v1; ++v1; } v1 = 0; while (v1 <= 255) { v2 = (v2 + com.newgrounds.encoders.RC4.sbox[v1] + com.newgrounds.encoders.RC4.mykey[v1]) % 256; v3 = com.newgrounds.encoders.RC4.sbox[v1]; com.newgrounds.encoders.RC4.sbox[v1] = com.newgrounds.encoders.RC4.sbox[v2]; com.newgrounds.encoders.RC4.sbox[v2] = v3; ++v1; } }; v1.calculate = function (plaintxt, psw) { com.newgrounds.encoders.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.encoders.RC4.sbox[v1]) % 256; v5 = com.newgrounds.encoders.RC4.sbox[v1]; com.newgrounds.encoders.RC4.sbox[v1] = com.newgrounds.encoders.RC4.sbox[v2]; com.newgrounds.encoders.RC4.sbox[v2] = v5; var v4 = (com.newgrounds.encoders.RC4.sbox[v1] + com.newgrounds.encoders.RC4.sbox[v2]) % 256; v7 = com.newgrounds.encoders.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.encoders.RC4.prototype, null, 1); } #endinitclip } movieClip 33 __Packages.com.newgrounds.encoders.JSON { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.encoders) { _global.com.newgrounds.encoders = new Object(); } if (!_global.com.newgrounds.encoders.JSON) { var v1 = function () {}; com.newgrounds.encoders.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.encoders.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.encoders.JSON.encode(v4); if (v1) { v1 += ','; } v1 += com.newgrounds.encoders.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.background_encode = function (arg, callback) { if (com.newgrounds.encoders.JSON.busy) { trace('[Newgrounds Encoder] :: Cannot encode a new file until the previous file is completed'); return false; } else { if (!callback) { trace('[Newgrounds Encoder] :: Missing a callback function, skipping encode'); return false; } } com.newgrounds.encoders.JSON.busy = true; var v2 = new Date(); com.newgrounds.encoders.JSON.start = v2.getTime(); com.newgrounds.encoders.JSON.cache = {'busy': false, 'complete': false, 'arg': arg, 'target': arg, 'parents': [], 'encoded': '', 'callback': callback, 'encode_chunk': function () { com.newgrounds.encoders.JSON.encode_chunk(); }}; if (com.newgrounds.encoders.JSON.getType(arg) == 'object') { com.newgrounds.encoders.JSON.cache.encoded = '{'; com.newgrounds.encoders.JSON.interval = setInterval(com.newgrounds.encoders.JSON.cache, 'encode_chunk', 25); return true; } if (com.newgrounds.encoders.JSON.getType(arg) == 'array') { com.newgrounds.encoders.JSON.cache.encoded = '['; } com.newgrounds.encoders.JSON.interval = setInterval(com.newgrounds.encoders.JSON.cache, 'encode_chunk', 25); return true; }; v1.background_decode = function (arg, callback) { if (com.newgrounds.encoders.JSON.busy) { trace('[Newgrounds Encoder] :: Cannot decode a new file until the previous file is completed'); return false; } else { if (!callback) { trace('[Newgrounds Encoder] :: Missing a callback function, skipping decode'); return false; } } com.newgrounds.encoders.JSON.busy = true; var v1 = new Date(); com.newgrounds.encoders.JSON.start = v1.getTime(); com.newgrounds.encoders.JSON.cache = {'busy': false, 'callback': callback, 'complete': false, 'arg': arg, 'pos': 0, 'parents': ['root'], 'target': null, 'scratch': '', 'decode_chunk': function () { com.newgrounds.encoders.JSON.decode_chunk(); }}; com.newgrounds.encoders.JSON.interval = setInterval(com.newgrounds.encoders.JSON.cache, 'decode_chunk', 25); return true; }; 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(); }; v1.getType = function (v) { if (v instanceof Array) { return 'array'; } else { return typeof v; } }; v1.decode_chunk = function () { if (!com.newgrounds.encoders.JSON.cache.busy && !com.newgrounds.encoders.JSON.cache.complete) { com.newgrounds.encoders.JSON.cache.busy = true; var v1 = 0; while (v1 < com.newgrounds.encoders.JSON.decode_chunks) { com.newgrounds.encoders.JSON.chunk_decoder(); if (com.newgrounds.encoders.JSON.cache.complete) { break; } ++v1; } trace(Math.round((com.newgrounds.encoders.JSON.cache.pos / com.newgrounds.encoders.JSON.cache.arg.length) * 100) + '% decoded'); com.newgrounds.encoders.JSON.cache.busy = false; } if (com.newgrounds.encoders.JSON.cache.complete) { var v2 = new Date(); com.newgrounds.encoders.JSON.busy = false; clearInterval(com.newgrounds.encoders.JSON.interval); com.newgrounds.encoders.JSON.cache.callback(com.newgrounds.encoders.JSON.cache.root, v2.getTime() - com.newgrounds.encoders.JSON.start); com.newgrounds.encoders.JSON.cache.arg = ''; } }; v1.encode_chunk = function () { if (!com.newgrounds.encoders.JSON.cache.busy && !com.newgrounds.encoders.JSON.cache.complete) { com.newgrounds.encoders.JSON.cache.busy = true; var v1 = 0; while (v1 < com.newgrounds.encoders.JSON.encode_chunks) { com.newgrounds.encoders.JSON.chunk_encoder(); if (com.newgrounds.encoders.JSON.cache.complete) { break; } ++v1; } com.newgrounds.encoders.JSON.cache.busy = false; } if (com.newgrounds.encoders.JSON.cache.complete) { var v3 = new Date(); var v2 = v3.getTime(); com.newgrounds.encoders.JSON.busy = false; clearInterval(com.newgrounds.encoders.JSON.interval); com.newgrounds.encoders.JSON.cache.callback(com.newgrounds.encoders.JSON.cache.encoded, v2 - com.newgrounds.encoders.JSON.start); com.newgrounds.encoders.JSON.cache.encoded = ''; } }; v1.chunk_decoder = function () { function _object() { var v1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos); if (!com.newgrounds.encoders.JSON.cache.mode) { com.newgrounds.encoders.JSON.cache.mode = 'object'; ++com.newgrounds.encoders.JSON.cache.pos; v1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos); if (v1 != '"') { throw 'Malformed object key in encoded string. Keys must be wrapped in quotes ("")'; } com.newgrounds.encoders.JSON.cache.scratch = ''; _setTargetValue({}); } else { if (v1 == ',') { ++com.newgrounds.encoders.JSON.cache.pos; v1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos); if (v1 != '"') { throw 'Malformed object key in encoded string. Keys must be wrapped in quotes ("")'; } com.newgrounds.encoders.JSON.cache.scratch = ''; } else { if (v1 == '}') { _useParent(); } else { if (v1 == '"') { ++com.newgrounds.encoders.JSON.cache.pos; v1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos); if (v1 != ':') { throw 'Malformed object notation. Object keys and values must be separated by colons(:)'; } _addParent(com.newgrounds.encoders.JSON.cache.scratch); com.newgrounds.encoders.JSON.cache.mode = null; } else { if (v1 == '\\') { ++com.newgrounds.encoders.JSON.cache.pos; v1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos); } com.newgrounds.encoders.JSON.cache.scratch += v1; } } } } ++com.newgrounds.encoders.JSON.cache.pos; } function _array() { var v1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos); if (!com.newgrounds.encoders.JSON.cache.mode) { com.newgrounds.encoders.JSON.cache.mode = 'array'; ++com.newgrounds.encoders.JSON.cache.pos; v1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos); _setTargetValue([]); if (v1 != ']') { _addArrayKey(); } else { _useParent(); } return undefined; } else { if (v1 == ',') { _addArrayKey(); } else { if (v1 == ']') { _useParent(); } } } ++com.newgrounds.encoders.JSON.cache.pos; } function _boolean() { var v1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos); if (v1 == 't') { _setTargetValue(true); com.newgrounds.encoders.JSON.cache.pos += 3; } else { if (v1 == 'f') { _setTargetValue(false); com.newgrounds.encoders.JSON.cache.pos += 4; } else { throw 'Bool values must be true or false'; } } _useParent(); } function _null() { var v1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos); if (v1 == 'n') { _setTargetValue(null); com.newgrounds.encoders.JSON.cache.pos += 2; } else { throw 'Null values must be null'; } _useParent(); } function _string() { var v1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos); if (!com.newgrounds.encoders.JSON.cache.mode) { if (v1 != '"') { throw 'Strings must be wrapped in quotes ("")'; } com.newgrounds.encoders.JSON.cache.scratch = ''; com.newgrounds.encoders.JSON.cache.mode = 'string'; } else { if (v1 == '"') { _setTargetValue(com.newgrounds.encoders.JSON.cache.scratch); _useParent(); } else { if (v1 == '\\') { ++com.newgrounds.encoders.JSON.cache.pos; v1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos); switch (v1) { case 'n': v1 = '\n'; break; case 'r': v1 = '\n'; break; case 't': v1 = '\t'; break; case 'u': v1 = '\\' + v1; } } com.newgrounds.encoders.JSON.cache.scratch += v1; } } ++com.newgrounds.encoders.JSON.cache.pos; } function _number() { var v1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos); var v2 = '01234567890.-'; if (!com.newgrounds.encoders.JSON.cache.mode) { com.newgrounds.encoders.JSON.cache.mode = 'number'; com.newgrounds.encoders.JSON.cache.scratch = ''; } if (v2.indexOf(v1) < 0) { _setTargetValue(Number(com.newgrounds.encoders.JSON.cache.scratch)); _useParent(); } else { com.newgrounds.encoders.JSON.cache.scratch += v1; ++com.newgrounds.encoders.JSON.cache.pos; } } function _setTargetValue(newval) { var v2 = (_getParent()).obj; var v1 = com.newgrounds.encoders.JSON.cache.parents[com.newgrounds.encoders.JSON.cache.parents.length - 1]; v2[v1] = newval; } function _useParent() { com.newgrounds.encoders.JSON.cache.mode = com.newgrounds.encoders.JSON.getType((_getParent()).obj); com.newgrounds.encoders.JSON.cache.parents.pop(); } function _getParent() { var v2 = com.newgrounds.encoders.JSON.cache; var v1 = 0; while (v1 < com.newgrounds.encoders.JSON.cache.parents.length - 1) { v2 = v2[com.newgrounds.encoders.JSON.cache.parents[v1]]; ++v1; } return {'obj': v2, 'name': com.newgrounds.encoders.JSON.cache.parents[v1]}; } function _getCurrent() { var v2 = com.newgrounds.encoders.JSON.cache; var v1 = 0; while (v1 < com.newgrounds.encoders.JSON.cache.parents.length) { v2 = v2[com.newgrounds.encoders.JSON.cache.parents[v1]]; ++v1; } return {'obj': v2, 'name': com.newgrounds.encoders.JSON.cache.parents[v1]}; } function _addParent(child) { com.newgrounds.encoders.JSON.cache.parents.push(child); } function _addArrayKey() { var v1 = (_getCurrent()).obj.length; com.newgrounds.encoders.JSON.cache.parents.push(v1); com.newgrounds.encoders.JSON.cache.mode = null; } if (com.newgrounds.encoders.JSON.cache.pos >= com.newgrounds.encoders.JSON.cache.arg.length) { com.newgrounds.encoders.JSON.cache.complete = true; return undefined; } else { if (com.newgrounds.encoders.JSON.cache.mode) { ('_' + com.newgrounds.encoders.JSON.cache.mode)(); } else { var char = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos); switch (char) { case '{': _object(); break; case '[': _array(); break; case '"': _string(); break; case 'n': _null(); break; case 't': _boolean(); break; case 'f': _boolean(); break; default: _number(); } } } }; v1.chunk_encoder = function () { if (com.newgrounds.encoders.JSON.cache.complete) { return undefined; } var v2 = com.newgrounds.encoders.JSON.getType(com.newgrounds.encoders.JSON.cache.target); switch (v2) { case 'number': com.newgrounds.encoders.JSON.cache.encoded += com.newgrounds.encoders.JSON.cache.target; com.newgrounds.encoders.JSON.getParent(); break; case 'string': com.newgrounds.encoders.JSON.cache.encoded += '"' + (com.newgrounds.encoders.JSON.cache.target.split('"')).join('\\"') + '"'; com.newgrounds.encoders.JSON.getParent(); break; case 'boolean': com.newgrounds.encoders.JSON.cache.encoded += (com.newgrounds.encoders.JSON.cache.target == true) ? 'true' : 'false'; com.newgrounds.encoders.JSON.getParent(); break; case 'null': com.newgrounds.encoders.JSON.cache.encoded += 'null'; com.newgrounds.encoders.JSON.getParent(); break; case 'array': if (com.newgrounds.encoders.JSON.cache.target.length < 1) { com.newgrounds.encoders.JSON.cache.encoded += ']'; com.newgrounds.encoders.JSON.getParent(); } else { com.newgrounds.encoders.JSON.cache.parents.push(com.newgrounds.encoders.JSON.cache.target); com.newgrounds.encoders.JSON.cache.target = com.newgrounds.encoders.JSON.cache.target[0]; if (com.newgrounds.encoders.JSON.getType(com.newgrounds.encoders.JSON.cache.target) == 'array') { com.newgrounds.encoders.JSON.cache.encoded += '['; } else { if (com.newgrounds.encoders.JSON.getType(com.newgrounds.encoders.JSON.cache.target) == 'object') { com.newgrounds.encoders.JSON.cache.encoded += '{'; } } } break; case 'object': for (var v1 in com.newgrounds.encoders.JSON.cache.target) { break; } if (v1 === undefined) { com.newgrounds.encoders.JSON.cache.encoded += '}'; com.newgrounds.encoders.JSON.getParent(); } else { com.newgrounds.encoders.JSON.cache.parents.push(com.newgrounds.encoders.JSON.cache.target); com.newgrounds.encoders.JSON.cache.target = com.newgrounds.encoders.JSON.cache.target[v1]; com.newgrounds.encoders.JSON.cache.encoded += '"' + (v1.split('"')).join('\\"') + '":'; if (com.newgrounds.encoders.JSON.getType(com.newgrounds.encoders.JSON.cache.target) == 'array') { com.newgrounds.encoders.JSON.cache.encoded += '['; } else { if (com.newgrounds.encoders.JSON.getType(com.newgrounds.encoders.JSON.cache.target) == 'object') { com.newgrounds.encoders.JSON.cache.encoded += '{'; } } } break; default: com.newgrounds.encoders.JSON.cache.encoded += 'null'; com.newgrounds.encoders.JSON.getParent(); } }; v1.getParent = function () { if (com.newgrounds.encoders.JSON.cache.parents.length > 0) { var v1 = com.newgrounds.encoders.JSON.cache.parents.pop(); if (com.newgrounds.encoders.JSON.getType(v1) == 'array') { v1.shift(); } else { for (var v3 in v1) { delete v1[v3]; break; } } if (com.newgrounds.encoders.JSON.getType(v1) == 'object' or com.newgrounds.encoders.JSON.getType(v1) == 'array') { for (var v2 in v1) { break; } if (v2 !== undefined) { com.newgrounds.encoders.JSON.cache.encoded += ','; } } com.newgrounds.encoders.JSON.cache.target = v1; } else { com.newgrounds.encoders.JSON.cache.complete = true; } }; v1.encode_chunks = 20000; v1.decode_chunks = 20000; v1.busy = false; ASSetPropFlags(com.newgrounds.encoders.JSON.prototype, null, 1); } #endinitclip } movieClip 35 __Packages.com.newgrounds.encoders.MD5 { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.encoders) { _global.com.newgrounds.encoders = new Object(); } if (!_global.com.newgrounds.encoders.MD5) { var v1 = function () {}; com.newgrounds.encoders.MD5 = v1; var v2 = v1.prototype; v1.calculate = function (src) { return com.newgrounds.encoders.MD5.hex_md5(src); }; v1.hex_md5 = function (src) { return com.newgrounds.encoders.MD5.binl2hex(com.newgrounds.encoders.MD5.core_md5(com.newgrounds.encoders.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.encoders.MD5.md5_ff(v4, v3, v2, v1, x[v5 + 0], 7, -680876936); v1 = com.newgrounds.encoders.MD5.md5_ff(v1, v4, v3, v2, x[v5 + 1], 12, -389564586); v2 = com.newgrounds.encoders.MD5.md5_ff(v2, v1, v4, v3, x[v5 + 2], 17, 606105819); v3 = com.newgrounds.encoders.MD5.md5_ff(v3, v2, v1, v4, x[v5 + 3], 22, -1044525330); v4 = com.newgrounds.encoders.MD5.md5_ff(v4, v3, v2, v1, x[v5 + 4], 7, -176418897); v1 = com.newgrounds.encoders.MD5.md5_ff(v1, v4, v3, v2, x[v5 + 5], 12, 1200080426); v2 = com.newgrounds.encoders.MD5.md5_ff(v2, v1, v4, v3, x[v5 + 6], 17, -1473231341); v3 = com.newgrounds.encoders.MD5.md5_ff(v3, v2, v1, v4, x[v5 + 7], 22, -45705983); v4 = com.newgrounds.encoders.MD5.md5_ff(v4, v3, v2, v1, x[v5 + 8], 7, 1770035416); v1 = com.newgrounds.encoders.MD5.md5_ff(v1, v4, v3, v2, x[v5 + 9], 12, -1958414417); v2 = com.newgrounds.encoders.MD5.md5_ff(v2, v1, v4, v3, x[v5 + 10], 17, -42063); v3 = com.newgrounds.encoders.MD5.md5_ff(v3, v2, v1, v4, x[v5 + 11], 22, -1990404162); v4 = com.newgrounds.encoders.MD5.md5_ff(v4, v3, v2, v1, x[v5 + 12], 7, 1804603682); v1 = com.newgrounds.encoders.MD5.md5_ff(v1, v4, v3, v2, x[v5 + 13], 12, -40341101); v2 = com.newgrounds.encoders.MD5.md5_ff(v2, v1, v4, v3, x[v5 + 14], 17, -1502002290); v3 = com.newgrounds.encoders.MD5.md5_ff(v3, v2, v1, v4, x[v5 + 15], 22, 1236535329); v4 = com.newgrounds.encoders.MD5.md5_gg(v4, v3, v2, v1, x[v5 + 1], 5, -165796510); v1 = com.newgrounds.encoders.MD5.md5_gg(v1, v4, v3, v2, x[v5 + 6], 9, -1069501632); v2 = com.newgrounds.encoders.MD5.md5_gg(v2, v1, v4, v3, x[v5 + 11], 14, 643717713); v3 = com.newgrounds.encoders.MD5.md5_gg(v3, v2, v1, v4, x[v5 + 0], 20, -373897302); v4 = com.newgrounds.encoders.MD5.md5_gg(v4, v3, v2, v1, x[v5 + 5], 5, -701558691); v1 = com.newgrounds.encoders.MD5.md5_gg(v1, v4, v3, v2, x[v5 + 10], 9, 38016083); v2 = com.newgrounds.encoders.MD5.md5_gg(v2, v1, v4, v3, x[v5 + 15], 14, -660478335); v3 = com.newgrounds.encoders.MD5.md5_gg(v3, v2, v1, v4, x[v5 + 4], 20, -405537848); v4 = com.newgrounds.encoders.MD5.md5_gg(v4, v3, v2, v1, x[v5 + 9], 5, 568446438); v1 = com.newgrounds.encoders.MD5.md5_gg(v1, v4, v3, v2, x[v5 + 14], 9, -1019803690); v2 = com.newgrounds.encoders.MD5.md5_gg(v2, v1, v4, v3, x[v5 + 3], 14, -187363961); v3 = com.newgrounds.encoders.MD5.md5_gg(v3, v2, v1, v4, x[v5 + 8], 20, 1163531501); v4 = com.newgrounds.encoders.MD5.md5_gg(v4, v3, v2, v1, x[v5 + 13], 5, -1444681467); v1 = com.newgrounds.encoders.MD5.md5_gg(v1, v4, v3, v2, x[v5 + 2], 9, -51403784); v2 = com.newgrounds.encoders.MD5.md5_gg(v2, v1, v4, v3, x[v5 + 7], 14, 1735328473); v3 = com.newgrounds.encoders.MD5.md5_gg(v3, v2, v1, v4, x[v5 + 12], 20, -1926607734); v4 = com.newgrounds.encoders.MD5.md5_hh(v4, v3, v2, v1, x[v5 + 5], 4, -378558); v1 = com.newgrounds.encoders.MD5.md5_hh(v1, v4, v3, v2, x[v5 + 8], 11, -2022574463); v2 = com.newgrounds.encoders.MD5.md5_hh(v2, v1, v4, v3, x[v5 + 11], 16, 1839030562); v3 = com.newgrounds.encoders.MD5.md5_hh(v3, v2, v1, v4, x[v5 + 14], 23, -35309556); v4 = com.newgrounds.encoders.MD5.md5_hh(v4, v3, v2, v1, x[v5 + 1], 4, -1530992060); v1 = com.newgrounds.encoders.MD5.md5_hh(v1, v4, v3, v2, x[v5 + 4], 11, 1272893353); v2 = com.newgrounds.encoders.MD5.md5_hh(v2, v1, v4, v3, x[v5 + 7], 16, -155497632); v3 = com.newgrounds.encoders.MD5.md5_hh(v3, v2, v1, v4, x[v5 + 10], 23, -1094730640); v4 = com.newgrounds.encoders.MD5.md5_hh(v4, v3, v2, v1, x[v5 + 13], 4, 681279174); v1 = com.newgrounds.encoders.MD5.md5_hh(v1, v4, v3, v2, x[v5 + 0], 11, -358537222); v2 = com.newgrounds.encoders.MD5.md5_hh(v2, v1, v4, v3, x[v5 + 3], 16, -722521979); v3 = com.newgrounds.encoders.MD5.md5_hh(v3, v2, v1, v4, x[v5 + 6], 23, 76029189); v4 = com.newgrounds.encoders.MD5.md5_hh(v4, v3, v2, v1, x[v5 + 9], 4, -640364487); v1 = com.newgrounds.encoders.MD5.md5_hh(v1, v4, v3, v2, x[v5 + 12], 11, -421815835); v2 = com.newgrounds.encoders.MD5.md5_hh(v2, v1, v4, v3, x[v5 + 15], 16, 530742520); v3 = com.newgrounds.encoders.MD5.md5_hh(v3, v2, v1, v4, x[v5 + 2], 23, -995338651); v4 = com.newgrounds.encoders.MD5.md5_ii(v4, v3, v2, v1, x[v5 + 0], 6, -198630844); v1 = com.newgrounds.encoders.MD5.md5_ii(v1, v4, v3, v2, x[v5 + 7], 10, 1126891415); v2 = com.newgrounds.encoders.MD5.md5_ii(v2, v1, v4, v3, x[v5 + 14], 15, -1416354905); v3 = com.newgrounds.encoders.MD5.md5_ii(v3, v2, v1, v4, x[v5 + 5], 21, -57434055); v4 = com.newgrounds.encoders.MD5.md5_ii(v4, v3, v2, v1, x[v5 + 12], 6, 1700485571); v1 = com.newgrounds.encoders.MD5.md5_ii(v1, v4, v3, v2, x[v5 + 3], 10, -1894986606); v2 = com.newgrounds.encoders.MD5.md5_ii(v2, v1, v4, v3, x[v5 + 10], 15, -1051523); v3 = com.newgrounds.encoders.MD5.md5_ii(v3, v2, v1, v4, x[v5 + 1], 21, -2054922799); v4 = com.newgrounds.encoders.MD5.md5_ii(v4, v3, v2, v1, x[v5 + 8], 6, 1873313359); v1 = com.newgrounds.encoders.MD5.md5_ii(v1, v4, v3, v2, x[v5 + 15], 10, -30611744); v2 = com.newgrounds.encoders.MD5.md5_ii(v2, v1, v4, v3, x[v5 + 6], 15, -1560198380); v3 = com.newgrounds.encoders.MD5.md5_ii(v3, v2, v1, v4, x[v5 + 13], 21, 1309151649); v4 = com.newgrounds.encoders.MD5.md5_ii(v4, v3, v2, v1, x[v5 + 4], 6, -145523070); v1 = com.newgrounds.encoders.MD5.md5_ii(v1, v4, v3, v2, x[v5 + 11], 10, -1120210379); v2 = com.newgrounds.encoders.MD5.md5_ii(v2, v1, v4, v3, x[v5 + 2], 15, 718787259); v3 = com.newgrounds.encoders.MD5.md5_ii(v3, v2, v1, v4, x[v5 + 9], 21, -343485551); v4 = com.newgrounds.encoders.MD5.safe_add(v4, v10); v3 = com.newgrounds.encoders.MD5.safe_add(v3, v9); v2 = com.newgrounds.encoders.MD5.safe_add(v2, v8); v1 = com.newgrounds.encoders.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.encoders.MD5.safe_add(com.newgrounds.encoders.MD5.bit_rol(com.newgrounds.encoders.MD5.safe_add(com.newgrounds.encoders.MD5.safe_add(a, q), com.newgrounds.encoders.MD5.safe_add(x, t)), s), b); }; v1.md5_ff = function (a, b, c, d, x, s, t) { return com.newgrounds.encoders.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.encoders.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.encoders.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.encoders.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.encoders.MD5.prototype, null, 1); } #endinitclip } movieClip 36 __Packages.com.newgrounds.components.APIConnector { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.components) { _global.com.newgrounds.components = new Object(); } if (!_global.com.newgrounds.components.APIConnector) { var v1 = function () { super(); this._x = Math.round(this._x); this._y = Math.round(this._y); if (this.fake_session and com.newgrounds.API.getHost() == 'localhost') { com.newgrounds.API.setFakeSession(true); } if (this.api_id && !com.newgrounds.API.isConnected()) { this._visible = false; this.setGotoFrame('connecting'); if (this.error_screens) { com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.NEW_VERSION_AVAILABLE, this.onNewVersion, this); com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.HOST_BLOCKED, this.onBadHost, this); } if (this.medal_popups) { com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.UNLOCK_MEDAL, this.doUnlock, this); } com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.API_CONNECTED, this.onConnected, this); if (com.newgrounds.API.isPublishedHost()) { this.debug = false; } if (this.version) { com.newgrounds.API.setVersion(this.version); } if (!com.newgrounds.API.hasUserSession()) { var v3 = com.newgrounds.API.loadLocal('api_connector_data'); if (v3) { this.local_data = v3; } else { this.local_data = {'medals_unlocked': new Array()}; } } com.newgrounds.API.setPreload(true); com.newgrounds.API.connect(this.api_id, this.encryption_key, this.debug); } else { if (this.api_id && com.newgrounds.API.isConnected()) { this._visible = false; this.setGotoFrame('done'); } } }; com.newgrounds.components.APIConnector = v1; com.newgrounds.components.APIConnector extends MovieClip; var v2 = v1.prototype; v2.doUnlock = function (e) { var v5 = _root.attachMovie('NewgroundsAPIAsset_Medal_Popup', 'medal_pop_' + e.data.medal.getID(), _root.getNextHighestDepth()); if (e.data.x != undefined) { v5._x = e.data.x + 254; } else { v5._x = Stage.width; } if (e.data.x != undefined) { v5._y = e.data.y + 73; } else { v5._y = Stage.height; } v5.medal = e.data.medal; var v3 = com.newgrounds.API.getMedals(); var v2 = 0; while (v2 < v3.length) { if (v3[v2].getID() != e.data.medal.getID() && _root['medal_pop_' + v3[v2].getID()]) { _root['medal_pop_' + v3[v2].getID()]._y -= 70; } ++v2; } }; v2.onLoginError = function () { var v2 = _root.attachMovie('Asset_Login_Warning', 'Asset_Login_Warning', _root.getNextHighestDepth()); }; v2.onConnectionError = function () { var v3 = _root.attachMovie('Asset_Connection_Error', 'Asset_Connection_Error', _root.getNextHighestDepth()); this.setGotoFrame('done'); }; v2.onConnected = function (event, params) { if (event.success) { this.setGotoFrame('connected'); if (this.error_screens && com.newgrounds.API.isPublishedHost() && com.newgrounds.API.hasPublisher() && !com.newgrounds.API.hasUserSession()) { this.onLoginError(); } } else { if (this.error_screens) { this.onConnectionError(); } } }; v2.onNewVersion = function () { var v2 = _root.attachMovie('NewgroundsAsset_New_Version_Available', 'NewgroundsAsset_New_Version_Available', _root.getNextHighestDepth()); v2.official_version_url = com.newgrounds.API.getOfficialURL(); }; v2.onBadHost = function () { var v2 = _root.attachMovie('NewgroundsAsset_Illegal_Host', 'NewgroundsAsset_Illegal_Host', _root.getNextHighestDepth()); v2.official_version_url = com.newgrounds.API.getOfficialURL(); }; v2.setGotoFrame = function (frame) { if (this.goto_frame == null) { this.goto_frame = frame; this.gotoframe_interval = setInterval(this, 'gotoFrameIfLoaded', 50); } }; v2.gotoFrameIfLoaded = function () { if (this.goto_frame != null && this._framesloaded == this._totalframes) { this._visible = true; this.gotoAndStop(this.goto_frame); this.goto_frame = null; clearInterval(this.gotoframe_interval); } }; v2.goto_frame = null; ASSetPropFlags(com.newgrounds.components.APIConnector.prototype, null, 1); } #endinitclip } movieClip 134 { } button 135 { on (release) { getURL('http://www.newgrounds.com', 'blank'); } } movieClip 162 { } movieClip 163 { frame 1 { stop(); } } movieClip 165 { } movieClip 166 { } frame 80 { Stage.showMenu = false; } frame 83 { function bitOR(a, b) { var v2 = a & 1 | b & 1; var v1 = a >>> 1 | b >>> 1; return v1 << 1 | v2; } function bitXOR(a, b) { var v2 = a & 1 ^ b & 1; var v1 = a >>> 1 ^ b >>> 1; return v1 << 1 | v2; } function bitAND(a, b) { var v2 = a & 1 & (b & 1); var v1 = a >>> 1 & b >>> 1; return v1 << 1 | v2; } function addme(x, y) { var v1 = (x & 65535) + (y & 65535); var v2 = (x >> 16) + (y >> 16) + (v1 >> 16); return v2 << 16 | v1 & 65535; } function rhex(num) { str2 = ''; j = 0; while (j <= 3) { str2 += hex_chr.charAt(num >> j * 8 + 4 & 15) + hex_chr.charAt(num >> j * 8 & 15); ++j; } return str2; } function str22blks_MD5(str2) { nblk = (str2.length + 8 >> 6) + 1; blks = new Array(nblk * 16); i = 0; while (i < nblk * 16) { blks[i] = 0; ++i; } i = 0; while (i < str2.length) { blks[i >> 2] |= str2.charCodeAt(i) << ((str2.length * 8 + i) % 4) * 8; ++i; } blks[i >> 2] |= 128 << ((str2.length * 8 + i) % 4) * 8; var v2 = str2.length * 8; blks[nblk * 16 - 2] = v2 & 255; blks[nblk * 16 - 2] |= (v2 >>> 8 & 255) << 8; blks[nblk * 16 - 2] |= (v2 >>> 16 & 255) << 16; blks[nblk * 16 - 2] |= (v2 >>> 24 & 255) << 24; return blks; } function rol(num, cnt) { return num << cnt | num >>> 32 - cnt; } function cmn(q, a, b, x, s, t) { return addme(rol(addme(addme(a, q), addme(x, t)), s), b); } function ff(a, b, c, d, x, s, t) { return cmn(bitOR(bitAND(b, c), bitAND(~b, d)), a, b, x, s, t); } function gg(a, b, c, d, x, s, t) { return cmn(bitOR(bitAND(b, d), bitAND(c, ~d)), a, b, x, s, t); } function hh(a, b, c, d, x, s, t) { return cmn(bitXOR(bitXOR(b, c), d), a, b, x, s, t); } function ii(a, b, c, d, x, s, t) { return cmn(bitXOR(c, bitOR(b, ~d)), a, b, x, s, t); } function calcMD5(str2) { x = str22blks_MD5(str2); a = 1732584193; b = -271733879; c = -1732584194; d = 271733878; var v1; i = 0; while (i < x.length) { olda = a; oldb = b; oldc = c; oldd = d; v1 = 0; a = ff(a, b, c, d, x[i + 0], 7, -680876936); d = ff(d, a, b, c, x[i + 1], 12, -389564586); c = ff(c, d, a, b, x[i + 2], 17, 606105819); b = ff(b, c, d, a, x[i + 3], 22, -1044525330); a = ff(a, b, c, d, x[i + 4], 7, -176418897); d = ff(d, a, b, c, x[i + 5], 12, 1200080426); c = ff(c, d, a, b, x[i + 6], 17, -1473231341); b = ff(b, c, d, a, x[i + 7], 22, -45705983); a = ff(a, b, c, d, x[i + 8], 7, 1770035416); d = ff(d, a, b, c, x[i + 9], 12, -1958414417); c = ff(c, d, a, b, x[i + 10], 17, -42063); b = ff(b, c, d, a, x[i + 11], 22, -1990404162); a = ff(a, b, c, d, x[i + 12], 7, 1804603682); d = ff(d, a, b, c, x[i + 13], 12, -40341101); c = ff(c, d, a, b, x[i + 14], 17, -1502002290); b = ff(b, c, d, a, x[i + 15], 22, 1236535329); a = gg(a, b, c, d, x[i + 1], 5, -165796510); d = gg(d, a, b, c, x[i + 6], 9, -1069501632); c = gg(c, d, a, b, x[i + 11], 14, 643717713); b = gg(b, c, d, a, x[i + 0], 20, -373897302); a = gg(a, b, c, d, x[i + 5], 5, -701558691); d = gg(d, a, b, c, x[i + 10], 9, 38016083); c = gg(c, d, a, b, x[i + 15], 14, -660478335); b = gg(b, c, d, a, x[i + 4], 20, -405537848); a = gg(a, b, c, d, x[i + 9], 5, 568446438); d = gg(d, a, b, c, x[i + 14], 9, -1019803690); c = gg(c, d, a, b, x[i + 3], 14, -187363961); b = gg(b, c, d, a, x[i + 8], 20, 1163531501); a = gg(a, b, c, d, x[i + 13], 5, -1444681467); d = gg(d, a, b, c, x[i + 2], 9, -51403784); c = gg(c, d, a, b, x[i + 7], 14, 1735328473); b = gg(b, c, d, a, x[i + 12], 20, -1926607734); a = hh(a, b, c, d, x[i + 5], 4, -378558); d = hh(d, a, b, c, x[i + 8], 11, -2022574463); c = hh(c, d, a, b, x[i + 11], 16, 1839030562); b = hh(b, c, d, a, x[i + 14], 23, -35309556); a = hh(a, b, c, d, x[i + 1], 4, -1530992060); d = hh(d, a, b, c, x[i + 4], 11, 1272893353); c = hh(c, d, a, b, x[i + 7], 16, -155497632); b = hh(b, c, d, a, x[i + 10], 23, -1094730640); a = hh(a, b, c, d, x[i + 13], 4, 681279174); d = hh(d, a, b, c, x[i + 0], 11, -358537222); c = hh(c, d, a, b, x[i + 3], 16, -722521979); b = hh(b, c, d, a, x[i + 6], 23, 76029189); a = hh(a, b, c, d, x[i + 9], 4, -640364487); d = hh(d, a, b, c, x[i + 12], 11, -421815835); c = hh(c, d, a, b, x[i + 15], 16, 530742520); b = hh(b, c, d, a, x[i + 2], 23, -995338651); a = ii(a, b, c, d, x[i + 0], 6, -198630844); d = ii(d, a, b, c, x[i + 7], 10, 1126891415); c = ii(c, d, a, b, x[i + 14], 15, -1416354905); b = ii(b, c, d, a, x[i + 5], 21, -57434055); a = ii(a, b, c, d, x[i + 12], 6, 1700485571); d = ii(d, a, b, c, x[i + 3], 10, -1894986606); c = ii(c, d, a, b, x[i + 10], 15, -1051523); b = ii(b, c, d, a, x[i + 1], 21, -2054922799); a = ii(a, b, c, d, x[i + 8], 6, 1873313359); d = ii(d, a, b, c, x[i + 15], 10, -30611744); c = ii(c, d, a, b, x[i + 6], 15, -1560198380); b = ii(b, c, d, a, x[i + 13], 21, 1309151649); a = ii(a, b, c, d, x[i + 4], 6, -145523070); d = ii(d, a, b, c, x[i + 11], 10, -1120210379); c = ii(c, d, a, b, x[i + 2], 15, 718787259); b = ii(b, c, d, a, x[i + 9], 21, -343485551); a = addme(a, olda); b = addme(b, oldb); c = addme(c, oldc); d = addme(d, oldd); i += 16; } return rhex(a) + rhex(b) + rhex(c) + rhex(d); } function nospace(txt) { newstr = ''; i = 0; while (i <= txt.length - 1) { if (txt.substr(i, 1) != ' ') { newstr += txt.substr(i, 1); } ++i; } return newstr; } stop(); var hex_chr = '0123456789abcdef'; Mouse.hide(); loadgame = false; loadslot = 0; Stage.showMenu = false; var save1m = SharedObject.getLocal('murlocsave1'); var save2m = SharedObject.getLocal('murlocsave2'); var save3m = SharedObject.getLocal('murlocsave3'); if (_root.save1m.data.issave == true || _root.save2m.data.issave == true || _root.save3m.data.issave == true) { _root.loader.gotoAndStop('yesload'); } else { _root.loader.gotoAndStop('noload'); } stop(); } movieClip 172 { } movieClip 178 { } movieClip 181 { } button 185 { on (release) { getURL('http://www.newgrounds.com', 'blank'); } } movieClip 186 { } button 190 { on (release) { _root.introfade.play(); } } // unknown tag 88 length 63 button 196 { on (release) { gotoAndStop('slots'); } } // unknown tag 88 length 75 movieClip 206 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 207 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); _root.hsbox.gotoAndStop(1); if (_root.save1m.data.issave == true) { block1.level = 'Level ' + _root.save1m.data.level; block1.zone = _root.save1m.data.zone; block1.build = _root.save1m.data.heroicstrike + _root.save1m.data.bloodrage + _root.save1m.data.pummel + _root.save1m.data.charge + _root.save1m.data.exec + _root.save1m.data.cruelty + _root.save1m.data.retaliation + _root.save1m.data.coldblood + _root.save1m.data.vigor + _root.save1m.data.adr + ' Fury / ' + (_root.save1m.data.renew + _root.save1m.data.heal + _root.save1m.data.markofthewild + _root.save1m.data.powerwordshield + _root.save1m.data.polymorph + _root.save1m.data.lashofpain + _root.save1m.data.drainlife + _root.save1m.data.frostnova + _root.save1m.data.bloodpact + _root.save1m.data.pyroblast) + ' Magic'; } else { block1.gotoAndStop('empty'); } if (_root.save2m.data.issave == true) { block2.level = 'Level ' + _root.save2m.data.level; block2.zone = _root.save2m.data.zone; block2.build = _root.save2m.data.heroicstrike + _root.save2m.data.bloodrage + _root.save2m.data.pummel + _root.save2m.data.charge + _root.save2m.data.exec + _root.save2m.data.cruelty + _root.save2m.data.retaliation + _root.save2m.data.coldblood + _root.save2m.data.vigor + _root.save2m.data.adr + ' Fury / ' + (_root.save2m.data.renew + _root.save2m.data.heal + _root.save2m.data.markofthewild + _root.save2m.data.powerwordshield + _root.save2m.data.polymorph + _root.save2m.data.lashofpain + _root.save2m.data.drainlife + _root.save2m.data.frostnova + _root.save2m.data.bloodpact + _root.save2m.data.pyroblast) + ' Magic'; } else { block2.gotoAndStop('empty'); } if (_root.save3m.data.issave == true) { block3.level = 'Level ' + _root.save3m.data.level; block3.zone = _root.save3m.data.zone; block3.build = _root.save3m.data.heroicstrike + _root.save3m.data.bloodrage + _root.save3m.data.pummel + _root.save3m.data.charge + _root.save3m.data.exec + _root.save3m.data.cruelty + _root.save3m.data.retaliation + _root.save3m.data.coldblood + _root.save3m.data.vigor + _root.save3m.data.adr + ' Fury / ' + (_root.save3m.data.renew + _root.save3m.data.heal + _root.save3m.data.markofthewild + _root.save3m.data.powerwordshield + _root.save3m.data.polymorph + _root.save3m.data.lashofpain + _root.save3m.data.drainlife + _root.save3m.data.frostnova + _root.save3m.data.bloodpact + _root.save3m.data.pyroblast) + ' Magic'; } else { block3.gotoAndStop('empty'); } } instance block1 of movieClip 206 { onClipEvent (release) { sum = _root.save1m.data.heroicstrike + _root.save1m.data.bloodrage + _root.save1m.data.pummel + _root.save1m.data.charge + _root.save1m.data.exec + _root.save1m.data.cruelty + _root.save1m.data.retaliation + _root.save1m.data.coldblood + _root.save1m.data.vigor + _root.save1m.data.adr + (_root.save1m.data.renew + _root.save1m.data.heal + _root.save1m.data.markofthewild + _root.save1m.data.powerwordshield + _root.save1m.data.polymorph + _root.save1m.data.lashofpain + _root.save1m.data.drainlife + _root.save1m.data.frostnova + _root.save1m.data.bloodpact + _root.save1m.data.pyroblast); if (_root.save1m.data.level == sum + _root.save1m.data.talents) { if (_root.save1m.data.issave == true) { _root.loadslot = 1; _root.loadgame = true; _root.introfade.play(); } } else { _root.hacks.gotoAndStop(2); } } } instance block2 of movieClip 206 { onClipEvent (release) { sum = _root.save2m.data.heroicstrike + _root.save2m.data.bloodrage + _root.save2m.data.pummel + _root.save2m.data.charge + _root.save2m.data.exec + _root.save2m.data.cruelty + _root.save2m.data.retaliation + _root.save2m.data.coldblood + _root.save2m.data.vigor + _root.save2m.data.adr + (_root.save2m.data.renew + _root.save2m.data.heal + _root.save2m.data.markofthewild + _root.save2m.data.powerwordshield + _root.save2m.data.polymorph + _root.save2m.data.lashofpain + _root.save2m.data.drainlife + _root.save2m.data.frostnova + _root.save2m.data.bloodpact + _root.save2m.data.pyroblast); if (_root.save2m.data.level == sum + _root.save2m.data.talents) { if (_root.save2m.data.issave == true) { _root.loadslot = 2; _root.loadgame = true; _root.introfade.play(); } } else { _root.hacks.gotoAndStop(2); } } } instance block3 of movieClip 206 { onClipEvent (release) { sum = _root.save3m.data.heroicstrike + _root.save3m.data.bloodrage + _root.save3m.data.pummel + _root.save3m.data.charge + _root.save3m.data.exec + _root.save3m.data.cruelty + _root.save3m.data.retaliation + _root.save3m.data.coldblood + _root.save3m.data.vigor + _root.save3m.data.adr + (_root.save3m.data.renew + _root.save3m.data.heal + _root.save3m.data.markofthewild + _root.save3m.data.powerwordshield + _root.save3m.data.polymorph + _root.save3m.data.lashofpain + _root.save3m.data.drainlife + _root.save3m.data.frostnova + _root.save3m.data.bloodpact + _root.save3m.data.pyroblast); if (_root.save3m.data.level == sum + _root.save3m.data.talents) { if (_root.save3m.data.issave == true) { _root.loadslot = 3; _root.loadgame = true; _root.introfade.play(); } } else { _root.hacks.gotoAndStop(2); } } } } movieClip 209 { frame 1 { stop(); } frame 8 { if (_root.loadgame == false) { _root.play(); } else { if (_root.loadslot == 1) { _root.gotoAndPlay('load1'); } else { if (_root.loadslot == 2) { _root.gotoAndPlay('load2'); } else { if (_root.loadslot == 3) { _root.gotoAndPlay('load3'); } } } } stop(); } } movieClip 212 { } movieClip 216 { } // unknown tag 88 length 68 movieClip 228 { } movieClip 243 { } // unknown tag 88 length 78 movieClip 246 { frame 1 { stop(); } instance of movieClip 216 { onClipEvent (enterFrame) { if (_root.shop == true) { this.gotoAndStop('shop'); } else { if (_root.bpack == false && _root.charscreen == false && _root.talentbox == false && _root.battleon == false) { this.gotoAndStop('hide'); } else { this.gotoAndStop('show'); } } } } frame 6 { minitipbox._width = _root.minitiptxt.length * 7.914286 + 4; } } instance tooltipbox of movieClip 246 { onClipEvent (load) { this._x = _root._xmouse; this._y = _root._ymouse; } onClipEvent (mouseMove) { this._x = _root._xmouse; this._y = _root._ymouse; Mouse.hide(); updateAfterEvent(); } } movieClip 248 { frame 5 { stop(); } } movieClip 252 { frame 2 { stop(); } } // unknown tag 88 length 70 movieClip 259 { frame 1 { stop(); } frame 2 { stop(); } } frame 84 { function stvmonster(enc) { chance = _root.roll(1, 100); if (chance <= enc) { monster = _root.roll(1, 2); if (monster == 1) { monster = 'gorilla'; } else { monster = 'tiger'; } if (port == 'left') { _root.stvenc.lefte.gotoAndStop('none'); _root.stvenc.righte.gotoAndStop(monster); } else { if (port == 'right') { _root.stvenc.lefte.gotoAndStop(monster); _root.stvenc.righte.gotoAndStop('none'); } else { if (port == 'postbattle') { _root.stvenc.lefte.gotoAndStop('none'); _root.stvenc.righte.gotoAndStop('none'); } } } } else { _root.stvenc.lefte.gotoAndStop('none'); _root.stvenc.righte.gotoAndStop('none'); } } function showarea(txt) { _root.goarea = txt; if (txt == 'Brakil\'s Tent') { _root.goarea = ''; _root.murloc.arrowarea.gotoAndStop('show'); _root.murloc.arrowarea.brakilbug.gotoAndStop(2); } else { _root.murloc.arrowarea.gotoAndStop('show'); } } function hidearea() { _root.murloc.arrowarea.gotoAndStop('hide'); } function geticon(num) { if (_root.slot[num] == 'none') { return 'none'; } else { return _root.itemdb[_root.slot[num]][0]; } } function getname(num) { if (_root.slot[num] == 'none') { return ''; } else { return _root.itemdb[_root.slot[num]][1]; } } function gettstat(num) { if (_root.slot[num] == 'none') { return ''; } else { return _root.itemdb[_root.slot[num]][8]; } } function getpstat(num) { if (_root.slot[num] == 'none') { return ''; } else { return _root.itemdb[_root.slot[num]][9]; } } function gettype(num) { if (_root.slot[num] == 'none') { return 'null'; } else { return _root.itemdb[_root.slot[num]][2]; } } function getmindmg(num) { if (_root.slot[num] == 'none') { return 0; } else { return _root.itemdb[_root.slot[num]][3]; } } function getmaxdmg(num) { if (_root.slot[num] == 'none') { return 0; } else { return _root.itemdb[_root.slot[num]][4]; } } function getrare(num) { if (_root.slot[num] == 'none') { return 'null'; } else { return _root.itemdb[_root.slot[num]][5]; } } function getlvl(num) { if (_root.slot[num] == 'none') { return 'null'; } else { return _root.itemdb[_root.slot[num]][6]; } } function getarmor(num) { if (_root.slot[num] == 'none') { return 0; } else { return _root.itemdb[_root.slot[num]][3]; } } function getprice(num) { if (_root.slot[num] == 'none') { return 'null'; } else { return _root.itemdb[_root.slot[num]][7]; } } function tooltip(num) { _root.toolname = _root.getname(num); _root.tooltype = _root.gettype(num); if (_root.tooltype == 'Dagger' || _root.tooltype == 'Sword' || _root.tooltype == 'Staff' || _root.tooltype == 'Mace' || _root.tooltype == 'Fist Weapon') { _root.toolmain = [_root.getmindmg(num)] + ' - ' + [_root.getmaxdmg(num)] + ' Damage'; } else { if (_root.tooltype == 'Quest Item' || _root.tooltype == 'Food') { _root.toolmain = _root.getmindmg(num); } else { _root.toolmain = [_root.getarmor(num)] + ' Armor'; } } _root.toollvl = 'Item Level ' + [_root.getlvl(num)]; _root.tooltipbox.itemname.gotoAndStop(_root.getrare(num)); if (_root.gettstat(num) == 'str' || _root.gettstat(num) == 'stam' || _root.gettstat(num) == 'agi' || _root.gettstat(num) == 'int') { _root.extrastat = '+ ' + _root.getpstat(num); if (_root.gettstat(num) == 'str') { _root.extrastat += ' Strength'; } else { if (_root.gettstat(num) == 'stam') { _root.extrastat += ' Stamina'; } else { if (_root.gettstat(num) == 'agi') { _root.extrastat += ' Agility'; } else { if (_root.gettstat(num) == 'int') { _root.extrastat += ' Intellect'; } } } } } else { _root.extrastat = ''; } if (_root.shop == true && (_root.getname(num) != 'Tender Wolf Meat' && _root.getname(num) != 'Sack of Meat' && _root.getname(num) != 'Soft Bushy Tail' && _root.getname(num) != 'Rune of Teleportation')) { _root.toolprice = 'Sells for'; if (_root.gold(_root.getprice(num)) != 0) { _root.toolprice += ' ' + [_root.gold(_root.getprice(num))] + ' gold'; } if (_root.silver(_root.getprice(num)) != 0) { _root.toolprice += ' ' + [_root.silver(_root.getprice(num))] + ' silver'; } if (_root.copper(_root.getprice(num)) != 0) { _root.toolprice += ' ' + [_root.copper(_root.getprice(num))] + ' copper'; } _root.toolprice += '.'; } else { _root.toolprice = ''; } } function equip(num) { if (_root.slot[num] != 'none') { type = _root.gettype(num); lvl = _root.getlvl(num); temp = 'null'; if (_root.level < lvl) { _root.error('Your level is too low.'); } else { if (_root.gettstat(num) == 'str' || _root.gettstat(num) == 'stam' || _root.gettstat(num) == 'agi' || _root.gettstat(num) == 'int') { if (_root.gettstat(num) == 'str') { _root.str += _root.getpstat(num); } else { if (_root.gettstat(num) == 'stam') { _root.stam += _root.getpstat(num); _root.hmaxhp += _root.getpstat(num) * 10; } else { if (_root.gettstat(num) == 'agi') { _root.agi += _root.getpstat(num); _root.hmaxen += 2 * _root.getpstat(num); } else { if (_root.gettstat(num) == 'int') { _root.inte += _root.getpstat(num); } } } } } if (type != 'Quest Item' && type != 'Food' && type != 'Potion') { _root.error('Equipped: ' + _root.getname(num)); _root.sfx('equip'); } if (type == 'Dagger' || type == 'Sword' || type == 'Axe' || type == 'Mace' || type == 'Staff' || type == 'Fist Weapon') { if (_root.slot[28] == 'none') { _root.slot[28] = _root.slot[num]; _root.slot[num] = 'none'; _root.tooltipbox.gotoAndStop('hide'); } else { tnum2 = 28; if (_root.gettstat(tnum2) == 'str' || _root.gettstat(tnum2) == 'stam' || _root.gettstat(tnum2) == 'agi' || _root.gettstat(tnum2) == 'int') { if (_root.gettstat(tnum2) == 'str') { _root.str -= _root.getpstat(tnum2); } else { if (_root.gettstat(tnum2) == 'stam') { _root.stam -= _root.getpstat(tnum2); _root.hmaxhp -= _root.getpstat(tnum2) * 10; if (_root.hcurhp > _root.hmaxhp) { _root.hcurhp = _root.hmaxhp; } } else { if (_root.gettstat(tnum2) == 'agi') { _root.agi -= _root.getpstat(tnum2); _root.hmaxen -= 2 * _root.getpstat(tnum2); if (_root.hcuren > _root.hmaxen) { _root.hcuren = _root.hmaxen; } } else { if (_root.gettstat(tnum2) == 'int') { _root.inte -= _root.getpstat(tnum2); } } } } } temp = _root.slot[28]; _root.slot[28] = _root.slot[num]; _root.slot[num] = temp; } } else { if (type == 'Head') { if (_root.slot[16] == 'none') { _root.slot[16] = _root.slot[num]; _root.slot[num] = 'none'; _root.tooltipbox.gotoAndStop('hide'); } else { tnum2 = 16; if (_root.gettstat(tnum2) == 'str' || _root.gettstat(tnum2) == 'stam' || _root.gettstat(tnum2) == 'agi' || _root.gettstat(tnum2) == 'int') { if (_root.gettstat(tnum2) == 'str') { _root.str -= _root.getpstat(tnum2); } else { if (_root.gettstat(tnum2) == 'stam') { _root.stam -= _root.getpstat(tnum2); _root.hmaxhp -= _root.getpstat(tnum2) * 10; if (_root.hcurhp > _root.hmaxhp) { _root.hcurhp = _root.hmaxhp; } } else { if (_root.gettstat(tnum2) == 'agi') { _root.agi -= _root.getpstat(tnum2); _root.hmaxen -= 2 * _root.getpstat(tnum2); if (_root.hcuren > _root.hmaxen) { _root.hcuren = _root.hmaxen; } } else { if (_root.gettstat(tnum2) == 'int') { _root.inte -= _root.getpstat(tnum2); } } } } } temp = _root.slot[16]; _root.slot[16] = _root.slot[num]; _root.slot[num] = temp; } } else { if (type == 'Neck') { if (_root.slot[17] == 'none') { _root.slot[17] = _root.slot[num]; _root.slot[num] = 'none'; _root.tooltipbox.gotoAndStop('hide'); } else { tnum2 = 17; if (_root.gettstat(tnum2) == 'str' || _root.gettstat(tnum2) == 'stam' || _root.gettstat(tnum2) == 'agi' || _root.gettstat(tnum2) == 'int') { if (_root.gettstat(tnum2) == 'str') { _root.str -= _root.getpstat(tnum2); } else { if (_root.gettstat(tnum2) == 'stam') { _root.stam -= _root.getpstat(tnum2); _root.hmaxhp -= _root.getpstat(tnum2) * 10; if (_root.hcurhp > _root.hmaxhp) { _root.hcurhp = _root.hmaxhp; } } else { if (_root.gettstat(tnum2) == 'agi') { _root.agi -= _root.getpstat(tnum2); _root.hmaxen -= 2 * _root.getpstat(tnum2); if (_root.hcuren > _root.hmaxen) { _root.hcuren = _root.hmaxen; } } else { if (_root.gettstat(tnum2) == 'int') { _root.inte -= _root.getpstat(tnum2); } } } } } temp = _root.slot[17]; _root.slot[17] = _root.slot[num]; _root.slot[num] = temp; } } else { if (type == 'Shoulder') { if (_root.slot[18] == 'none') { _root.slot[18] = _root.slot[num]; _root.slot[num] = 'none'; _root.tooltipbox.gotoAndStop('hide'); } else { tnum2 = 18; if (_root.gettstat(tnum2) == 'str' || _root.gettstat(tnum2) == 'stam' || _root.gettstat(tnum2) == 'agi' || _root.gettstat(tnum2) == 'int') { if (_root.gettstat(tnum2) == 'str') { _root.str -= _root.getpstat(tnum2); } else { if (_root.gettstat(tnum2) == 'stam') { _root.stam -= _root.getpstat(tnum2); _root.hmaxhp -= _root.getpstat(tnum2) * 10; if (_root.hcurhp > _root.hmaxhp) { _root.hcurhp = _root.hmaxhp; } } else { if (_root.gettstat(tnum2) == 'agi') { _root.agi -= _root.getpstat(tnum2); _root.hmaxen -= 2 * _root.getpstat(tnum2); if (_root.hcuren > _root.hmaxen) { _root.hcuren = _root.hmaxen; } } else { if (_root.gettstat(tnum2) == 'int') { _root.inte -= _root.getpstat(tnum2); } } } } } temp = _root.slot[18]; _root.slot[18] = _root.slot[num]; _root.slot[num] = temp; } } else { if (type == 'Chest') { if (_root.slot[19] == 'none') { _root.slot[19] = _root.slot[num]; _root.slot[num] = 'none'; _root.tooltipbox.gotoAndStop('hide'); } else { tnum2 = 19; if (_root.gettstat(tnum2) == 'str' || _root.gettstat(tnum2) == 'stam' || _root.gettstat(tnum2) == 'agi' || _root.gettstat(tnum2) == 'int') { if (_root.gettstat(tnum2) == 'str') { _root.str -= _root.getpstat(tnum2); } else { if (_root.gettstat(tnum2) == 'stam') { _root.stam -= _root.getpstat(tnum2); _root.hmaxhp -= _root.getpstat(tnum2) * 10; if (_root.hcurhp > _root.hmaxhp) { _root.hcurhp = _root.hmaxhp; } } else { if (_root.gettstat(tnum2) == 'agi') { _root.agi -= _root.getpstat(tnum2); _root.hmaxen -= 2 * _root.getpstat(tnum2); if (_root.hcuren > _root.hmaxen) { _root.hcuren = _root.hmaxen; } } else { if (_root.gettstat(tnum2) == 'int') { _root.inte -= _root.getpstat(tnum2); } } } } } temp = _root.slot[19]; _root.slot[19] = _root.slot[num]; _root.slot[num] = temp; } } else { if (type == 'Wrist') { if (_root.slot[20] == 'none') { _root.slot[20] = _root.slot[num]; _root.slot[num] = 'none'; _root.tooltipbox.gotoAndStop('hide'); } else { tnum2 = 20; if (_root.gettstat(tnum2) == 'str' || _root.gettstat(tnum2) == 'stam' || _root.gettstat(tnum2) == 'agi' || _root.gettstat(tnum2) == 'int') { if (_root.gettstat(tnum2) == 'str') { _root.str -= _root.getpstat(tnum2); } else { if (_root.gettstat(tnum2) == 'stam') { _root.stam -= _root.getpstat(tnum2); _root.hmaxhp -= _root.getpstat(tnum2) * 10; if (_root.hcurhp > _root.hmaxhp) { _root.hcurhp = _root.hmaxhp; } } else { if (_root.gettstat(tnum2) == 'agi') { _root.agi -= _root.getpstat(tnum2); _root.hmaxen -= 2 * _root.getpstat(tnum2); if (_root.hcuren > _root.hmaxen) { _root.hcuren = _root.hmaxen; } } else { if (_root.gettstat(tnum2) == 'int') { _root.inte -= _root.getpstat(tnum2); } } } } } temp = _root.slot[20]; _root.slot[20] = _root.slot[num]; _root.slot[num] = temp; } } else { if (type == 'Trinket') { if (_root.slot[21] == 'none') { _root.slot[21] = _root.slot[num]; _root.slot[num] = 'none'; _root.tooltipbox.gotoAndStop('hide'); } else { tnum2 = 21; if (_root.gettstat(tnum2) == 'str' || _root.gettstat(tnum2) == 'stam' || _root.gettstat(tnum2) == 'agi' || _root.gettstat(tnum2) == 'int') { if (_root.gettstat(tnum2) == 'str') { _root.str -= _root.getpstat(tnum2); } else { if (_root.gettstat(tnum2) == 'stam') { _root.stam -= _root.getpstat(tnum2); _root.hmaxhp -= _root.getpstat(tnum2) * 10; if (_root.hcurhp > _root.hmaxhp) { _root.hcurhp = _root.hmaxhp; } } else { if (_root.gettstat(tnum2) == 'agi') { _root.agi -= _root.getpstat(tnum2); _root.hmaxen -= 2 * _root.getpstat(tnum2); if (_root.hcuren > _root.hmaxen) { _root.hcuren = _root.hmaxen; } } else { if (_root.gettstat(tnum2) == 'int') { _root.inte -= _root.getpstat(tnum2); } } } } } temp = _root.slot[21]; _root.slot[21] = _root.slot[num]; _root.slot[num] = temp; } } else { if (type == 'Hands') { if (_root.slot[22] == 'none') { _root.slot[22] = _root.slot[num]; _root.slot[num] = 'none'; _root.tooltipbox.gotoAndStop('hide'); } else { tnum2 = 22; if (_root.gettstat(tnum2) == 'str' || _root.gettstat(tnum2) == 'stam' || _root.gettstat(tnum2) == 'agi' || _root.gettstat(tnum2) == 'int') { if (_root.gettstat(tnum2) == 'str') { _root.str -= _root.getpstat(tnum2); } else { if (_root.gettstat(tnum2) == 'stam') { _root.stam -= _root.getpstat(tnum2); _root.hmaxhp -= _root.getpstat(tnum2) * 10; if (_root.hcurhp > _root.hmaxhp) { _root.hcurhp = _root.hmaxhp; } } else { if (_root.gettstat(tnum2) == 'agi') { _root.agi -= _root.getpstat(tnum2); _root.hmaxen -= 2 * _root.getpstat(tnum2); if (_root.hcuren > _root.hmaxen) { _root.hcuren = _root.hmaxen; } } else { if (_root.gettstat(tnum2) == 'int') { _root.inte -= _root.getpstat(tnum2); } } } } } temp = _root.slot[22]; _root.slot[22] = _root.slot[num]; _root.slot[num] = temp; } } else { if (type == 'Waist') { if (_root.slot[23] == 'none') { _root.slot[23] = _root.slot[num]; _root.slot[num] = 'none'; _root.tooltipbox.gotoAndStop('hide'); } else { tnum2 = 23; if (_root.gettstat(tnum2) == 'str' || _root.gettstat(tnum2) == 'stam' || _root.gettstat(tnum2) == 'agi' || _root.gettstat(tnum2) == 'int') { if (_root.gettstat(tnum2) == 'str') { _root.str -= _root.getpstat(tnum2); } else { if (_root.gettstat(tnum2) == 'stam') { _root.stam -= _root.getpstat(tnum2); _root.hmaxhp -= _root.getpstat(tnum2) * 10; if (_root.hcurhp > _root.hmaxhp) { _root.hcurhp = _root.hmaxhp; } } else { if (_root.gettstat(tnum2) == 'agi') { _root.agi -= _root.getpstat(tnum2); _root.hmaxen -= 2 * _root.getpstat(tnum2); if (_root.hcuren > _root.hmaxen) { _root.hcuren = _root.hmaxen; } } else { if (_root.gettstat(tnum2) == 'int') { _root.inte -= _root.getpstat(tnum2); } } } } } temp = _root.slot[23]; _root.slot[23] = _root.slot[num]; _root.slot[num] = temp; } } else { if (type == 'Legs') { if (_root.slot[24] == 'none') { _root.slot[24] = _root.slot[num]; _root.slot[num] = 'none'; _root.tooltipbox.gotoAndStop('hide'); } else { tnum2 = 24; if (_root.gettstat(tnum2) == 'str' || _root.gettstat(tnum2) == 'stam' || _root.gettstat(tnum2) == 'agi' || _root.gettstat(tnum2) == 'int') { if (_root.gettstat(tnum2) == 'str') { _root.str -= _root.getpstat(tnum2); } else { if (_root.gettstat(tnum2) == 'stam') { _root.stam -= _root.getpstat(tnum2); _root.hmaxhp -= _root.getpstat(tnum2) * 10; if (_root.hcurhp > _root.hmaxhp) { _root.hcurhp = _root.hmaxhp; } } else { if (_root.gettstat(tnum2) == 'agi') { _root.agi -= _root.getpstat(tnum2); _root.hmaxen -= 2 * _root.getpstat(tnum2); if (_root.hcuren > _root.hmaxen) { _root.hcuren = _root.hmaxen; } } else { if (_root.gettstat(tnum2) == 'int') { _root.inte -= _root.getpstat(tnum2); } } } } } temp = _root.slot[24]; _root.slot[24] = _root.slot[num]; _root.slot[num] = temp; } } else { if (type == 'Feet') { if (_root.slot[25] == 'none') { _root.slot[25] = _root.slot[num]; _root.slot[num] = 'none'; _root.tooltipbox.gotoAndStop('hide'); } else { tnum2 = 25; if (_root.gettstat(tnum2) == 'str' || _root.gettstat(tnum2) == 'stam' || _root.gettstat(tnum2) == 'agi' || _root.gettstat(tnum2) == 'int') { if (_root.gettstat(tnum2) == 'str') { _root.str -= _root.getpstat(tnum2); } else { if (_root.gettstat(tnum2) == 'stam') { _root.stam -= _root.getpstat(tnum2); _root.hmaxhp -= _root.getpstat(tnum2) * 10; if (_root.hcurhp > _root.hmaxhp) { _root.hcurhp = _root.hmaxhp; } } else { if (_root.gettstat(tnum2) == 'agi') { _root.agi -= _root.getpstat(tnum2); _root.hmaxen -= 2 * _root.getpstat(tnum2); if (_root.hcuren > _root.hmaxen) { _root.hcuren = _root.hmaxen; } } else { if (_root.gettstat(tnum2) == 'int') { _root.inte -= _root.getpstat(tnum2); } } } } } temp = _root.slot[25]; _root.slot[25] = _root.slot[num]; _root.slot[num] = temp; } } else { if (type == 'Ring') { if (_root.slot[26] == 'none') { _root.slot[26] = _root.slot[num]; _root.slot[num] = 'none'; _root.tooltipbox.gotoAndStop('hide'); } else { if (_root.slot[27] == 'none') { _root.slot[27] = _root.slot[num]; _root.slot[num] = 'none'; _root.tooltipbox.gotoAndStop('hide'); } else { tnum2 = 26; if (_root.gettstat(tnum2) == 'str' || _root.gettstat(tnum2) == 'stam' || _root.gettstat(tnum2) == 'agi' || _root.gettstat(tnum2) == 'int') { if (_root.gettstat(tnum2) == 'str') { _root.str -= _root.getpstat(tnum2); } else { if (_root.gettstat(tnum2) == 'stam') { _root.stam -= _root.getpstat(tnum2); _root.hmaxhp -= _root.getpstat(tnum2) * 10; if (_root.hcurhp > _root.hmaxhp) { _root.hcurhp = _root.hmaxhp; } } else { if (_root.gettstat(tnum2) == 'agi') { _root.agi -= _root.getpstat(tnum2); _root.hmaxen -= 2 * _root.getpstat(tnum2); if (_root.hcuren > _root.hmaxen) { _root.hcuren = _root.hmaxen; } } else { if (_root.gettstat(tnum2) == 'int') { _root.inte -= _root.getpstat(tnum2); } } } } } temp = _root.slot[26]; _root.slot[26] = _root.slot[num]; _root.slot[num] = temp; } } } else { if (type == 'Shield' || type == 'Off-hand') { if (_root.slot[29] == 'none') { _root.slot[29] = _root.slot[num]; _root.slot[num] = 'none'; _root.tooltipbox.gotoAndStop('hide'); } else { tnum2 = 29; if (_root.gettstat(tnum2) == 'str' || _root.gettstat(tnum2) == 'stam' || _root.gettstat(tnum2) == 'agi' || _root.gettstat(tnum2) == 'int') { if (_root.gettstat(tnum2) == 'str') { _root.str -= _root.getpstat(tnum2); } else { if (_root.gettstat(tnum2) == 'stam') { _root.stam -= _root.getpstat(tnum2); _root.hmaxhp -= _root.getpstat(tnum2) * 10; if (_root.hcurhp > _root.hmaxhp) { _root.hcurhp = _root.hmaxhp; } } else { if (_root.gettstat(tnum2) == 'agi') { _root.agi -= _root.getpstat(tnum2); _root.hmaxen -= 2 * _root.getpstat(tnum2); if (_root.hcuren > _root.hmaxen) { _root.hcuren = _root.hmaxen; } } else { if (_root.gettstat(tnum2) == 'int') { _root.inte -= _root.getpstat(tnum2); } } } } } temp = _root.slot[29]; _root.slot[29] = _root.slot[num]; _root.slot[num] = temp; } } else { if (type == 'Quest Item') { _root.error('You cannot equip that item.'); } else { if (type == 'Food') { if (_root.slot[num] == 'zg_mango') { if (_root.zone == 'Zul\'Gurub') { _root.error('Cannot be used inside Zul\'Gurub'); } else { _root.zg1 = 0; _root.zg2 = 0; _root.zg3 = 0; _root.zg4 = 0; _root.zg5 = 0; _root.zg6 = 0; _root.zg7 = 0; _root.slot[num] = 'none'; _root.tooltipbox.gotoAndStop('hide'); _root.error('You feel the energies of Zul\'Gurub.'); } } else { _root.error('Can only be used in battle.'); } } else { if (type == 'Gun' || type == 'Bow') { if (_root.slot[30] == 'none') { _root.slot[30] = _root.slot[num]; _root.slot[num] = 'none'; _root.tooltipbox.gotoAndStop('hide'); } else { tnum2 = 30; if (_root.gettstat(tnum2) == 'str' || _root.gettstat(tnum2) == 'stam' || _root.gettstat(tnum2) == 'agi' || _root.gettstat(tnum2) == 'int') { if (_root.gettstat(tnum2) == 'str') { _root.str -= _root.getpstat(tnum2); } else { if (_root.gettstat(tnum2) == 'stam') { _root.stam -= _root.getpstat(tnum2); _root.hmaxhp -= _root.getpstat(tnum2) * 10; if (_root.hcurhp > _root.hmaxhp) { _root.hcurhp = _root.hmaxhp; } } else { if (_root.gettstat(tnum2) == 'agi') { _root.agi -= _root.getpstat(tnum2); _root.hmaxen -= 2 * _root.getpstat(tnum2); if (_root.hcuren > _root.hmaxen) { _root.hcuren = _root.hmaxen; } } else { if (_root.gettstat(tnum2) == 'int') { _root.inte -= _root.getpstat(tnum2); } } } } } temp = _root.slot[30]; _root.slot[30] = _root.slot[num]; _root.slot[num] = temp; } } } } } } } } } } } } } } } } } } } } function dequip(num) { temp = _root.slot[num]; if (temp != 'none') { if (_root.pickup(temp) == true) { if (_root.gettstat(num) == 'str' || _root.gettstat(num) == 'stam' || _root.gettstat(num) == 'agi' || _root.gettstat(num) == 'int') { if (_root.gettstat(num) == 'str') { _root.str -= _root.getpstat(num); } else { if (_root.gettstat(num) == 'stam') { _root.stam -= _root.getpstat(num); _root.hmaxhp -= _root.getpstat(num) * 10; if (_root.hcurhp > _root.hmaxhp) { _root.hcurhp = _root.hmaxhp; } } else { if (_root.gettstat(num) == 'agi') { _root.agi -= _root.getpstat(num); _root.hmaxen -= 2 * _root.getpstat(num); if (_root.hcuren > _root.hmaxen) { _root.hcuren = _root.hmaxen; } } else { if (_root.gettstat(num) == 'int') { _root.inte -= _root.getpstat(num); } } } } } _root.slot[num] = 'none'; _root.tooltipbox.gotoAndStop('hide'); } } } function error(txt) { _root.errortxt = txt; _root.errormsg.gotoAndPlay(2); } function finditem(txt) { found = false; i = 0; while (i < 30) { if (_root.slot[i] == txt) { found = true; break; } ++i; } if (found == true) { return i; } else { return false; } } function dogotitem(txt) { found = false; i = 0; while (i < 30) { if (_root.slot[i] == txt) { found = true; break; } ++i; } if (found == true) { return true; } else { return false; } } function pickup(txt) { found = false; i = 0; while (i < 16) { if (_root.slot[i] == 'none') { found = true; break; } ++i; } if (found == true) { if (_root.shop == true) { _root.sfx('sell'); } else { _root.sfx('closebackpack'); } if (txt == 'tender_wolf_meat') { if (_root.tenderwolfmeat == 0) { _root.slot[i] = txt; _root.tenderwolfmeat = 1; } else { _root.tenderwolfmeat += 1; } } else { if (txt == 'soft_bushy_tail') { if (_root.softbushytail == 0) { _root.slot[i] = txt; _root.softbushytail = 1; } else { _root.softbushytail += 1; } } else { _root.slot[i] = txt; } } return true; } else { _root.error('Not enough space.'); return false; } } function getac() { temp = 0; i = 16; while (i < 28) { temp += _root.getarmor(i); ++i; } temp += _root.getarmor(29); if (_root.markofthewild >= 1) { temp += 30 * _root.level; } return temp; } function sfx(txt) { _root.fxbox.gotoAndStop(txt); } function vendname(txt) { temp = _root.vendordb[txt][0]; return temp; } function vendsum(txt) { temp = _root.vendordb[txt][1]; return temp; } function setupvendor(txt) { if (_root.freeze == false) { _root.freeze = true; _root.sfx('vendor'); if (_root.bpack == false) { _root.backpack.play(); } if (_root.charscreen == true) { _root.char.play(); } if (_root.talentbox == true) { _root.tbox.gotoAndStop('hide'); } _root.shop = true; _root.vendor = txt; _root.vendorname = _root.vendname(txt); _root.vendorbox.gotoAndStop(2); sum = _root.vendsum(txt); if (sum > 0) { i = 1; while (i <= sum) { _root.slot[30 + i] = _root.vendordb[txt][1 + i]; ++i; } if (sum < 12) { i = sum + 1; while (i <= 42) { _root.slot[30 + i] = 'none'; ++i; } } } } } function sell(num) { if (_root.getname(num) == 'Tender Wolf Meat' || _root.getname(num) == 'Sack of Meat' || _root.getname(num) == 'Soft Bushy Tail' || _root.getname(num) == 'Rune of Teleportation') { _root.error('Cannot sell that item.'); } else { if (_root.slot[num] != 'none') { _root.sfx('sell'); _root.money += _root.getprice(num); _root.slot[num] = 'none'; _root.tooltipbox.gotoAndStop('hide'); } } } function buy(num) { if (_root.slot[num] != 'none') { tprice = _root.getprice(num); if (_root.money >= tprice) { if (_root.pickup(_root.slot[num]) == true) { _root.money -= tprice; } } else { _root.error('Not enough money.'); } } } function gold(num) { temp = num / 10000; return Math.floor(temp); } function silver(num) { temp = num / 10000; temp2 = Math.floor((temp - Math.floor(temp)) * 100); return temp2; } function copper(num) { temp = num / 10000; temp2 = (temp - Math.floor(temp)) * 100; temp3 = temp2 - Math.floor(temp2); temp3 = Math.round(temp3 * 100); return temp3; } function resizetxt(txt) { tlength = txt.length; temp = ''; if (tlength <= 20) { return txt; } else { temp += [txt.substring(0, 16)] + '...'; return temp; } } function changezone(txt) { stopAllSounds(); _root.zone = txt; _root.zonebox.gotoAndPlay(2); } function percent(small, big) { temp = Math.round((small / big) * 100); return temp; } function monstername(txt) { return _root.monsterdb[txt][0]; } function monsterloot(txt) { return _root.monsterdb[txt][1]; } function monstersprite(txt) { return _root.monsterdb[txt][2]; } function monsterhp(txt) { return _root.monsterdb[txt][3]; } function monsteratksum(txt) { return _root.monsterdb[txt][4]; } function monsteratkname(num) { return _root.monsterdb[_root.enemy][5 + 3 * (num - 1)]; } function monsteratksprite(num) { return _root.monsterdb[_root.enemy][6 + 3 * (num - 1)]; } function monsteratkdmg(num) { return _root.monsterdb[_root.enemy][7 + 3 * (num - 1)] * _root.elevel; } function setupbattle(txt, num) { _root.battleon = true; _root.enemy = txt; _root.ename = _root.monstername(txt); _root.elevel = num; _root.emaxhp = _root.monsterhp(txt) * num; _root.ecurhp = _root.emaxhp; _root.gotoAndStop('battle'); } function dmgenemy(num) { num *= 2; crit = _root.roll(1, 100); critchance = 5; if (_root.issheep == true) { _root.battle.cloud.gotoAndPlay(2); _root.battle.monsters.gotoAndStop(_root.monstersprite(_root.enemy)); _root.issheep = false; } if (_root.iscoldblood == true) { critchance = 100; } else { if (_root.cruelty >= 1) { critchance = 10 + Math.round((_root.agi - 9) / 10); } else { critchance = 5 + Math.round((_root.agi - 9) / 10); } } if (crit <= critchance) { num *= 2; _root.dmg = num + ' Critical Strike'; } else { _root.dmg = num; } _root.ecurhp -= num; _root.battle.dmgpope.play(); if (_root.iscoldblood == true) { _root.iscoldblood = false; } if (_root.ecurhp <= 0) { _root.ecurhp = 0; _root.battle.monsters[_root.monstersprite(_root.enemy)].gotoAndStop('die'); } else { _root.battle.monsters[_root.monstersprite(_root.enemy)].gotoAndStop('hurt'); } } function dmghero(num) { num *= 2; tpercent = roll(1, 10); croll = roll(1, 100); crit = _root.roll(1, 100); num -= _root.dmgreduce(num); if (crit <= 5) { num *= 2; _root.dmg = num + ' Critical Strike'; } else { _root.dmg = num; } if (_root.isshield == true) { if (_root.shieldabs < num) { num -= _root.shieldabs; _root.isshield = false; } else { _root.shieldabs -= num; num = 0; _root.battle.pwshieldsprite.gotoAndPlay('absorb'); _root.dmg = 'Absorbed'; } } _root.hcurhp -= num; _root.battle.dmgpoph.play(); if (_root.hcurhp <= 0) { _root.hcurhp = 0; _root.battle.bhero.gotoAndStop('die'); } else { if (_root.isshield == false) { _root.battle.bhero.gotoAndStop('hurt'); } if (_root.retaliation >= 1) { if (croll <= 10) { _root.counter = true; } } } } function roll(lowNumber, highNumber) { var v2 = highNumber - lowNumber; var v3 = Math.random() * v2; var v1 = Math.round(v3); v1 += lowNumber; return v1; } function enemyai() { tnum = 0; if (_root.ischarge == false) { if (_root.monsteratksum(_root.enemy) > 1) { tnum = _root.roll(1, _root.monsteratksum(_root.enemy)); } else { tnum = 1; } _root.sendbmsg([_root.ename] + ' ' + [_root.monsteratkname(tnum)] + '.'); _root.battle.monsters[_root.monstersprite(_root.enemy)].gotoAndStop(_root.monsteratksprite(tnum)); _root.eattack = tnum; } else { _root.sendbmsg([_root.ename] + ' is stunned.'); _root.ischarge = false; _root.edone = true; } } function launch(txt, num, fr) { _root.freeze = true; _root.whatframe = fr; _root.port = 'postbattle'; _root.mport = _root.murloc._x; if (_root.bpack == true) { _root.backpack.play(); } if (_root.charscreen == true) { _root.char.play(); } if (_root.talentbox == true) { _root.tbox.gotoAndStop('hide'); } _root.tooltipbox.gotoAndStop('hide'); _root.fenemy = txt; _root.flevel = num; _root.flashbox.play(); } function sendbmsg(txt) { _root.bmsg = txt; _root.battle.bmsg.gotoAndPlay(2); } function setloot() { num = 43; if (_root.monsterloot(_root.enemy) != 'null' && _root.monsterloot(_root.enemy) != 'none') { if (_root.monsterloot(_root.enemy) == 'tender_wolf_meat') { if (_root.wolfmeat > 0 && _root.tenderwolfmeat < 10) { _root.slot[num] = _root.monsterloot(_root.enemy); ++num; } else { if (_root.gettails == true && _root.softbushytail < 8) { _root.slot[num] = 'soft_bushy_tail'; ++num; } } } else { if (_root.monsterloot(_root.enemy) == 'the_1_ring') { if (_root.dogotitem('the_1_ring') == false && _root.gottumq == false) { if (_root.roll(1, 100) <= 10) { _root.slot[num] = _root.monsterloot(_root.enemy); ++num; } } } else { _root.slot[num] = _root.monsterloot(_root.enemy); ++num; } } } if (_root.roll(1, 100) <= 30) { _root.slot[num] = _root.randomloot(_root.elevel); ++num; } if (_root.roll(1, 100) <= 10) { _root.slot[num] = _root.randomloot(_root.elevel); } } function randomloot(num) { if (num == 1) { return _root.lootdb['lootlvl' + num][_root.roll(1, _root.lootdb['lootlvl' + num][0])]; } else { if (num == 2) { troll = _root.roll(1, 2); if (troll == 2) { return _root.lootdb['lootlvl' + num][_root.roll(1, _root.lootdb['lootlvl' + num][0])]; } else { return _root.lootdb['lootlvl' + (num - 1)][_root.roll(1, _root.lootdb['lootlvl' + (num - 1)][0])]; } } else { if (num > 2 && num < 6) { troll = _root.roll(1, 3); if (troll == 3) { return _root.lootdb['lootlvl' + num][_root.roll(1, _root.lootdb['lootlvl' + num][0])]; } else { if (troll == 2) { return _root.lootdb['lootlvl' + (num - 1)][_root.roll(1, _root.lootdb['lootlvl' + (num - 1)][0])]; } else { if (troll == 1) { return _root.lootdb['lootlvl' + (num - 2)][_root.roll(1, _root.lootdb['lootlvl' + (num - 2)][0])]; } } } } else { num = 5; troll = _root.roll(1, 3); if (troll == 3) { return _root.lootdb['lootlvl' + num][_root.roll(1, _root.lootdb['lootlvl' + num][0])]; } else { if (troll == 2) { return _root.lootdb['lootlvl' + (num - 1)][_root.roll(1, _root.lootdb['lootlvl' + (num - 1)][0])]; } else { if (troll == 1) { return _root.lootdb['lootlvl' + (num - 2)][_root.roll(1, _root.lootdb['lootlvl' + (num - 2)][0])]; } } } } } } } function setcoin() { _root.lootcoin = (1 + _root.roll(1, 3)) * _root.elevel; _root.cointaken = false; } function addxp(num) { _root.curxp += num; if (_root.curxp >= _root.maxxp) { _root.level += 1; _root.talents += 1; _root.hmaxhp = Math.round(80 * (_root.level * 0.6)) + (_root.stam - 9) * 10; _root.hcurhp = _root.hmaxhp; _root.curxp -= _root.maxxp; _root.maxxp = Math.round(_root.maxxp * 1.45); _root.sfx('ding'); } _root.xptolevel = _root.maxxp - _root.curxp; } function skilltip(txt, side) { if (txt == 'heroicstrike') { _root.skillname = 'Heroic Strike (Rank ' + _root.level + ')'; _root.skillcost = '25 Energy'; _root.skillinfo = 'A strong attack that increases melee damage by ' + 2 * _root.level * 2 + ' and causes a high amount of threat.'; } else { if (txt == 'bloodrage') { _root.skillname = 'Bloodrage'; _root.skillcost = ''; _root.skillinfo = 'Generates 20 Energy at the cost of 20% of your base Health.'; } else { if (txt == 'pummel') { _root.skillname = 'Pummel (Rank ' + _root.level + ')'; _root.skillcost = '30 Energy'; _root.skillinfo = 'Pummel the target for ' + 3 * _root.level * 2 + ' damage and silence all spells for the next two rounds.'; } else { if (txt == 'charge') { _root.skillname = 'Charge (Rank ' + _root.level + ')'; _root.skillcost = '20 Energy'; _root.skillinfo = 'Charge an enemy for ' + 4 * _root.level * 2 + ' damage, and stun it for the next round. Can only be used in the beginning of a fight.'; } else { if (txt == 'exec') { _root.skillname = 'Execute (Rank ' + _root.level + ')'; _root.skillcost = '100% of Energy'; _root.skillinfo = 'Executes the enemy for ' + 5 * _root.level * 2 + ' damage plus ' + _root.level + ' extra damage for every point of Energy. Enemy health must be at 30% or less.'; } else { if (txt == 'cruelty') { _root.skillname = 'Cruelty'; _root.skillcost = 'Passive'; _root.skillinfo = 'Increases your chance to get a critical strike with all attacks by 5%.'; } else { if (txt == 'retaliation') { _root.skillname = 'Retaliation'; _root.skillcost = 'Passive'; _root.skillinfo = '10% chance to instantly counterattack any enemy that strikes you.'; } else { if (txt == 'coldblood') { _root.skillname = 'Cold Blood'; _root.skillcost = '25 Energy'; _root.skillinfo = 'When activated, increases the critical strike chance of your next attack by 100%.'; } else { if (txt == 'vigor') { _root.skillname = 'Vigor'; _root.skillcost = 'Passive'; _root.skillinfo = 'Increases your maximum Energy by 20.'; } else { if (txt == 'adr') { _root.skillname = 'Adrenaline Rush'; _root.skillcost = ''; _root.skillinfo = 'Regenerates 20% of your Energy every round for 5 rounds. Can only be used once per battle.'; } else { if (txt == 'markofthewild') { _root.skillname = 'Mark of the Wild (Rank ' + _root.level + ')'; _root.skillcost = 'Passive'; _root.skillinfo = 'Increases your armor by ' + 30 * _root.level + '.'; } else { if (txt == 'renew') { _root.skillname = 'Renew (Rank ' + _root.level + ')'; _root.skillcost = '30 Energy'; _root.skillinfo = 'Heals you of ' + 30 * _root.level + ' damage over 5 rounds.'; } else { if (txt == 'heal') { _root.skillname = 'Heal (Rank ' + _root.level + ')'; _root.skillcost = '45 Energy'; _root.skillinfo = 'Instantly heals you of ' + 60 * _root.level + ' damage.'; } else { if (txt == 'powerwordshield') { _root.skillname = 'Power Word: Shield (Rank ' + _root.level + ')'; _root.skillcost = '55 Energy'; _root.skillinfo = 'Shields you, absorbing ' + 40 * _root.level * 2 + ' damage. Lasts 5 rounds. Once shielded, you cannot be shielded again for 5 rounds.'; } else { if (txt == 'polymorph') { _root.skillname = 'Polymorph'; _root.skillcost = '50 Energy'; _root.skillinfo = 'Transforms the enemy into a sheep for up to 10 rounds or until damage is caused. As a sheep, the enemy cannot attack.'; } else { if (txt == 'lashofpain') { _root.skillname = 'Lash of Pain (Rank ' + _root.level + ')'; _root.skillcost = '20 Energy'; _root.skillinfo = 'An instant attack that lashes the target, causing ' + 4 * _root.level * 2 + ' Shadow damage.'; } else { if (txt == 'drainlife') { _root.skillname = 'Drain Life (Rank ' + _root.level + ')'; _root.skillcost = '25 Energy'; _root.skillinfo = 'Transfers ' + 3 * _root.level * 2 + ' Health from the target to you.'; } else { if (txt == 'frostnova') { _root.skillname = 'Frost Nova (Rank ' + _root.level + ')'; _root.skillcost = '45 Energy'; _root.skillinfo = 'Blasts the enemy for ' + 1 * _root.level * 2 + ' to ' + 2 * _root.level * 2 + ' Frost damage and freezes them in place for 2 rounds. Enemy cannot attack when frozen.'; } else { if (txt == 'bloodpact') { _root.skillname = 'Blood Pact'; _root.skillcost = 'Passive'; _root.skillinfo = 'Increases your Health by 15%.'; } else { if (txt == 'pyroblast') { _root.skillname = 'Pyroblast (Rank ' + _root.level + ')'; _root.skillcost = '55 Energy'; _root.skillinfo = 'Hurls an immense fiery boulder that causes ' + 15 * _root.level * 2 + ' to ' + 33 * _root.level * 2 + ' Fire damage. Takes three rounds to cast.'; } else { if (txt == 'ambush') { _root.skillname = 'Ambush (Rank ' + _root.level + ')'; _root.skillcost = '60 Energy'; _root.skillinfo = 'Ambush the target, causing 500% weapon damage. Can only be used in the beginning of a fight. Requires Daggers.'; } } } } } } } } } } } } } } } } } } } } } if (side == 'r') { _root.tooltipbox.gotoAndStop('skilltipr'); } else { _root.tooltipbox.gotoAndStop('skilltip'); } } function minitip(txt) { _root.minitiptxt = txt; _root.tooltipbox.gotoAndStop('minitip'); } function dobeffect(txt) { _root.battle.beffects.gotoAndStop(txt); } function dmgreduce(num) { a = 400; b = 85; armor_points = _root.getac(); level_number = _root.level; Damage_Reduction = armor_points / (armor_points + (b * level_number + a)); dmg_reduc = Damage_Reduction * num; return Math.round(dmg_reduc); } function countitem(txt) { tcount = 0; i = 0; while (i < 16) { if (_root.slot[i] == txt) { ++tcount; } ++i; } return tcount; } function fadeto(txt) { _root.fadedir = txt; _root.fader.play(); } function loadfile(num) { _root.ambush = _root['save' + num].data.ambush; _root.felvahelp = _root['save' + num].data.felvahelp; _root.zunk = _root['save' + num].data.zunk; _root.arena = _root['save' + num].data.arena; _root.onykilled = _root['save' + num].data.onykilled; _root.falthflee = _root['save' + num].data.falthflee; _root.cageopen = _root['save' + num].data.cageopen; _root.zg1 = _root['save' + num].data.zg1; _root.zg2 = _root['save' + num].data.zg2; _root.zg3 = _root['save' + num].data.zg3; _root.zg4 = _root['save' + num].data.zg4; _root.zg5 = _root['save' + num].data.zg5; _root.zg6 = _root['save' + num].data.zg6; _root.zg7 = _root['save' + num].data.zg7; _root.dmoon = _root['save' + num].data.dmoon; if (_root.dmoon != 0 && _root.dmoon != 1 && _root.dmoon != 2 && _root.dmoon != 3 && _root.dmoon != 4 && _root.dmoon != 5 || _root.dmoon != 6 && _root.dmoon != 7) { _root.dmoon = 0; } _root.str = _root['save' + num].data.str; _root.stam = _root['save' + num].data.stam; _root.inte = _root['save' + num].data.inte; _root.agi = _root['save' + num].data.agi; _root.fingame = _root['save' + num].data.fingame; _root.isdead = _root['save' + num].data.isdead; _root.zone = _root['save' + num].data.zone; _root.dir = _root['save' + num].data.dir; if (_root.fingame == true) { _root.port = 'right'; _root.gotoAndStop('fair'); } else { _root.port = _root['save' + num].data.port; _root.gotoAndStop(_root['save' + num].data.whatframe); } _root.murloc._x = _root['save' + num].data.posx; _root.hmaxhp = _root['save' + num].data.hmaxhp; _root.hcurhp = _root['save' + num].data.hcurhp; _root.hmaxen = _root['save' + num].data.hmaxen; _root.hcuren = _root['save' + num].data.hcuren; _root.level = _root['save' + num].data.level; _root.money = _root['save' + num].data.money; _root.curxp = _root['save' + num].data.curxp; _root.maxxp = _root['save' + num].data.maxxp; _root.xpgain = _root['save' + num].data.xpgain; _root.xptolevel = _root['save' + num].data.xptolevel; _root.xptick = _root['save' + num].data.xptick; _root.talents = _root['save' + num].data.talents; _root.tickspeed = _root['save' + num].data.tickspeed; _root.zonelvl = _root['save' + num].data.zonelvl; _root.mdcount = _root['save' + num].data.mdcount; _root.swmcount = _root['save' + num].data.swmcount; i = 0; while (i <= 45) { _root.slot[i] = _root['save' + num].data['slot' + i]; ++i; } _root.heroicstrike = _root['save' + num].data.heroicstrike; _root.bloodrage = _root['save' + num].data.bloodrage; _root.pummel = _root['save' + num].data.pummel; _root.charge = _root['save' + num].data.charge; _root.exec = _root['save' + num].data.exec; _root.cruelty = _root['save' + num].data.cruelty; _root.retaliation = _root['save' + num].data.retaliation; _root.coldblood = _root['save' + num].data.coldblood; _root.vigor = _root['save' + num].data.vigor; _root.adr = _root['save' + num].data.adr; _root.renew = _root['save' + num].data.renew; _root.heal = _root['save' + num].data.heal; _root.markofthewild = _root['save' + num].data.markofthewild; _root.powerwordshield = _root['save' + num].data.powerwordshield; _root.polymorph = _root['save' + num].data.polymorph; _root.lashofpain = _root['save' + num].data.lashofpain; _root.drainlife = _root['save' + num].data.drainlife; _root.frostnova = _root['save' + num].data.frostnova; _root.bloodpact = _root['save' + num].data.bloodpact; _root.pyroblast = _root['save' + num].data.pyroblast; _root.portalpop = _root['save' + num].data.portalpop; _root.chestopen = _root['save' + num].data.chestopen; _root.chestloot = _root['save' + num].data.chestloot; _root.fagnusdead = _root['save' + num].data.fagnusdead; _root.bgone = _root['save' + num].data.bgone; _root.kobold1 = _root['save' + num].data.kobold1; _root.kobold2 = _root['save' + num].data.kobold2; _root.kobold3 = _root['save' + num].data.kobold3; _root.kobold4 = _root['save' + num].data.kobold4; _root.kobold5 = _root['save' + num].data.kobold5; _root.chiefdead = _root['save' + num].data.chiefdead; _root.lostone = _root['save' + num].data.lostone; _root.nightseq = _root['save' + num].data.nightseq; _root.talktochief = _root['save' + num].data.talktochief; _root.wolfmeat = _root['save' + num].data.wolfmeat; _root.tenderwolfmeat = _root['save' + num].data.tenderwolfmeat; _root.rewarddagger = _root['save' + num].data.rewarddagger; _root.gaveketchin = _root['save' + num].data.gaveketchin; _root.savekrakho = _root['save' + num].data.savekrakho; _root.getspices = _root['save' + num].data.getspices; _root.gofish = _root['save' + num].data.gofish; _root.fishcaught = _root['save' + num].data.fishcaught; _root.fishmsg = _root['save' + num].data.fishmsg; _root.talktolekon = _root['save' + num].data.talktolekon; _root.gottumq = _root['save' + num].data.gottumq; _root.gettails = _root['save' + num].data.gettails; _root.softbushytail = _root['save' + num].data.softbushytail; _root.princess = _root['save' + num].data.princess; _root.motherdead = _root['save' + num].data.motherdead; _root.vers = _root['save' + num].data.vers; ahftemp = _root.level + '*ahf'; _root.ahf = _root['save' + num].data.ahf; if (_root.calcMD5(ahftemp) != _root.ahf && _root.vers == 1.2) { _root.hacks.gotoAndStop(2); } } function savefile(num) { _root['save' + num] = SharedObject.getLocal('murlocsave' + num); _root.error('Game saved.'); _root['save' + num].data.issave = true; _root['save' + num].data.ambush = _root.ambush; _root['save' + num].data.felvahelp = _root.felvahelp; _root['save' + num].data.zunk = _root.zunk; _root['save' + num].data.arena = _root.arena; _root['save' + num].data.onykilled = _root.onykilled; _root['save' + num].data.falthflee = _root.falthflee; _root['save' + num].data.cageopen = _root.cageopen; _root['save' + num].data.zg1 = _root.zg1; _root['save' + num].data.zg2 = _root.zg2; _root['save' + num].data.zg3 = _root.zg3; _root['save' + num].data.zg4 = _root.zg4; _root['save' + num].data.zg5 = _root.zg5; _root['save' + num].data.zg6 = _root.zg6; _root['save' + num].data.zg7 = _root.zg7; _root['save' + num].data.dmoon = _root.dmoon; _root['save' + num].data.fingame = _root.fingame; _root['save' + num].data.isdead = _root.isdead; _root['save' + num].data.zone = _root.zone; _root['save' + num].data.port = _root.port; _root['save' + num].data.dir = _root.dir; _root['save' + num].data.posx = _root.murloc._x; _root['save' + num].data.whatframe = _root._currentframe; _root['save' + num].data.str = _root.str; _root['save' + num].data.stam = _root.stam; _root['save' + num].data.inte = _root.inte; _root['save' + num].data.agi = _root.agi; _root['save' + num].data.hmaxhp = _root.hmaxhp; _root['save' + num].data.hcurhp = _root.hcurhp; _root['save' + num].data.hmaxen = _root.hmaxen; _root['save' + num].data.hcuren = _root.hcuren; _root['save' + num].data.level = _root.level; _root['save' + num].data.money = _root.money; _root['save' + num].data.curxp = _root.curxp; _root['save' + num].data.maxxp = _root.maxxp; _root['save' + num].data.xpgain = _root.xpgain; _root['save' + num].data.xptolevel = _root.xptolevel; _root['save' + num].data.xptick = _root.xptick; _root['save' + num].data.talents = _root.talents; _root['save' + num].data.tickspeed = _root.tickspeed; _root['save' + num].data.zonelvl = _root.zonelvl; _root['save' + num].data.mdcount = _root.mdcount; _root['save' + num].data.swmcount = _root.swmcount; i = 0; while (i <= 45) { _root['save' + num].data['slot' + i] = _root.slot[i]; ++i; } _root['save' + num].data.heroicstrike = _root.heroicstrike; _root['save' + num].data.bloodrage = _root.bloodrage; _root['save' + num].data.pummel = _root.pummel; _root['save' + num].data.charge = _root.charge; _root['save' + num].data.exec = _root.exec; _root['save' + num].data.cruelty = _root.cruelty; _root['save' + num].data.retaliation = _root.retaliation; _root['save' + num].data.coldblood = _root.coldblood; _root['save' + num].data.vigor = _root.vigor; _root['save' + num].data.adr = _root.adr; _root['save' + num].data.renew = _root.renew; _root['save' + num].data.heal = _root.heal; _root['save' + num].data.markofthewild = _root.markofthewild; _root['save' + num].data.powerwordshield = _root.powerwordshield; _root['save' + num].data.polymorph = _root.polymorph; _root['save' + num].data.lashofpain = _root.lashofpain; _root['save' + num].data.drainlife = _root.drainlife; _root['save' + num].data.frostnova = _root.frostnova; _root['save' + num].data.bloodpact = _root.bloodpact; _root['save' + num].data.pyroblast = _root.pyroblast; _root['save' + num].data.portalpop = _root.portalpop; _root['save' + num].data.chestopen = _root.chestopen; _root['save' + num].data.chestloot = _root.chestloot; _root['save' + num].data.fagnusdead = _root.fagnusdead; _root['save' + num].data.bgone = _root.bgone; _root['save' + num].data.kobold1 = _root.kobold1; _root['save' + num].data.kobold2 = _root.kobold2; _root['save' + num].data.kobold3 = _root.kobold3; _root['save' + num].data.kobold4 = _root.kobold4; _root['save' + num].data.kobold5 = _root.kobold5; _root['save' + num].data.chiefdead = _root.chiefdead; _root['save' + num].data.lostone = _root.lostone; _root['save' + num].data.nightseq = _root.nightseq; _root['save' + num].data.talktochief = _root.talktochief; _root['save' + num].data.wolfmeat = _root.wolfmeat; _root['save' + num].data.tenderwolfmeat = _root.tenderwolfmeat; _root['save' + num].data.rewarddagger = _root.rewarddagger; _root['save' + num].data.gaveketchin = _root.gaveketchin; _root['save' + num].data.savekrakho = _root.savekrakho; _root['save' + num].data.getspices = _root.getspices; _root['save' + num].data.gofish = _root.gofish; _root['save' + num].data.fishcaught = _root.fishcaught; _root['save' + num].data.fishmsg = _root.fishmsg; _root['save' + num].data.talktolekon = _root.talktolekon; _root['save' + num].data.gottumq = _root.gottumq; _root['save' + num].data.gettails = _root.gettails; _root['save' + num].data.softbushytail = _root.softbushytail; _root['save' + num].data.princess = _root.princess; _root['save' + num].data.motherdead = _root.motherdead; _root['save' + num].data.vers = 1.2; ahftemp = _root.level + '*ahf'; _root['save' + num].data.ahf = _root.calcMD5(ahftemp); _root.helpbox.saverboxg['block' + num].gotoAndStop(1); _root.helpbox.saverboxg['block' + num].level = 'Level ' + _root['save' + num].data.level; _root.helpbox.saverboxg['block' + num].zone = _root['save' + num].data.zone; _root.helpbox.saverboxg['block' + num].build = _root['save' + num].data.heroicstrike + _root['save' + num].data.bloodrage + _root['save' + num].data.pummel + _root['save' + num].data.charge + _root['save' + num].data.exec + _root['save' + num].data.cruelty + _root['save' + num].data.retaliation + _root['save' + num].data.coldblood + _root['save' + num].data.vigor + _root['save' + num].data.adr + ' Fury / ' + (_root['save' + num].data.renew + _root['save' + num].data.heal + _root['save' + num].data.markofthewild + _root['save' + num].data.powerwordshield + _root['save' + num].data.polymorph + _root['save' + num].data.lashofpain + _root['save' + num].data.drainlife + _root['save' + num].data.frostnova + _root['save' + num].data.bloodpact + _root['save' + num].data.pyroblast) + ' Magic'; } _root.save1 = SharedObject.getLocal('murlocsave1'); _root.save2 = SharedObject.getLocal('murlocsave2'); _root.save3 = SharedObject.getLocal('murlocsave3'); stopAllSounds(); mute = false; vers = 1.2; goarea = 'null'; dir = 'right'; movem = 'walk'; port = 'first'; mport = 0; whatframe = 0; isdead = false; freeze = false; noflee = false; zone = 'null'; fadedir = 'null'; enc = 0; fingame = false; charscreen = false; bpack = false; talentbox = false; errortxt = 'null'; shop = false; battleon = false; str = 9; stam = 9; inte = 9; agi = 9; hmaxhp = 85; hcurhp = 85; hmaxen = 100; hcuren = 100; level = 1; money = 0; curxp = 0; maxxp = 200; xpgain = 0; xptolevel = 100; xptick = 0; talents = 0; tickspeed = 2; zonelvl = 1; mdcount = 0; swmcount = 0; heroicstrike = 0; bloodrage = 0; pummel = 0; charge = 0; exec = 0; cruelty = 0; retaliation = 0; coldblood = 0; vigor = 0; adr = 0; renew = 0; heal = 0; markofthewild = 0; powerwordshield = 0; polymorph = 0; lashofpain = 0; drainlife = 0; frostnova = 0; bloodpact = 0; pyroblast = 0; enemy = 'null'; ename = 'null'; elevel = 0; emaxhp = 0; ecurhp = 0; eattack = 0; estatus1 = 'none'; estatus2 = 'none'; estatus3 = 'none'; estatus4 = 'none'; status1 = 'none'; status2 = 'none'; status3 = 'none'; status4 = 'none'; status5 = 'none'; status6 = 'none'; ispyro = false; pyrocount = 5; issheep = false; sheepcount = 10; isshield = false; shieldabs = 0; shieldcount = 5; isfrozen == true; frozencount = 2; isrenew = false; renewcount = 5; ischarge = false; esilence = false; silencecount = 1; bround = 0; isrush = false; rushcount = 5; iscoldblood = false; counter = false; fenemy = 'null'; flevel = 0; dmg = 0; bmsg = ''; lootcoin = 0; cointaken = false; pdone = false; edone = false; pdead = false; edead = false; var slot = new Array(46); i = 0; while (i <= 45) { slot[i] = 'none'; ++i; } slot[19] = 'old_rag'; darken = Array(8); darken[0] = 'wolf_cub'; darken[1] = 'young_forest_wolf'; darken[2] = 'feronius'; darken[3] = 'king_crab'; darken[4] = 'mother_crocolisk'; darken[5] = 'the_princess'; darken[6] = 'fagnus'; darken[7] = 'sirath'; darken[8] = 'sirath2'; ambush = 0; felvahelp = 0; zunk = 0; arena = 0; onykilled = 0; falthflee = 0; cageopen = 0; zg1 = 0; zg2 = 0; zg3 = 0; zg4 = 0; zg5 = 0; zg6 = 0; zg7 = 0; arena = 0; dmoon = 0; portalpop = false; chestopen = false; chestloot = false; fagnusdead = false; bgone = false; kobold1 = 0; kobold2 = 0; kobold3 = 0; kobold4 = 0; kobold5 = 0; chiefdead = 0; lostone = false; nightseq = false; talktochief = 0; wolfmeat = 0; tenderwolfmeat = 0; rewarddagger = 0; gaveketchin = 0; savekrakho = 0; getspices = 0; gofish = 0; fishcaught = 0; fishmsg = 'null'; talktolekon = 0; gottumq = false; gettails = false; softbushytail = 0; princess = 0; motherdead = false; toolname = 'null'; tooltype = 'null'; toolmain = 'null'; toollvl = 'null'; toolprice = 'null'; extrastat = 'null'; skillname = 'null'; skillcost = 'null'; skillinfo = 'null'; minitiptxt = 'null'; vendor = 'null'; vendorname = 'null'; if (_root.loadgame == true) { stopAllSounds(); if (_root.loadslot == 1) { _root.loadfile(1); } else { if (_root.loadslot == 2) { _root.loadfile(2); } else { if (_root.loadslot == 3) { _root.loadfile(3); } } } } else { _root.freeze = true; _root.classbox.gotoAndPlay(2); } } movieClip 263 { } // unknown tag 88 length 73 // unknown tag 88 length 78 button 272 { on (release, keyPress '<Space>') { play(); } } movieClip 278 { frame 1 { stop(); } frame 2 { stop(); gotoAndStop(1); } frame 3 { stop(); gotoAndStop(1); } frame 4 { stop(); gotoAndStop(1); } frame 5 { stop(); gotoAndStop(1); } frame 6 { stop(); gotoAndStop(1); } } // unknown tag 88 length 80 movieClip 303 { } button 365 { on (release) { gotoAndStop('givering'); } } button 368 { on (release) { gotoAndStop('dontgivering'); } } button 374 { on (release) { gotoAndStop('sparecoin'); } } button 377 { on (release) { gotoAndStop('nothanks'); } } button 406 { on (release) { if (_root.motherdead == false) { _root.fadeto('starttrip'); } else { _root.fadeto('trip5'); } gotoAndStop(1); } } button 409 { on (release) { _root.freeze = false; gotoAndStop(1); } } button 436 { on (release) { if (_root.princess == 2) { _root.fadeto('nighttrip'); } else { _root.fadeto('edge'); _root.port = 'trip'; _root.freeze = false; gotoAndStop(1); } } } button 439 { on (release) { _root.freeze = false; gotoAndStop(1); } } // unknown tag 88 length 85 movieClip 460 { } button 488 { on (release) { if (_root.pickup('candlestick') == true) { _root.freeze = false; _root.chestloot = true; _root.error('Recieved: Large Candlestick'); gotoAndStop(1); } } } button 491 { on (release) { _root.freeze = false; gotoAndStop(1); } } button 504 { on (release) { _root.noflee = true; if (_root.darken[_root.dmoon] == 'sirath' || _root.darken[_root.dmoon] == 'sirath2') { _root.launch(_root.darken[_root.dmoon], 60, _root._currentframe); } else { _root.launch(_root.darken[_root.dmoon], _root.level, _root._currentframe); } gotoAndStop(1); } } button 511 { on (release) { getURL('http://www.gamerdisclaimer.com/forum/viewtopic.php?t=232', '_blank'); } } // unknown tag 88 length 211 button 516 { on (release) { if (_root.phpbbcode != '') { theitem = _root.checkcode(_root.nospace(_root.phpbbcode)); if (theitem != false) { _root.resultitem = theitem; gotoAndStop('getcode'); } else { gotoAndStop('badcode'); } } else { _root.error('Error: You must enter a code.'); } } } button 518 { on (release) { _root.freeze = false; gotoAndStop(1); } } button 521 { on (release, keyPress '<Space>') { _root.freeze = false; gotoAndStop(1); } } button 524 { on (release, keyPress '<Space>') { _root.noflee = true; _root.launch('gahzranka', 25, _root._currentframe); gotoAndStop(1); } } button 530 { on (release, keyPress '<Space>') { _root.slot[_root.finditem('goblin_dynamite')] = 'none'; _root.boom3.play(); _root.freeze = false; gotoAndStop(1); } } button 532 { on (release, keyPress '<Space>') { _root.falthflee = 1; _root.cage.gotoAndStop('run'); _root.freeze = false; gotoAndStop(1); } } button 538 { on (release) { if (_root.level >= 10) { _root.port = 'left'; _root.fadeto('STV'); _root.freeze = false; gotoAndStop(1); } else { _root.error('You must be at least level 10 to enter.'); } } } button 541 { on (release) { _root.freeze = false; gotoAndStop(1); } } button 544 { on (release) { if (_root.level >= 10) { _root.port = 'right'; _root.fadeto('forestend'); _root.freeze = false; gotoAndStop(1); } else { _root.error('You must be at least level 10 to enter.'); } } } button 549 { on (release) { play(); } } button 552 { on (release) { _root.freeze = false; gotoAndStop(1); } } button 556 { on (release, keyPress '<Space>') { _root.noflee = true; _root.launch('menrok', _root.level, _root._currentframe); gotoAndStop(1); } } button 563 { on (release) { _root.noflee = true; _root.launch('cathy', _root.level + 1, _root._currentframe); gotoAndStop(1); } } button 566 { on (release) { _root.freeze = false; gotoAndStop(1); } } button 568 { on (release) { _root.noflee = true; _root.launch('beardon', _root.level + 1, _root._currentframe); gotoAndStop(1); } } button 570 { on (release) { _root.noflee = true; _root.launch('felva', _root.level + 2, _root._currentframe); gotoAndStop(1); } } button 572 { on (release) { _root.noflee = true; _root.launch('archaic', _root.level + 2, _root._currentframe); gotoAndStop(1); } } button 574 { on (release) { _root.noflee = true; _root.launch('littlefoot', _root.level + 3, _root._currentframe); gotoAndStop(1); } } button 576 { on (release) { _root.noflee = true; _root.launch('azzima', _root.level + 3, _root._currentframe); gotoAndStop(1); } } button 578 { on (release) { _root.noflee = true; _root.launch('sheila', _root.level + 4, _root._currentframe); gotoAndStop(1); } } button 580 { on (release) { _root.noflee = true; _root.launch('helm', _root.level + 5, _root._currentframe); gotoAndStop(1); } } button 583 { on (release, keyPress '<Space>') { gotoAndStop('gm'); } } button 588 { on (release, keyPress '<Space>') { _root.pickup('charm_mag'); _root.zunk = 1; _root.freeze = false; gotoAndStop(1); } } button 590 { on (release) { _root.noflee = true; _root.launch('emurk', _root.score0, _root._currentframe); gotoAndStop(1); } } button 594 { on (release) { _root.freeze = false; _root.setupvendor('john'); gotoAndStop(1); } } button 609 { on (release, keyPress '<Space>') { _root.freeze = false; _root.felvas.play(); gotoAndStop(1); } } button 613 { on (release) { _root.noflee = true; _root.launch('jeklok', _root.level + 1, _root._currentframe); gotoAndStop(1); } } button 615 { on (release) { _root.slot[_root.finditem('fel_neck')] = 'none'; _root.error('You receive 10 gold.'); _root.money += 100000; _root.felvahelp = 6; _root.freeze = false; _root.felvas.play(); gotoAndStop(1); } } movieClip 616 { frame 1 { stop(); } frame 2 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 3 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 4 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 5 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 6 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 7 { _root.freeze = false; _root.talktochief = 1; gotoAndStop(1); } frame 8 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 9 { _root.freeze = false; gotoAndStop(1); } frame 10 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 11 { _root.freeze = false; gotoAndStop(1); } frame 12 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 13 { if (_root.talktochief == 0) { _root.freeze = false; gotoAndStop(1); } stop(); soundbox.gotoAndStop(random(5) + 2); } frame 14 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 15 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 16 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 17 { _root.freeze = false; _root.talktochief = 2; gotoAndStop(1); } frame 18 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 19 { _root.freeze = false; gotoAndStop(1); } frame 20 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 21 { _root.freeze = false; gotoAndStop(1); } frame 22 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 23 { _root.freeze = false; gotoAndStop(1); } frame 24 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 25 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 26 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 27 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 28 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 29 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 30 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 31 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 32 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 33 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 34 { if (_root.pickup('worn_dagger')) { _root.rewarddagger = 1; _root.talktochief = 3; _root.wolfmeat = 1; _root.error('Recieved: Worn Dagger'); _root.freeze = false; gotoAndStop(1); } else { _root.talktochief = 3; gotoAndStop('fullinvdagger'); } } frame 35 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 36 { _root.freeze = false; gotoAndStop(1); } frame 37 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 38 { _root.freeze = false; gotoAndStop(1); } frame 39 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 40 { _root.freeze = false; gotoAndStop(1); } frame 41 { stop(); } frame 42 { _root.isdead = false; _root.hcurhp = _root.hmaxhp; _root.wall1.gotoAndStop(2); _root.wall2.gotoAndStop(2); _root.healer.gotoAndStop('hide'); _root.aura.play(); _root.talktohealer.gotoAndStop(2); _root.freeze = false; if (_root.fingame == true) { _root.changezone('Darkmoon Faire'); } else { if (_root.zone == 'Stranglethorn Vale' || _root.zone == 'Gurubashi Arena' || _root.zone == 'Zul\'Gurub') { _root.changezone('Stranglethorn Vale'); } else { _root.changezone('Camp Brakil'); } } gotoAndStop(1); } frame 43 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 44 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 45 { _root.wolfmeat = 2; _root.slot[_root.finditem('tender_wolf_meat')] = 'none'; _root.pickup('sack_of_meat'); _root.error('Recieved: Sack of Meat'); _root.freeze = false; gotoAndStop(1); } frame 46 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 47 { _root.freeze = false; gotoAndStop(1); } frame 48 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 49 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 50 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 51 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 52 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 53 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 54 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 55 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 56 { _root.woflmeat = 3; _root.gaveketchin = 1; _root.savekrakho = 1; _root.getspices = 1; _root.slot[_root.finditem('sack_of_meat')] = 'none'; _root.freeze = false; gotoAndStop(1); } frame 57 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 58 { _root.freeze = false; this.gotoAndStop(1); } frame 59 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 60 { _root.freeze = false; gotoAndStop(1); } frame 61 { stop(); } frame 62 { _root.freeze = false; gotoAndStop(1); } frame 63 { stop(); } frame 64 { _root.savekrakho = 3; if (_root.pickup('magic_dust') == true) { _root.error('Recieved: Magic Dust'); } _root.freeze = false; gotoAndStop(1); } frame 65 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 66 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 67 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 68 { stop(); _root.slot[_root.finditem('mild_spices')] = 'spiced_wolf_meat'; _root.sfx('closebackpack'); _root.error('Recieved: Spiced Wolf Meat'); soundbox.gotoAndStop(random(5) + 2); } frame 69 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 70 { _root.getspices = 2; _root.gofish = 1; _root.freeze = false; gotoAndStop(1); } frame 71 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 72 { _root.freeze = false; gotoAndStop(1); } frame 73 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 74 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 75 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 76 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 77 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 78 { _root.noflee = true; _root.launch('beach_crawler', _root.level, _root._currentframe); gotoAndStop(1); } frame 79 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 80 { _root.noflee = true; _root.launch('beach_crawler', _root.level, _root._currentframe); gotoAndStop(1); } frame 81 { stop(); soundbox.gotoAndStop(random(5) + 2); tfishcount = 10 - _root.fishcaught; _root.fishmsg = ''; if (_root.fishcaught == 2) { _root.fishmsg += 'Two'; } else { if (_root.fishcaught == 3) { _root.fishmsg += 'Three'; } else { if (_root.fishcaught == 4) { _root.fishmsg += 'Four'; } else { if (_root.fishcaught == 5) { _root.fishmsg += 'Five'; } else { if (_root.fishcaught == 6) { _root.fishmsg += 'Six'; } else { if (_root.fishcaught == 7) { _root.fishmsg += 'Seven'; } else { if (_root.fishcaught == 8) { _root.fishmsg += 'Eight'; } else { if (_root.fishcaught == 9) { _root.fishmsg += 'Nine'; } } } } } } } } _root.fishmsg += ' down, '; if (tfishcount == 1) { _root.fishmsg += 'one'; } else { if (tfishcount == 2) { _root.fishmsg += 'two'; } else { if (tfishcount == 3) { _root.fishmsg += 'three'; } else { if (tfishcount == 4) { _root.fishmsg += 'four'; } else { if (tfishcount == 5) { _root.fishmsg += 'five'; } else { if (tfishcount == 6) { _root.fishmsg += 'six'; } else { if (tfishcount == 7) { _root.fishmsg += 'seven'; } else { if (tfishcount == 8) { _root.fishmsg += 'eight'; } } } } } } } } _root.fishmsg += ' to go.'; } frame 82 { _root.noflee = true; _root.launch('beach_crawler', _root.level, _root._currentframe); gotoAndStop(1); } frame 83 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 84 { _root.noflee = true; _root.launch('beach_crawler', _root.level, _root._currentframe); gotoAndStop(1); } frame 85 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 86 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 87 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 88 { _root.freeze = false; _root.gofish = 2; _root.talktolekon = 1; if (_root.pickup('lucky_fishing_hat')) { _root.error('Recieved: Lucky Fishing Hat'); } gotoAndStop(1); } frame 89 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 90 { _root.freeze = false; gotoAndStop(1); } frame 91 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 92 { _root.freeze = false; gotoAndStop(1); } frame 93 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 94 { _root.freeze = false; gotoAndStop(1); } frame 95 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 96 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 97 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 98 { stop(); } frame 99 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 100 { _root.freeze = false; gotoAndStop(1); } frame 101 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 102 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 103 { stop(); } frame 104 { stop(); _root.error('Recieved: 5 silver'); _root.money += 500; soundbox.gotoAndStop(random(5) + 2); } frame 105 { _root.slot[_root.finditem('the_1_ring')] = 'none'; _root.freeze = false; _root.gottumq = true; _root.gottum.gotoAndPlay('run'); gotoAndStop(1); } frame 106 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 107 { _root.slot[_root.finditem('the_1_ring')] = 'none'; if (_root.pickup('stingy')) { _root.error('Recieved: Stingy'); } _root.freeze = false; _root.gottumq = true; _root.gottum.gotoAndPlay('run'); gotoAndStop(1); } frame 108 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 109 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 110 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 111 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 112 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 113 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 114 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 115 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 116 { _root.gettails = true; _root.talktolekon = 2; _root.freeze = false; gotoAndStop(1); } frame 117 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 118 { _root.freeze = false; gotoAndStop(1); } frame 119 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 120 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 121 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 122 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 123 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 124 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 125 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 126 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 127 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 128 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 129 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 130 { _root.slot[_root.finditem('soft_bushy_tail')] = 'none'; _root.gettails = false; _root.princess = 1; _root.freeze = false; gotoAndStop(1); } frame 131 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 132 { _root.freeze = false; gotoAndStop(1); } frame 133 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 134 { _root.freeze = false; gotoAndStop(1); } frame 135 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 136 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 137 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 138 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 139 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 140 { stop(); } frame 141 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 142 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 143 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 144 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 145 { if (_root.level > 2) { _root.zonelvl = _root.level - 1; } else { _root.zonelvl = 1; } _root.noflee = true; _root.launch('young_crocolisk', _root.zonelvl, 'trip2'); gotoAndStop(1); } frame 146 { stop(); _root.ecuren = _root.emaxen; soundbox.gotoAndStop(random(5) + 2); } frame 147 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 148 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 149 { if (_root.level > 2) { _root.zonelvl = _root.level - 1; } else { _root.zonelvl = 1; } _root.noflee = true; _root.launch('young_crocolisk', _root.zonelvl, 'trip3'); gotoAndStop(1); } frame 150 { stop(); _root.ecuren = _root.emaxen; soundbox.gotoAndStop(random(5) + 2); } frame 151 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 152 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 153 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 154 { if (_root.level > 2) { _root.zonelvl = _root.level - 1; } else { _root.zonelvl = 1; } _root.noflee = true; _root.launch('young_crocolisk', _root.zonelvl, 'trip4'); gotoAndStop(1); } frame 155 { stop(); _root.ecuren = _root.emaxen; soundbox.gotoAndStop(random(5) + 2); } frame 156 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 157 { stop(); } frame 158 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 159 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 160 { _root.zonelvl = _root.level; _root.noflee = true; _root.launch('mother_crocolisk', _root.zonelvl, 'trip5'); gotoAndStop(1); } frame 161 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 162 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 163 { _root.fadeto('landing'); _root.port = 'right'; _root.freeze = false; gotoAndStop(1); } frame 164 { stop(); } frame 165 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 166 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 167 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 168 { _root.nightseq = true; _root.fadeto('nightedge'); _root.port = 'trip'; _root.freeze = false; gotoAndStop(1); } frame 169 { stop(); } frame 170 { _root.freeze = false; _root.murloc._x = 370; _root.lostevent.play(); gotoAndStop(1); } frame 171 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 172 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 173 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 174 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 175 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 176 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 177 { stop(); } frame 178 { stop(); } frame 179 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 180 { stop(); if (_root.heal == 0) { soundbox.gotoAndStop(random(5) + 2); healornot.gotoAndStop(1); } else { healornot.gotoAndStop(2); } } frame 181 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 182 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 183 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 184 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 185 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 186 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 187 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 188 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 189 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 190 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 191 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 192 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 193 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 194 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 195 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 196 { _root.chiefdead = 1; _root.freeze = false; gotoAndStop(1); } frame 197 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 198 { _root.freeze = false; gotoAndStop(1); } frame 199 { stop(); } frame 200 { _root.slot[_root.finditem('goblin_dynamite')] = 'none'; _root.boulderboom.play(); _root.freeze = false; gotoAndStop(1); } frame 201 { stop(); } frame 202 { _root.noflee = true; _root.launch('fagnus', _root.level, _root._currentframe); gotoAndStop(1); } frame 203 { stop(); } frame 204 { _root.freeze = false; gotoAndStop(1); } frame 205 { stop(); } frame 206 { _root.slot[_root.finditem('goblin_dynamite')] = 'none'; _root.boulderboom2.play(); _root.freeze = false; gotoAndStop(1); } frame 207 { stop(); } frame 208 { stop(); } frame 209 { _root.freeze = false; gotoAndStop(1); } frame 210 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 211 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 212 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 213 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 214 { _root.slot[_root.finditem('rune_of_teleportation')] = 'none'; _root.chiefdead = 2; _root.portalpop = true; _root.portalshow.play(); _root.freeze = false; gotoAndStop(1); } frame 215 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 216 { _root.freeze = false; gotoAndStop(1); } frame 217 { stop(); } frame 218 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 219 { stop(); } frame 220 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 221 { stop(); } frame 222 { stop(); } frame 223 { stop(); } frame 224 { _root.freeze = false; gotoAndStop(1); } frame 225 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 226 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 227 { stop(); if (_root.pickup(_root.resultitem)) { _root.error('Recieved: ' + _root.itemdb[_root.resultitem][1]); } soundbox.gotoAndStop(random(5) + 2); } frame 228 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 229 { stop(); } frame 230 { stop(); } frame 231 { soundbox.gotoAndStop(random(5) + 2); stop(); } frame 232 { stop(); } frame 233 { stop(); } frame 234 { stop(); } frame 235 { stop(); } frame 236 { stop(); } frame 237 { stop(); } frame 238 { stop(); } frame 239 { stop(); } frame 240 { stop(); soundbox.gotoAndStop(random(5) + 2); } frame 241 { stop(); } frame 242 { stop(); } frame 243 { stop(); } frame 244 { stop(); } frame 245 { stop(); } frame 246 { stop(); } frame 247 { stop(); } frame 248 { stop(); } frame 249 { stop(); } frame 250 { stop(); } frame 251 { stop(); } frame 252 { stop(); } frame 253 { stop(); } frame 254 { stop(); } frame 255 { stop(); } frame 256 { stop(); } frame 257 { stop(); } frame 258 { stop(); } frame 259 { stop(); } frame 260 { stop(); } frame 261 { stop(); } frame 262 { stop(); } frame 263 { stop(); } frame 264 { stop(); } frame 265 { stop(); } frame 266 { stop(); } frame 267 { stop(); } frame 268 { stop(); } frame 269 { stop(); } frame 270 { stop(); } frame 271 { stop(); } frame 272 { stop(); } frame 273 { stop(); } frame 274 { stop(); } frame 275 { stop(); } frame 276 { stop(); } frame 277 { stop(); _root.ambush = true; _root.error('Murk learned Ambush.'); API.unlockMedal('Ambush'); } frame 278 { stop(); } frame 279 { stop(); } frame 280 { stop(); } } // unknown tag 88 length 215 movieClip 619 { frame 1 { stop(); } } button 623 { on (release) { if (_root.freeze == false) { _root.freeze = true; _root.sfx('openmenu'); gotoAndStop('general'); } } } button 628 { on (release) { _root.freeze = false; _root.sfx('closecharscreen'); gotoAndStop('hide'); } } button 633 { on (release) { stopAllSounds(); _root.gotoAndPlay('thefirstmenu'); } } button 635 { on (release) { _parent.loaderboxg.gotoAndStop(1); gotoAndStop('slots'); } } button 638 { on (release) { gotoAndStop(1); } } movieClip 640 { frame 1 { stop(); } frame 2 { stop(); if (_root.save1.data.issave == true) { block1.level = 'Level ' + _root.save1.data.level; block1.zone = _root.save1.data.zone; block1.build = _root.save1.data.heroicstrike + _root.save1.data.bloodrage + _root.save1.data.pummel + _root.save1.data.charge + _root.save1.data.exec + _root.save1.data.cruelty + _root.save1.data.retaliation + _root.save1.data.coldblood + _root.save1.data.vigor + _root.save1.data.adr + ' Fury / ' + (_root.save1.data.renew + _root.save1.data.heal + _root.save1.data.markofthewild + _root.save1.data.powerwordshield + _root.save1.data.polymorph + _root.save1.data.lashofpain + _root.save1.data.drainlife + _root.save1.data.frostnova + _root.save1.data.bloodpact + _root.save1.data.pyroblast) + ' Magic'; } else { block1.gotoAndStop('empty'); } if (_root.save2.data.issave == true) { block2.level = 'Level ' + _root.save2.data.level; block2.zone = _root.save2.data.zone; block2.build = _root.save2.data.heroicstrike + _root.save2.data.bloodrage + _root.save2.data.pummel + _root.save2.data.charge + _root.save2.data.exec + _root.save2.data.cruelty + _root.save2.data.retaliation + _root.save2.data.coldblood + _root.save2.data.vigor + _root.save2.data.adr + ' Fury / ' + (_root.save2.data.renew + _root.save2.data.heal + _root.save2.data.markofthewild + _root.save2.data.powerwordshield + _root.save2.data.polymorph + _root.save2.data.lashofpain + _root.save2.data.drainlife + _root.save2.data.frostnova + _root.save2.data.bloodpact + _root.save2.data.pyroblast) + ' Magic'; } else { block2.gotoAndStop('empty'); } if (_root.save3.data.issave == true) { block3.level = 'Level ' + _root.save3.data.level; block3.zone = _root.save3.data.zone; block3.build = _root.save3.data.heroicstrike + _root.save3.data.bloodrage + _root.save3.data.pummel + _root.save3.data.charge + _root.save3.data.exec + _root.save3.data.cruelty + _root.save3.data.retaliation + _root.save3.data.coldblood + _root.save3.data.vigor + _root.save3.data.adr + ' Fury / ' + (_root.save3.data.renew + _root.save3.data.heal + _root.save3.data.markofthewild + _root.save3.data.powerwordshield + _root.save3.data.polymorph + _root.save3.data.lashofpain + _root.save3.data.drainlife + _root.save3.data.frostnova + _root.save3.data.bloodpact + _root.save3.data.pyroblast) + ' Magic'; } else { block3.gotoAndStop('empty'); } } instance block1 of movieClip 206 { onClipEvent (release) { _root.savefile(1); } } instance block2 of movieClip 206 { onClipEvent (release) { _root.savefile(2); } } instance block3 of movieClip 206 { onClipEvent (release) { _root.savefile(3); } } } button 642 { on (release) { _parent.saverboxg.gotoAndStop(1); gotoAndStop('slots'); } } button 643 { on (release) { _root.save1 = SharedObject.getLocal('murlocsave1'); if (_root.save1.data.issave == true) { _root.error('Save loaded.'); _root.dmoon = _root.save1.data.dmoon; if (_root.dmoon != 0 && _root.dmoon != 1 && _root.dmoon != 2 && _root.dmoon != 3 && _root.dmoon != 4 && _root.dmoon != 5 || _root.dmoon != 6 && _root.dmoon != 7) { _root.dmoon = 0; } _root.fingame = _root.save1.data.fingame; _root.isdead = _root.save1.data.isdead; if (_root.zone != _root.save1.data.zone) { stopAllSounds(); _root.zone = _root.save1.data.zone; } _root.dir = _root.save1.data.dir; if (_root.fingame == true) { _root.port = 'right'; _root.gotoAndStop('fair'); } else { _root.port = _root.save1.data.port; _root.gotoAndStop(_root.save1.data.whatframe); } _root.port = _root.save1.data.port; _root.murloc._x = _root.save1.data.posx; _root.hmaxhp = _root.save1.data.hmaxhp; _root.hcurhp = _root.save1.data.hcurhp; _root.hmaxen = _root.save1.data.hmaxen; _root.hcuren = _root.save1.data.hcuren; _root.level = _root.save1.data.level; _root.money = _root.save1.data.money; _root.curxp = _root.save1.data.curxp; _root.maxxp = _root.save1.data.maxxp; _root.xpgain = _root.save1.data.xpgain; _root.xptolevel = _root.save1.data.xptolevel; _root.xptick = _root.save1.data.xptick; _root.talents = _root.save1.data.talents; _root.tickspeed = _root.save1.data.tickspeed; _root.zonelvl = _root.save1.data.zonelvl; _root.mdcount = _root.save1.data.mdcount; _root.swmcount = _root.save1.data.swmcount; i = 0; while (i <= 45) { _root.slot[i] = _root.save1.data['slot' + i]; ++i; } _root.heroicstrike = _root.save1.data.heroicstrike; _root.bloodrage = _root.save1.data.bloodrage; _root.pummel = _root.save1.data.pummel; _root.charge = _root.save1.data.charge; _root.exec = _root.save1.data.exec; _root.cruelty = _root.save1.data.cruelty; _root.retaliation = _root.save1.data.retaliation; _root.coldblood = _root.save1.data.coldblood; _root.vigor = _root.save1.data.vigor; _root.adr = _root.save1.data.adr; _root.renew = _root.save1.data.renew; _root.heal = _root.save1.data.heal; _root.markofthewild = _root.save1.data.markofthewild; _root.powerwordshield = _root.save1.data.powerwordshield; _root.polymorph = _root.save1.data.polymorph; _root.lashofpain = _root.save1.data.lashofpain; _root.drainlife = _root.save1.data.drainlife; _root.frostnova = _root.save1.data.frostnova; _root.bloodpact = _root.save1.data.bloodpact; _root.pyroblast = _root.save1.data.pyroblast; _root.portalpop = _root.save1.data.portalpop; _root.chestopen = _root.save1.data.chestopen; _root.chestloot = _root.save1.data.chestloot; _root.fagnusdead = _root.save1.data.fagnusdead; _root.bgone = _root.save1.data.bgone; _root.kobold1 = _root.save1.data.kobold1; _root.kobold2 = _root.save1.data.kobold2; _root.kobold3 = _root.save1.data.kobold3; _root.kobold4 = _root.save1.data.kobold4; _root.kobold5 = _root.save1.data.kobold5; _root.chiefdead = _root.save1.data.chiefdead; _root.lostone = _root.save1.data.lostone; _root.nightseq = _root.save1.data.nightseq; _root.talktochief = _root.save1.data.talktochief; _root.wolfmeat = _root.save1.data.wolfmeat; _root.tenderwolfmeat = _root.save1.data.tenderwolfmeat; _root.rewarddagger = _root.save1.data.rewarddagger; _root.gaveketchin = _root.save1.data.gaveketchin; _root.savekrakho = _root.save1.data.savekrakho; _root.getspices = _root.save1.data.getspices; _root.gofish = _root.save1.data.gofish; _root.fishcaught = _root.save1.data.fishcaught; _root.fishmsg = _root.save1.data.fishmsg; _root.talktolekon = _root.save1.data.talktolekon; _root.gottumq = _root.save1.data.gottumq; _root.gettails = _root.save1.data.gettails; _root.softbushytail = _root.save1.data.softbushytail; _root.princess = _root.save1.data.princess; _root.motherdead = _root.save1.data.motherdead; } else { _root.error('No save found.'); } } } button 645 { on (release) { gotoAndStop(1); } } movieClip 647 { frame 1 { stop(); } frame 2 { stop(); if (_root.save1.data.issave == true) { block1.level = 'Level ' + _root.save1.data.level; block1.zone = _root.save1.data.zone; block1.build = _root.save1.data.heroicstrike + _root.save1.data.bloodrage + _root.save1.data.pummel + _root.save1.data.charge + _root.save1.data.exec + _root.save1.data.cruelty + _root.save1.data.retaliation + _root.save1.data.coldblood + _root.save1.data.vigor + _root.save1.data.adr + ' Fury / ' + (_root.save1.data.renew + _root.save1.data.heal + _root.save1.data.markofthewild + _root.save1.data.powerwordshield + _root.save1.data.polymorph + _root.save1.data.lashofpain + _root.save1.data.drainlife + _root.save1.data.frostnova + _root.save1.data.bloodpact + _root.save1.data.pyroblast) + ' Magic'; } else { block1.gotoAndStop('empty'); } if (_root.save2.data.issave == true) { block2.level = 'Level ' + _root.save2.data.level; block2.zone = _root.save2.data.zone; block2.build = _root.save2.data.heroicstrike + _root.save2.data.bloodrage + _root.save2.data.pummel + _root.save2.data.charge + _root.save2.data.exec + _root.save2.data.cruelty + _root.save2.data.retaliation + _root.save2.data.coldblood + _root.save2.data.vigor + _root.save2.data.adr + ' Fury / ' + (_root.save2.data.renew + _root.save2.data.heal + _root.save2.data.markofthewild + _root.save2.data.powerwordshield + _root.save2.data.polymorph + _root.save2.data.lashofpain + _root.save2.data.drainlife + _root.save2.data.frostnova + _root.save2.data.bloodpact + _root.save2.data.pyroblast) + ' Magic'; } else { block2.gotoAndStop('empty'); } if (_root.save3.data.issave == true) { block3.level = 'Level ' + _root.save3.data.level; block3.zone = _root.save3.data.zone; block3.build = _root.save3.data.heroicstrike + _root.save3.data.bloodrage + _root.save3.data.pummel + _root.save3.data.charge + _root.save3.data.exec + _root.save3.data.cruelty + _root.save3.data.retaliation + _root.save3.data.coldblood + _root.save3.data.vigor + _root.save3.data.adr + ' Fury / ' + (_root.save3.data.renew + _root.save3.data.heal + _root.save3.data.markofthewild + _root.save3.data.powerwordshield + _root.save3.data.polymorph + _root.save3.data.lashofpain + _root.save3.data.drainlife + _root.save3.data.frostnova + _root.save3.data.bloodpact + _root.save3.data.pyroblast) + ' Magic'; } else { block3.gotoAndStop('empty'); } } instance block1 of movieClip 206 { onClipEvent (release) { sum = _root.save1m.data.heroicstrike + _root.save1m.data.bloodrage + _root.save1m.data.pummel + _root.save1m.data.charge + _root.save1m.data.exec + _root.save1m.data.cruelty + _root.save1m.data.retaliation + _root.save1m.data.coldblood + _root.save1m.data.vigor + _root.save1m.data.adr + (_root.save1m.data.renew + _root.save1m.data.heal + _root.save1m.data.markofthewild + _root.save1m.data.powerwordshield + _root.save1m.data.polymorph + _root.save1m.data.lashofpain + _root.save1m.data.drainlife + _root.save1m.data.frostnova + _root.save1m.data.bloodpact + _root.save1m.data.pyroblast); if (_root.save1m.data.level == sum + _root.save1m.data.talents) { if (_root.save1m.data.issave == true) { _root.gotoAndPlay('load1'); } } else { _root.hacks.gotoAndStop(2); } } } instance block2 of movieClip 206 { onClipEvent (release) { sum = _root.save2m.data.heroicstrike + _root.save2m.data.bloodrage + _root.save2m.data.pummel + _root.save2m.data.charge + _root.save2m.data.exec + _root.save2m.data.cruelty + _root.save2m.data.retaliation + _root.save2m.data.coldblood + _root.save2m.data.vigor + _root.save2m.data.adr + (_root.save2m.data.renew + _root.save2m.data.heal + _root.save2m.data.markofthewild + _root.save2m.data.powerwordshield + _root.save2m.data.polymorph + _root.save2m.data.lashofpain + _root.save2m.data.drainlife + _root.save2m.data.frostnova + _root.save2m.data.bloodpact + _root.save2m.data.pyroblast); if (_root.save2m.data.level == sum + _root.save2m.data.talents) { if (_root.save2m.data.issave == true) { _root.gotoAndPlay('load2'); } } else { _root.hacks.gotoAndStop(2); } } } instance block3 of movieClip 206 { onClipEvent (release) { sum = _root.save3m.data.heroicstrike + _root.save3m.data.bloodrage + _root.save3m.data.pummel + _root.save3m.data.charge + _root.save3m.data.exec + _root.save3m.data.cruelty + _root.save3m.data.retaliation + _root.save3m.data.coldblood + _root.save3m.data.vigor + _root.save3m.data.adr + (_root.save3m.data.renew + _root.save3m.data.heal + _root.save3m.data.markofthewild + _root.save3m.data.powerwordshield + _root.save3m.data.polymorph + _root.save3m.data.lashofpain + _root.save3m.data.drainlife + _root.save3m.data.frostnova + _root.save3m.data.bloodpact + _root.save3m.data.pyroblast); if (_root.save3m.data.level == sum + _root.save3m.data.talents) { if (_root.save3m.data.issave == true) { _root.gotoAndPlay('load3'); } } else { _root.hacks.gotoAndStop(2); } } } } button 651 { on (release) { gotoAndStop('controls'); } } button 656 { on (release) { gotoAndStop('general'); } } movieClip 667 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 674 { frame 1 { stop(); } frame 20 { gotoAndStop(1); } } // unknown tag 88 length 84 button 683 { on (rollOver) { str = 12; stam = 10; inte = 9; agi = 9; skill = 'Heroic Strike'; info = 'Warriors are the melee-centered class. These characters are as tough as nails and masters of weaponry and tactics. The special abilities of the warrior are naturally combat-oriented.'; } on (rollOut) { str = ''; stam = ''; inte = ''; agi = ''; skill = ''; } on (release) { _root.str = 12; _root.stam = 10; _root.inte = 9; _root.agi = 9; _root.hmaxhp += 10; _root.heroicstrike = 1; _root.freeze = false; gotoAndStop(1); } } button 688 { on (rollOver) { str = 10; stam = 9; inte = 9; agi = 12; skill = 'Cruelty'; info = 'At home in the shadows, the Rogues of Azeroth are most comfortable when acting in the background. Twisting events to their favor, striking only when advantage is greatest: this is where a Rogue excels.'; } on (rollOut) { str = ''; stam = ''; inte = ''; agi = ''; skill = ''; } on (release) { _root.str = 10; _root.stam = 9; _root.inte = 9; _root.agi = 12; _root.cruelty = 1; _root.hmaxen += 6; _root.freeze = false; gotoAndStop(1); } } button 693 { on (rollOver) { str = 9; stam = 12; inte = 10; agi = 9; skill = 'Mark of the Wild'; info = 'Priests lead the many faiths spread throughout the disparate lands of the world of Azeroth. In Kalimdor, Night Elf Priestesses revere the moon goddess Elune, while Dwarven priests in Khaz Modan deliver the message of the Light to their people.'; } on (rollOut) { str = ''; stam = ''; inte = ''; agi = ''; skill = ''; } on (release) { _root.str = 9; _root.stam = 12; _root.inte = 10; _root.agi = 9; _root.hmaxhp += 30; _root.markofthewild = 1; _root.freeze = false; gotoAndStop(1); } } button 698 { on (rollOver) { str = 9; stam = 9; inte = 12; agi = 10; skill = 'Lash of Pain'; info = 'The Mages of Warcraft once centered their powers within the mageocracy of Dalaran. After that kingdom\'s destruction by the Burning Legion, however, the arcane arts spread to the far corners of the world.'; } on (rollOut) { str = ''; stam = ''; inte = ''; agi = ''; skill = ''; } on (release) { _root.str = 9; _root.stam = 9; _root.inte = 12; _root.agi = 10; _root.lashofpain = 1; _root.hmaxen += 2; _root.freeze = false; gotoAndStop(1); } } // unknown tag 88 length 61 // unknown tag 88 length 78 button 715 { on (release) { _root.freeze = false; gotoAndStop(1); } } movieClip 716 { frame 1 { stop(); } frame 2 { stop(); } } instance tooltipbox of movieClip 246 { onClipEvent (load) { this._x = _root._xmouse; this._y = _root._ymouse; } onClipEvent (mouseMove) { this._x = _root._xmouse; this._y = _root._ymouse; updateAfterEvent(); } } movieClip 718 { frame 1 { stop(); } frame 2 { stopAllSounds(); } frame 4 { _root.setupbattle(_root.fenemy, _root.flevel); } } movieClip 719 { frame 1 { stop(); } frame 4 { _root.gotoAndStop(_root.fadedir); } } movieClip 722 { frame 1 { var zg_mango = Array(8); zg_mango[0] = 'miscfood42'; zg_mango[1] = 'Zul\'Gurub Mango'; zg_mango[2] = 'Food'; zg_mango[3] = 'Resets the energies of Zul\'Gurub.'; zg_mango[4] = 'null'; zg_mango[5] = 'purple'; zg_mango[6] = 1; zg_mango[7] = 0; var ref_kat = Array(8); ref_kat[0] = 'sword41'; ref_kat[1] = 'Reforged Katana'; ref_kat[2] = 'Sword'; ref_kat[3] = 5; ref_kat[4] = 14; ref_kat[5] = 'blue'; ref_kat[6] = 18; ref_kat[7] = 0; ref_kat[8] = 'str'; ref_kat[9] = 15; var sam_plate = Array(10); sam_plate[0] = 'chestchain17'; sam_plate[1] = 'Samurai Platebody'; sam_plate[2] = 'Chest'; sam_plate[3] = 570; sam_plate[4] = 0; sam_plate[5] = 'blue'; sam_plate[6] = 15; sam_plate[7] = 0; sam_plate[8] = 'stam'; sam_plate[9] = 24; var seal_ass = Array(8); seal_ass[0] = 'jewelrytalisman11'; seal_ass[1] = 'Seal of the Assassin'; seal_ass[2] = 'Ring'; seal_ass[3] = 0; seal_ass[4] = 'null'; seal_ass[5] = 'purple'; seal_ass[6] = 15; seal_ass[7] = 0; seal_ass[8] = 'agi'; seal_ass[9] = 25; var geish_kim = Array(10); geish_kim[0] = 'chestcloth59'; geish_kim[1] = 'Geisha\'s Silk Kimono'; geish_kim[2] = 'Chest'; geish_kim[3] = 85; geish_kim[4] = 0; geish_kim[5] = 'purple'; geish_kim[6] = 17; geish_kim[7] = 0; geish_kim[8] = 'agi'; geish_kim[9] = 50; var emp_shield = Array(8); emp_shield[0] = 'shield19'; emp_shield[1] = 'The Emperor\'s Shield'; emp_shield[2] = 'Shield'; emp_shield[3] = 5214; emp_shield[4] = 0; emp_shield[5] = 'orange'; emp_shield[6] = 20; emp_shield[7] = 0; emp_shield[8] = 'int'; emp_shield[9] = 15; var et_band = Array(8); et_band[0] = 'jewelryring14'; et_band[1] = 'Eternium Band'; et_band[2] = 'Ring'; et_band[3] = 0; et_band[4] = 'null'; et_band[5] = 'purple'; et_band[6] = 16; et_band[7] = 0; et_band[8] = 'int'; et_band[9] = 35; hl_choke = Array(10); hl_choke[0] = 'jewelrynecklace05'; hl_choke[1] = 'Hellfire Choker'; hl_choke[2] = 'Neck'; hl_choke[3] = 75; hl_choke[4] = 'null'; hl_choke[5] = 'green'; hl_choke[6] = 12; hl_choke[7] = 0; hl_choke[8] = 'stam'; hl_choke[9] = 8; var sh_brch = Array(10); sh_brch[0] = 'miscbranch01'; sh_brch[1] = 'Shimmerweed Branch'; sh_brch[2] = 'Trinket'; sh_brch[3] = 69; sh_brch[4] = 0; sh_brch[5] = 'green'; sh_brch[6] = 12; sh_brch[7] = 0; sh_brch[8] = 'int'; sh_brch[9] = 15; var dth_slay = Array(10); dth_slay[0] = 'weaponshortblade22'; dth_slay[1] = 'Deathslayer, Emerald Blade'; dth_slay[2] = 'Dagger'; dth_slay[3] = 9; dth_slay[4] = 16; dth_slay[5] = 'orange'; dth_slay[6] = 20; dth_slay[7] = 0; dth_slay[8] = 'str'; dth_slay[9] = 25; var drg_helm = Array(10); drg_helm[0] = 'mischeaddragon01'; drg_helm[1] = 'Dragonskull Helmet'; drg_helm[2] = 'Head'; drg_helm[3] = 400; drg_helm[4] = 0; drg_helm[5] = 'purple'; drg_helm[6] = 18; drg_helm[7] = 0; drg_helm[8] = 'str'; drg_helm[9] = 15; var gm_shield = Array(8); gm_shield[0] = 'shield05'; gm_shield[1] = 'Grand Marshal\'s Aegis'; gm_shield[2] = 'Shield'; gm_shield[3] = 2929; gm_shield[4] = 0; gm_shield[5] = 'purple'; gm_shield[6] = 20; gm_shield[7] = 120000; gm_shield[8] = 'stam'; gm_shield[9] = 23; var gm_stave = Array(8); gm_stave[0] = 'staff14'; gm_stave[1] = 'Grand Marshal\'s Stave'; gm_stave[2] = 'Staff'; gm_stave[3] = 6; gm_stave[4] = 11; gm_stave[5] = 'purple'; gm_stave[6] = 20; gm_stave[7] = 100000; gm_stave[8] = 'int'; gm_stave[9] = 45; var gm_dirk = Array(8); gm_dirk[0] = 'weaponshortblade26'; gm_dirk[1] = 'Grand Marshal\'s Dirk'; gm_dirk[2] = 'Dagger'; gm_dirk[3] = 6; gm_dirk[4] = 11; gm_dirk[5] = 'purple'; gm_dirk[6] = 20; gm_dirk[7] = 100000; gm_dirk[8] = 'agi'; gm_dirk[9] = 45; var gm_clay = Array(8); gm_clay[0] = 'sword39'; gm_clay[1] = 'Grand Marshal\'s Claymore'; gm_clay[2] = 'Sword'; gm_clay[3] = 10; gm_clay[4] = 15; gm_clay[5] = 'purple'; gm_clay[6] = 20; gm_clay[7] = 100000; gm_clay[8] = 'stam'; gm_clay[9] = 45; var wild_belt = Array(10); wild_belt[0] = 'belt15'; wild_belt[1] = 'Wildheart Belt'; wild_belt[2] = 'Waist'; wild_belt[3] = 93; wild_belt[4] = 0; wild_belt[5] = 'blue'; wild_belt[6] = 14; wild_belt[7] = 25432; wild_belt[8] = 'int'; wild_belt[9] = 17; var beasts_gloves = Array(10); beasts_gloves[0] = 'gauntlets10'; beasts_gloves[1] = 'Beaststalker\'s Gloves'; beasts_gloves[2] = 'Hands'; beasts_gloves[3] = 218; beasts_gloves[4] = 0; beasts_gloves[5] = 'blue'; beasts_gloves[6] = 14; beasts_gloves[7] = 21552; beasts_gloves[8] = 'stam'; beasts_gloves[9] = 15; var coif_elem = Array(10); coif_elem[0] = 'helmet04'; coif_elem[1] = 'Coif of Elements'; coif_elem[2] = 'Head'; coif_elem[3] = 297; coif_elem[4] = 0; coif_elem[5] = 'blue'; coif_elem[6] = 13; coif_elem[7] = 13918; coif_elem[8] = 'stam'; coif_elem[9] = 13; var dev_mantle = Array(10); dev_mantle[0] = 'shoulder23'; dev_mantle[1] = 'Devout Mantle'; dev_mantle[2] = 'Shoulder'; dev_mantle[3] = 64; dev_mantle[4] = 0; dev_mantle[5] = 'blue'; dev_mantle[6] = 12; dev_mantle[7] = 21214; dev_mantle[8] = 'int'; dev_mantle[9] = 21; var benediction = Array(10); benediction[0] = 'staff30'; benediction[1] = 'Benediction'; benediction[2] = 'Staff'; benediction[3] = 2; benediction[4] = 4; benediction[5] = 'purple'; benediction[6] = 13; benediction[7] = 42467; benediction[8] = 'int'; benediction[9] = 16; var emb_helm = Array(10); emb_helm[0] = 'helmet25'; emb_helm[1] = 'Embossed Plate Helmet'; emb_helm[2] = 'Head'; emb_helm[3] = 210; emb_helm[4] = 0; emb_helm[5] = 'green'; emb_helm[6] = 10; emb_helm[7] = 5964; emb_helm[8] = 'str'; emb_helm[9] = 3; var emb_chest = Array(10); emb_chest[0] = 'chestleather07'; emb_chest[1] = 'Embossed Plate Armor'; emb_chest[2] = 'Chest'; emb_chest[3] = 337; emb_chest[4] = 0; emb_chest[5] = 'green'; emb_chest[6] = 11; emb_chest[7] = 18743; emb_chest[8] = 'str'; emb_chest[9] = 6; var emb_legs = Array(10); emb_legs[0] = 'pants06'; emb_legs[1] = 'Embossed Plate Leggings'; emb_legs[2] = 'Legs'; emb_legs[3] = 275; emb_legs[4] = 0; emb_legs[5] = 'green'; emb_legs[6] = 11; emb_legs[7] = 13632; emb_legs[8] = 'str'; emb_legs[9] = 5; var emb_belt = Array(10); emb_belt[0] = 'belt11'; emb_belt[1] = 'Embossed Plate Girdle'; emb_belt[2] = 'Waist'; emb_belt[3] = 91; emb_belt[4] = 0; emb_belt[5] = 'green'; emb_belt[6] = 10; emb_belt[7] = 5432; var emb_gloves = Array(10); emb_gloves[0] = 'gauntlets23'; emb_gloves[1] = 'Embossed Plate Gauntlets'; emb_gloves[2] = 'Hands'; emb_gloves[3] = 139; emb_gloves[4] = 0; emb_gloves[5] = 'green'; emb_gloves[6] = 10; emb_gloves[7] = 5722; var emb_boots = Array(10); emb_boots[0] = 'bootsplate07'; emb_boots[1] = 'Embossed Plate Boots'; emb_boots[2] = 'Feet'; emb_boots[3] = 133; emb_boots[4] = 0; emb_boots[5] = 'green'; emb_boots[6] = 11; emb_boots[7] = 11421; emb_boots[8] = 'str'; emb_boots[9] = 4; var emb_bracers = Array(10); emb_bracers[0] = 'bracer03'; emb_bracers[1] = 'Embossed Plate Bracers'; emb_bracers[2] = 'Wrist'; emb_bracers[3] = 78; emb_bracers[4] = 0; emb_bracers[5] = 'green'; emb_bracers[6] = 10; emb_bracers[7] = 3432; var emb_should = Array(10); emb_should[0] = 'shoulder23'; emb_should[1] = 'Embossed Plate Pauldrons'; emb_should[2] = 'Shoulder'; emb_should[3] = 186; emb_should[4] = 0; emb_should[5] = 'green'; emb_should[6] = 11; emb_should[7] = 15337; emb_should[8] = 'str'; emb_should[9] = 4; var emb_shield = Array(8); emb_shield[0] = 'shield05'; emb_shield[1] = 'Embossed Plate Shield'; emb_shield[2] = 'Shield'; emb_shield[3] = 675; emb_shield[4] = 'null'; emb_shield[5] = 'green'; emb_shield[6] = 12; emb_shield[7] = 20724; emb_shield[8] = 'str'; emb_shield[9] = 2; var lf_belt = Array(10); lf_belt[0] = 'belt11'; lf_belt[1] = 'Lightforge Belt'; lf_belt[2] = 'Waist'; lf_belt[3] = 341; lf_belt[4] = 0; lf_belt[5] = 'blue'; lf_belt[6] = 15; lf_belt[7] = 0; lf_belt[8] = 'stam'; lf_belt[9] = 9; var lf_boots = Array(10); lf_boots[0] = 'bootsplate03'; lf_boots[1] = 'Lightforge Boots'; lf_boots[2] = 'Feet'; lf_boots[3] = 424; lf_boots[4] = 0; lf_boots[5] = 'blue'; lf_boots[6] = 15; lf_boots[7] = 0; lf_boots[8] = 'stam'; lf_boots[9] = 18; var lf_bracers = Array(10); lf_bracers[0] = 'bracer14'; lf_bracers[1] = 'Lightforge Bracers'; lf_bracers[2] = 'Wrist'; lf_bracers[3] = 261; lf_bracers[4] = 0; lf_bracers[5] = 'blue'; lf_bracers[6] = 15; lf_bracers[7] = 0; lf_bracers[8] = 'stam'; lf_bracers[9] = 10; var lf_bplate = Array(10); lf_bplate[0] = 'chestplate03'; lf_bplate[1] = 'Lightforge Breastplate'; lf_bplate[2] = 'Chest'; lf_bplate[3] = 657; lf_bplate[4] = 0; lf_bplate[5] = 'blue'; lf_bplate[6] = 15; lf_bplate[7] = 0; lf_bplate[8] = 'stam'; lf_bplate[9] = 21; var lf_gloves = Array(10); lf_gloves[0] = 'gauntlets19'; lf_gloves[1] = 'Lightforge Gauntlets'; lf_gloves[2] = 'Hands'; lf_gloves[3] = 386; lf_gloves[4] = 0; lf_gloves[5] = 'blue'; lf_gloves[6] = 15; lf_gloves[7] = 0; lf_gloves[8] = 'stam'; lf_gloves[9] = 9; var lf_helm = Array(10); lf_helm[0] = 'helmet08'; lf_helm[1] = 'Lightforge Helm'; lf_helm[2] = 'Head'; lf_helm[3] = 526; lf_helm[4] = 0; lf_helm[5] = 'blue'; lf_helm[6] = 15; lf_helm[7] = 0; lf_helm[8] = 'stam'; lf_helm[9] = 20; var lf_legs = Array(10); lf_legs[0] = 'pants04'; lf_legs[1] = 'Lightforge Legplates'; lf_legs[2] = 'Legs'; lf_legs[3] = 557; lf_legs[4] = 0; lf_legs[5] = 'blue'; lf_legs[6] = 15; lf_legs[7] = 0; lf_legs[8] = 'stam'; lf_legs[9] = 14; var lf_should = Array(10); lf_should[0] = 'shoulder10'; lf_should[1] = 'Lightforge Spaulders'; lf_should[2] = 'Shoulder'; lf_should[3] = 470; lf_should[4] = 0; lf_should[5] = 'blue'; lf_should[6] = 15; lf_should[7] = 0; lf_should[8] = 'stam'; lf_should[9] = 15; var mag_belt = Array(10); mag_belt[0] = 'belt08'; mag_belt[1] = 'Magister\'s Belt'; mag_belt[2] = 'Waist'; mag_belt[3] = 46; mag_belt[4] = 0; mag_belt[5] = 'blue'; mag_belt[6] = 15; mag_belt[7] = 0; mag_belt[8] = 'int'; mag_belt[9] = 21; var mag_bind = Array(10); mag_bind[0] = 'jewelryring23'; mag_bind[1] = 'Magister\'s Bindings'; mag_bind[2] = 'Wrist'; mag_bind[3] = 35; mag_bind[4] = 0; mag_bind[5] = 'blue'; mag_bind[6] = 15; mag_bind[7] = 0; mag_bind[8] = 'int'; mag_bind[9] = 15; var mag_boots = Array(10); mag_boots[0] = 'boots02'; mag_boots[1] = 'Magister\'s Boots'; mag_boots[2] = 'Feet'; mag_boots[3] = 58; mag_boots[4] = 0; mag_boots[5] = 'blue'; mag_boots[6] = 15; mag_boots[7] = 0; mag_boots[8] = 'int'; mag_boots[9] = 14; var mag_crown = Array(10); mag_crown[0] = 'crown02'; mag_crown[1] = 'Magister\'s Crown'; mag_crown[2] = 'Head'; mag_crown[3] = 71; mag_crown[4] = 0; mag_crown[5] = 'blue'; mag_crown[6] = 15; mag_crown[7] = 0; mag_crown[8] = 'int'; mag_crown[9] = 30; var mag_gloves = Array(10); mag_gloves[0] = 'gauntlets17'; mag_gloves[1] = 'Magister\'s Gloves'; mag_gloves[2] = 'Hands'; mag_gloves[3] = 52; mag_gloves[4] = 0; mag_gloves[5] = 'blue'; mag_gloves[6] = 15; mag_gloves[7] = 0; mag_gloves[8] = 'int'; mag_gloves[9] = 14; var mag_legs = Array(10); mag_legs[0] = 'pants06'; mag_legs[1] = 'Magister\'s Leggings'; mag_legs[2] = 'Legs'; mag_legs[3] = 76; mag_legs[4] = 0; mag_legs[5] = 'blue'; mag_legs[6] = 15; mag_legs[7] = 0; mag_legs[8] = 'int'; mag_legs[9] = 20; var mag_mantle = Array(10); mag_mantle[0] = 'shoulder23'; mag_mantle[1] = 'Magister\'s Mantle'; mag_mantle[2] = 'Shoulder'; mag_mantle[3] = 64; mag_mantle[4] = 0; mag_mantle[5] = 'blue'; mag_mantle[6] = 15; mag_mantle[7] = 0; mag_mantle[8] = 'int'; mag_mantle[9] = 22; var mag_robe = Array(10); mag_robe[0] = 'chestcloth25'; mag_robe[1] = 'Magister\'s Robes'; mag_robe[2] = 'Chest'; mag_robe[3] = 89; mag_robe[4] = 0; mag_robe[5] = 'blue'; mag_robe[6] = 15; mag_robe[7] = 0; mag_robe[8] = 'int'; mag_robe[9] = 31; var sc_belt = Array(10); sc_belt[0] = 'belt03'; sc_belt[1] = 'Shadowcraft Belt'; sc_belt[2] = 'Waist'; sc_belt[3] = 93; sc_belt[4] = 0; sc_belt[5] = 'blue'; sc_belt[6] = 15; sc_belt[7] = 0; sc_belt[8] = 'agi'; sc_belt[9] = 14; var sc_boots = Array(10); sc_boots[0] = 'boots08'; sc_boots[1] = 'Shadowcraft Boots'; sc_boots[2] = 'Feet'; sc_boots[3] = 115; sc_boots[4] = 0; sc_boots[5] = 'blue'; sc_boots[6] = 15; sc_boots[7] = 0; sc_boots[8] = 'agi'; sc_boots[9] = 21; var sc_bracers = Array(10); sc_bracers[0] = 'bracer07'; sc_bracers[1] = 'Shadowcraft Bracers'; sc_bracers[2] = 'Wrist'; sc_bracers[3] = 71; sc_bracers[4] = 0; sc_bracers[5] = 'blue'; sc_bracers[6] = 15; sc_bracers[7] = 0; sc_bracers[8] = 'agi'; sc_bracers[9] = 15; var sc_cap = Array(10); sc_cap[0] = 'helmet41'; sc_cap[1] = 'Shadowcraft Cap'; sc_cap[2] = 'Head'; sc_cap[3] = 141; sc_cap[4] = 0; sc_cap[5] = 'blue'; sc_cap[6] = 15; sc_cap[7] = 0; sc_cap[8] = 'agi'; sc_cap[9] = 20; var sc_gloves = Array(10); sc_gloves[0] = 'gauntlets24'; sc_gloves[1] = 'Shadowcraft Gloves'; sc_gloves[2] = 'Hands'; sc_gloves[3] = 105; sc_gloves[4] = 0; sc_gloves[5] = 'blue'; sc_gloves[6] = 15; sc_gloves[7] = 0; sc_gloves[8] = 'agi'; sc_gloves[9] = 14; var sc_pants = Array(10); sc_pants[0] = 'pants02'; sc_pants[1] = 'Shadowcraft Pants'; sc_pants[2] = 'Legs'; sc_pants[3] = 150; sc_pants[4] = 0; sc_pants[5] = 'blue'; sc_pants[6] = 15; sc_pants[7] = 0; sc_pants[8] = 'agi'; sc_pants[9] = 25; var sc_should = Array(10); sc_should[0] = 'shoulder07'; sc_should[1] = 'Shadowcraft Spaulders'; sc_should[2] = 'Shoulder'; sc_should[3] = 127; sc_should[4] = 0; sc_should[5] = 'blue'; sc_should[6] = 15; sc_should[7] = 0; sc_should[8] = 'agi'; sc_should[9] = 22; var sc_tunic = Array(10); sc_tunic[0] = 'chestleather07'; sc_tunic[1] = 'Shadowcraft Tunic'; sc_tunic[2] = 'Chest'; sc_tunic[3] = 176; sc_tunic[4] = 0; sc_tunic[5] = 'blue'; sc_tunic[6] = 15; sc_tunic[7] = 0; sc_tunic[8] = 'agi'; sc_tunic[9] = 26; var bld_tal = Array(10); bld_tal[0] = 'blooddrop'; bld_tal[1] = 'Blood Talisman'; bld_tal[2] = 'Trinket'; bld_tal[3] = 5; bld_tal[4] = 0; bld_tal[5] = 'purple'; bld_tal[6] = 20; bld_tal[7] = 550000; bld_tal[8] = 'stam'; bld_tal[9] = 4; var rune_duty = Array(10); rune_duty[0] = 'miscrune2'; rune_duty[1] = 'Rune of Duty'; rune_duty[2] = 'Trinket'; rune_duty[3] = 20; rune_duty[4] = 0; rune_duty[5] = 'blue'; rune_duty[6] = 8; rune_duty[7] = 0; rune_duty[8] = 'stam'; rune_duty[9] = 7; var per_blade = Array(10); per_blade[0] = 'sword48'; per_blade[1] = 'Perdition\'s Blade'; per_blade[2] = 'Dagger'; per_blade[3] = 3; per_blade[4] = 5; per_blade[5] = 'purple'; per_blade[6] = 12; per_blade[7] = 141220; per_blade[8] = 'agi'; per_blade[9] = 17; var ass_blade = Array(10); ass_blade[0] = 'shortblade24'; ass_blade[1] = 'Assassin\'s Blade'; ass_blade[2] = 'Dagger'; ass_blade[3] = 3; ass_blade[4] = 5; ass_blade[5] = 'blue'; ass_blade[6] = 5; ass_blade[7] = 0; ass_blade[8] = 'str'; ass_blade[9] = 3; var worn_dagger = Array(8); worn_dagger[0] = 'shortblade05'; worn_dagger[1] = 'Worn Dagger'; worn_dagger[2] = 'Dagger'; worn_dagger[3] = 1; worn_dagger[4] = 2; worn_dagger[5] = 'white'; worn_dagger[6] = 1; worn_dagger[7] = 0; var ferocious_fang = Array(8); ferocious_fang[0] = 'miscmonsterfang01'; ferocious_fang[1] = 'Ferocious Fang'; ferocious_fang[2] = 'Dagger'; ferocious_fang[3] = 2; ferocious_fang[4] = 4; ferocious_fang[5] = 'green'; ferocious_fang[6] = 4; ferocious_fang[7] = 110; var stingy = Array(8); stingy[0] = 'shortblade06'; stingy[1] = 'Stingy'; stingy[2] = 'Dagger'; stingy[3] = 3; stingy[4] = 5; stingy[5] = 'blue'; stingy[6] = 5; stingy[7] = 10329; var fang_ven = Array(8); fang_ven[0] = 'shortblade31'; fang_ven[1] = 'Fang of Venoxis'; fang_ven[2] = 'Dagger'; fang_ven[3] = 4; fang_ven[4] = 6; fang_ven[5] = 'purple'; fang_ven[6] = 15; fang_ven[7] = 81895; fang_ven[8] = 'int'; fang_ven[9] = 8; var ashkandi = Array(8); ashkandi[0] = 'sword50'; ashkandi[1] = 'Ashkandi, the Greatsword'; ashkandi[2] = 'Sword'; ashkandi[3] = 9; ashkandi[4] = 13; ashkandi[5] = 'purple'; ashkandi[6] = 20; ashkandi[7] = 423167; ashkandi[8] = 'str'; ashkandi[9] = 160; var destiny = Array(8); destiny[0] = 'sword19'; destiny[1] = 'Destiny'; destiny[2] = 'Sword'; destiny[3] = 3; destiny[4] = 6; destiny[5] = 'purple'; destiny[6] = 10; destiny[7] = 103421; destiny[8] = 'str'; destiny[9] = 7; var zinrokh = Array(8); zinrokh[0] = 'sword55'; zinrokh[1] = 'Zin\'rokh, Destroyer of Worlds'; zinrokh[2] = 'Sword'; zinrokh[3] = 7; zinrokh[4] = 10; zinrokh[5] = 'purple'; zinrokh[6] = 20; zinrokh[7] = 123502; zinrokh[8] = 'stam'; zinrokh[9] = 28; var worn_shortsword = Array(8); worn_shortsword[0] = 'sword04'; worn_shortsword[1] = 'Worn Shortsword'; worn_shortsword[2] = 'Sword'; worn_shortsword[3] = 1; worn_shortsword[4] = 3; worn_shortsword[5] = 'white'; worn_shortsword[6] = 2; worn_shortsword[7] = 7; var sulfuras = Array(8); sulfuras[0] = 'sulfuras'; sulfuras[1] = 'Sulfuras, Hand of Ragnaros'; sulfuras[2] = 'Mace'; sulfuras[3] = 223; sulfuras[4] = 372; sulfuras[5] = 'orange'; sulfuras[6] = 1; sulfuras[7] = 332623; var candlestick = Array(8); candlestick[0] = 'misccandle03'; candlestick[1] = 'Large Candlestick'; candlestick[2] = 'Mace'; candlestick[3] = 5; candlestick[4] = 7; candlestick[5] = 'purple'; candlestick[6] = 8; candlestick[7] = 91345; var worn_mace = Array(8); worn_mace[0] = 'mace03'; worn_mace[1] = 'Worn Mace'; worn_mace[2] = 'Mace'; worn_mace[3] = 1; worn_mace[4] = 3; worn_mace[5] = 'white'; worn_mace[6] = 2; worn_mace[7] = 7; var battleworn_hammer = Array(8); battleworn_hammer[0] = 'hammer15'; battleworn_hammer[1] = 'Battleworn Hammer'; battleworn_hammer[2] = 'Mace'; battleworn_hammer[3] = 2; battleworn_hammer[4] = 3; battleworn_hammer[5] = 'white'; battleworn_hammer[6] = 2; battleworn_hammer[7] = 9; var zul_def = Array(8); zul_def[0] = 'shield22'; zul_def[1] = 'Zulian Defender'; zul_def[2] = 'Shield'; zul_def[3] = 2312; zul_def[4] = 'null'; zul_def[5] = 'blue'; zul_def[6] = 15; zul_def[7] = 48826; zul_def[8] = 'stam'; zul_def[9] = 13; var dwarven_kite_shield = Array(8); dwarven_kite_shield[0] = 'shield04'; dwarven_kite_shield[1] = 'Dwarven Kite Shield'; dwarven_kite_shield[2] = 'Shield'; dwarven_kite_shield[3] = 55; dwarven_kite_shield[4] = 'null'; dwarven_kite_shield[5] = 'white'; dwarven_kite_shield[6] = 5; dwarven_kite_shield[7] = 15; var small_shield = Array(8); small_shield[0] = 'shield09'; small_shield[1] = 'Small Shield'; small_shield[2] = 'Shield'; small_shield[3] = 29; small_shield[4] = 'null'; small_shield[5] = 'white'; small_shield[6] = 3; small_shield[7] = 20; var dented_buckler = Array(8); dented_buckler[0] = 'shield09'; dented_buckler[1] = 'Dented Buckler'; dented_buckler[2] = 'Shield'; dented_buckler[3] = 29; dented_buckler[4] = 'null'; dented_buckler[5] = 'white'; dented_buckler[6] = 3; dented_buckler[7] = 20; var worn_wooden_shield = Array(8); worn_wooden_shield[0] = 'shield09'; worn_wooden_shield[1] = 'Worn Wooden Shield'; worn_wooden_shield[2] = 'Shield'; worn_wooden_shield[3] = 5; worn_wooden_shield[4] = 'null'; worn_wooden_shield[5] = 'white'; worn_wooden_shield[6] = 1; worn_wooden_shield[7] = 3; var battered_buckler = Array(8); battered_buckler[0] = 'shield09'; battered_buckler[1] = 'Battered Buckler'; battered_buckler[2] = 'Shield'; battered_buckler[3] = 12; battered_buckler[4] = 'null'; battered_buckler[5] = 'white'; battered_buckler[6] = 2; battered_buckler[7] = 1; var bent_large_shield = Array(8); bent_large_shield[0] = 'shield09'; bent_large_shield[1] = 'Bent Large Shield'; bent_large_shield[2] = 'Shield'; bent_large_shield[3] = 32; bent_large_shield[4] = 'null'; bent_large_shield[5] = 'white'; bent_large_shield[6] = 4; bent_large_shield[7] = 7; var hide_of_the_princess = Array(8); hide_of_the_princess[0] = 'miscleatherscrap01'; hide_of_the_princess[1] = 'Hide of the Princess'; hide_of_the_princess[2] = 'Shield'; hide_of_the_princess[3] = 163; hide_of_the_princess[4] = 'null'; hide_of_the_princess[5] = 'blue'; hide_of_the_princess[6] = 6; hide_of_the_princess[7] = 804; var zand_bplate = Array(10); zand_bplate[0] = 'chestplate07'; zand_bplate[1] = 'Zandalar Vindicator\'s Plate'; zand_bplate[2] = 'Chest'; zand_bplate[3] = 828; zand_bplate[5] = 'purple'; zand_bplate[6] = 16; zand_bplate[7] = 260000; zand_bplate[8] = 'str'; zand_bplate[9] = 23; var zand_tunic = Array(10); zand_tunic[0] = 'chestleather10'; zand_tunic[1] = 'Zandalar Madcap\'s Tunic'; zand_tunic[2] = 'Chest'; zand_tunic[3] = 197; zand_tunic[5] = 'purple'; zand_tunic[6] = 16; zand_tunic[7] = 220000; zand_tunic[8] = 'agi'; zand_tunic[9] = 31; var zand_robe = Array(10); zand_robe[0] = 'chestcloth12'; zand_robe[1] = 'Zandalar Illusionist\'s Robe'; zand_robe[2] = 'Chest'; zand_robe[3] = 100; zand_robe[5] = 'purple'; zand_robe[6] = 16; zand_robe[7] = 210000; zand_robe[8] = 'int'; zand_robe[9] = 32; var flow_robe = Array(10); flow_robe[0] = 'chestcloth25'; flow_robe[1] = 'Flowing Ritual Robes'; flow_robe[2] = 'Chest'; flow_robe[3] = 100; flow_robe[4] = 'null'; flow_robe[5] = 'purple'; flow_robe[6] = 18; flow_robe[7] = 32257; flow_robe[8] = 'int'; flow_robe[9] = 28; var layered_tunic = Array(8); layered_tunic[0] = 'chestleather09'; layered_tunic[1] = 'Layered Tunic'; layered_tunic[2] = 'Chest'; layered_tunic[3] = 33; layered_tunic[4] = 'null'; layered_tunic[5] = 'white'; layered_tunic[6] = 5; layered_tunic[7] = 12; var frayed_robe = Array(8); frayed_robe[0] = 'chestcloth21'; frayed_robe[1] = 'Frayed Robe'; frayed_robe[2] = 'Chest'; frayed_robe[3] = 8; frayed_robe[4] = 'null'; frayed_robe[5] = 'white'; frayed_robe[6] = 4; frayed_robe[7] = 4; var old_rag = Array(8); old_rag[0] = 'shirt05'; old_rag[1] = 'Old Rag'; old_rag[2] = 'Chest'; old_rag[3] = 1; old_rag[4] = 'null'; old_rag[5] = 'white'; old_rag[6] = 1; old_rag[7] = 1; var rough_croc_hide_vest = Array(8); rough_croc_hide_vest[0] = 'chestplate07'; rough_croc_hide_vest[1] = 'Rough Croc Hide Vest'; rough_croc_hide_vest[2] = 'Chest'; rough_croc_hide_vest[3] = 113; rough_croc_hide_vest[4] = 'null'; rough_croc_hide_vest[5] = 'green'; rough_croc_hide_vest[6] = 6; rough_croc_hide_vest[7] = 421; var tarnished_vest = Array(8); tarnished_vest[0] = 'chestchain'; tarnished_vest[1] = 'Tarnished Chain Vest'; tarnished_vest[2] = 'Chest'; tarnished_vest[3] = 67; tarnished_vest[4] = 'null'; tarnished_vest[5] = 'white'; tarnished_vest[6] = 5; tarnished_vest[7] = 35; var barkmail_vest = Array(8); barkmail_vest[0] = 'chestchain'; barkmail_vest[1] = 'Barkmail Vest'; barkmail_vest[2] = 'Chest'; barkmail_vest[3] = 67; barkmail_vest[4] = 'null'; barkmail_vest[5] = 'white'; barkmail_vest[6] = 5; barkmail_vest[7] = 14; var brawlers_harness = Array(8); brawlers_harness[0] = 'chestleather04'; brawlers_harness[1] = 'Brawler\'s Harness'; brawlers_harness[2] = 'Chest'; brawlers_harness[3] = 2; brawlers_harness[4] = 'null'; brawlers_harness[5] = 'white'; brawlers_harness[6] = 1; brawlers_harness[7] = 1; var novices_robe = Array(8); novices_robe[0] = 'chestcloth13'; novices_robe[1] = 'Novice\'s Robe'; novices_robe[2] = 'Chest'; novices_robe[3] = 3; novices_robe[4] = 'null'; novices_robe[5] = 'white'; novices_robe[6] = 1; novices_robe[7] = 1; var frostmane_leather_vest = Array(8); frostmane_leather_vest[0] = 'chestwolf'; frostmane_leather_vest[1] = 'Frostmane Leather Vest'; frostmane_leather_vest[2] = 'Chest'; frostmane_leather_vest[3] = 29; frostmane_leather_vest[4] = 'null'; frostmane_leather_vest[5] = 'white'; frostmane_leather_vest[6] = 4; frostmane_leather_vest[7] = 8; var tarnished_legs = Array(8); tarnished_legs[0] = 'pants03'; tarnished_legs[1] = 'Tarnished Chain Leggings'; tarnished_legs[2] = 'Legs'; tarnished_legs[3] = 58; tarnished_legs[4] = 'null'; tarnished_legs[5] = 'white'; tarnished_legs[6] = 5; tarnished_legs[7] = 28; var battleworn_chain_leggings = Array(8); battleworn_chain_leggings[0] = 'pants03'; battleworn_chain_leggings[1] = 'Battleworn Chain Leggings'; battleworn_chain_leggings[2] = 'Legs'; battleworn_chain_leggings[3] = 58; battleworn_chain_leggings[4] = 'null'; battleworn_chain_leggings[5] = 'white'; battleworn_chain_leggings[6] = 5; battleworn_chain_leggings[7] = 14; var brawlers_pants = Array(8); brawlers_pants[0] = 'pants02'; brawlers_pants[1] = 'Brawler\'s Pants'; brawlers_pants[2] = 'Legs'; brawlers_pants[3] = 2; brawlers_pants[4] = 'null'; brawlers_pants[5] = 'white'; brawlers_pants[6] = 1; brawlers_pants[7] = 1; var flimsy_chain_pants = Array(8); flimsy_chain_pants[0] = 'pants03'; flimsy_chain_pants[1] = 'Flimsy Chain Pants'; flimsy_chain_pants[2] = 'Legs'; flimsy_chain_pants[3] = 37; flimsy_chain_pants[4] = 'null'; flimsy_chain_pants[5] = 'white'; flimsy_chain_pants[6] = 2; flimsy_chain_pants[7] = 2; var frayed_pants = Array(8); frayed_pants[0] = 'pants09'; frayed_pants[1] = 'Frayed Pants'; frayed_pants[2] = 'Legs'; frayed_pants[3] = 4; frayed_pants[4] = 'null'; frayed_pants[5] = 'white'; frayed_pants[6] = 2; frayed_pants[7] = 1; var ragged_leather_pants = Array(8); ragged_leather_pants[0] = 'pants06'; ragged_leather_pants[1] = 'Ragged Leather Pants'; ragged_leather_pants[2] = 'Legs'; ragged_leather_pants[3] = 17; ragged_leather_pants[4] = 'null'; ragged_leather_pants[5] = 'white'; ragged_leather_pants[6] = 2; ragged_leather_pants[7] = 2; var primitive_kilt = Array(8); primitive_kilt[0] = 'pants02'; primitive_kilt[1] = 'Primitive Kilt'; primitive_kilt[2] = 'Legs'; primitive_kilt[3] = 14; primitive_kilt[4] = 'null'; primitive_kilt[5] = 'white'; primitive_kilt[6] = 1; primitive_kilt[7] = 1; var webbed_pants = Array(8); webbed_pants[0] = 'pants02'; webbed_pants[1] = 'Webbed Pants'; webbed_pants[2] = 'Legs'; webbed_pants[3] = 6; webbed_pants[4] = 'null'; webbed_pants[5] = 'white'; webbed_pants[6] = 3; webbed_pants[7] = 4; var foror_patch = Array(8); foror_patch[0] = 'helmet46'; foror_patch[1] = 'Foror\'s Eyepatch'; foror_patch[2] = 'Head'; foror_patch[3] = 160; foror_patch[4] = 'null'; foror_patch[5] = 'purple'; foror_patch[6] = 14; foror_patch[7] = 39036; foror_patch[8] = 'agi'; foror_patch[9] = 30; var lucky_fishing_hat = Array(8); lucky_fishing_hat[0] = 'helmet31'; lucky_fishing_hat[1] = 'Lucky Fishing Hat'; lucky_fishing_hat[2] = 'Head'; lucky_fishing_hat[3] = 48; lucky_fishing_hat[4] = 'null'; lucky_fishing_hat[5] = 'green'; lucky_fishing_hat[6] = 5; lucky_fishing_hat[7] = 103; var blood_greaves = Array(8); blood_greaves[0] = 'bootsplate06'; blood_greaves[1] = 'Bloodsoaked Greaves'; blood_greaves[2] = 'Feet'; blood_greaves[3] = 486; blood_greaves[4] = 'null'; blood_greaves[5] = 'blue'; blood_greaves[6] = 24; blood_greaves[7] = 22142; blood_greaves[8] = 'stam'; blood_greaves[9] = 25; var tracking_boots = Array(8); tracking_boots[0] = 'boots01'; tracking_boots[1] = 'Tracking Boots'; tracking_boots[2] = 'Feet'; tracking_boots[3] = 46; tracking_boots[4] = 'null'; tracking_boots[5] = 'white'; tracking_boots[6] = 5; tracking_boots[7] = 11; var tarnished_chain_boots = Array(8); tarnished_chain_boots[0] = 'boots01'; tarnished_chain_boots[1] = 'Tarnished Chain Boots'; tarnished_chain_boots[2] = 'Feet'; tarnished_chain_boots[3] = 46; tarnished_chain_boots[4] = 'null'; tarnished_chain_boots[5] = 'white'; tarnished_chain_boots[6] = 5; tarnished_chain_boots[7] = 11; var brawlers_boots = Array(8); brawlers_boots[0] = 'boots04'; brawlers_boots[1] = 'Brawler\'s Boots'; brawlers_boots[2] = 'Feet'; brawlers_boots[3] = 1; brawlers_boots[4] = 'null'; brawlers_boots[5] = 'white'; brawlers_boots[6] = 1; brawlers_boots[7] = 1; var frayed_shoes = Array(8); frayed_shoes[0] = 'boots09'; frayed_shoes[1] = 'Frayed Shoes'; frayed_shoes[2] = 'Feet'; frayed_shoes[3] = 5; frayed_shoes[4] = 'null'; frayed_shoes[5] = 'white'; frayed_shoes[6] = 4; frayed_shoes[7] = 3; var flimsy_chain_boots = Array(8); flimsy_chain_boots[0] = 'boots01'; flimsy_chain_boots[1] = 'Flimsy Chain Boots'; flimsy_chain_boots[2] = 'Feet'; flimsy_chain_boots[3] = 34; flimsy_chain_boots[4] = 'null'; flimsy_chain_boots[5] = 'white'; flimsy_chain_boots[6] = 3; flimsy_chain_boots[7] = 3; var ragged_leather_boots = Array(8); ragged_leather_boots[0] = 'boots06'; ragged_leather_boots[1] = 'Ragged Leather Boots'; ragged_leather_boots[2] = 'Feet'; ragged_leather_boots[3] = 16; ragged_leather_boots[4] = 'null'; ragged_leather_boots[5] = 'white'; ragged_leather_boots[6] = 3; ragged_leather_boots[7] = 2; var lav_ring = Array(8); lav_ring[0] = 'jewelryring09'; lav_ring[1] = 'Lavishly Jeweled Ring'; lav_ring[2] = 'Ring'; lav_ring[3] = 0; lav_ring[4] = 'null'; lav_ring[5] = 'blue'; lav_ring[6] = 11; lav_ring[7] = 55035; lav_ring[8] = 'int'; lav_ring[9] = 7; var seal_jin = Array(8); seal_jin[0] = 'jewelryring44'; seal_jin[1] = 'Seal of Jin'; seal_jin[2] = 'Ring'; seal_jin[3] = 5; seal_jin[4] = 'null'; seal_jin[5] = 'blue'; seal_jin[6] = 20; seal_jin[7] = 55035; seal_jin[8] = 'agi'; seal_jin[9] = 23; var the_1_ring = Array(8); the_1_ring[0] = 'jewelryring03'; the_1_ring[1] = 'The 1 Ring'; the_1_ring[2] = 'Ring'; the_1_ring[3] = 15; the_1_ring[4] = 'null'; the_1_ring[5] = 'green'; the_1_ring[6] = 1; the_1_ring[7] = 1; var tarnished_chain_belt = Array(8); tarnished_chain_belt[0] = 'belt06'; tarnished_chain_belt[1] = 'Tarnished Chain Belt'; tarnished_chain_belt[2] = 'Waist'; tarnished_chain_belt[3] = 38; tarnished_chain_belt[4] = 'null'; tarnished_chain_belt[5] = 'white'; tarnished_chain_belt[6] = 5; tarnished_chain_belt[7] = 7; var blackened_leather_belt = Array(8); blackened_leather_belt[0] = 'belt03'; blackened_leather_belt[1] = 'Blackened Leather Belt'; blackened_leather_belt[2] = 'Waist'; blackened_leather_belt[3] = 19; blackened_leather_belt[4] = 'null'; blackened_leather_belt[5] = 'white'; blackened_leather_belt[6] = 5; blackened_leather_belt[7] = 6; var flax_belt = Array(8); flax_belt[0] = 'belt03'; flax_belt[1] = 'Flax Belt'; flax_belt[2] = 'Waist'; flax_belt[3] = 6; flax_belt[4] = 'null'; flax_belt[5] = 'white'; flax_belt[6] = 5; flax_belt[7] = 5; var flimsy_chain_belt = Array(8); flimsy_chain_belt[0] = 'belt06'; flimsy_chain_belt[1] = 'Flimsy Chain Belt'; flimsy_chain_belt[2] = 'Waist'; flimsy_chain_belt[3] = 24; flimsy_chain_belt[4] = 'null'; flimsy_chain_belt[5] = 'white'; flimsy_chain_belt[6] = 2; flimsy_chain_belt[7] = 1; var frayed_belt = Array(8); frayed_belt[0] = 'belt04'; frayed_belt[1] = 'Frayed Belt'; frayed_belt[2] = 'Waist'; frayed_belt[3] = 3; frayed_belt[4] = 'null'; frayed_belt[5] = 'white'; frayed_belt[6] = 3; frayed_belt[7] = 1; var battleworn_leather_gloves = Array(8); battleworn_leather_gloves[0] = 'gauntlets05'; battleworn_leather_gloves[1] = 'Battleworn Leather Gloves'; battleworn_leather_gloves[2] = 'Hands'; battleworn_leather_gloves[3] = 21; battleworn_leather_gloves[4] = 'null'; battleworn_leather_gloves[5] = 'white'; battleworn_leather_gloves[6] = 5; battleworn_leather_gloves[7] = 5; var frayed_gloves = Array(8); frayed_gloves[0] = 'gauntlets18'; frayed_gloves[1] = 'Frayed Gloves'; frayed_gloves[2] = 'Hands'; frayed_gloves[3] = 4; frayed_gloves[4] = 'null'; frayed_gloves[5] = 'white'; frayed_gloves[6] = 3; frayed_gloves[7] = 1; var flimsy_chain_gloves = Array(8); flimsy_chain_gloves[0] = 'gauntlets04'; flimsy_chain_gloves[1] = 'Flimsy Chain Gloves'; flimsy_chain_gloves[2] = 'Hands'; flimsy_chain_gloves[3] = 35; flimsy_chain_gloves[4] = 'null'; flimsy_chain_gloves[5] = 'white'; flimsy_chain_gloves[6] = 4; flimsy_chain_gloves[7] = 3; var ragged_leather_gloves = Array(8); ragged_leather_gloves[0] = 'gauntlets18'; ragged_leather_gloves[1] = 'Ragged Leather Gloves'; ragged_leather_gloves[2] = 'Hands'; ragged_leather_gloves[3] = 17; ragged_leather_gloves[4] = 'null'; ragged_leather_gloves[5] = 'white'; ragged_leather_gloves[6] = 4; ragged_leather_gloves[7] = 2; var wolfskin_bracers = Array(8); wolfskin_bracers[0] = 'bracer05'; wolfskin_bracers[1] = 'Wolfskin Bracers'; wolfskin_bracers[2] = 'Wrist'; wolfskin_bracers[3] = 15; wolfskin_bracers[4] = 'null'; wolfskin_bracers[5] = 'white'; wolfskin_bracers[6] = 5; wolfskin_bracers[7] = 6; var tarnished_chain_bracers = Array(8); tarnished_chain_bracers[0] = 'bracer03'; tarnished_chain_bracers[1] = 'Tarnished Chain Bracers'; tarnished_chain_bracers[2] = 'Wrist'; tarnished_chain_bracers[3] = 29; tarnished_chain_bracers[4] = 'null'; tarnished_chain_bracers[5] = 'white'; tarnished_chain_bracers[6] = 5; tarnished_chain_bracers[7] = 7; var flax_bracers = Array(8); flax_bracers[0] = 'bracer10'; flax_bracers[1] = 'Flax Bracers'; flax_bracers[2] = 'Wrist'; flax_bracers[3] = 4; flax_bracers[4] = 'null'; flax_bracers[5] = 'white'; flax_bracers[6] = 5; flax_bracers[7] = 4; var flimsy_chain_bracers = Array(8); flimsy_chain_bracers[0] = 'bracer03'; flimsy_chain_bracers[1] = 'Flimsy Chain Bracers'; flimsy_chain_bracers[2] = 'Wrist'; flimsy_chain_bracers[3] = 25; flimsy_chain_bracers[4] = 'null'; flimsy_chain_bracers[5] = 'white'; flimsy_chain_bracers[6] = 4; flimsy_chain_bracers[7] = 3; var ragged_leather_bracers = Array(8); ragged_leather_bracers[0] = 'bracer10'; ragged_leather_bracers[1] = 'Ragged Leather Bracers'; ragged_leather_bracers[2] = 'Wrist'; ragged_leather_bracers[3] = 12; ragged_leather_bracers[4] = 'null'; ragged_leather_bracers[5] = 'white'; ragged_leather_bracers[6] = 4; ragged_leather_bracers[7] = 2; charm_mag = Array(10); charm_mag[0] = 'miscgemtopaz1'; charm_mag[1] = 'Hazza\'rah\'s Charm of Magic'; charm_mag[2] = 'Neck'; charm_mag[3] = 0; charm_mag[4] = 'null'; charm_mag[5] = 'purple'; charm_mag[6] = 15; charm_mag[7] = 136729; charm_mag[8] = 'int'; charm_mag[9] = 24; fel_neck = Array(10); fel_neck[0] = 'miscgemtopaz1'; fel_neck[1] = 'Felva\'s Necklace'; fel_neck[2] = 'Neck'; fel_neck[3] = 0; fel_neck[4] = 'null'; fel_neck[5] = 'blue'; fel_neck[6] = 12; fel_neck[7] = 0; fel_neck[8] = 'agi'; fel_neck[9] = 9; arc_pen = Array(10); arc_pen[0] = 'miscgemtopaz1'; arc_pen[1] = 'Arcane Crystal Pendant'; arc_pen[2] = 'Neck'; arc_pen[3] = 5; arc_pen[4] = 'null'; arc_pen[5] = 'blue'; arc_pen[6] = 13; arc_pen[7] = 0; arc_pen[8] = 'int'; arc_pen[9] = 8; var tarnished_silver_necklace = Array(8); tarnished_silver_necklace[0] = 'belt18'; tarnished_silver_necklace[1] = 'Tarnished Silver Necklace'; tarnished_silver_necklace[2] = 'Neck'; tarnished_silver_necklace[3] = 1; tarnished_silver_necklace[4] = 'null'; tarnished_silver_necklace[5] = 'white'; tarnished_silver_necklace[6] = 1; tarnished_silver_necklace[7] = 73; var tender_wolf_meat = Array(8); tender_wolf_meat[0] = 'wolfmeat'; tender_wolf_meat[1] = 'Tender Wolf Meat'; tender_wolf_meat[2] = 'Quest Item'; tender_wolf_meat[3] = 'A slice of fresh meat.'; tender_wolf_meat[4] = 'null'; tender_wolf_meat[5] = 'white'; tender_wolf_meat[6] = 1; tender_wolf_meat[7] = 'null'; var soft_bushy_tail = Array(8); soft_bushy_tail[0] = 'wolftail'; soft_bushy_tail[1] = 'Soft Bushy Tail'; soft_bushy_tail[2] = 'Quest Item'; soft_bushy_tail[3] = 'A small furry tail.'; soft_bushy_tail[4] = 'null'; soft_bushy_tail[5] = 'white'; soft_bushy_tail[6] = 1; soft_bushy_tail[7] = 'null'; var sack_of_meat = Array(8); sack_of_meat[0] = 'miscbag10'; sack_of_meat[1] = 'Sack of Meat'; sack_of_meat[2] = 'Quest Item'; sack_of_meat[3] = 'A sack of fresh meat.'; sack_of_meat[4] = 'null'; sack_of_meat[5] = 'white'; sack_of_meat[6] = 1; sack_of_meat[7] = 'null'; var mild_spices = Array(8); mild_spices[0] = 'miscfoodwheat02'; mild_spices[1] = 'Mild Spices'; mild_spices[2] = 'Quest Item'; mild_spices[3] = 'A small pouch of spices.'; mild_spices[4] = 'null'; mild_spices[5] = 'white'; mild_spices[6] = 1; mild_spices[7] = 5; var magic_dust = Array(8); magic_dust[0] = 'magicdust'; magic_dust[1] = 'Magic Dust'; magic_dust[2] = 'Food'; magic_dust[3] = 'Restores 100 Energy.'; magic_dust[4] = 'null'; magic_dust[5] = 'white'; magic_dust[6] = 1; magic_dust[7] = 60; var spiced_wolf_meat = Array(8); spiced_wolf_meat[0] = 'miscfood65'; spiced_wolf_meat[1] = 'Spiced Wolf Meat'; spiced_wolf_meat[2] = 'Food'; spiced_wolf_meat[3] = 'Restores 300 Health.'; spiced_wolf_meat[4] = 'null'; spiced_wolf_meat[5] = 'white'; spiced_wolf_meat[6] = 1; spiced_wolf_meat[7] = 100; var goblin_dynamite = Array(8); goblin_dynamite[0] = 'miscbomb03'; goblin_dynamite[1] = 'Goblin Dynamite'; goblin_dynamite[2] = 'Quest Item'; goblin_dynamite[3] = '\'Aim away from eyes.\''; goblin_dynamite[4] = 'null'; goblin_dynamite[5] = 'white'; goblin_dynamite[6] = 1; goblin_dynamite[7] = 500; var rune_of_teleportation = Array(8); rune_of_teleportation[0] = 'miscrune06'; rune_of_teleportation[1] = 'Rune of Teleportation'; rune_of_teleportation[2] = 'Quest Item'; rune_of_teleportation[3] = 'It glows bright yellow.'; rune_of_teleportation[4] = 'null'; rune_of_teleportation[5] = 'white'; rune_of_teleportation[6] = 1; rune_of_teleportation[7] = 0; var an_corn_grim = Array(10); an_corn_grim[0] = 'miscbook07'; an_corn_grim[1] = 'Ancient Cornerstone Grimoire'; an_corn_grim[2] = 'Off-hand'; an_corn_grim[3] = 0; an_corn_grim[4] = 'null'; an_corn_grim[5] = 'purple'; an_corn_grim[6] = 20; an_corn_grim[7] = 101724; an_corn_grim[8] = 'int'; an_corn_grim[9] = 300; var earth_orb = Array(10); earth_orb[0] = 'miscgempearl06'; earth_orb[1] = 'Earthcalm Orb'; earth_orb[2] = 'Off-hand'; earth_orb[3] = 5; earth_orb[4] = 'null'; earth_orb[5] = 'purple'; earth_orb[6] = 20; earth_orb[7] = 11411; earth_orb[8] = 'int'; earth_orb[9] = 10; } } movieClip 724 { frame 1 { var camp_vendor = Array(6); camp_vendor[0] = 'Blacksmith Frazzak'; camp_vendor[1] = 4; camp_vendor[2] = 'worn_shortsword'; camp_vendor[3] = 'small_shield'; camp_vendor[4] = 'tarnished_vest'; camp_vendor[5] = 'tarnished_legs'; var krakho = Array(4); krakho[0] = 'Krakho the Salesman'; krakho[1] = 2; krakho[2] = 'mild_spices'; krakho[3] = 'magic_dust'; var krakho2 = Array(5); krakho2[0] = 'Krakho the Salesman'; krakho2[1] = 3; krakho2[2] = 'goblin_dynamite'; krakho2[3] = 'magic_dust'; krakho2[4] = 'spiced_wolf_meat'; var ketchin = Array(3); ketchin[0] = 'Ketchin'; ketchin[1] = 1; ketchin[2] = 'spiced_wolf_meat'; var flik = Array(4); flik[0] = 'Flik'; flik[1] = 2; flik[2] = 'spiced_wolf_meat'; flik[3] = 'magic_dust'; var falthir = Array(6); falthir[0] = 'Falthir'; falthir[1] = 4; falthir[2] = 'zand_robe'; falthir[3] = 'zand_tunic'; falthir[4] = 'zand_bplate'; falthir[5] = 'bld_tal'; var fliker = Array(4); fliker[0] = 'General Goods'; fliker[1] = 2; fliker[2] = 'spiced_wolf_meat'; fliker[3] = 'magic_dust'; var menrok = Array(11); menrok[0] = 'Men\'rok the Armorsmith'; menrok[1] = 9; menrok[2] = 'emb_helm'; menrok[3] = 'emb_chest'; menrok[4] = 'emb_legs'; menrok[5] = 'emb_belt'; menrok[6] = 'emb_gloves'; menrok[7] = 'emb_boots'; menrok[8] = 'emb_bracers'; menrok[9] = 'emb_should'; menrok[10] = 'emb_shield'; var john = Array(11); john[0] = 'Short John Mithril'; john[1] = 4; john[2] = 'gm_clay'; john[3] = 'gm_dirk'; john[4] = 'gm_stave'; john[5] = 'gm_shield'; } } movieClip 726 { frame 1 { var jeklok = Array(14); jeklok[0] = 'Jeklok'; jeklok[1] = 'fel_neck'; jeklok[2] = 'goblin'; jeklok[3] = 30; jeklok[4] = 1; jeklok[5] = 'runs away'; jeklok[6] = 'flee'; jeklok[7] = 0; var pmurk2 = Array(14); pmurk2[0] = _root.name1; pmurk2[1] = 'none'; pmurk2[2] = 'emurk'; pmurk2[3] = 95; pmurk2[4] = 4; pmurk2[5] = 'unleashes a Heroic Strike'; pmurk2[6] = 'attack'; pmurk2[7] = 35; pmurk2[8] = 'casts Heal'; pmurk2[9] = 'heal'; pmurk2[10] = 10; pmurk2[11] = 'casts Lash of Pain'; pmurk2[12] = 'lashofpain'; pmurk2[13] = 37; pmurk2[14] = 'casts Drain Life'; pmurk2[15] = 'drainlife'; pmurk2[16] = 21; var pmurk3 = Array(14); pmurk3[0] = _root.name2; pmurk3[1] = 'none'; pmurk3[2] = 'emurk'; pmurk3[3] = 95; pmurk3[4] = 4; pmurk3[5] = 'unleashes a Heroic Strike'; pmurk3[6] = 'attack'; pmurk3[7] = 35; pmurk3[8] = 'casts Heal'; pmurk3[9] = 'heal'; pmurk3[10] = 10; pmurk3[11] = 'casts Lash of Pain'; pmurk3[12] = 'lashofpain'; pmurk3[13] = 37; pmurk3[14] = 'casts Drain Life'; pmurk3[15] = 'drainlife'; pmurk3[16] = 21; var pmurk4 = Array(14); pmurk4[0] = _root.name3; pmurk4[1] = 'none'; pmurk4[2] = 'emurk'; pmurk4[3] = 95; pmurk4[4] = 4; pmurk4[5] = 'unleashes a Heroic Strike'; pmurk4[6] = 'attack'; pmurk4[7] = 35; pmurk4[8] = 'casts Heal'; pmurk4[9] = 'heal'; pmurk4[10] = 10; pmurk4[11] = 'casts Lash of Pain'; pmurk4[12] = 'lashofpain'; pmurk4[13] = 37; pmurk4[14] = 'casts Drain Life'; pmurk4[15] = 'drainlife'; pmurk4[16] = 21; var pmurk5 = Array(14); pmurk5[0] = _root.name4; pmurk5[1] = 'none'; pmurk5[2] = 'emurk'; pmurk5[3] = 95; pmurk5[4] = 4; pmurk5[5] = 'unleashes a Heroic Strike'; pmurk5[6] = 'attack'; pmurk5[7] = 35; pmurk5[8] = 'casts Heal'; pmurk5[9] = 'heal'; pmurk5[10] = 10; pmurk5[11] = 'casts Lash of Pain'; pmurk5[12] = 'lashofpain'; pmurk5[13] = 37; pmurk5[14] = 'casts Drain Life'; pmurk5[15] = 'drainlife'; pmurk5[16] = 21; var pmurk6 = Array(14); pmurk6[0] = _root.name5; pmurk6[1] = 'none'; pmurk6[2] = 'emurk'; pmurk6[3] = 95; pmurk6[4] = 4; pmurk6[5] = 'unleashes a Heroic Strike'; pmurk6[6] = 'attack'; pmurk6[7] = 35; pmurk6[8] = 'casts Heal'; pmurk6[9] = 'heal'; pmurk6[10] = 10; pmurk6[11] = 'casts Lash of Pain'; pmurk6[12] = 'lashofpain'; pmurk6[13] = 37; pmurk6[14] = 'casts Drain Life'; pmurk6[15] = 'drainlife'; pmurk6[16] = 21; var pmurk7 = Array(14); pmurk7[0] = _root.name6; pmurk7[1] = 'none'; pmurk7[2] = 'emurk'; pmurk7[3] = 95; pmurk7[4] = 4; pmurk7[5] = 'unleashes a Heroic Strike'; pmurk7[6] = 'attack'; pmurk7[7] = 35; pmurk7[8] = 'casts Heal'; pmurk7[9] = 'heal'; pmurk7[10] = 10; pmurk7[11] = 'casts Lash of Pain'; pmurk7[12] = 'lashofpain'; pmurk7[13] = 37; pmurk7[14] = 'casts Drain Life'; pmurk7[15] = 'drainlife'; pmurk7[16] = 21; var pmurk8 = Array(14); pmurk8[0] = _root.name7; pmurk8[1] = 'none'; pmurk8[2] = 'emurk'; pmurk8[3] = 95; pmurk8[4] = 4; pmurk8[5] = 'unleashes a Heroic Strike'; pmurk8[6] = 'attack'; pmurk8[7] = 35; pmurk8[8] = 'casts Heal'; pmurk8[9] = 'heal'; pmurk8[10] = 10; pmurk8[11] = 'casts Lash of Pain'; pmurk8[12] = 'lashofpain'; pmurk8[13] = 37; pmurk8[14] = 'casts Drain Life'; pmurk8[15] = 'drainlife'; pmurk8[16] = 21; var pmurk9 = Array(14); pmurk9[0] = _root.name8; pmurk9[1] = 'none'; pmurk9[2] = 'emurk'; pmurk9[3] = 95; pmurk9[4] = 4; pmurk9[5] = 'unleashes a Heroic Strike'; pmurk9[6] = 'attack'; pmurk9[7] = 35; pmurk9[8] = 'casts Heal'; pmurk9[9] = 'heal'; pmurk9[10] = 10; pmurk9[11] = 'casts Lash of Pain'; pmurk9[12] = 'lashofpain'; pmurk9[13] = 37; pmurk9[14] = 'casts Drain Life'; pmurk9[15] = 'drainlife'; pmurk9[16] = 21; var pmurk10 = Array(14); pmurk10[0] = _root.name9; pmurk10[1] = 'none'; pmurk10[2] = 'emurk'; pmurk10[3] = 95; pmurk10[4] = 4; pmurk10[5] = 'unleashes a Heroic Strike'; pmurk10[6] = 'attack'; pmurk10[7] = 35; pmurk10[8] = 'casts Heal'; pmurk10[9] = 'heal'; pmurk10[10] = 10; pmurk10[11] = 'casts Lash of Pain'; pmurk10[12] = 'lashofpain'; pmurk10[13] = 37; pmurk10[14] = 'casts Drain Life'; pmurk10[15] = 'drainlife'; pmurk10[16] = 21; var emurk = Array(14); emurk[0] = _root.name0; emurk[1] = 'gm_clay'; emurk[2] = 'emurk'; emurk[3] = 120; emurk[4] = 5; emurk[5] = 'unleashes a Heroic Strike'; emurk[6] = 'attack'; emurk[7] = 114; emurk[8] = 'casts Heal'; emurk[9] = 'heal'; emurk[10] = 100; emurk[11] = 'executes you'; emurk[12] = 'execute'; emurk[13] = 240; emurk[14] = 'casts Lash of Pain'; emurk[15] = 'lashofpain'; emurk[16] = 151; emurk[17] = 'casts Drain Life'; emurk[18] = 'drainlife'; emurk[19] = 75; var helm = Array(14); helm[0] = 'Helm'; helm[1] = 'ashkandi'; helm[2] = 'helm'; helm[3] = 110; helm[4] = 3; helm[5] = 'slashes you'; helm[6] = 'attack'; helm[7] = 48; helm[8] = 'casts Holy Light'; helm[9] = 'heal'; helm[10] = 70; helm[11] = 'casts Holy Shock'; helm[12] = 'holyshock'; helm[13] = 28; var sheila = Array(14); sheila[0] = 'Sheila'; sheila[1] = 'wild_belt'; sheila[2] = 'sheila'; sheila[3] = 70; sheila[4] = 3; sheila[5] = 'claws you'; sheila[6] = 'claw'; sheila[7] = 55; sheila[8] = 'swipes you'; sheila[9] = 'swipe'; sheila[10] = 42; sheila[11] = 'casts Healing Wave'; sheila[12] = 'heal'; sheila[13] = 60; var azzima = Array(14); azzima[0] = 'Azzima'; azzima[1] = 'beasts_gloves'; azzima[2] = 'azzima'; azzima[3] = 75; azzima[4] = 3; azzima[5] = 'unleashes a Raptor Strike'; azzima[6] = 'attack'; azzima[7] = 18; azzima[8] = 'releases an Arcane Shot'; azzima[9] = 'arcaneshot'; azzima[10] = 70; azzima[11] = 'calls her Pet'; azzima[12] = 'callpet'; azzima[13] = 30; var littlefoot = Array(17); littlefoot[0] = 'Littlefoot'; littlefoot[1] = 'coif_elem'; littlefoot[2] = 'littlefoot'; littlefoot[3] = 85; littlefoot[4] = 4; littlefoot[5] = 'slashes you'; littlefoot[6] = 'attack'; littlefoot[7] = 15; littlefoot[8] = 'summons a Fire Nova Totem'; littlefoot[9] = 'firenova'; littlefoot[10] = 71; littlefoot[11] = 'casts Healing Wave'; littlefoot[12] = 'heal'; littlefoot[13] = 40; littlefoot[14] = 'casts Lighting Bolt'; littlefoot[15] = 'lightningbolt'; littlefoot[16] = 52; var archaic = Array(17); archaic[0] = 'Archaic'; archaic[1] = 'earth_orb'; archaic[2] = 'archaic'; archaic[3] = 50; archaic[4] = 4; archaic[5] = 'stabs you'; archaic[6] = 'attack'; archaic[7] = 7; archaic[8] = 'casts Drain Life'; archaic[9] = 'drainlife'; archaic[10] = 15; archaic[11] = 'casts Drain Energy'; archaic[12] = 'drainenergy'; archaic[13] = 3; archaic[14] = 'casts Lash of Pain'; archaic[15] = 'lashofpain'; archaic[16] = 25; var felva = Array(17); felva[0] = 'Felva'; felva[1] = 'per_blade'; felva[2] = 'felva'; felva[3] = 55; felva[4] = 2; felva[5] = 'unleashes a Sinister Strike'; felva[6] = 'attack'; felva[7] = 14; felva[8] = 'stealths away and Ambushes you'; felva[9] = 'backstab'; felva[10] = 59; var beardon = Array(17); beardon[0] = 'Beardon'; beardon[1] = 'dev_mantle'; beardon[2] = 'beardon'; beardon[3] = 48; beardon[4] = 4; beardon[5] = 'whacks you'; beardon[6] = 'attack'; beardon[7] = 5; beardon[8] = 'casts Smite'; beardon[9] = 'smite'; beardon[10] = 9; beardon[11] = 'casts Holy Fire'; beardon[12] = 'holyfire'; beardon[13] = 23; beardon[14] = 'casts Flash Heal'; beardon[15] = 'heal'; beardon[16] = 20; var cathy = Array(17); cathy[0] = 'Cathy'; cathy[1] = 'lav_ring'; cathy[2] = 'cathy'; cathy[3] = 40; cathy[4] = 4; cathy[5] = 'slams you'; cathy[6] = 'attack'; cathy[7] = 5; cathy[8] = 'casts Frostbolt'; cathy[9] = 'frostbolt'; cathy[10] = 11; cathy[11] = 'casts Arcane Explosion'; cathy[12] = 'arcane'; cathy[13] = 21; cathy[14] = 'casts Pyroblast'; cathy[15] = 'pyroblast'; cathy[16] = 52; var menrok = Array(11); menrok[0] = 'Men\'rok'; menrok[1] = 'destiny'; menrok[2] = 'menrok'; menrok[3] = 80; menrok[4] = 2; menrok[5] = 'lands a Heroic Strike'; menrok[6] = 'attack'; menrok[7] = 12; menrok[8] = 'goes into a Whirlwind'; menrok[9] = 'whirlwind'; menrok[10] = 16; var harpy = Array(23); harpy[0] = 'Harpy'; harpy[1] = 'benediction'; harpy[2] = 'harpy'; harpy[3] = 45; harpy[4] = 6; harpy[5] = 'runs away'; harpy[6] = 'flee'; harpy[7] = 0; harpy[8] = 'casts Full Heal'; harpy[9] = 'heal'; harpy[10] = 80; harpy[11] = 'casts Full Heal'; harpy[12] = 'heal'; harpy[13] = 80; harpy[14] = 'casts Full Heal'; harpy[15] = 'heal'; harpy[16] = 80; harpy[17] = 'scratches you'; harpy[18] = 'attack'; harpy[19] = 5; harpy[20] = 'scratches you'; harpy[21] = 'attack'; harpy[22] = 5; var onyxia = Array(8); onyxia[0] = 'Onyxia'; onyxia[1] = 'an_corn_grim'; onyxia[2] = 'onyxia'; onyxia[3] = 160; onyxia[4] = 1; onyxia[5] = 'bites you'; onyxia[6] = 'attack'; onyxia[7] = 41; var gahzranka = Array(14); gahzranka[0] = 'Gahz\'ranka'; gahzranka[1] = 'foror_patch'; gahzranka[2] = 'gahzranka'; gahzranka[3] = 70; gahzranka[4] = 2; gahzranka[5] = 'bites you'; gahzranka[6] = 'attack'; gahzranka[7] = 12; gahzranka[8] = 'slashes you'; gahzranka[9] = 'attack'; gahzranka[10] = 14; var hakkar = Array(14); hakkar[0] = 'Hakkar the Soulflayer'; hakkar[1] = 'zinrokh'; hakkar[2] = 'hakkar'; hakkar[3] = 150; hakkar[4] = 3; hakkar[5] = 'cleaves you'; hakkar[6] = 'attack'; hakkar[7] = 18; hakkar[8] = 'casts Corrupt Blood'; hakkar[9] = 'corrupt'; hakkar[10] = 34; hakkar[11] = 'casts Life Tap'; hakkar[12] = 'lifetap'; hakkar[13] = 23; var arlokk = Array(14); arlokk[0] = 'High Priestess Arlokk'; arlokk[1] = 'blood_greaves'; arlokk[2] = 'arlokk'; arlokk[3] = 75; arlokk[4] = 3; arlokk[5] = 'slashes you'; arlokk[6] = 'attack'; arlokk[7] = 16; arlokk[8] = 'slashes you'; arlokk[9] = 'attack'; arlokk[10] = 16; arlokk[11] = 'Executes you'; arlokk[12] = 'slice'; arlokk[13] = 31; var thekal = Array(14); thekal[0] = 'High Priest Thekal'; thekal[1] = 'seal_jin'; thekal[2] = 'thekal'; thekal[3] = 65; thekal[4] = 3; thekal[5] = 'slahes you'; thekal[6] = 'attack'; thekal[7] = 14; thekal[8] = 'slahes you'; thekal[9] = 'attack'; thekal[10] = 14; thekal[11] = 'goes into a Whirlwind'; thekal[12] = 'whirlwind'; thekal[13] = 24; var marli = Array(26); marli[0] = 'High Priestess Mar\'li'; marli[1] = 'flow_robe'; marli[2] = 'marli'; marli[3] = 75; marli[4] = 7; marli[5] = 'scratches you'; marli[6] = 'attack'; marli[7] = 13; marli[8] = 'scratches you'; marli[9] = 'attack'; marli[10] = 13; marli[11] = 'scratches you'; marli[12] = 'attack'; marli[13] = 13; marli[14] = 'casts Drain Life'; marli[15] = 'drainlife'; marli[16] = 9; marli[17] = 'casts Drain Life'; marli[18] = 'drainlife'; marli[19] = 9; marli[20] = 'casts Drain Life'; marli[21] = 'drainlife'; marli[22] = 9; marli[23] = 'casts Heal'; marli[24] = 'heal'; marli[25] = 14; var venoxis = Array(11); venoxis[0] = 'High Priest Venoxis'; venoxis[1] = 'fang_ven'; venoxis[2] = 'venoxis'; venoxis[3] = 105; venoxis[4] = 2; venoxis[5] = 'smites you'; venoxis[6] = 'attack'; venoxis[7] = 13; venoxis[8] = 'releases a deadly poison'; venoxis[9] = 'poison'; venoxis[10] = 18; var jeklik = Array(20); jeklik[0] = 'High Priestess Jeklik'; jeklik[1] = 'zul_def'; jeklik[2] = 'jeklik'; jeklik[3] = 115; jeklik[4] = 5; jeklik[5] = 'scratches you'; jeklik[6] = 'attack'; jeklik[7] = 9; jeklik[8] = 'scratches you'; jeklik[9] = 'attack'; jeklik[10] = 9; jeklik[11] = 'scratches you'; jeklik[12] = 'attack'; jeklik[13] = 9; jeklik[14] = 'scratches you'; jeklik[15] = 'attack'; jeklik[16] = 9; jeklik[17] = 'casts Heal'; jeklik[18] = 'heal'; jeklik[19] = 6; var mvale_gorilla = Array(11); mvale_gorilla[0] = 'Mistvale Gorilla'; mvale_gorilla[1] = 'none'; mvale_gorilla[2] = 'gorilla'; mvale_gorilla[3] = 95; mvale_gorilla[4] = 2; mvale_gorilla[5] = 'smacks you'; mvale_gorilla[6] = 'attack'; mvale_gorilla[7] = 4; mvale_gorilla[8] = 'slaps you'; mvale_gorilla[9] = 'attack'; mvale_gorilla[10] = 3; var st_tiger = Array(11); st_tiger[0] = 'Stranglethorn Tiger'; st_tiger[1] = 'none'; st_tiger[2] = 'tiger'; st_tiger[3] = 40; st_tiger[4] = 2; st_tiger[5] = 'claws you'; st_tiger[6] = 'attack'; st_tiger[7] = 9; st_tiger[8] = 'bites you'; st_tiger[9] = 'attack'; st_tiger[10] = 11; var young_forest_wolf = Array(11); young_forest_wolf[0] = 'Young Forest Wolf'; young_forest_wolf[1] = 'tender_wolf_meat'; young_forest_wolf[2] = 'timberwolf'; young_forest_wolf[3] = 30; young_forest_wolf[4] = 2; young_forest_wolf[5] = 'bites you'; young_forest_wolf[6] = 'attack'; young_forest_wolf[7] = 5; young_forest_wolf[8] = 'claws you'; young_forest_wolf[9] = 'attack'; young_forest_wolf[10] = 3; var wolf_cub = Array(11); wolf_cub[0] = 'Wolf Cub'; wolf_cub[1] = 'tender_wolf_meat'; wolf_cub[2] = 'timberwolf'; wolf_cub[3] = 15; wolf_cub[4] = 2; wolf_cub[5] = 'bites you'; wolf_cub[6] = 'attack'; wolf_cub[7] = 5; wolf_cub[8] = 'claws you'; wolf_cub[9] = 'attack'; wolf_cub[10] = 3; var dire_wolf = Array(11); dire_wolf[0] = 'Dire Wolf'; dire_wolf[1] = 'none'; dire_wolf[2] = 'darkbigwolf'; dire_wolf[3] = 70; dire_wolf[4] = 2; dire_wolf[5] = 'bites you'; dire_wolf[6] = 'attack'; dire_wolf[7] = 4; dire_wolf[8] = 'claws you'; dire_wolf[9] = 'attack'; dire_wolf[10] = 8; var feronius = Array(14); feronius[0] = 'Feronius the Ferocious'; feronius[1] = 'ferocious_fang'; feronius[2] = 'darkbigwolf'; feronius[3] = 55; feronius[4] = 3; feronius[5] = 'bites you'; feronius[6] = 'attack'; feronius[7] = 6; feronius[8] = 'claws you'; feronius[9] = 'attack'; feronius[10] = 4; feronius[11] = 'lets out a ferocious roar'; feronius[12] = 'roar'; feronius[13] = 0; var beach_crawler = Array(11); beach_crawler[0] = 'Beach Crawler'; beach_crawler[1] = 'the_1_ring'; beach_crawler[2] = 'crab'; beach_crawler[3] = 30; beach_crawler[4] = 2; beach_crawler[5] = 'claws you'; beach_crawler[6] = 'attack'; beach_crawler[7] = 7; beach_crawler[8] = 'strikes you'; beach_crawler[9] = 'attack'; beach_crawler[10] = 5; king_crab = Array(11); king_crab[0] = 'King Crab'; king_crab[1] = 'the_1_ring'; king_crab[2] = 'crab'; king_crab[3] = 60; king_crab[4] = 2; king_crab[5] = 'claws you'; king_crab[6] = 'attack'; king_crab[7] = 10; king_crab[8] = 'strikes you'; king_crab[9] = 'attack'; king_crab[10] = 7; var young_crocolisk = Array(11); young_crocolisk[0] = 'Young Crocolisk'; young_crocolisk[1] = 'none'; young_crocolisk[2] = 'smallcroc'; young_crocolisk[3] = 55; young_crocolisk[4] = 2; young_crocolisk[5] = 'chomps you'; young_crocolisk[6] = 'attack'; young_crocolisk[7] = 5; young_crocolisk[8] = 'bites you'; young_crocolisk[9] = 'attack'; young_crocolisk[10] = 3; var mother_crocolisk = Array(11); mother_crocolisk[0] = 'Mother Crocolisk'; mother_crocolisk[1] = 'rough_croc_hide_vest'; mother_crocolisk[2] = 'bigcroc'; mother_crocolisk[3] = 70; mother_crocolisk[4] = 2; mother_crocolisk[5] = 'chomps you'; mother_crocolisk[6] = 'attack'; mother_crocolisk[7] = 7; mother_crocolisk[8] = 'bites you'; mother_crocolisk[9] = 'attack'; mother_crocolisk[10] = 5; var the_princess = Array(11); the_princess[0] = 'Princess'; the_princess[1] = 'hide_of_the_princess'; the_princess[2] = 'boar'; the_princess[3] = 120; the_princess[4] = 2; the_princess[5] = 'bites you'; the_princess[6] = 'attack'; the_princess[7] = 3; the_princess[8] = 'tackles you'; the_princess[9] = 'attack'; the_princess[10] = 5; var kobold_miner = Array(11); kobold_miner[0] = 'Kobold Miner'; kobold_miner[1] = 'none'; kobold_miner[2] = 'kobold'; kobold_miner[3] = 65; kobold_miner[4] = 2; kobold_miner[5] = 'slashes you'; kobold_miner[6] = 'attack'; kobold_miner[7] = 8; kobold_miner[8] = 'scratches you'; kobold_miner[9] = 'attack'; kobold_miner[10] = 6; var fagnus = Array(17); fagnus[0] = 'Fagnus the Mage'; fagnus[1] = 'rune_of_teleportation'; fagnus[2] = 'kobold'; fagnus[3] = 50; fagnus[4] = 4; fagnus[5] = 'casts Lightning Bolt'; fagnus[6] = 'lightning'; fagnus[7] = 15; fagnus[8] = 'casts Pyroblast'; fagnus[9] = 'pyroblast'; fagnus[10] = 20; fagnus[11] = 'casts Drain Life'; fagnus[12] = 'drainlife'; fagnus[13] = 5; fagnus[14] = 'casts Heal'; fagnus[15] = 'heal'; fagnus[16] = 15; var sirath = Array(11); sirath[0] = 'Sirath'; sirath[1] = 'sulfuras'; sirath[2] = 'sirath'; sirath[3] = 65; sirath[4] = 2; sirath[5] = 'flexes his muscles'; sirath[6] = 'flex'; sirath[7] = 0; sirath[8] = 'punches you'; sirath[9] = 'attack'; sirath[10] = 15; var sirath2 = Array(11); sirath2[0] = 'Sirath'; sirath2[1] = 'none'; sirath2[2] = 'sirath'; sirath2[3] = 65; sirath2[4] = 2; sirath2[5] = 'flexes his muscles'; sirath2[6] = 'flex'; sirath2[7] = 0; sirath2[8] = 'punches you'; sirath2[9] = 'attack'; sirath2[10] = 5; } } movieClip 728 { frame 1 { var lootlvl1 = new Array(9); lootlvl1[0] = 8; lootlvl1[1] = 'worn_dagger'; lootlvl1[2] = 'brawlers_boots'; lootlvl1[3] = 'brawlers_harness'; lootlvl1[4] = 'brawlers_pants'; lootlvl1[5] = 'primitive_kilt'; lootlvl1[6] = 'novices_robe'; lootlvl1[7] = 'tarnished_silver_necklace'; lootlvl1[8] = 'worn_wooden_shield'; var lootlvl2 = new Array(8); lootlvl2[0] = 7; lootlvl2[1] = 'battered_buckler'; lootlvl2[2] = 'flimsy_chain_belt'; lootlvl2[3] = 'flimsy_chain_pants'; lootlvl2[4] = 'frayed_pants'; lootlvl2[5] = 'ragged_leather_pants'; lootlvl2[6] = 'worn_mace'; lootlvl2[7] = 'battleworn_hammer'; var lootlvl3 = new Array(7); lootlvl3[0] = 6; lootlvl3[1] = 'dented_buckler'; lootlvl3[2] = 'webbed_pants'; lootlvl3[3] = 'flimsy_chain_boots'; lootlvl3[4] = 'frayed_belt'; lootlvl3[5] = 'frayed_gloves'; lootlvl3[6] = 'ragged_leather_boots'; var lootlvl4 = new Array(9); lootlvl4[0] = 8; lootlvl4[1] = 'frostmane_leather_vest'; lootlvl4[2] = 'bent_large_shield'; lootlvl4[3] = 'flimsy_chain_bracers'; lootlvl4[4] = 'flimsy_chain_gloves'; lootlvl4[5] = 'frayed_robe'; lootlvl4[6] = 'frayed_shoes'; lootlvl4[7] = 'ragged_leather_bracers'; lootlvl4[8] = 'ragged_leather_gloves'; var lootlvl5 = new Array(14); lootlvl5[0] = 13; lootlvl5[1] = 'barkmail_vest'; lootlvl5[2] = 'battleworn_chain_leggings'; lootlvl5[3] = 'battleworn_leather_gloves'; lootlvl5[4] = 'dwarven_kite_shield'; lootlvl5[5] = 'blackened_leather_belt'; lootlvl5[6] = 'flax_bracers'; lootlvl5[7] = 'flax_belt'; lootlvl5[8] = 'layered_tunic'; lootlvl5[9] = 'tarnished_chain_bracers'; lootlvl5[10] = 'tarnished_chain_belt'; lootlvl5[11] = 'tarnished_chain_boots'; lootlvl5[12] = 'tracking_boots'; lootlvl5[13] = 'wolfskin_bracers'; } } movieClip 738 { frame 1 { stop(); } frame 2 { gotoAndStop(1); } frame 3 { gotoAndStop(1); } frame 4 { gotoAndStop(1); } frame 5 { gotoAndStop(1); } frame 6 { gotoAndStop(1); } frame 7 { gotoAndStop(1); } frame 8 { gotoAndStop(1); } frame 9 { gotoAndStop(1); } } movieClip 739 { frame 5 { stop(); } } frame 85 { stop(); if (_root.port == 'left' && _root.isdead == false) { _root.murloc._x = 50; } else { if (_root.port == 'right' && _root.isdead == false) { _root.murloc._x = 650; } else { if (_root.port == 'first') { _root.murloc._x = 50; _root.changezone('Camp Brakil'); } } } if (_root.port != 'first') { _root.introfadeout.gotoAndStop('hide'); } if (_root.isdead != true) { _root.wall1.gotoAndStop(2); _root.wall2.gotoAndStop(2); _root.healer.gotoAndStop('hide'); _root.aura.gotoAndStop('hide'); _root.talktohealer.gotoAndStop(2); } else { _root.talktohealer.gotoAndStop(1); _root.wall1.gotoAndStop(1); _root.wall2.gotoAndStop(1); _root.murloc._x = 200; } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } } movieClip 796 { } movieClip 857 { frame 30 { gotoAndPlay(1); } frame 31 { stop(); } } movieClip 1016 { frame 53 { _parent.gotoAndPlay(1); } } movieClip 1161 { frame 72 { _parent.gotoAndPlay(1); } } movieClip 1214 { frame 26 { _parent.gotoAndPlay(1); } } movieClip 1215 { frame 26 { x = random(15); if (x == 1) { gotoAndStop('idle1'); } else { if (x == 2) { gotoAndStop('idle2'); } else { if (x == 3) { gotoAndStop('idle3'); } else { gotoAndPlay(1); } } } } frame 27 { stop(); } frame 28 { stop(); } frame 29 { stop(); } } movieClip 1217 { } movieClip 1219 { } movieClip 1224 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1225 { frame 1 { stop(); } frame 2 { stop(); } instance brakilbug of movieClip 1224 { onClipEvent (enterFrame) { if (_root.goarea != 'Brakil\'s Tent') { this.gotoAndStop(1); } } } } movieClip 1246 { } movieClip 1247 { } movieClip 1248 { frame 1 { stop(); } instance hero of movieClip 1217 { onClipEvent (enterFrame) { if (this.hitTest(_root.wall1) || this.hitTest(_root.wall2)) { if (_root.dir == 'left') { if (_root.movem == 'walk') { _parent._x += _parent.wspeed; } else { if (_root.movem == 'run') { _parent._x += _parent.rspeed; } } } else { if (_root.dir == 'right') { if (_root.movem == 'walk') { _parent._x -= _parent.wspeed; } else { if (_root.movem == 'run') { _parent._x -= _parent.rspeed; } } } } } } } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } } instance murloc of movieClip 1248 { onClipEvent (enterFrame) { wspeed = 10; rspeed = 20; if ((Key.isDown(37) || Key.isDown(65)) && _root.freeze == false) { _root.dir = 'left'; if (_root.movem == 'walk') { _x = _x - wspeed; this.gotoAndStop('walkl'); } else { if (_root.movem == 'run') { _x = _x - rspeed; this.gotoAndStop('runl'); } } } else { if ((Key.isDown(39) || Key.isDown(68)) && _root.freeze == false) { _root.dir = 'right'; if (_root.movem == 'walk') { _x = _x + wspeed; this.gotoAndStop('walkr'); } else { if (_root.movem == 'run') { _x = _x + rspeed; this.gotoAndStop('runr'); } } } else { if (_root.dir == 'left') { this.gotoAndStop('standl'); } else { this.gotoAndStop('standr'); } } } if (Key.isDown(17)) { _root.movem = 'walk'; } else { _root.movem = 'run'; } } } movieClip 1250 { } movieClip 1252 { } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.port = 'right'; _root.gotoAndPlay('edge'); } } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.port = 'left'; _root.gotoAndPlay(_root._currentframe + 1); } } } movieClip 1254 { frame 1 { stop(); } } instance talktohealer of movieClip 1254 { onClipEvent (enterFrame) { if (_root.freeze == false) { if (this.hitTest(_root.murloc.hero)) { if (Key.isDown(32)) { _root.textbox.gotoAndStop('spirithealer'); _root.freeze = true; } } } } } movieClip 1257 { frame 1 { stop(); } frame 13 { stop(); } } movieClip 1260 { } movieClip 1262 { } movieClip 1264 { } movieClip 1265 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } instance ttmsphealer of movieClip 1265 { onClipEvent (enterFrame) { if (_root.isdead == true) { this.gotoAndStop('!'); } else { this.gotoAndStop('done'); } } } movieClip 1268 { } movieClip 1270 { } // unknown tag 88 length 215 movieClip 1278 { } movieClip 1283 { instance herohpbar of movieClip 1270 { onClipEvent (enterFrame) { if (_root.percent(_root.hcurhp, _root.hmaxhp) <= 0) { this.gotoAndStop(1); } else { this.gotoAndStop(_root.percent(_root.hcurhp, _root.hmaxhp)); } } } instance of movieClip 1278 { onClipEvent (enterFrame) { if (_root.percent(_root.hcuren, _root.hmaxen) <= 0) { this.gotoAndStop(1); } else { this.gotoAndStop(_root.percent(_root.hcuren, _root.hmaxen)); } } } } button 1286 { on (release) { if (_root.bpack == false) { _root.bpack = true; } else { _root.bpack = false; } _root.sfx('closebackpack'); _root.backpack.play(); } } button 1289 { on (release) { if (_root.charscreen == false) { _root.charscreen = true; if (_root.talentbox == true) { _root.tbox.gotoAndStop('hide'); } } else { _root.charscreen = false; } _root.sfx('openmenu'); _root.char.play(); } } button 1292 { on (release) { if (_root.talentbox == false) { if (_root.charscreen == true) { _root.char.gotoAndStop(1); } _root.tbox.gotoAndStop('fury'); } else { _root.tbox.gotoAndStop('hide'); } _root.sfx('openmenu'); } } movieClip 1293 { frame 1 { stop(); } frame 2 { stop(); } } instance of movieClip 1293 { onClipEvent (enterFrame) { if (_root.freeze == false && _root.battleon == false && _root.shop == false) { this.gotoAndStop('show'); } else { this.gotoAndStop('hide'); } } } movieClip 1522 { } movieClip 1575 { } movieClip 1576 { } movieClip 1588 { } movieClip 1589 { frame 1 { stop(); _root.charscreen = false; } frame 2 { lev = 'Murk: Level ' + _root.level; stop(); i = 16; while (i <= 30) { _root.char['cslot' + i].gotoAndStop(_root.geticon(i)); ++i; } stats.melee = [(_root.getmindmg(28) + 1) * Math.round(_root.level * 0.6) * 2] + '-' + [(_root.getmaxdmg(28) + 1) * Math.round(_root.level * 0.6) * 2]; if (_root.slot[30] == 'none') { stats.ranged = 'N/A'; } else { stats.ranged = [_root.getmindmg(30)] + '-' + [_root.getmaxdmg(30)]; } stats.armor = _root.getac(); _root.charscreen = true; } instance cslot16 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(16)); if (this.hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.slot[16] != 'none') { _root.tooltipbox.gotoAndStop('showr'); _root.tooltip(16); } else { _root.minitip('Head'); } } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (release) { _root.dequip(16); } } instance cslot17 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(17)); if (this.hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.slot[17] != 'none') { _root.tooltipbox.gotoAndStop('showr'); _root.tooltip(17); } else { _root.minitip('Neck'); } } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (release) { _root.dequip(17); } } instance cslot18 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(18)); if (this.hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.slot[18] != 'none') { _root.tooltipbox.gotoAndStop('showr'); _root.tooltip(18); } else { _root.minitip('Shoulders'); } } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (release) { _root.dequip(18); } } instance cslot19 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(19)); if (this.hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.slot[19] != 'none') { _root.tooltipbox.gotoAndStop('showr'); _root.tooltip(19); } else { _root.minitip('Chest'); } } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (release) { _root.dequip(19); } } instance cslot20 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(20)); if (this.hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.slot[20] != 'none') { _root.tooltipbox.gotoAndStop('showr'); _root.tooltip(20); } else { _root.minitip('Wrists'); } } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (release) { _root.dequip(20); } } instance cslot21 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(21)); if (this.hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.slot[21] != 'none') { _root.tooltipbox.gotoAndStop('showr'); _root.tooltip(21); } else { _root.minitip('Trinket'); } } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (release) { _root.dequip(21); } } instance cslot22 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(22)); if (this.hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.slot[22] != 'none') { _root.tooltipbox.gotoAndStop('show'); _root.tooltip(22); } else { _root.minitip('Hands'); } } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (release) { _root.dequip(22); } } instance cslot23 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(23)); if (this.hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.slot[23] != 'none') { _root.tooltipbox.gotoAndStop('show'); _root.tooltip(23); } else { _root.minitip('Waist'); } } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (release) { _root.dequip(23); } } instance cslot24 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(24)); if (this.hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.slot[24] != 'none') { _root.tooltipbox.gotoAndStop('show'); _root.tooltip(24); } else { _root.minitip('Legs'); } } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (release) { _root.dequip(24); } } instance cslot25 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(25)); if (this.hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.slot[25] != 'none') { _root.tooltipbox.gotoAndStop('show'); _root.tooltip(25); } else { _root.minitip('Feet'); } } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (release) { _root.dequip(25); } } instance cslot26 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(26)); if (this.hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.slot[26] != 'none') { _root.tooltipbox.gotoAndStop('show'); _root.tooltip(26); } else { _root.minitip('Finger'); } } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (release) { _root.dequip(26); } } instance cslot27 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(27)); if (this.hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.slot[27] != 'none') { _root.tooltipbox.gotoAndStop('show'); _root.tooltip(27); } else { _root.minitip('Finger'); } } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (release) { _root.dequip(27); } } instance cslot28 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(28)); if (_root.slot[28] != 'none') { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.tooltipbox.gotoAndStop('show'); _root.tooltip(28); } } } onClipEvent (rollOut) { if (_root.slot[28] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (dragOut) { if (_root.slot[28] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (release) { _root.dequip(28); } } instance cslot29 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(29)); if (_root.slot[29] != 'none') { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.tooltipbox.gotoAndStop('show'); _root.tooltip(29); } } } onClipEvent (rollOut) { if (_root.slot[29] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (dragOut) { if (_root.slot[29] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (release) { _root.dequip(29); } } instance cslot30 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(30)); if (_root.slot[30] != 'none') { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.tooltipbox.gotoAndStop('show'); _root.tooltip(29); } } } onClipEvent (rollOut) { if (_root.slot[30] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (dragOut) { if (_root.slot[30] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (release) { _root.dequip(30); } } instance of movieClip 1576 { onClipEvent (release) { _root.sfx('closecharscreen'); _parent.play(); } } instance stats of movieClip 1588 { onClipEvent (enterFrame) { this.melee = [(_root.getmindmg(28) + 1) * _root.level] + '-' + [(_root.getmaxdmg(28) + 1) * _root.level]; if (_root.slot[30] == 'none') { this.ranged = 'N/A'; } else { this.ranged = [_root.getmindmg(30)] + '-' + [_root.getmaxdmg(30)]; } this.armor = _root.getac(); } } } movieClip 1601 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } movieClip 1603 { frame 1 { stop(); _root.bpack = false; } frame 2 { stop(); i = 0; while (i < 16) { _root.backpack['bslot' + (i + 1)].gotoAndStop(_root.geticon(i)); ++i; } bmoney.g = _root.gold(_root.money); bmoney.s = _root.silver(_root.money); bmoney.c = _root.copper(_root.money); if (bmoney.g != 0) { bmoney.gotoAndStop(2); } else { if (bmoney.s != 0) { bmoney.gotoAndStop(3); } else { bmoney.gotoAndStop(4); } } _root.bpack = true; } instance bmoney of movieClip 1601 { onClipEvent (enterFrame) { g = _root.gold(_root.money); s = _root.silver(_root.money); c = _root.copper(_root.money); if (g != 0) { this.gotoAndStop(2); } else { if (s != 0) { this.gotoAndStop(3); } else { this.gotoAndStop(4); } } } } instance of movieClip 1576 { onClipEvent (release) { _root.sfx('closebackpack'); _parent.play(); } } instance bslot1 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(0)); if (_root.slot[0] != 'none') { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.tooltipbox.gotoAndStop('show'); _root.tooltip(0); } } } onClipEvent (rollOut) { if (_root.slot[0] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (dragOut) { if (_root.slot[0] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (release) { if (_root.shop == true) { _root.sell(0); } else { _root.equip(0); } } } instance bslot2 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(1)); if (_root.slot[1] != 'none') { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.tooltipbox.gotoAndStop('show'); _root.tooltip(1); } } } onClipEvent (rollOut) { if (_root.slot[1] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (dragOut) { if (_root.slot[1] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (release) { if (_root.shop == true) { _root.sell(1); } else { _root.equip(1); } } } instance bslot3 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(2)); if (_root.slot[2] != 'none') { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.tooltipbox.gotoAndStop('show'); _root.tooltip(2); } } } onClipEvent (rollOut) { if (_root.slot[2] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (dragOut) { if (_root.slot[2] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (release) { if (_root.shop == true) { _root.sell(2); } else { _root.equip(2); } } } instance bslot4 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(3)); if (_root.slot[3] != 'none') { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.tooltipbox.gotoAndStop('show'); _root.tooltip(3); } } } onClipEvent (rollOut) { if (_root.slot[3] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (dragOut) { if (_root.slot[3] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (release) { if (_root.shop == true) { _root.sell(3); } else { _root.equip(3); } } } instance bslot5 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(4)); if (_root.slot[4] != 'none') { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.tooltipbox.gotoAndStop('show'); _root.tooltip(4); } } } onClipEvent (rollOut) { if (_root.slot[4] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (dragOut) { if (_root.slot[4] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (release) { if (_root.shop == true) { _root.sell(4); } else { _root.equip(4); } } } instance bslot6 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(5)); if (_root.slot[5] != 'none') { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.tooltipbox.gotoAndStop('show'); _root.tooltip(5); } } } onClipEvent (rollOut) { if (_root.slot[5] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (dragOut) { if (_root.slot[5] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (release) { if (_root.shop == true) { _root.sell(5); } else { _root.equip(5); } } } instance bslot7 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(6)); if (_root.slot[6] != 'none') { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.tooltipbox.gotoAndStop('show'); _root.tooltip(6); } } } onClipEvent (rollOut) { if (_root.slot[6] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (dragOut) { if (_root.slot[6] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (release) { if (_root.shop == true) { _root.sell(6); } else { _root.equip(6); } } } instance bslot8 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(7)); if (_root.slot[7] != 'none') { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.tooltipbox.gotoAndStop('show'); _root.tooltip(7); } } } onClipEvent (rollOut) { if (_root.slot[7] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (dragOut) { if (_root.slot[7] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (release) { if (_root.shop == true) { _root.sell(7); } else { _root.equip(7); } } } instance bslot9 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(8)); if (_root.slot[8] != 'none') { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.tooltipbox.gotoAndStop('show'); _root.tooltip(8); } } } onClipEvent (rollOut) { if (_root.slot[8] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (dragOut) { if (_root.slot[8] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (release) { if (_root.shop == true) { _root.sell(8); } else { _root.equip(8); } } } instance bslot10 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(9)); if (_root.slot[9] != 'none') { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.tooltipbox.gotoAndStop('show'); _root.tooltip(9); } } } onClipEvent (rollOut) { if (_root.slot[9] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (dragOut) { if (_root.slot[9] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (release) { if (_root.shop == true) { _root.sell(9); } else { _root.equip(9); } } } instance bslot11 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(10)); if (_root.slot[10] != 'none') { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.tooltipbox.gotoAndStop('show'); _root.tooltip(10); } } } onClipEvent (rollOut) { if (_root.slot[10] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (dragOut) { if (_root.slot[10] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (release) { if (_root.shop == true) { _root.sell(10); } else { _root.equip(10); } } } instance bslot12 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(11)); if (_root.slot[11] != 'none') { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.tooltipbox.gotoAndStop('show'); _root.tooltip(11); } } } onClipEvent (rollOut) { if (_root.slot[11] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (dragOut) { if (_root.slot[11] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (release) { if (_root.shop == true) { _root.sell(11); } else { _root.equip(11); } } } instance bslot13 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(12)); if (_root.slot[12] != 'none') { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.tooltipbox.gotoAndStop('show'); _root.tooltip(12); } } } onClipEvent (rollOut) { if (_root.slot[12] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (dragOut) { if (_root.slot[12] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (release) { if (_root.shop == true) { _root.sell(12); } else { _root.equip(12); } } } instance bslot14 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(13)); if (_root.slot[13] != 'none') { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.tooltipbox.gotoAndStop('show'); _root.tooltip(13); } } } onClipEvent (rollOut) { if (_root.slot[13] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (dragOut) { if (_root.slot[13] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (release) { if (_root.shop == true) { _root.sell(13); } else { _root.equip(13); } } } instance bslot15 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(14)); if (_root.slot[14] != 'none') { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.tooltipbox.gotoAndStop('show'); _root.tooltip(14); } } } onClipEvent (rollOut) { if (_root.slot[14] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (dragOut) { if (_root.slot[14] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (release) { if (_root.shop == true) { _root.sell(14); } else { _root.equip(14); } } } instance bslot16 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(15)); if (_root.slot[15] != 'none') { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.tooltipbox.gotoAndStop('show'); _root.tooltip(15); } } } onClipEvent (rollOut) { if (_root.slot[15] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (dragOut) { if (_root.slot[15] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (release) { if (_root.shop == true) { _root.sell(15); } else { _root.equip(15); } } } } movieClip 1614 { } movieClip 1617 { } movieClip 1620 { } movieClip 1623 { } movieClip 1626 { } movieClip 1629 { } movieClip 1632 { } movieClip 1635 { } movieClip 1638 { } movieClip 1641 { } movieClip 1647 { } movieClip 1649 { } movieClip 1654 { } movieClip 1657 { } movieClip 1660 { } movieClip 1663 { } movieClip 1666 { } movieClip 1669 { } movieClip 1672 { } movieClip 1675 { } movieClip 1678 { } movieClip 1681 { } movieClip 1684 { frame 1 { stop(); _root.talentbox = false; } frame 2 { stop(); _root.talentbox = true; if (_root.heroicstrike >= 1) { iheroicstrike.gotoAndStop('normal'); } else { if (_root.talents > 0) { iheroicstrike.gotoAndStop('green'); } else { iheroicstrike.gotoAndStop('grey'); } } if (_root.bloodrage >= 1) { ibloodrage.gotoAndStop('normal'); } else { if (_root.talents > 0 && _root.heroicstrike >= 1) { ibloodrage.gotoAndStop('green'); } else { ibloodrage.gotoAndStop('grey'); } } if (_root.pummel >= 1) { ipummel.gotoAndStop('normal'); } else { if (_root.talents > 0 && _root.bloodrage >= 1) { ipummel.gotoAndStop('green'); } else { ipummel.gotoAndStop('grey'); } } if (_root.charge >= 1) { icharge.gotoAndStop('normal'); } else { if (_root.talents > 0 && _root.pummel >= 1) { icharge.gotoAndStop('green'); } else { icharge.gotoAndStop('grey'); } } if (_root.exec >= 1) { iexec.gotoAndStop('normal'); } else { if (_root.talents > 0 && _root.charge >= 1) { iexec.gotoAndStop('green'); } else { iexec.gotoAndStop('grey'); } } if (_root.cruelty >= 1) { icruelty.gotoAndStop('normal'); } else { if (_root.talents > 0) { icruelty.gotoAndStop('green'); } else { icruelty.gotoAndStop('grey'); } } if (_root.retaliation >= 1) { iretaliation.gotoAndStop('normal'); } else { if (_root.talents > 0 && _root.cruelty >= 1) { iretaliation.gotoAndStop('green'); } else { iretaliation.gotoAndStop('grey'); } } if (_root.coldblood >= 1) { icoldblood.gotoAndStop('normal'); } else { if (_root.talents > 0 && _root.retaliation >= 1) { icoldblood.gotoAndStop('green'); } else { icoldblood.gotoAndStop('grey'); } } if (_root.vigor >= 1) { ivigor.gotoAndStop('normal'); } else { if (_root.talents > 0 && _root.coldblood >= 1) { ivigor.gotoAndStop('green'); } else { ivigor.gotoAndStop('grey'); } } if (_root.adr >= 1) { iadr.gotoAndStop('normal'); } else { if (_root.talents > 0 && _root.vigor >= 1) { iadr.gotoAndStop('green'); } else { iadr.gotoAndStop('grey'); } } } instance iheroicstrike of movieClip 1614 { onClipEvent (release) { if (_root.talents > 0 && _root.heroicstrike < 1) { _root.heroicstrike = 1; _root.talents -= 1; } } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.skilltip('heroicstrike', 'r'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance ibloodrage of movieClip 1617 { onClipEvent (release) { if (_root.talents > 0 && _root.heroicstrike >= 1 && _root.bloodrage < 1) { _root.bloodrage = 1; _root.talents -= 1; } } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.skilltip('bloodrage', 'r'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance ipummel of movieClip 1620 { onClipEvent (release) { if (_root.talents > 0 && _root.bloodrage >= 1 && _root.pummel < 1) { _root.pummel = 1; _root.talents -= 1; } } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.skilltip('pummel', 'r'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance icharge of movieClip 1623 { onClipEvent (release) { if (_root.talents > 0 && _root.pummel >= 1 && _root.charge < 1) { _root.charge = 1; _root.talents -= 1; } } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.skilltip('charge', 'r'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance iexec of movieClip 1626 { onClipEvent (release) { if (_root.talents > 0 && _root.charge >= 1 && _root.exec < 1) { _root.exec = 1; _root.talents -= 1; } } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.skilltip('exec', 'r'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance icruelty of movieClip 1629 { onClipEvent (release) { if (_root.talents > 0 && _root.cruelty < 1) { _root.cruelty = 1; _root.talents -= 1; } } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.skilltip('cruelty'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance iretaliation of movieClip 1632 { onClipEvent (release) { if (_root.talents > 0 && _root.cruelty >= 1 && _root.retaliation < 1) { _root.retaliation = 1; _root.talents -= 1; } } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.skilltip('retaliation'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance icoldblood of movieClip 1635 { onClipEvent (release) { if (_root.talents > 0 && _root.retaliation >= 1 && _root.coldblood < 1) { _root.coldblood = 1; _root.talents -= 1; } } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.skilltip('coldblood'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance ivigor of movieClip 1638 { onClipEvent (release) { if (_root.talents > 0 && _root.coldblood >= 1 && _root.vigor < 1) { _root.vigor = 1; _root.hmaxen += 20; _root.talents -= 1; } } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.skilltip('vigor'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance iadr of movieClip 1641 { onClipEvent (release) { if (_root.talents > 0 && _root.vigor >= 1 && _root.adr < 1) { _root.adr = 1; _root.talents -= 1; } } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.skilltip('adr'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance of movieClip 1647 { onClipEvent (release) { _parent.gotoAndStop('magic'); } } instance of movieClip 1576 { onClipEvent (release) { _root.sfx('closecharscreen'); _parent.gotoAndStop('hide'); } } instance of movieClip 1649 { onClipEvent (enterFrame) { if (_root.heroicstrike >= 1) { _parent.iheroicstrike.gotoAndStop('normal'); } else { if (_root.talents > 0) { _parent.iheroicstrike.gotoAndStop('green'); } else { _parent.iheroicstrike.gotoAndStop('grey'); } } if (_root.bloodrage >= 1) { _parent.ibloodrage.gotoAndStop('normal'); } else { if (_root.talents > 0 && _root.heroicstrike >= 1) { _parent.ibloodrage.gotoAndStop('green'); } else { _parent.ibloodrage.gotoAndStop('grey'); } } if (_root.pummel >= 1) { _parent.ipummel.gotoAndStop('normal'); } else { if (_root.talents > 0 && _root.bloodrage >= 1) { _parent.ipummel.gotoAndStop('green'); } else { _parent.ipummel.gotoAndStop('grey'); } } if (_root.charge >= 1) { _parent.icharge.gotoAndStop('normal'); } else { if (_root.talents > 0 && _root.pummel >= 1) { _parent.icharge.gotoAndStop('green'); } else { _parent.icharge.gotoAndStop('grey'); } } if (_root.exec >= 1) { _parent.iexec.gotoAndStop('normal'); } else { if (_root.talents > 0 && _root.charge >= 1) { _parent.iexec.gotoAndStop('green'); } else { _parent.iexec.gotoAndStop('grey'); } } if (_root.cruelty >= 1) { _parent.icruelty.gotoAndStop('normal'); } else { if (_root.talents > 0) { _parent.icruelty.gotoAndStop('green'); } else { _parent.icruelty.gotoAndStop('grey'); } } if (_root.retaliation >= 1) { _parent.iretaliation.gotoAndStop('normal'); } else { if (_root.talents > 0 && _root.cruelty >= 1) { _parent.iretaliation.gotoAndStop('green'); } else { _parent.iretaliation.gotoAndStop('grey'); } } if (_root.coldblood >= 1) { _parent.icoldblood.gotoAndStop('normal'); } else { if (_root.talents > 0 && _root.retaliation >= 1) { _parent.icoldblood.gotoAndStop('green'); } else { _parent.icoldblood.gotoAndStop('grey'); } } if (_root.vigor >= 1) { _parent.ivigor.gotoAndStop('normal'); } else { if (_root.talents > 0 && _root.coldblood >= 1) { _parent.ivigor.gotoAndStop('green'); } else { _parent.ivigor.gotoAndStop('grey'); } } if (_root.adr >= 1) { _parent.iadr.gotoAndStop('normal'); } else { if (_root.talents > 0 && _root.vigor >= 1) { _parent.iadr.gotoAndStop('green'); } else { _parent.iadr.gotoAndStop('grey'); } } } } frame 3 { stop(); _root.talentbox = true; if (_root.markofthewild >= 1) { imarkofthewild.gotoAndStop('normal'); } else { if (_root.talents > 0) { imarkofthewild.gotoAndStop('green'); } else { imarkofthewild.gotoAndStop('grey'); } } if (_root.renew >= 1) { irenew.gotoAndStop('normal'); } else { if (_root.talents > 0 && _root.markofthewild >= 1) { irenew.gotoAndStop('green'); } else { irenew.gotoAndStop('grey'); } } if (_root.heal >= 1) { iheal.gotoAndStop('normal'); } else { if (_root.talents > 0 && _root.renew >= 1) { iheal.gotoAndStop('green'); } else { iheal.gotoAndStop('grey'); } } if (_root.powerwordshield >= 1) { ipowerwordshield.gotoAndStop('normal'); } else { if (_root.talents > 0 && _root.heal >= 1) { ipowerwordshield.gotoAndStop('green'); } else { ipowerwordshield.gotoAndStop('grey'); } } if (_root.polymorph >= 1) { ipolymorph.gotoAndStop('normal'); } else { if (_root.talents > 0 && _root.powerwordshield >= 1) { ipolymorph.gotoAndStop('green'); } else { ipolymorph.gotoAndStop('grey'); } } if (_root.lashofpain >= 1) { ilashofpain.gotoAndStop('normal'); } else { if (_root.talents > 0) { ilashofpain.gotoAndStop('green'); } else { ilashofpain.gotoAndStop('grey'); } } if (_root.drainlife >= 1) { idrainlife.gotoAndStop('normal'); } else { if (_root.talents > 0 && _root.lashofpain >= 1) { idrainlife.gotoAndStop('green'); } else { idrainlife.gotoAndStop('grey'); } } if (_root.frostnova >= 1) { ifrostnova.gotoAndStop('normal'); } else { if (_root.talents > 0 && _root.drainlife >= 1) { ifrostnova.gotoAndStop('green'); } else { ifrostnova.gotoAndStop('grey'); } } if (_root.bloodpact >= 1) { ibloodpact.gotoAndStop('normal'); } else { if (_root.talents > 0 && _root.frostnova >= 1) { ibloodpact.gotoAndStop('green'); } else { ibloodpact.gotoAndStop('grey'); } } if (_root.pyroblast >= 1) { ipyroblast.gotoAndStop('normal'); } else { if (_root.talents > 0 && _root.bloodpact >= 1) { ipyroblast.gotoAndStop('green'); } else { ipyroblast.gotoAndStop('grey'); } } } instance imarkofthewild of movieClip 1654 { onClipEvent (release) { if (_root.talents > 0 && _root.markofthewild < 1) { _root.markofthewild = 1; _root.talents -= 1; } } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.skilltip('markofthewild', 'r'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance irenew of movieClip 1657 { onClipEvent (release) { if (_root.talents > 0 && _root.markofthewild >= 1 && _root.renew < 1) { _root.renew = 1; _root.talents -= 1; } } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.skilltip('renew', 'r'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance iheal of movieClip 1660 { onClipEvent (release) { if (_root.talents > 0 && _root.renew >= 1 && _root.heal < 1) { _root.heal = 1; _root.talents -= 1; } } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.skilltip('heal', 'r'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance ipowerwordshield of movieClip 1663 { onClipEvent (release) { if (_root.talents > 0 && _root.heal >= 1 && _root.powerwordshield < 1) { _root.powerwordshield = 1; _root.talents -= 1; } } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.skilltip('powerwordshield', 'r'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance ipolymorph of movieClip 1666 { onClipEvent (release) { if (_root.talents > 0 && _root.powerwordshield >= 1 && _root.polymorph < 1) { _root.polymorph = 1; _root.talents -= 1; } } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.skilltip('polymorph', 'r'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance ilashofpain of movieClip 1669 { onClipEvent (release) { if (_root.talents > 0 && _root.lashofpain < 1) { _root.lashofpain = 1; _root.talents -= 1; } } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.skilltip('lashofpain'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance idrainlife of movieClip 1672 { onClipEvent (release) { if (_root.talents > 0 && _root.lashofpain >= 1 && _root.drainlife < 1) { _root.drainlife = 1; _root.talents -= 1; } } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.skilltip('drainlife'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance ifrostnova of movieClip 1675 { onClipEvent (release) { if (_root.talents > 0 && _root.drainlife >= 1 && _root.frostnova < 1) { _root.frostnova = 1; _root.talents -= 1; } } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.skilltip('frostnova'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance ibloodpact of movieClip 1678 { onClipEvent (release) { if (_root.talents > 0 && _root.frostnova >= 1 && _root.bloodpact < 1) { _root.bloodpact = 1; _root.hmaxhp += Math.round(_root.hmaxhp * 0.15); _root.talents -= 1; } } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.skilltip('bloodpact'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance ipyroblast of movieClip 1681 { onClipEvent (release) { if (_root.talents > 0 && _root.bloodpact >= 1 && _root.pyroblast < 1) { _root.pyroblast = 1; _root.talents -= 1; } } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.skilltip('pyroblast'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance of movieClip 1647 { onClipEvent (release) { _parent.gotoAndStop('fury'); } } instance of movieClip 1649 { onClipEvent (enterFrame) { if (_root.markofthewild >= 1) { _parent.imarkofthewild.gotoAndStop('normal'); } else { if (_root.talents > 0) { _parent.imarkofthewild.gotoAndStop('green'); } else { _parent.imarkofthewild.gotoAndStop('grey'); } } if (_root.renew >= 1) { _parent.irenew.gotoAndStop('normal'); } else { if (_root.talents > 0 && _root.markofthewild >= 1) { _parent.irenew.gotoAndStop('green'); } else { _parent.irenew.gotoAndStop('grey'); } } if (_root.heal >= 1) { _parent.iheal.gotoAndStop('normal'); } else { if (_root.talents > 0 && _root.renew >= 1) { _parent.iheal.gotoAndStop('green'); } else { _parent.iheal.gotoAndStop('grey'); } } if (_root.powerwordshield >= 1) { _parent.ipowerwordshield.gotoAndStop('normal'); } else { if (_root.talents > 0 && _root.heal >= 1) { _parent.ipowerwordshield.gotoAndStop('green'); } else { _parent.ipowerwordshield.gotoAndStop('grey'); } } if (_root.polymorph >= 1) { _parent.ipolymorph.gotoAndStop('normal'); } else { if (_root.talents > 0 && _root.powerwordshield >= 1) { _parent.ipolymorph.gotoAndStop('green'); } else { _parent.ipolymorph.gotoAndStop('grey'); } } if (_root.lashofpain >= 1) { _parent.ilashofpain.gotoAndStop('normal'); } else { if (_root.talents > 0) { _parent.ilashofpain.gotoAndStop('green'); } else { _parent.ilashofpain.gotoAndStop('grey'); } } if (_root.drainlife >= 1) { _parent.idrainlife.gotoAndStop('normal'); } else { if (_root.talents > 0 && _root.lashofpain >= 1) { _parent.idrainlife.gotoAndStop('green'); } else { _parent.idrainlife.gotoAndStop('grey'); } } if (_root.frostnova >= 1) { _parent.ifrostnova.gotoAndStop('normal'); } else { if (_root.talents > 0 && _root.drainlife >= 1) { _parent.ifrostnova.gotoAndStop('green'); } else { _parent.ifrostnova.gotoAndStop('grey'); } } if (_root.bloodpact >= 1) { _parent.ibloodpact.gotoAndStop('normal'); } else { if (_root.talents > 0 && _root.frostnova >= 1) { _parent.ibloodpact.gotoAndStop('green'); } else { _parent.ibloodpact.gotoAndStop('grey'); } } if (_root.pyroblast >= 1) { _parent.ipyroblast.gotoAndStop('normal'); } else { if (_root.talents > 0 && _root.bloodpact >= 1) { _parent.ipyroblast.gotoAndStop('green'); } else { _parent.ipyroblast.gotoAndStop('grey'); } } } } } movieClip 1689 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1699 { frame 1 { stop(); } } movieClip 1709 { } movieClip 1711 { frame 1 { stop(); } frame 2 { stop(); i = 31; while (i <= 36) { _root.vendorbox['vend' + i].gotoAndStop(_root.geticon(i)); if (_root.slot[i] != 'none') { if (_root.level < _root.getlvl(i)) { _root.vendorbox['lowlvl' + i].gotoAndStop('show'); } } if (_root.slot[i] != 'none') { _root.vendorbox['price' + i].g = _root.gold(_root.getprice(i)); _root.vendorbox['price' + i].s = _root.silver(_root.getprice(i)); _root.vendorbox['price' + i].c = _root.copper(_root.getprice(i)); if (_root.vendorbox['price' + i].g != 0) { _root.vendorbox['price' + i].gotoAndStop(2); } else { if (_root.vendorbox['price' + i].s != 0) { _root.vendorbox['price' + i].gotoAndStop(3); } else { _root.vendorbox['price' + i].gotoAndStop(4); } } } ++i; } vmoney.g = _root.gold(_root.money); vmoney.s = _root.silver(_root.money); vmoney.c = _root.copper(_root.money); if (vmoney.g != 0) { vmoney.gotoAndStop(2); } else { if (vmoney.s != 0) { vmoney.gotoAndStop(3); } else { vmoney.gotoAndStop(4); } } vendorport.gotoAndStop(_root.vendorname); spot1 = _root.resizetxt(_root.getname(31)); spot2 = _root.resizetxt(_root.getname(32)); spot3 = _root.resizetxt(_root.getname(33)); spot4 = _root.resizetxt(_root.getname(34)); spot5 = _root.resizetxt(_root.getname(35)); spot6 = _root.resizetxt(_root.getname(36)); } instance of movieClip 1689 { onClipEvent (enterFrame) { if (_root.vendsum(_root.vendor) > 6) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (release) { if (_root.vendsum(_root.vendor) > 6) { _parent.play(); } } } instance of movieClip 1576 { onClipEvent (release) { _root.freeze = false; _root.shop = false; _root.sfx('closecharscreen'); _parent.gotoAndStop(1); } } instance vmoney of movieClip 1601 { onClipEvent (enterFrame) { g = _root.gold(_root.money); s = _root.silver(_root.money); c = _root.copper(_root.money); if (g != 0) { this.gotoAndStop(2); } else { if (s != 0) { this.gotoAndStop(3); } else { this.gotoAndStop(4); } } } } instance vend31 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(31)); if (_root.slot[31] != 'none') { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.tooltipbox.gotoAndStop('showr'); _root.tooltip(31); } } } onClipEvent (rollOut) { if (_root.slot[31] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (dragOut) { if (_root.slot[31] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (release) { _root.buy(31); } } instance vend33 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(33)); if (_root.slot[33] != 'none') { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.tooltipbox.gotoAndStop('showr'); _root.tooltip(33); } } } onClipEvent (rollOut) { if (_root.slot[33] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (dragOut) { if (_root.slot[33] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (release) { _root.buy(33); } } instance vend35 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(35)); if (_root.slot[35] != 'none') { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.tooltipbox.gotoAndStop('showr'); _root.tooltip(35); } } } onClipEvent (rollOut) { if (_root.slot[35] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (dragOut) { if (_root.slot[35] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (release) { _root.buy(35); } } instance vend32 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(32)); if (_root.slot[32] != 'none') { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.tooltipbox.gotoAndStop('show'); _root.tooltip(32); } } } onClipEvent (rollOut) { if (_root.slot[32] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (dragOut) { if (_root.slot[32] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (release) { _root.buy(32); } } instance vend34 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(34)); if (_root.slot[34] != 'none') { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.tooltipbox.gotoAndStop('show'); _root.tooltip(34); } } } onClipEvent (rollOut) { if (_root.slot[34] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (dragOut) { if (_root.slot[34] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (release) { _root.buy(34); } } instance vend36 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(36)); if (_root.slot[36] != 'none') { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.tooltipbox.gotoAndStop('show'); _root.tooltip(36); } } } onClipEvent (rollOut) { if (_root.slot[36] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (dragOut) { if (_root.slot[36] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (release) { _root.buy(36); } } instance price31 of movieClip 1601 { onClipEvent (enterFrame) { if (_root.slot[31] != 'none') { this.g = _root.gold(_root.getprice(31)); this.s = _root.silver(_root.getprice(31)); this.c = _root.copper(_root.getprice(31)); if (this.g != 0) { this.gotoAndStop(2); } else { if (this.s != 0) { this.gotoAndStop(3); } else { this.gotoAndStop(4); } } } } } instance price32 of movieClip 1601 { onClipEvent (enterFrame) { if (_root.slot[32] != 'none') { this.g = _root.gold(_root.getprice(32)); this.s = _root.silver(_root.getprice(32)); this.c = _root.copper(_root.getprice(32)); if (this.g != 0) { this.gotoAndStop(2); } else { if (this.s != 0) { this.gotoAndStop(3); } else { this.gotoAndStop(4); } } } } } instance price33 of movieClip 1601 { onClipEvent (enterFrame) { if (_root.slot[33] != 'none') { this.g = _root.gold(_root.getprice(33)); this.s = _root.silver(_root.getprice(33)); this.c = _root.copper(_root.getprice(33)); if (this.g != 0) { this.gotoAndStop(2); } else { if (this.s != 0) { this.gotoAndStop(3); } else { this.gotoAndStop(4); } } } } } instance price34 of movieClip 1601 { onClipEvent (enterFrame) { if (_root.slot[34] != 'none') { this.g = _root.gold(_root.getprice(34)); this.s = _root.silver(_root.getprice(34)); this.c = _root.copper(_root.getprice(34)); if (this.g != 0) { this.gotoAndStop(2); } else { if (this.s != 0) { this.gotoAndStop(3); } else { this.gotoAndStop(4); } } } } } instance price35 of movieClip 1601 { onClipEvent (enterFrame) { if (_root.slot[35] != 'none') { this.g = _root.gold(_root.getprice(35)); this.s = _root.silver(_root.getprice(35)); this.c = _root.copper(_root.getprice(35)); if (this.g != 0) { this.gotoAndStop(2); } else { if (this.s != 0) { this.gotoAndStop(3); } else { this.gotoAndStop(4); } } } } } instance price36 of movieClip 1601 { onClipEvent (enterFrame) { if (_root.slot[36] != 'none') { this.g = _root.gold(_root.getprice(36)); this.s = _root.silver(_root.getprice(36)); this.c = _root.copper(_root.getprice(36)); if (this.g != 0) { this.gotoAndStop(2); } else { if (this.s != 0) { this.gotoAndStop(3); } else { this.gotoAndStop(4); } } } } } instance lowlvl31 of movieClip 1699 { onClipEvent (enterFrame) { if (_root.slot[31] != 'none') { if (_root.level < _root.getlvl(31)) { this.gotoAndStop('show'); } } } } instance lowlvl32 of movieClip 1699 { onClipEvent (enterFrame) { if (_root.slot[32] != 'none') { if (_root.level < _root.getlvl(32)) { this.gotoAndStop('show'); } } } } instance lowlvl33 of movieClip 1699 { onClipEvent (enterFrame) { if (_root.slot[33] != 'none') { if (_root.level < _root.getlvl(33)) { this.gotoAndStop('show'); } } } } instance lowlvl34 of movieClip 1699 { onClipEvent (enterFrame) { if (_root.slot[34] != 'none') { if (_root.level < _root.getlvl(34)) { this.gotoAndStop('show'); } } } } instance lowlvl35 of movieClip 1699 { onClipEvent (enterFrame) { if (_root.slot[35] != 'none') { if (_root.level < _root.getlvl(35)) { this.gotoAndStop('show'); } } } } instance lowlvl36 of movieClip 1699 { onClipEvent (enterFrame) { if (_root.slot[36] != 'none') { if (_root.level < _root.getlvl(36)) { this.gotoAndStop('show'); } } } } frame 3 { stop(); i = 37; while (i <= 42) { _root.vendorbox['vend' + i].gotoAndStop(_root.geticon(i)); if (_root.slot[i] != 'none') { if (_root.level < _root.getlvl(i)) { _root.vendorbox['lowlvl' + i].gotoAndStop('show'); } } ++i; } vendorport.gotoAndStop(_root.vendorname); spot1 = _root.resizetxt(_root.getname(37)); spot2 = _root.resizetxt(_root.getname(38)); spot3 = _root.resizetxt(_root.getname(39)); spot4 = _root.resizetxt(_root.getname(40)); spot5 = _root.resizetxt(_root.getname(41)); spot6 = _root.resizetxt(_root.getname(42)); } instance of movieClip 1689 { onClipEvent (enterFrame) { this.gotoAndStop(2); } onClipEvent (release) { _parent.gotoAndStop(2); } } instance of movieClip 1576 { onClipEvent (release) { _parent.gotoAndStop(1); } } instance vend37 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(37)); if (_root.slot[37] != 'none') { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.tooltipbox.gotoAndStop('showr'); _root.tooltip(37); } } } onClipEvent (rollOut) { if (_root.slot[37] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (dragOut) { if (_root.slot[37] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (release) { _root.buy(37); } } instance vend39 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(39)); if (_root.slot[39] != 'none') { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.tooltipbox.gotoAndStop('showr'); _root.tooltip(39); } } } onClipEvent (rollOut) { if (_root.slot[39] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (dragOut) { if (_root.slot[39] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (release) { _root.buy(39); } } instance vend41 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(41)); if (_root.slot[41] != 'none') { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.tooltipbox.gotoAndStop('showr'); _root.tooltip(41); } } } onClipEvent (rollOut) { if (_root.slot[41] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (dragOut) { if (_root.slot[41] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (release) { _root.buy(41); } } instance vend38 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(38)); if (_root.slot[38] != 'none') { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.tooltipbox.gotoAndStop('show'); _root.tooltip(38); } } } onClipEvent (rollOut) { if (_root.slot[38] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (dragOut) { if (_root.slot[38] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (release) { _root.buy(38); } } instance vend40 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(40)); if (_root.slot[40] != 'none') { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.tooltipbox.gotoAndStop('show'); _root.tooltip(40); } } } onClipEvent (rollOut) { if (_root.slot[40] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (dragOut) { if (_root.slot[40] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (release) { _root.buy(40); } } instance vend42 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(42)); if (_root.slot[42] != 'none') { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.tooltipbox.gotoAndStop('show'); _root.tooltip(42); } } } onClipEvent (rollOut) { if (_root.slot[42] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (dragOut) { if (_root.slot[42] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (release) { _root.buy(42); } } instance price37 of movieClip 1601 { onClipEvent (enterFrame) { if (_root.slot[37] != 'none') { this.g = _root.gold(_root.getprice(37)); this.s = _root.silver(_root.getprice(37)); this.c = _root.copper(_root.getprice(37)); if (this.g != 0) { this.gotoAndStop(2); } else { if (this.s != 0) { this.gotoAndStop(3); } else { this.gotoAndStop(4); } } } } } instance price38 of movieClip 1601 { onClipEvent (enterFrame) { if (_root.slot[38] != 'none') { this.g = _root.gold(_root.getprice(38)); this.s = _root.silver(_root.getprice(38)); this.c = _root.copper(_root.getprice(38)); if (this.g != 0) { this.gotoAndStop(2); } else { if (this.s != 0) { this.gotoAndStop(3); } else { this.gotoAndStop(4); } } } } } instance price39 of movieClip 1601 { onClipEvent (enterFrame) { if (_root.slot[39] != 'none') { this.g = _root.gold(_root.getprice(39)); this.s = _root.silver(_root.getprice(39)); this.c = _root.copper(_root.getprice(39)); if (this.g != 0) { this.gotoAndStop(2); } else { if (this.s != 0) { this.gotoAndStop(3); } else { this.gotoAndStop(4); } } } } } instance price40 of movieClip 1601 { onClipEvent (enterFrame) { if (_root.slot[40] != 'none') { this.g = _root.gold(_root.getprice(40)); this.s = _root.silver(_root.getprice(40)); this.c = _root.copper(_root.getprice(40)); if (this.g != 0) { this.gotoAndStop(2); } else { if (this.s != 0) { this.gotoAndStop(3); } else { this.gotoAndStop(4); } } } } } instance price41 of movieClip 1601 { onClipEvent (enterFrame) { if (_root.slot[41] != 'none') { this.g = _root.gold(_root.getprice(41)); this.s = _root.silver(_root.getprice(41)); this.c = _root.copper(_root.getprice(41)); if (this.g != 0) { this.gotoAndStop(2); } else { if (this.s != 0) { this.gotoAndStop(3); } else { this.gotoAndStop(4); } } } } } instance price42 of movieClip 1601 { onClipEvent (enterFrame) { if (_root.slot[42] != 'none') { this.g = _root.gold(_root.getprice(42)); this.s = _root.silver(_root.getprice(42)); this.c = _root.copper(_root.getprice(42)); if (this.g != 0) { this.gotoAndStop(2); } else { if (this.s != 0) { this.gotoAndStop(3); } else { this.gotoAndStop(4); } } } } } instance lowlvl37 of movieClip 1699 { onClipEvent (enterFrame) { if (_root.slot[37] != 'none') { if (_root.level < _root.getlvl(37)) { this.gotoAndStop('show'); } } } } instance lowlvl38 of movieClip 1699 { onClipEvent (enterFrame) { if (_root.slot[38] != 'none') { if (_root.level < _root.getlvl(38)) { this.gotoAndStop('show'); } } } } instance lowlvl39 of movieClip 1699 { onClipEvent (enterFrame) { if (_root.slot[39] != 'none') { if (_root.level < _root.getlvl(39)) { this.gotoAndStop('show'); } } } } instance lowlvl40 of movieClip 1699 { onClipEvent (enterFrame) { if (_root.slot[40] != 'none') { if (_root.level < _root.getlvl(40)) { this.gotoAndStop('show'); } } } } instance lowlvl41 of movieClip 1699 { onClipEvent (enterFrame) { if (_root.slot[41] != 'none') { if (_root.level < _root.getlvl(41)) { this.gotoAndStop('show'); } } } } instance lowlvl42 of movieClip 1699 { onClipEvent (enterFrame) { if (_root.slot[42] != 'none') { if (_root.level < _root.getlvl(42)) { this.gotoAndStop('show'); } } } } } movieClip 1764 { } movieClip 1765 { frame 1 { stop(); } frame 20 { stop(); } } instance of movieClip 1765 { onClipEvent (load) { function __f_enterFrame(eventObj) { _root.testx = _root.murloc._x; } this.addEventListener('enterFrame', __f_enterFrame); } } movieClip 1767 { } button 1769 { on (release) { _root.mute = true; _parent.gotoAndStop('Dead'); stopAllSounds(); gotoAndStop('unmute'); } } button 1771 { on (release) { _root.mute = false; gotoAndStop('mute'); } } movieClip 1772 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1783 { frame 1 { stop(); } } instance musicbox of movieClip 1783 { onClipEvent (enterFrame) { if (_root.mute == true) { this.gotoAndStop('Dead'); } else { if (_root.isdead == true) { this.gotoAndStop('Dead'); } else { if (_root.battleon == true) { this.gotoAndStop('battle'); } else { if (_root.zone == 'Camp Brakil' && _root.nightseq == true) { this.gotoAndStop('campnight'); } else { this.gotoAndStop(_root.zone); } } } } } } movieClip 1785 { frame 12 { if (_root.freeze == false && _root.isdead == false) { if (_root.hcurhp < _root.hmaxhp) { _root.hcurhp += Math.round(0.2 * _root.hmaxhp); if (_root.hcurhp > _root.hmaxhp) { _root.hcurhp = _root.hmaxhp; } } if (_root.hcuren < _root.hmaxen) { _root.hcuren += Math.round(0.2 * _root.hmaxen); if (_root.hcuren > _root.hmaxen) { _root.hcuren = _root.hmaxen; } } } } } frame 86 { stop(); if (_root.port == 'left') { _root.murloc._x = 50; } else { if (_root.port == 'right') { _root.murloc._x = 650; } } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } } movieClip 1840 { } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.port = 'right'; _root.gotoAndPlay(_root._currentframe - 1); } } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (_root.freeze == false) { if (this.hitTest(_root.murloc.hero)) { if (Key.isDown(32)) { if (_root.talktochief == 0) { _root.textbox.gotoAndStop('firstq'); _root.freeze = true; } else { if (_root.talktochief == 1) { _root.textbox.gotoAndStop('ketchidle1'); _root.freeze = true; } else { if (_root.wolfmeat == 2 && _root.gaveketchin == 0) { _root.textbox.gotoAndStop('getsackofmeat'); _root.freeze = true; } else { if (_root.getspices == 1 && _root.countitem('mild_spices') <= 0) { _root.textbox.gotoAndStop('spicereminder'); _root.freeze = true; } else { if (_root.getspices == 1 && _root.countitem('mild_spices') >= 1) { _root.textbox.gotoAndStop('submitspice'); _root.freeze = true; } else { if (_root.getspices == 2) { _root.setupvendor('ketchin'); } else { roll = random(3); if (roll == 0) { _root.textbox.gotoAndStop('ketchrand1'); _root.freeze = true; } else { if (roll == 1) { _root.textbox.gotoAndStop('ketchrand2'); _root.freeze = true; } else { if (roll == 2) { _root.textbox.gotoAndStop('ketchrand3'); _root.freeze = true; } } } } } } } } } } } } } } instance ttmvill of movieClip 1265 { onClipEvent (enterFrame) { if (_root.talktochief == 0) { this.gotoAndStop('!'); } else { if (_root.wolfmeat == 2 && _root.gaveketchin == 0) { this.gotoAndStop('?'); } else { if (_root.getspices == 1 && _root.countitem('mild_spices') <= 0) { this.gotoAndStop('g?'); } else { if (_root.getspices == 1 && _root.countitem('mild_spices') >= 0) { this.gotoAndStop('?'); } else { this.gotoAndStop('done'); } } } } } } frame 87 { stop(); if (_root.port == 'left') { _root.murloc._x = 50; } else { if (_root.port == 'right') { _root.murloc._x = 650; } } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } } movieClip 1844 { } movieClip 1848 { } instance of movieClip 1252 { onClipEvent (enterFrame) { if (_root.freeze == false) { if (this.hitTest(_root.murloc.hero)) { if (Key.isDown(32)) { _root.setupvendor('camp_vendor'); } } } } } frame 88 { stop(); if (_root.port == 'left') { _root.murloc._x = 50; } else { if (_root.port == 'right') { _root.murloc._x = 650; } } if (_root.gottumq == true) { _root.gottum.gotoAndStop('hide'); } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } } movieClip 1903 { } movieClip 1904 { frame 1 { stop(); } frame 20 { stop(); } } instance murloc of movieClip 1248 { onClipEvent (enterFrame) { wspeed = 10; rspeed = 20; if ((Key.isDown(37) || Key.isDown(65)) && _root.freeze == false) { _root.dir = 'left'; if (_root.movem == 'walk') { _x = _x - wspeed; this.gotoAndStop('walkl'); } else { if (_root.movem == 'run') { _x = _x - rspeed; this.gotoAndStop('runl'); } } } else { if ((Key.isDown(39) || Key.isDown(68)) && _root.freeze == false) { _root.dir = 'right'; if (_root.movem == 'walk') { _x = _x + wspeed; this.gotoAndStop('walkr'); } else { if (_root.movem == 'run') { _x = _x + rspeed; this.gotoAndStop('runr'); } } } else { if (_root.dir == 'left') { this.gotoAndStop('standl'); } else { this.gotoAndStop('standr'); } } } if (Key.isDown(17)) { _root.movem = 'walk'; } else { _root.movem = 'run'; } } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (_root.freeze == false) { if (this.hitTest(_root.murloc.hero)) { if (Key.isDown(32)) { if (_root.talktolekon == 1 && _root.gettails == false) { _root.textbox.gotoAndStop('lekonhair'); _root.freeze = true; } else { if (_root.gettails == true && _root.softbushytail < 8) { _root.textbox.gotoAndStop('lekonhairreminder'); } else { if (_root.gettails == true && _root.softbushytail >= 8) { _root.textbox.gotoAndStop('lekonhairsubmit'); } else { if (_root.gettails == false && _root.princess == 1) { _root.textbox.gotoAndStop('princessreminder'); } else { _root.textbox.gotoAndStop('lekonidle'); _root.freeze = true; } } } } } } } } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.port = 'left'; _root.gotoAndPlay(_root._currentframe + 1); } } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (_root.freeze == false) { if (this.hitTest(_root.murloc.hero)) { if (Key.isDown(32)) { if (_root.gottumq == false) { if (_root.dogotitem('the_1_ring') != false) { _root.textbox.gotoAndStop('gottumring'); } else { gtroll = _root.roll(1, 3); _root.textbox.gotoAndStop(['gottumidle' + gtroll]); _root.freeze = true; } } } } } } } instance ttmmage of movieClip 1265 { onClipEvent (enterFrame) { if (_root.talktolekon == 1 && _root.gettails == false) { this.gotoAndStop('!'); } else { if (_root.gettails == true && _root.softbushytail < 8) { this.gotoAndStop('g?'); } else { if (_root.gettails == true && _root.softbushytail >= 8) { this.gotoAndStop('?'); } else { if (_root.gettails == false && _root.princess == 1) { this.gotoAndStop('g?'); } else { this.gotoAndStop('done'); } } } } } } instance ttmgollum of movieClip 1265 { onClipEvent (enterFrame) { if (_root.dogotitem('the_1_ring') == true) { this.gotoAndStop('?'); } else { this.gotoAndStop('done'); } } } frame 89 { stop(); if (_root.port == 'left') { _root.murloc._x = 50; } else { if (_root.port == 'right') { _root.murloc._x = 650; } else { if (_root.port == 'tentleave') { _root.murloc._x = 490; } } } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } } instance of movieClip 1840 { onClipEvent (load) { this.gotoAndPlay(12); } } instance murloc of movieClip 1248 { onClipEvent (enterFrame) { wspeed = 10; rspeed = 20; if ((Key.isDown(37) || Key.isDown(65)) && _root.freeze == false) { _root.dir = 'left'; if (_root.movem == 'walk') { _x = _x - wspeed; this.gotoAndStop('walkl'); } else { if (_root.movem == 'run') { _x = _x - rspeed; this.gotoAndStop('runl'); } } } else { if ((Key.isDown(39) || Key.isDown(68)) && _root.freeze == false) { _root.dir = 'right'; if (_root.movem == 'walk') { _x = _x + wspeed; this.gotoAndStop('walkr'); } else { if (_root.movem == 'run') { _x = _x + rspeed; this.gotoAndStop('runr'); } } } else { if (_root.dir == 'left') { this.gotoAndStop('standl'); } else { this.gotoAndStop('standr'); } } } if (Key.isDown(17)) { _root.movem = 'walk'; } else { _root.movem = 'run'; } } } instance wall2 of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.port = 'left'; _root.gotoAndPlay('gates'); } } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (_root.freeze == false) { if (this.hitTest(_root.murloc.hero)) { if (_root.talktochief >= 2) { _root.showarea('Brakil\'s Tent'); } if (Key.isDown(32)) { if (_root.talktochief < 2) { _root.textbox.gotoAndStop('dndchief'); _root.freeze = true; } else { _root.port = 'entertent'; _root.gotoAndPlay(_root._currentframe + 1); } } } else { _root.hidearea(); } } } } frame 90 { stop(); if (_root.port == 'entertent') { _root.hidearea(); _root.murloc._x = 160; _root.dir = 'right'; } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } } instance murloc of movieClip 1248 { onClipEvent (enterFrame) { wspeed = 10; rspeed = 20; if ((Key.isDown(37) || Key.isDown(65)) && _root.freeze == false) { _root.dir = 'left'; if (_root.movem == 'walk') { _x = _x - wspeed; this.gotoAndStop('walkl'); } else { if (_root.movem == 'run') { _x = _x - rspeed; this.gotoAndStop('runl'); } } } else { if ((Key.isDown(39) || Key.isDown(68)) && _root.freeze == false) { _root.dir = 'right'; if (_root.movem == 'walk') { _x = _x + wspeed; this.gotoAndStop('walkr'); } else { if (_root.movem == 'run') { _x = _x + rspeed; this.gotoAndStop('runr'); } } } else { if (_root.dir == 'left') { this.gotoAndStop('standl'); } else { this.gotoAndStop('standr'); } } } if (Key.isDown(17)) { _root.movem = 'walk'; } else { _root.movem = 'run'; } } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.port = 'tentleave'; _root.gotoAndPlay(_root._currentframe - 1); } } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (_root.freeze == false) { if (this.hitTest(_root.murloc.hero)) { if (Key.isDown(32)) { if (_root.talktochief == 2) { _root.textbox.gotoAndStop('talktochief'); _root.freeze = true; } else { if (_root.rewarddagger == 0) { _root.textbox.gotoAndStop('rewarddagger'); _root.freeze = true; } else { if (_root.wolfmeat == 1 && _root.tenderwolfmeat < 10) { _root.textbox.gotoAndStop('getwolfmeat'); _root.freeze = true; } else { if (_root.wolfmeat == 1 && _root.tenderwolfmeat >= 10) { _root.textbox.gotoAndStop('givetoketchin'); _root.freeze = true; } else { if (_root.wolfmeat == 2 && _root.gaveketchin == 0) { _root.textbox.gotoAndStop('findketchin'); _root.freeze = true; } else { _root.textbox.gotoAndStop('chiefidle'); _root.freeze = true; } } } } } } } } } } instance ttmchief of movieClip 1265 { onClipEvent (enterFrame) { if (_root.talktochief == 2) { this.gotoAndStop('?'); } else { if (_root.rewarddagger == 0) { this.gotoAndStop('?'); } else { if (_root.wolfmeat == 1 && _root.tenderwolfmeat < 10) { this.gotoAndStop('g?'); } else { if (_root.wolfmeat == 1 && _root.tenderwolfmeat >= 10) { this.gotoAndStop('?'); } else { this.gotoAndStop('done'); } } } } } } frame 91 { stop(); if (_root.port == 'left') { _root.murloc._x = 50; } else { if (_root.port == 'right') { _root.murloc._x = 650; _root.changezone('Camp Brakil'); } } if (_root.wolfmeat > 0) { _root.gate.gotoAndStop(2); _root.wall1.gotoAndStop(2); } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } } movieClip 1920 { frame 1 { stop(); } } instance of movieClip 1840 { onClipEvent (load) { this.gotoAndPlay(12); } } instance murloc of movieClip 1248 { onClipEvent (enterFrame) { wspeed = 10; rspeed = 20; if ((Key.isDown(37) || Key.isDown(65)) && _root.freeze == false) { _root.dir = 'left'; if (_root.movem == 'walk') { _x = _x - wspeed; this.gotoAndStop('walkl'); } else { if (_root.movem == 'run') { _x = _x - rspeed; this.gotoAndStop('runl'); } } } else { if ((Key.isDown(39) || Key.isDown(68)) && _root.freeze == false) { _root.dir = 'right'; if (_root.movem == 'walk') { _x = _x + wspeed; this.gotoAndStop('walkr'); } else { if (_root.movem == 'run') { _x = _x + rspeed; this.gotoAndStop('runr'); } } } else { if (_root.dir == 'left') { this.gotoAndStop('standl'); } else { this.gotoAndStop('standr'); } } } if (Key.isDown(17)) { _root.movem = 'walk'; } else { _root.movem = 'run'; } } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.port = 'right'; _root.gotoAndPlay('tentarea'); } } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.port = 'left'; _root.gotoAndPlay(_root._currentframe + 1); } } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (_root.freeze == false) { if (this.hitTest(_root.murloc.hero)) { if (Key.isDown(32)) { _root.textbox.gotoAndStop('danger'); _root.freeze = true; } } } } } frame 92 { stop(); if (_root.gettails == true || _root.nightseq == true) { if (_root.level < 10) { _root.zonelvl = _root.level; } else { _root.zonelvl = 10; } } else { _root.zonelvl = 1; } _root.enc = _root.roll(1, 100); if (_root.port == 'left') { _root.murloc._x = 50; _root.changezone('Elwynn Forest'); if (enc <= 75) { _root.wolfencr1.gotoAndStop(2); } else { _root.wolfencr1.gotoAndStop(1); } } else { if (_root.port == 'right') { _root.murloc._x = 650; if (enc <= 50) { _root.wolfencl1.gotoAndStop(2); } else { _root.wolfencr1.gotoAndStop(1); } } else { if (_root.port == 'postbattle') { if (_root.mport != 0) { _root.murloc._x = _root.mport; } else { _root.murloc._x = 650; } } } } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } if (_root.nightseq == true) { _root.ntmc.gotoAndStop(1); } else { _root.ntmc.gotoAndStop(2); } } movieClip 1953 { } movieClip 1989 { frame 7 { _root.dmghero(_root.monsteratkdmg(_root.eattack)); } frame 18 { _parent.gotoAndStop('stand'); } } movieClip 2027 { frame 11 { _root.edead = true; _root.pdone = true; } frame 18 { stop(); } } movieClip 2043 { frame 8 { if (_root.counter == false) { _root.pdone = true; } else { _root.counter = false; } _parent.gotoAndStop('stand'); } } movieClip 2046 { frame 5 { stop(); } } movieClip 2047 { frame 1 { _root.battle.bhero.gotoAndStop('fear'); } frame 14 { _parent.gotoAndStop('stand'); } } movieClip 2048 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 2049 { frame 1 { stop(); } frame 2 { stop(); } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { if (_root.nightseq == true) { _root.launch('dire_wolf', _root.zonelvl, _root._currentframe); } else { if (_root.level == 1) { _root.launch('wolf_cub', _root.zonelvl, _root._currentframe); } else { _root.launch('young_forest_wolf', _root.zonelvl, _root._currentframe); } } } } } } instance murloc of movieClip 1248 { onClipEvent (enterFrame) { wspeed = 10; rspeed = 20; if ((Key.isDown(37) || Key.isDown(65)) && _root.freeze == false) { _root.dir = 'left'; if (_root.movem == 'walk') { _x = _x - wspeed; this.gotoAndStop('walkl'); } else { if (_root.movem == 'run') { _x = _x - rspeed; this.gotoAndStop('runl'); } } } else { if ((Key.isDown(39) || Key.isDown(68)) && _root.freeze == false) { _root.dir = 'right'; if (_root.movem == 'walk') { _x = _x + wspeed; this.gotoAndStop('walkr'); } else { if (_root.movem == 'run') { _x = _x + rspeed; this.gotoAndStop('runr'); } } } else { if (_root.dir == 'left') { this.gotoAndStop('standl'); } else { this.gotoAndStop('standr'); } } } if (Key.isDown(17)) { _root.movem = 'walk'; } else { _root.movem = 'run'; } } } movieClip 2052 { frame 1 { stop(); } frame 2 { stop(); } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.port = 'right'; if (_root.nightseq == true) { _root.gotoAndPlay('nightgate'); } else { _root.gotoAndPlay(_root._currentframe - 1); } } } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.port = 'left'; _root.gotoAndPlay('forest2'); } } } frame 93 { stop(); if (_root.port == 'left') { _root.murloc._x = 50; } else { if (_root.port == 'right') { _root.murloc._x = 650; } else { if (_root.port == 'trip') { _root.murloc._x = 550; _root.changezone('Camp Brakil'); } else { if (_root.port == 'postbattle') { _root.fishcaught += 1; if (_root.mport != 0) { _root.murloc._x = _root.mport; } else { _root.murloc._x = 650; } } } } } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } } instance murloc of movieClip 1248 { onClipEvent (enterFrame) { wspeed = 10; rspeed = 20; if ((Key.isDown(37) || Key.isDown(65)) && _root.freeze == false) { _root.dir = 'left'; if (_root.movem == 'walk') { _x = _x - wspeed; this.gotoAndStop('walkl'); } else { if (_root.movem == 'run') { _x = _x - rspeed; this.gotoAndStop('runl'); } } } else { if ((Key.isDown(39) || Key.isDown(68)) && _root.freeze == false) { _root.dir = 'right'; if (_root.movem == 'walk') { _x = _x + wspeed; this.gotoAndStop('walkr'); } else { if (_root.movem == 'run') { _x = _x + rspeed; this.gotoAndStop('runr'); } } } else { if (_root.dir == 'left') { this.gotoAndStop('standl'); } else { this.gotoAndStop('standr'); } } } if (Key.isDown(17)) { _root.movem = 'walk'; } else { _root.movem = 'run'; } } } movieClip 2058 { } movieClip 2059 { } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.port = 'left'; _root.gotoAndPlay('nearsea'); } } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (_root.freeze == false) { if (this.hitTest(_root.murloc.hero)) { if (Key.isDown(32)) { if (_root.gofish == 1 && _root.fishcaught == 0) { _root.textbox.gotoAndStop('gofish'); _root.freeze = true; } else { if (_root.gofish == 1 && _root.fishcaught == 1) { _root.textbox.gotoAndStop('morefish1'); _root.freeze = true; } else { if (_root.gofish == 1 && _root.fishcaught < 9) { _root.textbox.gotoAndStop('morefish2-8'); _root.freeze = true; } else { if (_root.gofish == 1 && _root.fishcaught == 9) { _root.textbox.gotoAndStop('morefish9'); _root.freeze = true; } else { if (_root.gofish == 1 && _root.fishcaught == 10) { _root.textbox.gotoAndStop('morefish10'); _root.freeze = true; } else { if (_root.princess == 1) { _root.textbox.gotoAndStop('askcanoe'); _root.freeze = true; } else { _root.textbox.gotoAndStop('kagleidle'); _root.freeze = true; } } } } } } } } } } } instance ttmkagle of movieClip 1265 { onClipEvent (enterFrame) { if (_root.gofish == 1 && _root.fishcaught == 0) { this.gotoAndStop('!'); } else { if (_root.gofish == 1 && _root.fishcaught > 0) { this.gotoAndStop('?'); } else { if (_root.princess == 1) { this.gotoAndStop('?'); } else { this.gotoAndStop('done'); } } } } } frame 94 { _root.battlebg.gotoAndStop(_root.zone); stop(); } movieClip 2079 { } instance murloc of movieClip 1248 { onClipEvent (enterFrame) { wspeed = 10; rspeed = 20; if ((Key.isDown(37) || Key.isDown(65)) && _root.freeze == false) { _root.dir = 'left'; if (_root.movem == 'walk') { _x = _x - wspeed; this.gotoAndStop('walkl'); } else { if (_root.movem == 'run') { _x = _x - rspeed; this.gotoAndStop('runl'); } } } else { if ((Key.isDown(39) || Key.isDown(68)) && _root.freeze == false) { _root.dir = 'right'; if (_root.movem == 'walk') { _x = _x + wspeed; this.gotoAndStop('walkr'); } else { if (_root.movem == 'run') { _x = _x + rspeed; this.gotoAndStop('runr'); } } } else { if (_root.dir == 'left') { this.gotoAndStop('standl'); } else { this.gotoAndStop('standr'); } } } if (Key.isDown(17)) { _root.movem = 'walk'; } else { _root.movem = 'run'; } } } movieClip 2081 { } movieClip 2095 { } movieClip 2124 { frame 1 { gotoAndStop(_root.slot[28]); } } movieClip 2148 { } movieClip 2169 { frame 10 { tdmg = _root.roll((_root.getmindmg(28) + 1) * Math.round(_root.level * 0.6), (_root.getmaxdmg(28) + 1) * Math.round(_root.level * 0.6)); _root.dmgenemy(_root.str - 9 + tdmg); if (_root.slot[28] == 'none') { tfx.gotoAndStop(4); } else { tfx.gotoAndStop(_root.roll(2, 3)); } } frame 21 { _parent.gotoAndStop('stand'); } } movieClip 2175 { frame 1 { stop(); } } movieClip 2214 { frame 1 { sfx.gotoAndStop(_root.roll(2, 5)); } frame 21 { _root.edone = true; _parent.gotoAndStop('stand'); } } movieClip 2273 { frame 30 { stop(); _root.edone = true; _root.pdead = true; } } movieClip 2275 { frame 10 { _root.dmgenemy(_root.str - 9 + _root.roll((_root.getmindmg(28) + 1) * Math.round(_root.level * 0.6), (_root.getmaxdmg(28) + 1) * Math.round(_root.level * 0.6)) + 2 * _root.level); } frame 21 { _parent.gotoAndStop('stand'); } } movieClip 2279 { frame 12 { stop(); } } movieClip 2281 { frame 16 { _root.pdone = true; _parent.gotoAndStop('stand'); } } movieClip 2282 { frame 1 { _root.counter = true; } frame 10 { _root.dmgenemy(_root.str - 9 + _root.roll((_root.getmindmg(28) + 1) * Math.round(_root.level * 0.6), (_root.getmaxdmg(28) + 1) * Math.round(_root.level * 0.6))); if (_root.slot[28] == 'none') { tfx.gotoAndStop(4); } else { tfx.gotoAndStop(_root.roll(2, 3)); } } frame 21 { _root.battle.bmenu.gotoAndStop(1); if (_root.ispyro == true && _root.pdead == false) { _root.battle.bhero.gotoAndStop('pyroblast'); } if (_root.isrush == true && _root.pdead == false) { if (_root.rushcount > 0) { _root.sendbmsg('You feel the rush.'); _root.hcuren += Math.ceil(0.2 * _root.hmaxen); if (_root.hcuren > _root.hmaxen) { _root.hcuren = _root.hmaxen; } _root.rushcount -= 1; } } if (_root.isrenew == true && _root.renewcount > 0 && _root.pdead == false) { _root.battle.bhero.gotoAndStop('renew'); _root.sendbmsg('You feel renewed.'); } _parent.gotoAndStop('stand'); } } movieClip 2284 { frame 10 { _root.dmgenemy(_root.str - 9 + 3 * _root.level); _root.esilence = true; _root.silencecount = 1; } frame 21 { _parent.gotoAndStop('stand'); } } movieClip 2290 { } movieClip 2291 { } movieClip 2292 { } movieClip 2294 { frame 19 { _root.sendbmsg('You try to run away in fear.'); } frame 42 { _root.edone = true; _root.pdone = true; _parent.gotoAndStop('stand'); } } movieClip 2348 { frame 14 { _root.dobeffect('flash'); } frame 16 { _root.dmgenemy(_root.str - 9 + 5 * _root.level + _root.level * _root.hcuren); _root.hcuren = 0; } frame 27 { _parent.gotoAndStop('stand'); } } movieClip 2350 { frame 6 { _root.ischarge = true; _root.dmgenemy(_root.str - 9 + 4 * _root.level); } frame 7 { _parent.gotoAndStop('stand'); } } movieClip 2353 { frame 2 { _root.hcurhp += Math.round(30 * _root.level / 5); if (_root.hcurhp > _root.hmaxhp) { _root.hcurhp = _root.hmaxhp; } _root.renewcount -= 1; if (_root.renewcount <= 0) { _root.isrenew = false; } } frame 21 { if (_root.isrenew == false && _root.renewcount > 0) { _root.isrenew = true; _root.pdone = true; } _parent.gotoAndStop('stand'); } } movieClip 2354 { frame 15 { stop(); } } movieClip 2355 { } movieClip 2356 { frame 2 { _root.hcurhp += Math.round(60 * _root.level); if (_root.hcurhp > _root.hmaxhp) { _root.hcurhp = _root.hmaxhp; } } frame 21 { _root.pdone = true; _parent.gotoAndStop('stand'); } } movieClip 2388 { frame 6 { _root.issheep = true; if (_root.isfrozen == true) { _root.isfrozen = false; } _root.battle.cloud.gotoAndPlay(2); _root.battle.monsters.gotoAndStop('sheep'); } frame 16 { _root.pdone = true; _parent.gotoAndStop('stand'); } } movieClip 2390 { frame 7 { _root.battle.shadowsmoke.gotoAndPlay(2); _root.dmgenemy(_root.inte - 9 + 4 * _root.level); } frame 20 { _parent.gotoAndStop('stand'); } } movieClip 2392 { frame 7 { _root.battle.draineffect.gotoAndPlay(2); _root.dmgenemy(_root.inte - 9 + _root.level * 3); } frame 15 { _parent.gotoAndStop('stand'); } } movieClip 2396 { frame 8 { _root.isfrozen = true; _root.frozencount = 2; _root.dmgenemy(_root.inte - 9 + _root.roll(1 * _root.level, 2 * _root.level)); } frame 9 { _root.battle.monsters.shardmc.gotoAndPlay('pop'); } frame 15 { _parent.gotoAndStop('stand'); } } movieClip 2398 { frame 2 { _root.sendbmsg('You are casting Pyroblast.'); } frame 8 { _root.pyrocount -= 1; if (_root.pyrocount <= 0) { _root.ispyro = false; _root.battle.pyroeffect.gotoAndPlay(2); } } frame 15 { if (_root.pyrocount > 0) { _root.pdone = true; } _parent.gotoAndStop('stand'); } } movieClip 2401 { frame 29 { tdmg = _root.roll((_root.getmindmg(28) + 1) * Math.round(_root.level * 0.6), (_root.getmaxdmg(28) + 1) * Math.round(_root.level * 0.6)); _root.dmgenemy(Math.round((_root.str - 9 + tdmg) * 5)); } frame 43 { _parent.gotoAndStop('stand'); } } movieClip 2402 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } frame 10 { stop(); } frame 11 { stop(); } frame 12 { stop(); } frame 13 { stop(); } frame 14 { stop(); } frame 15 { stop(); } frame 16 { stop(); } frame 17 { stop(); } frame 18 { stop(); } frame 19 { stop(); } } movieClip 2409 { } movieClip 2412 { frame 1 { stop(); } frame 21 { _root.pdone = true; gotoAndStop(1); } frame 28 { _root.edone = true; gotoAndStop(1); } } movieClip 2419 { } movieClip 2421 { frame 1 { stop(); } frame 4 { stop(); } frame 7 { gotoAndStop(1); } } movieClip 2449 { } movieClip 2490 { } movieClip 2532 { frame 9 { _root.dmghero(_root.monsteratkdmg(_root.eattack)); } frame 21 { _parent.gotoAndStop('stand'); } } movieClip 2560 { frame 13 { if (_root.counter == false) { _root.pdone = true; } else { _root.counter = false; } _parent.gotoAndStop('stand'); } } movieClip 2602 { frame 14 { _root.edead = true; _root.pdone = true; } frame 20 { stop(); } } movieClip 2603 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } movieClip 2644 { } movieClip 2685 { frame 10 { _root.dmghero(_root.monsteratkdmg(_root.eattack)); } frame 21 { _parent.gotoAndStop('stand'); } } movieClip 2730 { frame 15 { _root.edead = true; _root.pdone = true; } frame 22 { stop(); } } movieClip 2752 { frame 11 { if (_root.counter == false) { _root.pdone = true; } else { _root.counter = false; } _parent.gotoAndStop('stand'); } } movieClip 2753 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } movieClip 2785 { } movieClip 2827 { frame 10 { _root.dmghero(_root.monsteratkdmg(_root.eattack)); } frame 21 { _parent.gotoAndStop(1); } } movieClip 2869 { frame 21 { if (_root.counter == false) { _root.pdone = true; } else { _root.counter = false; } _parent.gotoAndStop('stand'); } } movieClip 2925 { frame 27 { _root.edead = true; _root.pdone = true; stop(); } } movieClip 2926 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } movieClip 2957 { } movieClip 2998 { frame 9 { _root.dmghero(_root.monsteratkdmg(_root.eattack)); } frame 21 { _parent.gotoAndStop('stand'); } } movieClip 3026 { frame 13 { if (_root.counter == false) { _root.pdone = true; } else { _root.counter = false; } _parent.gotoAndStop('stand'); } } movieClip 3074 { frame 18 { _root.edead = true; _root.pdone = true; } frame 23 { stop(); } } movieClip 3086 { } movieClip 3117 { frame 6 { _root.dmghero(_root.monsteratkdmg(_root.eattack) + _root.roll(1, 3)); } frame 20 { _parent.gotoAndStop('stand'); } } movieClip 3123 { frame 6 { _root.dmghero(_root.monsteratkdmg(_root.eattack) + _root.roll(1, 3)); } frame 20 { _parent.gotoAndStop('stand'); } } movieClip 3127 { frame 7 { _root.ecurhp += Math.round(_root.monsteratkdmg(_root.eattack)); if (_root.ecurhp > _root.emaxhp) { _root.ecurhp = _root.emaxhp; } _root.dmghero(_root.monsteratkdmg(_root.eattack) + _root.roll(1, 3)); } frame 20 { _parent.gotoAndStop('stand'); } } movieClip 3128 { frame 5 { _root.ecurhp += _root.monsteratkdmg(_root.eattack) * _root.elevel; if (_root.ecurhp > _root.emaxhp) { _root.ecurhp = _root.emaxhp; } } frame 19 { _root.edone = true; _parent.gotoAndStop('stand'); } } movieClip 3129 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } } movieClip 3160 { } movieClip 3202 { frame 21 { if (_root.counter == false) { _root.pdone = true; } else { _root.counter = false; } _parent.gotoAndStop('stand'); } } movieClip 3223 { frame 5 { _root.dmghero(_root.monsteratkdmg(_root.eattack)); } frame 11 { _parent.gotoAndStop('stand'); } } movieClip 3285 { frame 31 { _root.edone = true; _parent.gotoAndStop('stand'); } } movieClip 3327 { frame 20 { _root.edead = true; _root.pdone = true; stop(); } } movieClip 3328 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 3369 { } movieClip 3383 { frame 4 { _root.dmghero(_root.monsteratkdmg(_root.eattack)); } frame 7 { _parent.gotoAndStop('stand'); } } movieClip 3403 { frame 10 { if (_root.counter == false) { _root.pdone = true; } else { _root.counter = false; } _parent.gotoAndStop('stand'); } } movieClip 3425 { frame 10 { _root.edead = true; _root.pdone = true; stop(); } } movieClip 3426 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } movieClip 3478 { } movieClip 3498 { frame 5 { _root.dmghero(_root.monsteratkdmg(_root.eattack)); } frame 10 { _parent.gotoAndStop('stand'); } } movieClip 3520 { frame 11 { if (_root.counter == false) { _root.pdone = true; } else { _root.counter = false; } _parent.gotoAndStop('stand'); } } movieClip 3574 { frame 16 { _root.edead = true; _root.pdone = true; } frame 26 { stop(); } } movieClip 3575 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } movieClip 3592 { } movieClip 3614 { frame 5 { _root.dmghero(_root.monsteratkdmg(_root.eattack)); } frame 11 { _parent.gotoAndStop('stand'); } } movieClip 3634 { frame 10 { if (_root.counter == false) { _root.pdone = true; } else { _root.counter = false; } _parent.gotoAndStop('stand'); } } movieClip 3678 { frame 16 { _root.edead = true; _root.pdone = true; } frame 21 { stop(); } } movieClip 3679 { frame 3 { _root.ecurhp += _root.monsteratkdmg(_root.eattack) * _root.elevel; if (_root.ecurhp > _root.emaxhp) { _root.ecurhp = _root.emaxhp; } } frame 17 { _root.edone = true; _parent.gotoAndStop('stand'); } } movieClip 3680 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 3721 { } movieClip 3741 { frame 6 { _root.dmghero(_root.monsteratkdmg(_root.eattack)); } frame 10 { _parent.gotoAndStop('stand'); } } movieClip 3761 { frame 10 { if (_root.counter == false) { _root.pdone = true; } else { _root.counter = false; } _parent.gotoAndStop('stand'); } } movieClip 3809 { frame 18 { _root.edead = true; _root.pdone = true; } frame 23 { stop(); } } movieClip 3812 { frame 14 { _root.dmghero(_root.monsteratkdmg(_root.eattack)); } frame 19 { _parent.gotoAndStop('stand'); } } movieClip 3813 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 3834 { } movieClip 3854 { frame 5 { _root.dmghero(_root.monsteratkdmg(_root.eattack)); } frame 10 { _parent.gotoAndStop('stand'); } } movieClip 3872 { frame 9 { if (_root.counter == false) { _root.pdone = true; } else { _root.counter = false; } _parent.gotoAndStop('stand'); } } movieClip 3916 { frame 21 { _root.edead = true; _root.pdone = true; stop(); } } movieClip 3917 { frame 3 { _root.ecurhp += _root.monsteratkdmg(_root.eattack) * _root.elevel; if (_root.ecurhp > _root.emaxhp) { _root.ecurhp = _root.emaxhp; } } frame 17 { _root.edone = true; _parent.gotoAndStop('stand'); } } movieClip 3918 { frame 6 { _root.ecurhp += Math.round(_root.monsteratkdmg(_root.eattack)); if (_root.ecurhp > _root.emaxhp) { _root.ecurhp = _root.emaxhp; } _root.dmghero(_root.monsteratkdmg(_root.eattack) + _root.roll(1, 3)); } frame 10 { _parent.gotoAndStop('stand'); } } movieClip 3919 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } } movieClip 3940 { } movieClip 3959 { frame 5 { _root.dmghero(_root.monsteratkdmg(_root.eattack)); } frame 10 { _parent.gotoAndStop('stand'); } } movieClip 3976 { frame 9 { if (_root.counter == false) { _root.pdone = true; } else { _root.counter = false; } _parent.gotoAndStop('stand'); } } movieClip 4017 { frame 20 { _root.edead = true; _root.pdone = true; stop(); } } movieClip 4041 { frame 6 { _root.dmghero(_root.monsteratkdmg(_root.eattack)); } frame 12 { _parent.gotoAndStop('stand'); } } movieClip 4042 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 4079 { } movieClip 4098 { frame 5 { _root.dmghero(_root.monsteratkdmg(_root.eattack)); } frame 10 { _parent.gotoAndStop('stand'); } } movieClip 4113 { frame 8 { if (_root.counter == false) { _root.pdone = true; } else { _root.counter = false; } _parent.gotoAndStop('stand'); } } movieClip 4160 { frame 23 { _root.edead = true; _root.pdone = true; stop(); } } movieClip 4185 { frame 9 { _root.dmghero(_root.monsteratkdmg(_root.eattack)); } frame 13 { _parent.gotoAndStop('stand'); } } movieClip 4186 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 4267 { } movieClip 4286 { frame 7 { _root.dmghero(_root.monsteratkdmg(_root.eattack)); } frame 10 { _parent.gotoAndStop('stand'); } } movieClip 4299 { frame 7 { if (_root.counter == false) { _root.pdone = true; } else { _root.counter = false; } _parent.gotoAndStop('stand'); } } movieClip 4346 { frame 23 { _root.edead = true; _root.pdone = true; stop(); } } movieClip 4367 { frame 3 { _root.dmghero(_root.monsteratkdmg(_root.eattack)); } frame 11 { _parent.gotoAndStop('stand'); } } movieClip 4368 { frame 5 { _root.ecurhp += Math.round(_root.monsteratkdmg(_root.eattack)); if (_root.ecurhp > _root.emaxhp) { _root.ecurhp = _root.emaxhp; } _root.dmghero(_root.monsteratkdmg(_root.eattack) + _root.roll(1, 3)); } frame 10 { _parent.gotoAndStop('stand'); } } movieClip 4369 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } } movieClip 4396 { } movieClip 4418 { frame 7 { _root.dmghero(_root.monsteratkdmg(_root.eattack)); } frame 11 { _parent.gotoAndStop('stand'); } } movieClip 4434 { frame 8 { if (_root.counter == false) { _root.pdone = true; } else { _root.counter = false; } _parent.gotoAndStop('stand'); } } movieClip 4484 { frame 24 { _root.edead = true; _root.pdone = true; stop(); } } movieClip 4485 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } movieClip 4506 { } movieClip 4538 { frame 10 { _root.dmghero(_root.monsteratkdmg(_root.eattack)); } frame 16 { _parent.gotoAndStop('stand'); } } movieClip 4560 { frame 11 { if (_root.counter == false) { _root.pdone = true; } else { _root.counter = false; } _parent.gotoAndStop('stand'); } } movieClip 4604 { frame 13 { _root.edead = true; _root.pdone = true; } frame 21 { stop(); } } movieClip 4605 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } movieClip 4622 { } movieClip 4644 { frame 5 { _root.dmghero(_root.monsteratkdmg(_root.eattack)); } frame 11 { _parent.gotoAndStop('stand'); } } movieClip 4662 { frame 9 { if (_root.counter == false) { _root.pdone = true; } else { _root.counter = false; } _parent.gotoAndStop('stand'); } } movieClip 4692 { frame 14 { _root.edead = true; _root.pdone = true; stop(); } } movieClip 4693 { frame 3 { _root.ecurhp += _root.monsteratkdmg(_root.eattack) * _root.elevel; if (_root.ecurhp > _root.emaxhp) { _root.ecurhp = _root.emaxhp; } } frame 17 { _root.edone = true; _parent.gotoAndStop('stand'); } } movieClip 4694 { frame 16 { _root.freeze = false; _root.battleon = false; _root.noflee = false; stopAllSounds(); _root.gotoAndStop(_root.whatframe); } } movieClip 4695 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } } movieClip 4716 { } movieClip 4737 { frame 6 { _root.dmghero(_root.monsteratkdmg(_root.eattack)); } frame 11 { _parent.gotoAndStop('stand'); } } movieClip 4749 { frame 6 { if (_root.counter == false) { _root.pdone = true; } else { _root.counter = false; } _parent.gotoAndStop('stand'); } } movieClip 4793 { frame 12 { _root.edead = true; _root.pdone = true; } frame 21 { stop(); } } movieClip 4804 { frame 5 { _root.dmghero(_root.monsteratkdmg(_root.eattack)); } frame 10 { _parent.gotoAndStop('stand'); } } movieClip 4805 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 4858 { } movieClip 4872 { frame 7 { if (_root.counter == false) { _root.pdone = true; } else { _root.counter = false; } _parent.gotoAndStop('stand'); } } movieClip 4894 { frame 4 { _root.dmghero(_root.monsteratkdmg(_root.eattack)); } frame 11 { _parent.gotoAndStop('stand'); } } movieClip 4928 { frame 11 { _root.edead = true; _root.pdone = true; } frame 16 { stop(); } } movieClip 4951 { frame 5 { _root.dmghero(_root.monsteratkdmg(_root.eattack) + _root.roll(1, 3)); } frame 11 { _parent.gotoAndStop('stand'); } } movieClip 4952 { frame 4 { _root.dmghero(_root.monsteratkdmg(_root.eattack) + _root.roll(1, 3)); } frame 11 { _parent.gotoAndStop('stand'); } } movieClip 4955 { } movieClip 4957 { frame 5 { _root.dmghero(_root.monsteratkdmg(_root.eattack) + _root.roll(1, 3)); } frame 11 { _parent.gotoAndStop('stand'); } } movieClip 4958 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } } movieClip 5009 { } movieClip 5031 { frame 6 { _root.dmghero(_root.monsteratkdmg(_root.eattack)); } frame 11 { _parent.gotoAndStop('stand'); } } movieClip 5049 { frame 9 { if (_root.counter == false) { _root.pdone = true; } else { _root.counter = false; } _parent.gotoAndStop('stand'); } } movieClip 5079 { frame 14 { _root.edead = true; _root.pdone = true; stop(); } } movieClip 5102 { frame 3 { _root.dmghero(_root.monsteratkdmg(_root.eattack)); } frame 11 { _parent.gotoAndStop('stand'); } } movieClip 5103 { frame 4 { _root.ecurhp += _root.monsteratkdmg(_root.eattack) * _root.elevel; if (_root.ecurhp > _root.emaxhp) { _root.ecurhp = _root.emaxhp; } } frame 11 { _root.edone = true; _parent.gotoAndStop('stand'); } } movieClip 5104 { frame 4 { _root.dmghero(_root.monsteratkdmg(_root.eattack) + _root.roll(1, 3)); } frame 11 { _parent.gotoAndStop('stand'); } } movieClip 5105 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } } movieClip 5172 { } movieClip 5194 { frame 6 { _root.dmghero(_root.monsteratkdmg(_root.eattack)); } frame 11 { _parent.gotoAndStop('stand'); } } movieClip 5210 { frame 8 { if (_root.counter == false) { _root.pdone = true; } else { _root.counter = false; } _parent.gotoAndStop('stand'); } } movieClip 5252 { frame 20 { _root.edead = true; _root.pdone = true; stop(); } } movieClip 5265 { frame 15 { _root.dmghero(_root.monsteratkdmg(_root.eattack)); } frame 26 { _parent.gotoAndStop('stand'); } } movieClip 5266 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 5290 { } movieClip 5312 { frame 5 { _root.dmghero(_root.monsteratkdmg(_root.eattack)); } frame 11 { _parent.gotoAndStop('stand'); } } movieClip 5334 { frame 11 { if (_root.counter == false) { _root.pdone = true; } else { _root.counter = false; } _parent.gotoAndStop('stand'); } } movieClip 5374 { frame 19 { _root.edead = true; _root.pdone = true; stop(); } } movieClip 5393 { frame 5 { _root.ecurhp += Math.round(_root.monsteratkdmg(_root.eattack)); if (_root.ecurhp > _root.emaxhp) { _root.ecurhp = _root.emaxhp; } _root.dmghero(_root.monsteratkdmg(_root.eattack) + _root.roll(1, 3)); } frame 10 { _parent.gotoAndStop('stand'); } } movieClip 5394 { frame 5 { _root.hcuren -= _root.monsteratkdmg(_root.eattack); if (_root.hcuren < 0) { _root.hcuren = 0; } } frame 10 { _root.edone = true; _parent.gotoAndStop('stand'); } } movieClip 5395 { frame 3 { _root.dmghero(_root.monsteratkdmg(_root.eattack)); } frame 10 { _parent.gotoAndStop('stand'); } } movieClip 5396 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } } movieClip 5437 { } movieClip 5459 { frame 8 { _root.dmghero(_root.monsteratkdmg(_root.eattack)); } frame 11 { _parent.gotoAndStop('stand'); } } movieClip 5479 { frame 10 { if (_root.counter == false) { _root.pdone = true; } else { _root.counter = false; } _parent.gotoAndStop('stand'); } } movieClip 5521 { frame 20 { _root.edead = true; _root.pdone = true; stop(); } } movieClip 5545 { frame 18 { _root.dmghero(_root.monsteratkdmg(_root.eattack)); } frame 26 { _parent.gotoAndStop('stand'); } } movieClip 5546 { frame 3 { _root.ecurhp += _root.monsteratkdmg(_root.eattack) * _root.elevel; if (_root.ecurhp > _root.emaxhp) { _root.ecurhp = _root.emaxhp; } } frame 11 { _root.edone = true; _parent.gotoAndStop('stand'); } } movieClip 5547 { frame 4 { _root.dmghero(_root.monsteratkdmg(_root.eattack) + _root.roll(1, 3)); } frame 11 { _parent.gotoAndStop('stand'); } } movieClip 5548 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } } movieClip 5571 { } movieClip 5597 { frame 6 { _root.dmghero(_root.monsteratkdmg(_root.eattack)); } frame 13 { _parent.gotoAndStop('stand'); } } movieClip 5619 { frame 11 { if (_root.counter == false) { _root.pdone = true; } else { _root.counter = false; } _parent.gotoAndStop('stand'); } } movieClip 5661 { frame 20 { _root.edead = true; _root.pdone = true; stop(); } } movieClip 5705 { frame 13 { _root.dmghero(_root.monsteratkdmg(_root.eattack)); } frame 21 { _parent.gotoAndStop('stand'); } } movieClip 5733 { frame 23 { _root.dmghero(_root.monsteratkdmg(_root.eattack)); } frame 43 { _parent.gotoAndStop('stand'); } } movieClip 5734 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } } movieClip 5755 { } movieClip 5767 { frame 6 { if (_root.counter == false) { _root.pdone = true; } else { _root.counter = false; } _parent.gotoAndStop('stand'); } } movieClip 5803 { frame 17 { _root.edead = true; _root.pdone = true; stop(); } } movieClip 5826 { frame 1 { _root.battle.cloud.gotoAndPlay(2); } frame 7 { _root.dmghero(_root.monsteratkdmg(_root.eattack)); } frame 12 { _root.battle.cloud.gotoAndPlay(2); _parent.gotoAndStop('stand'); } } movieClip 5858 { frame 2 { _root.battle.cloud.gotoAndPlay(2); } frame 7 { _root.dmghero(_root.monsteratkdmg(_root.eattack)); } frame 16 { _root.battle.cloud.gotoAndPlay(2); _parent.gotoAndStop('stand'); } } movieClip 5859 { frame 3 { _root.ecurhp += _root.monsteratkdmg(_root.eattack) * _root.elevel; if (_root.ecurhp > _root.emaxhp) { _root.ecurhp = _root.emaxhp; } } frame 11 { _root.edone = true; _parent.gotoAndStop('stand'); } } movieClip 5860 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } } movieClip 5888 { } movieClip 5916 { frame 7 { _root.dmghero(_root.monsteratkdmg(_root.eattack)); } frame 14 { _parent.gotoAndStop('stand'); } } movieClip 5938 { frame 11 { if (_root.counter == false) { _root.pdone = true; } else { _root.counter = false; } _parent.gotoAndStop('stand'); } } movieClip 5980 { frame 20 { _root.edead = true; _root.pdone = true; stop(); } } movieClip 6001 { frame 3 { _root.ecurhp += _root.monsteratkdmg(_root.eattack) * _root.elevel; if (_root.ecurhp > _root.emaxhp) { _root.ecurhp = _root.emaxhp; } } frame 14 { _root.edone = true; _parent.gotoAndStop('stand'); } } movieClip 6002 { frame 4 { _root.dmghero(_root.monsteratkdmg(_root.eattack) + _root.roll(1, 3)); } frame 13 { _parent.gotoAndStop('stand'); } } movieClip 6003 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } } movieClip 6005 { } movieClip 6006 { frame 10 { _root.dmghero(_root.monsteratkdmg(_root.eattack)); } frame 21 { _parent.gotoAndStop('stand'); } } movieClip 6007 { frame 21 { if (_root.counter == false) { _root.pdone = true; } else { _root.counter = false; } _parent.gotoAndStop('stand'); } } movieClip 6008 { frame 30 { _root.edead = true; _root.pdone = true; stop(); } } movieClip 6009 { frame 14 { _root.dobeffect('flash'); } frame 16 { _root.dmghero(_root.monsteratkdmg(_root.eattack)); } frame 27 { _parent.gotoAndStop('stand'); } } movieClip 6010 { frame 2 { _root.ecurhp += _root.monsteratkdmg(_root.eattack) * _root.elevel; if (_root.ecurhp > _root.emaxhp) { _root.ecurhp = _root.emaxhp; } } frame 21 { _root.edone = true; _parent.gotoAndStop('stand'); } } movieClip 6011 { frame 8 { _root.dmghero(_root.monsteratkdmg(_root.eattack)); } frame 15 { _parent.gotoAndStop('stand'); } } movieClip 6012 { frame 8 { _root.ecurhp += Math.round(_root.monsteratkdmg(_root.eattack)); if (_root.ecurhp > _root.emaxhp) { _root.ecurhp = _root.emaxhp; } _root.dmghero(_root.monsteratkdmg(_root.eattack) + _root.roll(1, 3)); } frame 13 { _parent.gotoAndStop('stand'); } } movieClip 6013 { frame 7 { _root.dmghero(_root.monsteratkdmg(_root.eattack) + _root.roll(1, 3)); } frame 14 { _parent.gotoAndStop('stand'); } } movieClip 6014 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } } movieClip 6041 { } movieClip 6062 { frame 16 { _root.freeze = false; _root.battleon = false; _root.noflee = false; stopAllSounds(); _root.gotoAndStop(_root.whatframe); } } movieClip 6076 { frame 7 { if (_root.counter == false) { _root.pdone = true; } else { _root.counter = false; } _parent.gotoAndStop('stand'); } } movieClip 6100 { frame 11 { _root.edead = true; _root.pdone = true; stop(); } } movieClip 6101 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } movieClip 6102 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } frame 10 { stop(); } frame 11 { stop(); } frame 12 { stop(); } frame 13 { stop(); } frame 14 { stop(); } frame 15 { stop(); } frame 16 { stop(); } frame 17 { stop(); } frame 18 { stop(); } frame 19 { stop(); } frame 20 { stop(); } frame 21 { stop(); } frame 22 { stop(); } frame 23 { stop(); } frame 24 { stop(); } frame 25 { stop(); } frame 26 { stop(); } frame 27 { stop(); } frame 28 { stop(); } frame 29 { stop(); } frame 30 { stop(); } frame 31 { stop(); } frame 32 { stop(); } } movieClip 6104 { frame 1 { stop(); } frame 4 { _root.hcurhp += _root.level * 3 * 2; if (_root.hcurhp > _root.hmaxhp) { _root.hcurhp = _root.hmaxhp; } } frame 5 { gotoAndStop(1); } } movieClip 6105 { frame 1 { stop(); } frame 3 { _root.dmgenemy(_root.inte - 9 + _root.roll(15 * _root.level, 33 * _root.level)); } frame 7 { gotoAndStop(1); } } movieClip 6107 { frame 6 { _parent.gotoAndStop('stop'); } } movieClip 6108 { frame 1 { stop(); } } movieClip 6109 { frame 1 { stop(); } } movieClip 6110 { frame 1 { stop(); } frame 9 { gotoAndStop(1); } } movieClip 6114 { frame 1 { stop(); } } movieClip 6120 { frame 1 { stop(); } } movieClip 6125 { } movieClip 6128 { } movieClip 6131 { } movieClip 6134 { } button 6135 { on (release) { _root.battle.bhero.gotoAndStop('attack'); gotoAndStop('hide'); } } button 6136 { on (release) { _parent.gotoAndStop('skills'); } } movieClip 6137 { } button 6138 { on (release) { _parent.gotoAndStop('magic'); } } movieClip 6139 { } button 6140 { on (release) { _parent.gotoAndStop('items'); } } movieClip 6141 { } button 6142 { on (release) { if (_root.noflee == false) { _root.freeze = false; _root.battleon = false; stopAllSounds(); _root.gotoAndStop(_root.whatframe); } } } movieClip 6154 { } movieClip 6155 { frame 1 { stop(); } frame 2 { stop(); } instance of movieClip 6154 { onClipEvent (release) { if (_root.hcuren >= 60) { if (_root.bround == 1) { if (_root.gettype(28) == 'Dagger') { _root.hcuren -= 60; _root.tooltipbox.gotoAndStop('hide'); _root.battle.bhero.gotoAndStop('ambush'); _root.battle.bmenu.gotoAndStop('hide'); } else { _root.error('Requires a dagger in your main hand.'); } } else { _root.error('Cannot use this skill now.'); } } else { _root.error('Not enough Energy.'); } } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.skilltip('ambush'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } } movieClip 6156 { frame 1 { stop(); if (_root.heroicstrike >= 1) { iheroicstrike2.gotoAndStop('normal'); } else { iheroicstrike2.gotoAndStop('grey'); } if (_root.bloodrage >= 1) { ibloodrage2.gotoAndStop('normal'); } else { ibloodrage2.gotoAndStop('grey'); } if (_root.pummel >= 1) { ipummel2.gotoAndStop('normal'); } else { ipummel2.gotoAndStop('grey'); } if (_root.charge >= 1) { icharge2.gotoAndStop('normal'); } else { icharge2.gotoAndStop('grey'); } if (_root.exec >= 1) { iexec2.gotoAndStop('normal'); } else { iexec2.gotoAndStop('grey'); } if (_root.coldblood >= 1) { icoldblood2.gotoAndStop('normal'); } else { icoldblood2.gotoAndStop('grey'); } if (_root.adr >= 1) { iadr2.gotoAndStop('normal'); } else { iadr2.gotoAndStop('grey'); } if (_root.ambush == true) { sambush.gotoAndStop(2); } else { sambush.gotoAndStop(1); } } instance iheroicstrike2 of movieClip 1614 { onClipEvent (release) { if (_root.heroicstrike >= 1) { if (_root.hcuren >= 25) { _root.hcuren -= 25; _root.tooltipbox.gotoAndStop('hide'); _root.battle.bhero.gotoAndStop('hstrike'); _root.battle.bmenu.gotoAndStop('hide'); } else { _root.error('Not enough Energy.'); } } } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.skilltip('heroicstrike', 'r'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance ibloodrage2 of movieClip 1617 { onClipEvent (release) { if (_root.bloodrage >= 1) { if (_root.hcurhp > Math.round(0.2 * _root.hmaxhp)) { _root.hcurhp -= Math.round(0.2 * _root.hmaxhp); _root.hcuren += 20; if (_root.hcuren > _root.hmaxen) { _root.hcuren = _root.hmaxen; } _root.tooltipbox.gotoAndStop('hide'); _root.battle.bhero.gotoAndStop('bldrage'); _root.battle.bmenu.gotoAndStop('hide'); } else { _root.error('Your health is too low.'); } } } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.skilltip('bloodrage', 'r'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance ipummel2 of movieClip 1620 { onClipEvent (release) { if (_root.pummel >= 1) { if (_root.hcuren >= 30) { _root.hcuren -= 30; _root.tooltipbox.gotoAndStop('hide'); _root.battle.bhero.gotoAndStop('pummel'); _root.battle.bmenu.gotoAndStop('hide'); } else { _root.error('Not enough Energy.'); } } } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.skilltip('pummel', 'r'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance icharge2 of movieClip 1623 { onClipEvent (release) { if (_root.charge >= 1) { if (_root.hcuren >= 20) { if (_root.bround == 1) { _root.hcuren -= 20; _root.tooltipbox.gotoAndStop('hide'); _root.battle.bhero.gotoAndStop('charge'); _root.battle.bmenu.gotoAndStop('hide'); } else { _root.error('Cannot use that skill now.'); } } else { _root.error('Not enough Energy.'); } } } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.skilltip('charge', 'r'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance iexec2 of movieClip 1626 { onClipEvent (release) { if (_root.exec >= 1) { if (_root.ecurhp <= Math.ceil(0.3 * _root.emaxhp)) { _root.tooltipbox.gotoAndStop('hide'); _root.battle.bhero.gotoAndStop('execute'); _root.battle.bmenu.gotoAndStop('hide'); } else { _root.error('Enemy health must be at 30% or less.'); } } } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.skilltip('exec'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance icoldblood2 of movieClip 1635 { onClipEvent (release) { if (_root.coldblood >= 1) { if (_root.hcuren >= 25) { if (_root.iscoldblood == false) { _root.hcuren -= 25; _root.iscoldblood = true; _root.sfx('coldblood'); _root.error('Cold Blood activated.'); } else { _root.error('Cold Blood is already active.'); } } else { _root.error('Not enough Energy.'); } } } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.skilltip('coldblood'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance iadr2 of movieClip 1641 { onClipEvent (release) { if (_root.adr >= 1) { if (_root.isrush == false) { _root.isrush = true; _root.sfx('coldblood'); _root.pdone = true; } else { _root.error('Adrenaline Rush has already been used.'); } } } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.skilltip('adr'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance of movieClip 1576 { onClipEvent (release) { _parent._parent.gotoAndStop(1); } } } movieClip 6165 { frame 1 { stop(); if (_root.renew >= 1) { irenew2.gotoAndStop('normal'); } else { irenew2.gotoAndStop('grey'); } if (_root.heal >= 1) { iheal2.gotoAndStop('normal'); } else { iheal2.gotoAndStop('grey'); } if (_root.powerwordshield >= 1) { ipowerwordshield2.gotoAndStop('normal'); } else { ipowerwordshield2.gotoAndStop('grey'); } if (_root.polymorph >= 1) { ipolymorph2.gotoAndStop('normal'); } else { ipolymorph2.gotoAndStop('grey'); } if (_root.drainlife >= 1) { idrainlife2.gotoAndStop('normal'); } else { idrainlife2.gotoAndStop('grey'); } if (_root.lashofpain >= 1) { ilashofpain2.gotoAndStop('normal'); } else { ilashofpain2.gotoAndStop('grey'); } if (_root.frostnova >= 1) { ifrostnova2.gotoAndStop('normal'); } else { ifrostnova2.gotoAndStop('grey'); } if (_root.pyroblast >= 1) { ipyroblast2.gotoAndStop('normal'); } else { ipyroblast2.gotoAndStop('grey'); } } instance irenew2 of movieClip 1657 { onClipEvent (release) { if (_root.renew >= 1) { if (_root.hcuren >= 30) { if (_root.isrenew == false) { _root.hcuren -= 30; _root.renewcount = 5; _root.tooltipbox.gotoAndStop('hide'); _root.battle.bhero.gotoAndStop('renew'); _root.battle.bmenu.gotoAndStop('hide'); } else { _root.error('That spell is already active.'); } } else { _root.error('Not enough Energy.'); } } } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.skilltip('renew', 'r'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance iheal2 of movieClip 1660 { onClipEvent (release) { if (_root.heal >= 1) { if (_root.hcuren >= 45) { _root.hcuren -= 45; _root.tooltipbox.gotoAndStop('hide'); _root.battle.bhero.gotoAndStop('heal'); _root.battle.bmenu.gotoAndStop('hide'); } else { _root.error('Not enough Energy.'); } } } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.skilltip('heal', 'r'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance ipowerwordshield2 of movieClip 1663 { onClipEvent (release) { if (_root.powerwordshield >= 1) { if (_root.isshield == false) { if (_root.hcuren >= 55) { _root.hcuren -= 55; _root.isshield = true; _root.shieldcount = 5; _root.shieldabs = 40 * _root.level * 2; _root.tooltipbox.gotoAndStop('hide'); _root.battle.pwshieldsprite.gotoAndPlay('pop'); _root.battle.bmenu.gotoAndStop('hide'); } else { _root.error('Not enough Energy.'); } } else { _root.error('Spell already active.'); } } } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.skilltip('powerwordshield', 'r'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance ipolymorph2 of movieClip 1666 { onClipEvent (release) { if (_root.polymorph >= 1) { if (_root.hcuren >= 50) { if (_root.monstersprite(_root.enemy) != 'emurk') { _root.hcuren -= 50; _root.sheepcount = 10; _root.tooltipbox.gotoAndStop('hide'); _root.battle.bhero.gotoAndStop('polymorph'); _root.battle.bmenu.gotoAndStop('hide'); } else { _root.error('Target is immune to Polymorph'); } } else { _root.error('Not enough Energy.'); } } } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.skilltip('polymorph', 'r'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance ilashofpain2 of movieClip 1669 { onClipEvent (release) { if (_root.lashofpain >= 1) { if (_root.hcuren >= 20) { _root.hcuren -= 20; _root.tooltipbox.gotoAndStop('hide'); _root.battle.bhero.gotoAndStop('lashofpain'); _root.battle.bmenu.gotoAndStop('hide'); } else { _root.error('Not enough Energy.'); } } } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.skilltip('lashofpain'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance idrainlife2 of movieClip 1672 { onClipEvent (release) { if (_root.drainlife >= 1) { if (_root.hcuren >= 25) { _root.hcuren -= 25; _root.tooltipbox.gotoAndStop('hide'); _root.battle.bhero.gotoAndStop('drainlife'); _root.battle.bmenu.gotoAndStop('hide'); } else { _root.error('Not enough Energy.'); } } } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.skilltip('drainlife'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance ifrostnova2 of movieClip 1675 { onClipEvent (release) { if (_root.frostnova >= 1) { if (_root.hcuren >= 45) { if (_root.isfrozen == true) { _root.error('Spell already active.'); } else { if (_root.monstersprite(_root.enemy) != 'emurk') { _root.hcuren -= 45; _root.tooltipbox.gotoAndStop('hide'); _root.battle.bhero.gotoAndStop('frostnova'); _root.battle.bmenu.gotoAndStop('hide'); } else { _root.error('Target is immune to Frost Nova.'); } } } else { _root.error('Not enough Energy.'); } } } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.skilltip('frostnova'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance ipyroblast2 of movieClip 1681 { onClipEvent (release) { if (_root.pyroblast >= 1) { if (_root.hcuren >= 55) { _root.hcuren -= 55; _root.pyrocount = 3; _root.ispyro = true; _root.tooltipbox.gotoAndStop('hide'); _root.battle.bhero.gotoAndStop('pyroblast'); _root.battle.bmenu.gotoAndStop('hide'); } else { _root.error('Not enough Energy.'); } } } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.skilltip('pyroblast'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance of movieClip 1576 { onClipEvent (release) { _parent._parent.gotoAndStop(1); } } } movieClip 6168 { } movieClip 6171 { } movieClip 6173 { frame 1 { _root.mdcount = 'x' + _root.countitem('magic_dust'); } instance of movieClip 6168 { onClipEvent (release) { _root.tooltipbox.gotoAndStop('hide'); _root.hcuren += 100; if (_root.hcuren > _root.hmaxen) { _root.hcuren = _root.hmaxen; } _root.slot[_root.finditem('magic_dust')] = 'none'; _root.pdone = true; } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.tooltipbox.gotoAndStop('showr'); _root.tooltip(_root.finditem('magic_dust')); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } frame 2 { _root.swmcount = 'x' + _root.countitem('spiced_wolf_meat'); } instance of movieClip 6171 { onClipEvent (release) { _root.tooltipbox.gotoAndStop('hide'); _root.hcurhp += 300; if (_root.hcurhp > _root.hmaxhp) { _root.hcurhp = _root.hmaxhp; } _root.slot[_root.finditem('spiced_wolf_meat')] = 'none'; _root.pdone = true; } onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.tooltipbox.gotoAndStop('showr'); _root.tooltip(_root.finditem('spiced_wolf_meat')); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } } movieClip 6174 { frame 1 { if (_root.countitem('magic_dust') > 0) { bitem1.gotoAndStop('magic dust'); } else { if (_root.countitem('spiced_wolf_meat') > 0) { bitem1.gotoAndStop('spiced wolf meat'); } else { bitem1.gotoAndStop('hide'); } } if (_root.countitem('spiced_wolf_meat') > 0 && _root.countitem('magic_dust') > 0) { bitem2.gotoAndStop('spiced wolf meat'); } else { bitem2.gotoAndStop('hide'); } } instance of movieClip 1576 { onClipEvent (release) { _parent._parent.gotoAndStop(1); } } } movieClip 6175 { frame 1 { stop(); if (_root.heroicstrike >= 1 || _root.coldblood >= 1 || _root.ambush == true) { skillstxtb.gotoAndStop(1); skillsbuttonb.gotoAndStop(1); } else { skillstxtb.gotoAndStop(2); skillsbuttonb.gotoAndStop(2); } if (_root.renew >= 1 || _root.lashofpain >= 1) { spellstxtb.gotoAndStop(1); spellsbuttonb.gotoAndStop(1); } else { spellstxtb.gotoAndStop(2); spellsbuttonb.gotoAndStop(2); } if (_root.countitem('magic_dust') > 0 || _root.countitem('spiced_wolf_meat') > 0) { itemstxtb.gotoAndStop(1); itemsbuttonb.gotoAndStop(1); } else { itemstxtb.gotoAndStop(2); itemsbuttonb.gotoAndStop(2); } if (_root.noflee == false) { fleebox.gotoAndStop(1); } else { fleebox.gotoAndStop(2); } } frame 5 { stop(); } } movieClip 6179 { } movieClip 6181 { } movieClip 6212 { frame 1 { stop(); } } button 6221 { on (release) { _root.isdead = true; _root.freeze = false; _root.battleon = false; _root.noflee = false; stopAllSounds(); if (_root.fingame == true) { _root.gotoAndStop('fair'); } else { if (_root.zone == 'Stranglethorn Vale' || _root.zone == 'Gurubashi Arena' || _root.zone == 'Zul\'Gurub') { _root.gotoAndStop('STV'); } else { if (_root.nightseq == true) { _root.gotoAndStop('nightnearsea'); } else { _root.gotoAndStop('nearsea'); } } } } } movieClip 6222 { frame 1 { stop(); } frame 2 { _root.tooltipbox.gotoAndStop('hide'); stop(); } } movieClip 6224 { } movieClip 6236 { frame 1 { _root.tooltipbox.gotoAndStop('hide'); stop(); } instance of movieClip 6224 { onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.minitip('Cold Blood'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance of movieClip 6224 { onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.minitip('You can Execute now.'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance of movieClip 6224 { onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.minitip('Adrenaline Rush'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance of movieClip 6224 { onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.minitip('Silenced'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance of movieClip 6224 { onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.minitip('Stunned'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance of movieClip 6224 { onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.minitip('Renew'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance of movieClip 6224 { onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.minitip('Power Word: Shield'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance of movieClip 6224 { onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.minitip('Polymorphed'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance of movieClip 6224 { onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.minitip('Frozen'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } instance of movieClip 6224 { onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.minitip('Casting Pyroblast'); } } onClipEvent (rollOut) { _root.tooltipbox.gotoAndStop('hide'); } onClipEvent (dragOut) { _root.tooltipbox.gotoAndStop('hide'); } } } movieClip 6238 { } movieClip 6240 { } movieClip 6249 { frame 1 { stop(); } } movieClip 6251 { frame 1 { stop(); if (_root.cointaken == false) { if (_root.lootcoin >= 10000) { lootmoney.gotoAndStop('gold'); } else { if (_root.lootcoin >= 100) { lootmoney.gotoAndStop('silver'); } else { lootmoney.gotoAndStop('copper'); } } } if (_root.geticon(43) == 'wolfmeat') { loot1.gotoAndStop('wolfmeatl'); } else { if (_root.geticon(43) == 'wolftail') { loot1.gotoAndStop('wolftaill'); } else { loot1.gotoAndStop(_root.geticon(43)); } } loot2.gotoAndStop(_root.geticon(44)); loot3.gotoAndStop(_root.geticon(45)); } instance loot1 of movieClip 1522 { onClipEvent (enterFrame) { if (_root.geticon(43) == 'wolfmeat') { this.gotoAndStop('wolfmeatl'); } else { if (_root.geticon(43) == 'wolftail') { this.gotoAndStop('wolftaill'); } else { this.gotoAndStop(_root.geticon(43)); } } if (_root.slot[43] != 'none') { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.tooltipbox.gotoAndStop('show'); _root.tooltip(43); } } } onClipEvent (rollOut) { if (_root.slot[43] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (dragOut) { if (_root.slot[43] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (release) { if (_root.slot[43] != 'none') { if (_root.pickup(_root.slot[43])) { _root.slot[43] = 'none'; _root.tooltipbox.gotoAndStop('hide'); } } } } instance loot2 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(44)); if (_root.slot[44] != 'none') { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.tooltipbox.gotoAndStop('show'); _root.tooltip(44); } } } onClipEvent (rollOut) { if (_root.slot[44] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (dragOut) { if (_root.slot[44] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (release) { if (_root.slot[44] != 'none') { if (_root.pickup(_root.slot[44])) { _root.slot[44] = 'none'; _root.tooltipbox.gotoAndStop('hide'); } } } } instance loot3 of movieClip 1522 { onClipEvent (enterFrame) { this.gotoAndStop(_root.geticon(45)); if (_root.slot[45] != 'none') { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.tooltipbox.gotoAndStop('show'); _root.tooltip(45); } } } onClipEvent (rollOut) { if (_root.slot[45] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (dragOut) { if (_root.slot[45] != 'none') { _root.tooltipbox.gotoAndStop('hide'); } } onClipEvent (release) { if (_root.slot[45] != 'none') { if (_root.pickup(_root.slot[45])) { _root.slot[45] = 'none'; _root.tooltipbox.gotoAndStop('hide'); } } } } instance lootmoney of movieClip 6249 { onClipEvent (enterFrame) { if (_root.cointaken == false) { if (_root.lootcoin >= 10000) { this.gotoAndStop('gold'); } else { if (_root.lootcoin >= 100) { this.gotoAndStop('silver'); } else { this.gotoAndStop('copper'); } } } } onClipEvent (release) { if (_root.cointaken == false) { temp = 'Recieved: '; _root.money += _root.lootcoin; if (_root.gold(_root.lootcoin) != 0) { temp += ' ' + [_root.gold(_root.lootcoin)] + ' gold'; } if (_root.silver(_root.lootcoin) != 0) { temp += ' ' + [_root.silver(_root.lootcoin)] + ' silver'; } if (_root.copper(_root.lootcoin) != 0) { temp += ' ' + [_root.copper(_root.lootcoin)] + ' copper'; } _root.error(temp + '.'); _root.sfx('sell'); _root.cointaken = true; this.gotoAndStop(1); } } } instance of movieClip 1576 { onClipEvent (release) { _root.sfx('closebackpack'); _parent.gotoAndStop(2); } } frame 2 { stop(); } } movieClip 6255 { } movieClip 6260 { } movieClip 6261 { frame 1 { stop(); } frame 2 { stop(); } instance of movieClip 6260 { onClipEvent (release) { if (_root.bpack == true) { _root.bpack = false; _root.backpack.play(); } _root.freeze = false; _root.battleon = false; _root.noflee = false; stopAllSounds(); _root.gotoAndStop(_root.whatframe); } } } movieClip 6270 { instance of movieClip 6261 { onClipEvent (enterFrame) { if (_root.xptick <= 0) { this.gotoAndStop(2); } } } } movieClip 6273 { frame 1 { if (_root.xptick > 0) { if (_root.xptick >= _root.tickspeed) { _root.addxp(_root.tickspeed); _root.xptick -= _root.tickspeed; } else { _root.addxp(_root.xptick); _root.xptick = 0; } } else { stop(); } } frame 2 { if (_root.xptick > 0) { if (_root.xptick >= _root.tickspeed) { _root.addxp(_root.tickspeed); _root.xptick -= _root.tickspeed; } else { _root.addxp(_root.xptick); _root.xptick = 0; } } else { stop(); } } } movieClip 6277 { frame 1 { monsters.gotoAndStop(_root.monstersprite(_root.enemy)); enemyhpbar.gotoAndStop(_root.percent(_root.ecurhp, _root.emaxhp)); eportrait.gotoAndStop(_root.monstersprite(_root.enemy)); if (_root.zone == 'Elwynn Forest' && _root.nightseq == true) { ntmcb.gotoAndStop(1); } else { ntmcb.gotoAndStop(2); } _root.status1 = 'none'; _root.status2 = 'none'; _root.status3 = 'none'; _root.status4 = 'none'; _root.status5 = 'none'; _root.status6 = 'none'; _root.estatus1 = 'none'; _root.estatus2 = 'none'; _root.estatus3 = 'none'; _root.estatus4 = 'none'; _root.ispyro = false; _root.pyrocount = 3; _root.isfrozen = false; _root.frozencount = 2; _root.issheep = false; _root.sheepcount = 10; _root.isrenew = false; _root.isshield = false; _root.shieldcount = 5; _root.renewround = 5; _root.esilence = false; _root.ischarge = false; _root.silencecount = 1; _root.bround = 0; _root.isrush = false; _root.rushcount = 5; _root.counter = false; _root.iscoldblood = false; _root.pdone = false; _root.edone = false; _root.pdead = false; _root.edead = false; } instance bmenu of movieClip 6175 { onClipEvent (enterFrame) { if (_root.ispyro == true) { this.gotoAndStop('hide'); } } } instance enemyhpbar of movieClip 1270 { onClipEvent (enterFrame) { if (_root.percent(_root.ecurhp, _root.emaxhp) <= 0) { this.gotoAndStop(1); } else { this.gotoAndStop(_root.percent(_root.ecurhp, _root.emaxhp)); } } } frame 2 { _root.edone = false; bmenu.gotoAndStop(1); if (_root.pdone == true || _root.pdead == true || _root.counter == true || _root.ispyro == true) { bmenu.gotoAndStop('hide'); } if (_root.esilence == true) { if (_root.silencecount <= 0) { _root.esilence = false; } else { _root.silencecount -= 1; } } if (_root.counter == true) { _root.battle.bhero.gotoAndStop('counteratk'); } else { if (_root.isrush == true && _root.pdead == false) { if (_root.rushcount > 0) { _root.sendbmsg('You feel the rush.'); _root.hcuren += Math.ceil(0.2 * _root.hmaxen); if (_root.hcuren > _root.hmaxen) { _root.hcuren = _root.hmaxen; } _root.rushcount -= 1; } } if (_root.isrenew == true && _root.renewcount > 0 && _root.pdead == false) { _root.battle.bhero.gotoAndStop('renew'); _root.sendbmsg('You feel renewed.'); } if (_root.ispyro == true && _root.pdead == false) { _root.battle.bmenu.gotoAndStop('hide'); _root.battle.bhero.gotoAndStop('pyroblast'); } } if (_root.isshield == true) { _root.shieldcount -= 1; if (_root.shieldcount <= 0) { _root.isshield = false; } } _root.bround += 1; if (_root.pdead == true) { deadbox.gotoAndStop(2); } stop(); } instance statusicon1 of movieClip 6236 { onClipEvent (enterFrame) { this.gotoAndStop(_root.status1); } } instance statusicon2 of movieClip 6236 { onClipEvent (enterFrame) { this.gotoAndStop(_root.status2); } } instance statusicon3 of movieClip 6236 { onClipEvent (enterFrame) { this.gotoAndStop(_root.status3); } } instance of movieClip 6238 { onClipEvent (enterFrame) { if (_root.isrush == true && _root.rushcount > 0) { _root.status1 = 'adr'; } else { if (_root.iscoldblood == true) { _root.status1 = 'coldblood'; } else { if (_root.exec >= 1 && _root.ecurhp <= Math.ceil(0.3 * _root.emaxhp) && _root.edead == false) { _root.status1 = 'exec'; } else { if (_root.isrenew == true && _root.renewcount > 0) { _root.status1 = 'renew'; } else { if (_root.isshield == true) { _root.status1 = 'shield'; } else { if (_root.ispyro == true) { _root.status1 = 'pyroblast'; } else { _root.status1 = 'none'; } } } } } } if (_root.iscoldblood == true && _root.status1 != 'coldblood') { _root.status2 = 'coldblood'; } else { if (_root.exec >= 1 && _root.ecurhp <= Math.ceil(0.3 * _root.emaxhp) && _root.status1 != 'exec' && _root.edead == false) { _root.status2 = 'exec'; } else { if (_root.isrenew == true && _root.renewcount > 0 && _root.status1 != 'renew') { _root.status2 = 'renew'; } else { if (_root.isshield == true && _root.status1 != 'shield') { _root.status2 = 'shield'; } else { if (_root.ispyro == true && _root.status1 != 'pyroblast') { _root.status2 = 'pyroblast'; } else { _root.status2 = 'none'; } } } } } if (_root.exec >= 1 && _root.ecurhp <= Math.ceil(0.3 * _root.emaxhp) && _root.status1 != 'exec' && _root.status2 != 'exec' && _root.edead == false) { _root.status3 = 'exec'; } else { if (_root.isrenew == true && _root.renewcount > 0 && _root.status1 != 'renew' && _root.status2 != 'renew') { _root.status3 = 'renew'; } else { if (_root.isshield == true && _root.status1 != 'shield' && _root.status2 != 'shield') { _root.status3 = 'shield'; } else { if (_root.ispyro == true && _root.status1 != 'pyroblast' && _root.status2 != 'pyroblast') { _root.status3 = 'pyroblast'; } else { _root.status3 = 'none'; } } } } if (_root.isrenew == true && _root.renewcount > 0 && _root.status1 != 'renew' && _root.status2 != 'renew' && _root.status3 != 'renew') { _root.status4 = 'renew'; } else { if (_root.isshield == true && _root.status1 != 'shield' && _root.status2 != 'shield' && _root.status3 != 'shield') { _root.status4 = 'shield'; } else { if (_root.ispyro == true && _root.status1 != 'pyroblast' && _root.status2 != 'pyroblast' && _root.status3 != 'pyroblast') { _root.status4 = 'pyroblast'; } else { _root.status4 = 'none'; } } } if (_root.isshield == true && _root.status1 != 'shield' && _root.status2 != 'shield' && _root.status3 != 'shield' && _root.status4 != 'shield') { _root.status5 = 'shield'; } else { if (_root.ispyro == true && _root.status1 != 'pyroblast' && _root.status2 != 'pyroblast' && _root.status3 != 'pyroblast' && _root.status4 != 'pyroblast') { _root.status5 = 'pyroblast'; } else { _root.status5 = 'none'; } } if (_root.ispyro == true && _root.status1 != 'pyroblast' && _root.status2 != 'pyroblast' && _root.status3 != 'pyroblast' && _root.status4 != 'pyroblast' && _root.status5 != 'pyroblast') { _root.status6 = 'pyroblast'; } else { _root.status6 = 'none'; } if (_root.ischarge == true && _root.edead == false) { _root.estatus1 = 'stunned'; } else { if (_root.isfrozen == true && _root.edead == false) { _root.estatus1 = 'frozen'; } else { if (_root.esilence == true && _root.edead == false) { _root.estatus1 = 'silenced'; } else { if (_root.issheep == true && _root.edead == false) { _root.estatus1 = 'sheep'; } else { _root.estatus1 = 'none'; } } } } if (_root.isfrozen == true && _root.estatus1 != 'frozen' && _root.edead == false) { _root.estatus2 = 'frozen'; } else { if (_root.esilence == true && _root.edead == false && _root.estatus1 != 'silenced') { _root.estatus2 = 'silenced'; } else { if (_root.issheep == true && _root.edead == false && _root.estatus1 != 'sheep') { _root.estatus2 = 'sheep'; } else { _root.estatus2 = 'none'; } } } if (_root.esilence == true && _root.edead == false && _root.estatus1 != 'silenced' && _root.estatus2 != 'silenced') { _root.estatus3 = 'silenced'; } else { if (_root.issheep == true && _root.edead == false && _root.estatus1 != 'sheep' && _root.estatus2 != 'sheep') { _root.estatus3 = 'sheep'; } else { _root.estatus3 = 'none'; } } if (_root.issheep == true && _root.edead == false && _root.estatus1 != 'sheep' && _root.estatus2 != 'sheep' && _root.estatus3 != 'sheep') { _root.estatus4 = 'sheep'; } else { _root.estatus4 = 'none'; } } } instance estatusicon2 of movieClip 6236 { onClipEvent (enterFrame) { this.gotoAndStop(_root.estatus2); } } instance estatusicon1 of movieClip 6236 { onClipEvent (enterFrame) { this.gotoAndStop(_root.estatus1); } } instance statusicon4 of movieClip 6236 { onClipEvent (enterFrame) { this.gotoAndStop(_root.status4); } } instance statusicon5 of movieClip 6236 { onClipEvent (enterFrame) { this.gotoAndStop(_root.status5); } } instance estatusicon3 of movieClip 6236 { onClipEvent (enterFrame) { this.gotoAndStop(_root.estatus3); } } instance estatusicon4 of movieClip 6236 { onClipEvent (enterFrame) { this.gotoAndStop(_root.estatus4); } } instance statusicon6 of movieClip 6236 { onClipEvent (enterFrame) { this.gotoAndStop(_root.status6); } } instance of movieClip 6240 { onClipEvent (enterFrame) { if (_root.pdone == true) { _root.tooltipbox.gotoAndStop('hide'); _parent.play(); } } } frame 3 { _root.pdone = false; if (_root.edead == true) { gotoAndStop('loot'); } else { if (_root.issheep == false && _root.isfrozen == false) { if (_root.ename == 'Fagnus the Mage' && _root.esilence == true) { _root.sendbmsg('Fagnus the Mage is silenced.'); _root.edone = true; } else { if ((_root.ename == 'High Priestess Jeklik' || _root.ename == 'Hakkar the Soulflayer' || _root.ename == 'High Priestess Mar\'li' || _root.ename == 'Harpy' || _root.ename == 'Cathy' || _root.ename == 'Beardon' || _root.ename == 'Archaic' || _root.ename == 'Littlefoot' || _root.ename == 'Sheila' || _root.ename == 'Helm' || _root.ename == _root.name0) && _root.esilence == true) { tnum = 1; _root.sendbmsg([_root.ename] + ' ' + [_root.monsteratkname(tnum)] + '.'); _root.battle.monsters[_root.monstersprite(_root.enemy)].gotoAndStop(_root.monsteratksprite(tnum)); _root.eattack = tnum; } else { _root.enemyai(); } } } else { if (_root.issheep == true) { _root.sheepcount -= 1; if (_root.sheepcount <= 0) { _root.battle.cloud.gotoAndPlay(2); _root.battle.monsters.gotoAndStop(_root.monstersprite(_root.enemy)); _root.issheep = false; } } if (_root.isfrozen == true) { _root.frozencount -= 1; if (_root.frozencount <= 0) { _root.battle.monsters.shardmc.gotoAndPlay('hide'); _root.isfrozen = false; } } _root.edone = true; } } stop(); } instance of movieClip 6240 { onClipEvent (enterFrame) { if (_root.edone == true) { _parent.gotoAndPlay(2); } } } frame 4 { _root.setloot(); _root.setcoin(); _root.bpack = true; _root.backpack.play(); if (_root.percent(_root.curxp, _root.maxxp) == 0) { xpbar.gotoAndStop(1); } else { xpbar.gotoAndStop(_root.percent(_root.curxp, _root.maxxp)); } if (_root.bpack == true) { _root.backpack.play(); _root.bpack = false; } _root.tickspeed = _root.level * 5; _root.xpgain = _root.elevel * 100; _root.xptick = _root.xpgain; stop(); } instance xpbar of movieClip 6255 { onClipEvent (enterFrame) { if (_root.percent(_root.curxp, _root.maxxp) == 0) { this.gotoAndStop(1); } else { this.gotoAndStop(_root.percent(_root.curxp, _root.maxxp)); } } } } frame 95 { stop(); if (_root.gettails == true || _root.nightseq == true) { if (_root.level < 10) { _root.zonelvl = _root.level + 1; } else { _root.zonelvl = 11; } } else { _root.zonelvl = _root.roll(2, 3); } _root.enc = _root.roll(1, 100); if (_root.port == 'left') { _root.murloc._x = 50; if (enc <= 50) { _root.wolfencr2.gotoAndStop(2); } else { _root.wolfencr2.gotoAndStop(1); } } else { if (_root.port == 'right') { _root.murloc._x = 650; if (enc <= 50) { _root.wolfencl2.gotoAndStop(2); } else { _root.wolfencl2.gotoAndStop(1); } } else { if (_root.port == 'postbattle') { if (_root.mport != 0) { _root.murloc._x = _root.mport; } else { _root.murloc._x = 650; } } } } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } if (_root.nightseq == true) { _root.ntmc.gotoAndStop(1); } else { _root.ntmc.gotoAndStop(2); } } instance murloc of movieClip 1248 { onClipEvent (enterFrame) { wspeed = 10; rspeed = 20; if ((Key.isDown(37) || Key.isDown(65)) && _root.freeze == false) { _root.dir = 'left'; if (_root.movem == 'walk') { _x = _x - wspeed; this.gotoAndStop('walkl'); } else { if (_root.movem == 'run') { _x = _x - rspeed; this.gotoAndStop('runl'); } } } else { if ((Key.isDown(39) || Key.isDown(68)) && _root.freeze == false) { _root.dir = 'right'; if (_root.movem == 'walk') { _x = _x + wspeed; this.gotoAndStop('walkr'); } else { if (_root.movem == 'run') { _x = _x + rspeed; this.gotoAndStop('runr'); } } } else { if (_root.dir == 'left') { this.gotoAndStop('standl'); } else { this.gotoAndStop('standr'); } } } if (Key.isDown(17)) { _root.movem = 'walk'; } else { _root.movem = 'run'; } } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.port = 'right'; _root.gotoAndPlay('forest1'); } } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.port = 'left'; _root.gotoAndPlay(_root._currentframe + 1); } } } frame 96 { stop(); if (_root.gettails == true || _root.nightseq == true) { if (_root.level < 10) { _root.zonelvl = _root.level + 1; } else { _root.zonelvl = 11; } } else { if (_root.level <= 4) { _root.zonelvl = 4; } else { if (_root.level < 10) { _root.zonelvl = _root.level; } else { _root.zonelvl = 10; } } } _root.enc = _root.roll(1, 100); if (_root.port == 'left') { _root.murloc._x = 50; if (enc <= 50) { _root.wolfencr3.gotoAndStop(2); } else { _root.wolfencr3.gotoAndStop(1); } } else { if (_root.port == 'right') { _root.murloc._x = 650; if (enc <= 50) { _root.wolfencl3.gotoAndStop(2); } else { _root.wolfencl3.gotoAndStop(1); } } else { if (_root.port == 'postbattle') { if (_root.mport != 0) { _root.murloc._x = _root.mport; } else { _root.murloc._x = 650; } } else { if (_root.port == 'door') { _root.changezone('Elwynn Forest'); _root.murloc._x = 350; } } } } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } if (_root.bgone == true) { _root.theboulder.gotoAndStop(2); } else { _root.theboulder.gotoAndStop(1); } if (_root.nightseq == true) { _root.ntmc.gotoAndStop(1); } else { _root.ntmc.gotoAndStop(2); } } movieClip 6285 { frame 1 { stop(); } } movieClip 6287 { frame 1 { stop(); } frame 2 { if (_root.bgone == false) { _root.bgone = true; _root.theboulder.gotoAndStop(2); } else { _root.chestopen = true; _root.thechest.gotoAndStop('open'); } } frame 5 { stop(); } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.port = 'right'; _root.gotoAndPlay(_root._currentframe - 1); } } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (_root.freeze == false) { if (this.hitTest(_root.murloc.hero)) { if (_root.bgone == true) { _root.showarea('Jasperdine Mine'); } if (Key.isDown(32)) { if (_root.bgone == true) { _root.port = 'left'; _root.gotoAndStop('mine1'); } else { if (_root.dogotitem('goblin_dynamite') == true) { _root.textbox.gotoAndStop('setbomb'); _root.freeze = true; } else { _root.textbox.gotoAndStop('boulder'); _root.freeze = true; } } } } else { _root.hidearea(); } } } } frame 97 { stop(); if (_root.level <= 4) { _root.zonelvl = 4; } else { _root.zonelvl = _root.level; } if (_root.port == 'left') { _root.murloc._x = 50; if (_root.savekrakho == 1) { _root.freeze = true; _root.textbox.gotoAndStop('krakhohelp'); } } else { if (_root.port == 'right') { _root.changezone('Elwynn Forest'); _root.murloc._x = 650; } else { if (_root.port == 'postbattle') { _root.savekrakho = 2; if (_root.mport != 0) { _root.murloc._x = _root.mport; } else { _root.murloc._x = 650; } } } } if (_root.getspices >= 1) { _root.krakhoquest.gotoAndStop(1); } else { _root.krakhoquest.gotoAndStop(2); } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } if (_root.nightseq == true) { _root.ntmc.gotoAndStop(1); } else { _root.ntmc.gotoAndStop(2); } } movieClip 6292 { instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.noflee = true; _root.launch('feronius', _root.zonelvl, _root._currentframe); } } } } movieClip 6313 { } movieClip 6314 { frame 1 { if (_root.savekrakho == 1) { ferenc.gotoAndStop(1); } else { ferenc.gotoAndStop(2); } stop(); } instance of movieClip 1252 { onClipEvent (enterFrame) { if (_root.freeze == false) { if (this.hitTest(_root.murloc.hero)) { if (Key.isDown(32)) { if (_root.savekrakho == 2) { _root.textbox.gotoAndStop('magicdust'); } else { if (_root.chiefdead == 0) { _root.setupvendor('krakho'); } else { _root.setupvendor('krakho2'); } } } } } } } frame 2 { stop(); } } instance of movieClip 6313 { onClipEvent (load) { this.gotoAndPlay(5); } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (_root.freeze == false) { if (this.hitTest(_root.murloc.hero)) { if (Key.isDown(32)) { _root.textbox.gotoAndStop('guzbo'); _root.freeze = true; } } } } } frame 98 { stop(); _root.changezone('Stonecairn River'); _root.textbox.gotoAndStop('canoestart'); _root.freeze = true; } movieClip 6320 { } movieClip 6324 { } movieClip 6325 { } frame 99 { stop(); _root.textbox.gotoAndStop('canoe2'); _root.freeze = true; } frame 100 { stop(); _root.textbox.gotoAndStop('canoe3'); _root.freeze = true; } frame 101 { stop(); _root.textbox.gotoAndStop('canoe4'); _root.freeze = true; } frame 102 { stop(); if (_root.motherdead == true) { _root.changezone('Stonecairn River'); } else { _root.motherdead = true; } _root.textbox.gotoAndStop('canoe5'); _root.freeze = true; } frame 103 { stop(); if (_root.port == 'left') { _root.murloc._x = 50; } else { if (_root.port == 'right') { _root.changezone('Elwynn Forest'); _root.murloc._x = 650; } } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } } instance murloc of movieClip 1248 { onClipEvent (enterFrame) { wspeed = 10; rspeed = 20; if ((Key.isDown(37) || Key.isDown(65)) && _root.freeze == false) { _root.dir = 'left'; if (_root.movem == 'walk') { _x = _x - wspeed; this.gotoAndStop('walkl'); } else { if (_root.movem == 'run') { _x = _x - rspeed; this.gotoAndStop('runl'); } } } else { if ((Key.isDown(39) || Key.isDown(68)) && _root.freeze == false) { _root.dir = 'right'; if (_root.movem == 'walk') { _x = _x + wspeed; this.gotoAndStop('walkr'); } else { if (_root.movem == 'run') { _x = _x + rspeed; this.gotoAndStop('runr'); } } } else { if (_root.dir == 'left') { this.gotoAndStop('standl'); } else { this.gotoAndStop('standr'); } } } if (Key.isDown(17)) { _root.movem = 'walk'; } else { _root.movem = 'run'; } } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.port = 'right'; _root.gotoAndPlay(_root._currentframe + 1); } } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (_root.freeze == false) { if (this.hitTest(_root.murloc.hero)) { if (Key.isDown(32)) { _root.textbox.gotoAndStop('leaveprincess'); _root.freeze = true; } } } } } frame 104 { stop(); if (_root.level < 10) { _root.zonelvl = _root.level; } else { _root.zonelvl = 10; } _root.enc = _root.roll(1, 100); if (_root.port == 'left') { _root.changezone('Elwynn Forest'); _root.murloc._x = 50; if (enc <= 50) { _root.wolfencr4.gotoAndStop(2); } else { _root.wolfencr4.gotoAndStop(1); } } else { if (_root.port == 'right') { _root.murloc._x = 650; if (enc <= 50) { _root.wolfencl4.gotoAndStop(2); } else { _root.wolfencl4.gotoAndStop(1); } } else { if (_root.port == 'postbattle') { if (_root.mport != 0) { _root.murloc._x = _root.mport; } else { _root.murloc._x = 650; } } } } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } } instance murloc of movieClip 1248 { onClipEvent (enterFrame) { wspeed = 10; rspeed = 20; if ((Key.isDown(37) || Key.isDown(65)) && _root.freeze == false) { _root.dir = 'left'; if (_root.movem == 'walk') { _x = _x - wspeed; this.gotoAndStop('walkl'); } else { if (_root.movem == 'run') { _x = _x - rspeed; this.gotoAndStop('runl'); } } } else { if ((Key.isDown(39) || Key.isDown(68)) && _root.freeze == false) { _root.dir = 'right'; if (_root.movem == 'walk') { _x = _x + wspeed; this.gotoAndStop('walkr'); } else { if (_root.movem == 'run') { _x = _x + rspeed; this.gotoAndStop('runr'); } } } else { if (_root.dir == 'left') { this.gotoAndStop('standl'); } else { this.gotoAndStop('standr'); } } } if (Key.isDown(17)) { _root.movem = 'walk'; } else { _root.movem = 'run'; } } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.port = 'left'; _root.gotoAndPlay(_root._currentframe - 1); } } } frame 105 { stop(); if (_root.port == 'left') { _root.murloc._x = 50; } else { if (_root.port == 'right') { _root.changezone('Brackwell Pumpkin Patch'); if (_root.princess == 1) { _root.boarenc.gotoAndStop(2); } _root.murloc._x = 650; } else { if (_root.port == 'postbattle') { _root.princess = 2; if (_root.mport != 0) { _root.murloc._x = _root.mport; } else { _root.murloc._x = 650; } } } } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } } movieClip 6333 { frame 1 { stop(); } frame 2 { stop(); } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.noflee = true; _root.launch('the_princess', _root.level, _root._currentframe); } } } } frame 106 { stop(); _root.changezone('Stonecairn River'); _root.textbox.gotoAndStop('nighttrip'); } frame 107 { stop(); if (_root.port == 'left') { _root.murloc._x = 50; } else { if (_root.port == 'right') { _root.murloc._x = 650; } else { if (_root.port == 'trip') { _root.murloc._x = 550; _root.changezone('Camp Brakil'); } } } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } } instance murloc of movieClip 1248 { onClipEvent (enterFrame) { wspeed = 10; rspeed = 20; if ((Key.isDown(37) || Key.isDown(65)) && _root.freeze == false) { _root.dir = 'left'; if (_root.movem == 'walk') { _x = _x - wspeed; this.gotoAndStop('walkl'); } else { if (_root.movem == 'run') { _x = _x - rspeed; this.gotoAndStop('runl'); } } } else { if ((Key.isDown(39) || Key.isDown(68)) && _root.freeze == false) { _root.dir = 'right'; if (_root.movem == 'walk') { _x = _x + wspeed; this.gotoAndStop('walkr'); } else { if (_root.movem == 'run') { _x = _x + rspeed; this.gotoAndStop('runr'); } } } else { if (_root.dir == 'left') { this.gotoAndStop('standl'); } else { this.gotoAndStop('standr'); } } } if (Key.isDown(17)) { _root.movem = 'walk'; } else { _root.movem = 'run'; } } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.port = 'left'; _root.gotoAndPlay(_root._currentframe + 1); } } } frame 108 { stop(); if (_root.port == 'left') { _root.murloc._x = 50; } else { if (_root.port == 'right') { _root.murloc._x = 650; } } if (_root.isdead != true) { _root.wall1.gotoAndStop(2); _root.wall2.gotoAndStop(2); _root.healer.gotoAndStop('hide'); _root.aura.gotoAndStop('hide'); _root.talktohealer.gotoAndStop(2); } else { _root.talktohealer.gotoAndStop(1); _root.wall1.gotoAndStop(1); _root.wall2.gotoAndStop(1); _root.murloc._x = 200; } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.port = 'right'; _root.gotoAndPlay('nightedge'); } } } instance talktohealer of movieClip 1254 { onClipEvent (enterFrame) { if (_root.freeze == false) { if (this.hitTest(_root.murloc.hero)) { if (Key.isDown(32)) { _root.textbox.gotoAndStop('spirithealer'); _root.freeze = true; } } } } } instance ttmsphealer of movieClip 1265 { onClipEvent (enterFrame) { if (_root.isdead == true) { this.gotoAndStop('!'); } else { this.gotoAndStop('done'); } } } frame 109 { stop(); if (_root.port == 'left') { _root.murloc._x = 50; } else { if (_root.port == 'right') { _root.murloc._x = 650; } } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } } movieClip 6387 { } movieClip 6388 { frame 1 { stop(); } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { if (_root.lostone == false) { _root.lostone = true; _parent.play(); } } } } frame 2 { _root.freeze = true; _root.murloc._x = 1000; } frame 24 { stop(); _root.textbox.gotoAndStop('lostone'); } frame 41 { stop(); } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.port = 'right'; _root.gotoAndPlay(_root._currentframe - 1); } } } frame 110 { stop(); if (_root.port == 'left') { _root.murloc._x = 50; } else { if (_root.port == 'right') { _root.murloc._x = 650; } } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } } frame 111 { stop(); if (_root.port == 'left') { _root.murloc._x = 50; } else { if (_root.port == 'right') { _root.murloc._x = 650; } } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } if (_root.portalpop == true) { _root.portalshow.gotoAndStop('show'); } else { _root.portalshow.gotoAndStop('hide'); } } movieClip 6392 { } movieClip 6393 { } movieClip 6394 { frame 1 { stop(); } frame 7 { stop(); } instance of movieClip 1252 { onClipEvent (enterFrame) { if (_root.freeze == false) { if (this.hitTest(_root.murloc.hero)) { if (Key.isDown(32)) { _root.freeze = true; _root.warningbox.gotoAndStop(2); } } } } } } instance murloc of movieClip 1248 { onClipEvent (enterFrame) { wspeed = 10; rspeed = 20; if ((Key.isDown(37) || Key.isDown(65)) && _root.freeze == false) { _root.dir = 'left'; if (_root.movem == 'walk') { _x = _x - wspeed; this.gotoAndStop('walkl'); } else { if (_root.movem == 'run') { _x = _x - rspeed; this.gotoAndStop('runl'); } } } else { if ((Key.isDown(39) || Key.isDown(68)) && _root.freeze == false) { _root.dir = 'right'; if (_root.movem == 'walk') { _x = _x + wspeed; this.gotoAndStop('walkr'); } else { if (_root.movem == 'run') { _x = _x + rspeed; this.gotoAndStop('runr'); } } } else { if (_root.dir == 'left') { this.gotoAndStop('standl'); } else { this.gotoAndStop('standr'); } } } if (Key.isDown(17)) { _root.movem = 'walk'; } else { _root.movem = 'run'; } } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (_root.freeze == false) { if (this.hitTest(_root.murloc.hero)) { if (Key.isDown(32)) { if (_root.chiefdead == 0) { _root.freeze = true; _root.textbox.gotoAndStop('minequest'); } else { if (_root.chiefdead == 1 && _root.dogotitem('rune_of_teleportation') == false) { _root.freeze = true; _root.textbox.gotoAndStop('minereminder'); } else { if (_root.chiefdead == 1 && _root.dogotitem('rune_of_teleportation') == true) { _root.freeze = true; _root.textbox.gotoAndStop('gotrune'); } else { _root.freeze = true; _root.textbox.gotoAndStop('portalreminder'); } } } } } } } } instance ttmlekon2 of movieClip 1265 { onClipEvent (enterFrame) { if (_root.chiefdead == 0) { this.gotoAndStop('!'); } else { if (_root.chiefdead == 1 && _root.dogotitem('rune_of_teleportation') == false) { this.gotoAndStop('g?'); } else { if (_root.chiefdead == 1 && _root.dogotitem('rune_of_teleportation') == true) { this.gotoAndStop('?'); } else { this.gotoAndStop('done'); } } } } } button 6401 { on (release) { if (_root.loadgame == true) { _root.fingame = true; _root.port = 'right'; if (_root.loadslot == 2) { _root.savefile(2); } else { if (_root.loadslot == 3) { _root.savefile(3); } else { _root.savefile(1); } } } else { _root.savefile(1); } _root.gotoAndPlay('movie'); } } button 6403 { on (release) { _root.freeze = false; gotoAndStop(1); } } movieClip 6404 { frame 1 { stop(); } frame 2 { stop(); } } frame 112 { stop(); if (_root.port == 'left') { _root.murloc._x = 50; } else { if (_root.port == 'right') { _root.murloc._x = 650; } } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } } instance murloc of movieClip 1248 { onClipEvent (enterFrame) { wspeed = 10; rspeed = 20; if ((Key.isDown(37) || Key.isDown(65)) && _root.freeze == false) { _root.dir = 'left'; if (_root.movem == 'walk') { _x = _x - wspeed; this.gotoAndStop('walkl'); } else { if (_root.movem == 'run') { _x = _x - rspeed; this.gotoAndStop('runl'); } } } else { if ((Key.isDown(39) || Key.isDown(68)) && _root.freeze == false) { _root.dir = 'right'; if (_root.movem == 'walk') { _x = _x + wspeed; this.gotoAndStop('walkr'); } else { if (_root.movem == 'run') { _x = _x + rspeed; this.gotoAndStop('runr'); } } } else { if (_root.dir == 'left') { this.gotoAndStop('standl'); } else { this.gotoAndStop('standr'); } } } if (Key.isDown(17)) { _root.movem = 'walk'; } else { _root.movem = 'run'; } } } frame 113 { stop(); if (_root.port == 'left') { _root.murloc._x = 50; } else { if (_root.port == 'right') { _root.murloc._x = 650; _root.changezone('Camp Brakil'); } } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } } instance murloc of movieClip 1248 { onClipEvent (enterFrame) { wspeed = 10; rspeed = 20; if ((Key.isDown(37) || Key.isDown(65)) && _root.freeze == false) { _root.dir = 'left'; if (_root.movem == 'walk') { _x = _x - wspeed; this.gotoAndStop('walkl'); } else { if (_root.movem == 'run') { _x = _x - rspeed; this.gotoAndStop('runl'); } } } else { if ((Key.isDown(39) || Key.isDown(68)) && _root.freeze == false) { _root.dir = 'right'; if (_root.movem == 'walk') { _x = _x + wspeed; this.gotoAndStop('walkr'); } else { if (_root.movem == 'run') { _x = _x + rspeed; this.gotoAndStop('runr'); } } } else { if (_root.dir == 'left') { this.gotoAndStop('standl'); } else { this.gotoAndStop('standr'); } } } if (Key.isDown(17)) { _root.movem = 'walk'; } else { _root.movem = 'run'; } } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.port = 'left'; _root.gotoAndPlay('forest1'); } } } frame 114 { stop(); if (_root.port == 'left') { _root.hidearea(); _root.changezone('Jasperdine Mine'); _root.dir = 'right'; _root.murloc._x = 50; } else { if (_root.port == 'right') { _root.murloc._x = 650; } else { if (_root.port == 'postbattle') { _root.kobold1 = 1; if (_root.mport != 0) { _root.murloc._x = _root.mport; } else { _root.murloc._x = 50; } } } } if (_root.kobold1 == 1) { _root.k1.gotoAndStop('hide'); } else { _root.k1.gotoAndPlay(_root.roll(1, 139)); } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } } movieClip 6444 { instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.noflee = true; _root.launch('kobold_miner', _root.level, _root._currentframe); } } } frame 140 { gotoAndPlay(1); } frame 141 { stop(); } } instance murloc of movieClip 1248 { onClipEvent (enterFrame) { wspeed = 10; rspeed = 20; if ((Key.isDown(37) || Key.isDown(65)) && _root.freeze == false) { _root.dir = 'left'; if (_root.movem == 'walk') { _x = _x - wspeed; this.gotoAndStop('walkl'); } else { if (_root.movem == 'run') { _x = _x - rspeed; this.gotoAndStop('runl'); } } } else { if ((Key.isDown(39) || Key.isDown(68)) && _root.freeze == false) { _root.dir = 'right'; if (_root.movem == 'walk') { _x = _x + wspeed; this.gotoAndStop('walkr'); } else { if (_root.movem == 'run') { _x = _x + rspeed; this.gotoAndStop('runr'); } } } else { if (_root.dir == 'left') { this.gotoAndStop('standl'); } else { this.gotoAndStop('standr'); } } } if (Key.isDown(17)) { _root.movem = 'walk'; } else { _root.movem = 'run'; } } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.port = 'door'; _root.gotoAndPlay('minedoor'); } } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.port = 'left'; _root.gotoAndPlay(_root._currentframe + 1); } } } frame 115 { stop(); if (_root.port == 'left') { _root.murloc._x = 50; } else { if (_root.port == 'right') { _root.murloc._x = 650; } else { if (_root.port == 'postbattle') { _root.kobold2 = 1; if (_root.mport != 0) { _root.murloc._x = _root.mport; } else { _root.murloc._x = 50; } } } } if (_root.kobold2 == 1) { _root.k2.gotoAndStop('hide'); } else { _root.k2.gotoAndPlay(_root.roll(1, 139)); } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } } instance murloc of movieClip 1248 { onClipEvent (enterFrame) { wspeed = 10; rspeed = 20; if ((Key.isDown(37) || Key.isDown(65)) && _root.freeze == false) { _root.dir = 'left'; if (_root.movem == 'walk') { _x = _x - wspeed; this.gotoAndStop('walkl'); } else { if (_root.movem == 'run') { _x = _x - rspeed; this.gotoAndStop('runl'); } } } else { if ((Key.isDown(39) || Key.isDown(68)) && _root.freeze == false) { _root.dir = 'right'; if (_root.movem == 'walk') { _x = _x + wspeed; this.gotoAndStop('walkr'); } else { if (_root.movem == 'run') { _x = _x + rspeed; this.gotoAndStop('runr'); } } } else { if (_root.dir == 'left') { this.gotoAndStop('standl'); } else { this.gotoAndStop('standr'); } } } if (Key.isDown(17)) { _root.movem = 'walk'; } else { _root.movem = 'run'; } } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.port = 'right'; _root.gotoAndPlay(_root._currentframe - 1); } } } frame 116 { stop(); if (_root.port == 'left') { _root.murloc._x = 50; } else { if (_root.port == 'right') { _root.murloc._x = 650; } else { if (_root.port == 'postbattle') { _root.kobold3 = 1; if (_root.mport != 0) { _root.murloc._x = _root.mport; } else { _root.murloc._x = 50; } } } } if (_root.kobold3 == 1) { _root.k3.gotoAndStop('hide'); } else { _root.k3.gotoAndPlay(_root.roll(1, 139)); } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } } instance murloc of movieClip 1248 { onClipEvent (enterFrame) { wspeed = 10; rspeed = 20; if ((Key.isDown(37) || Key.isDown(65)) && _root.freeze == false) { _root.dir = 'left'; if (_root.movem == 'walk') { _x = _x - wspeed; this.gotoAndStop('walkl'); } else { if (_root.movem == 'run') { _x = _x - rspeed; this.gotoAndStop('runl'); } } } else { if ((Key.isDown(39) || Key.isDown(68)) && _root.freeze == false) { _root.dir = 'right'; if (_root.movem == 'walk') { _x = _x + wspeed; this.gotoAndStop('walkr'); } else { if (_root.movem == 'run') { _x = _x + rspeed; this.gotoAndStop('runr'); } } } else { if (_root.dir == 'left') { this.gotoAndStop('standl'); } else { this.gotoAndStop('standr'); } } } if (Key.isDown(17)) { _root.movem = 'walk'; } else { _root.movem = 'run'; } } } frame 117 { stop(); if (_root.port == 'left') { _root.murloc._x = 50; } else { if (_root.port == 'right') { _root.murloc._x = 650; } else { if (_root.port == 'postbattle') { _root.kobold4 = 1; if (_root.mport != 0) { _root.murloc._x = _root.mport; } else { _root.murloc._x = 50; } } } } if (_root.kobold4 == 1) { _root.k4.gotoAndStop('hide'); } else { _root.k4.gotoAndPlay(_root.roll(1, 139)); } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } } frame 118 { stop(); if (_root.port == 'left') { _root.murloc._x = 50; } else { if (_root.port == 'right') { _root.murloc._x = 650; } else { if (_root.port == 'postbattle') { _root.kobold5 = 1; if (_root.mport != 0) { _root.murloc._x = _root.mport; } else { _root.murloc._x = 50; } } } } if (_root.kobold5 == 1) { _root.k5.gotoAndStop('hide'); } else { _root.k5.gotoAndPlay(_root.roll(1, 139)); } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } } frame 119 { stop(); if (_root.port == 'left') { _root.murloc._x = 50; } else { if (_root.port == 'right') { _root.changezone('Jasperdine Mine'); _root.murloc._x = 650; } else { if (_root.port == 'postbattle') { _root.fagnusdead = true; if (_root.mport != 0) { _root.murloc._x = _root.mport; } else { _root.murloc._x = 50; } } } } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } if (_root.fagnusdead == true) { _root.faggy.gotoAndStop(2); } else { _root.faggy.gotoAndStop(1); } if (_root.chestopen == true) { _root.thechest.gotoAndStop('open'); } else { _root.thechest.gotoAndStop('close'); } if (_root.slot[21] == 'bld_tal') { tenc = _root.roll(1, 100); if (tenc <= 30) { _root.onyxevent.gotoAndStop('show'); } else { _root.onyxevent.gotoAndStop('hide'); } } else { _root.onyxevent.gotoAndStop('hide'); } } movieClip 6461 { frame 1 { stop(); } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { if (Key.isDown(32)) { if (_root.dogotitem('goblin_dynamite') == true) { _root.freeze = true; _root.textbox.gotoAndStop('blastchest'); } else { _root.freeze = true; _root.textbox.gotoAndStop('stuckchest'); } } } } } frame 2 { stop(); } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { if (Key.isDown(32)) { if (_root.chestloot == false) { _root.freeze = true; _root.textbox.gotoAndStop('lootchest'); } else { _root.freeze = true; _root.textbox.gotoAndStop('chestempty'); } } } } } } movieClip 6467 { } movieClip 6468 { } movieClip 6469 { frame 1 { stop(); } instance of movieClip 1252 { onClipEvent (enterFrame) { if (_root.freeze == false) { if (this.hitTest(_root.murloc.hero)) { _root.showarea('Onyxia\'s Lair'); if (Key.isDown(32)) { _root.port = 'left'; _root.fadeto('onyxia'); } } else { _root.hidearea(); } } } } frame 2 { stop(); } } movieClip 6470 { frame 1 { stop(); } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { if (_root.freeze == false) { _root.freeze = true; _root.textbox.gotoAndStop('nocandle'); } } } } frame 2 { stop(); } } frame 120 { loadgame = true; loadslot = 1; gotoAndPlay(84); } frame 121 { stop(); stop(); if (_root.port == 'left') { _root.murloc._x = 50; } else { if (_root.port == 'right') { _root.changezone('Darkmoon Faire'); _root.murloc._x = 650; } } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } if (_root.isdead != true) { _root.wall1.gotoAndStop(2); _root.healer.gotoAndStop('hide'); _root.aura.gotoAndStop('hide'); _root.talktohealer.gotoAndStop(2); } else { _root.talktohealer.gotoAndStop(1); _root.wall1.gotoAndStop(1); _root.murloc._x = 200; } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.port = 'right'; _root.gotoAndPlay(_root._currentframe + 1); } } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (_root.freeze == false) { if (this.hitTest(_root.murloc.hero)) { if (Key.isDown(32)) { _root.setupvendor('flik'); } } } } } instance ttmsphealer of movieClip 1265 { onClipEvent (enterFrame) { if (_root.isdead == true) { this.gotoAndStop('!'); } else { this.gotoAndStop('done'); } } } instance talktohealer of movieClip 1254 { onClipEvent (enterFrame) { if (_root.freeze == false) { if (this.hitTest(_root.murloc.hero)) { if (Key.isDown(32)) { _root.textbox.gotoAndStop('spirithealer'); _root.freeze = true; } } } } } frame 122 { stop(); stop(); if (_root.port == 'left') { _root.murloc._x = 50; } else { if (_root.port == 'right') { _root.murloc._x = 650; } else { if (_root.port == 'postbattle') { _root.dmoon += 1; if (_root.dmoon > 8) { API.unlockMedal('Darkmoon Faire Ticket'); } if (_root.mport != 0) { _root.murloc._x = _root.mport; } else { _root.murloc._x = 650; } } } } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.port = 'left'; _root.gotoAndPlay(_root._currentframe - 1); } } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (_root.freeze == false) { if (this.hitTest(_root.murloc.hero)) { if (Key.isDown(32)) { if (_root.dmoon == 0) { _root.textbox.gotoAndStop('dmoon0'); _root.freeze = true; } else { if (_root.dmoon > 8) { _root.textbox.gotoAndStop('dmoonfin'); _root.freeze = true; } else { _root.textbox.gotoAndStop('dmoon'); _root.freeze = true; } } } } } } } frame 123 { loadgame = true; loadslot = 2; gotoAndPlay(84); } frame 124 { loadgame = true; loadslot = 3; gotoAndPlay(84); } frame 125 { stop(); if (_root.port == 'left') { _root.murloc._x = 50; _root.changezone('Stranglethorn Vale'); } else { if (_root.port == 'right') { _root.murloc._x = 650; } else { if (_root.port == 'postbattle') { if (_root.mport != 0) { _root.murloc._x = _root.mport; } else { _root.murloc._x = 650; } } } } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } if (_root.isdead != true) { _root.wall2.gotoAndStop(2); _root.healer.gotoAndStop('hide'); _root.aura.gotoAndStop('hide'); _root.talktohealer.gotoAndStop(2); } else { _root.talktohealer.gotoAndStop(1); _root.wall2.gotoAndStop(1); _root.murloc._x = 200; } } instance murloc of movieClip 1248 { onClipEvent (enterFrame) { wspeed = 10; rspeed = 20; if ((Key.isDown(37) || Key.isDown(65)) && _root.freeze == false) { _root.dir = 'left'; if (_root.movem == 'walk') { _x = _x - wspeed; this.gotoAndStop('walkl'); } else { if (_root.movem == 'run') { _x = _x - rspeed; this.gotoAndStop('runl'); } } } else { if ((Key.isDown(39) || Key.isDown(68)) && _root.freeze == false) { _root.dir = 'right'; if (_root.movem == 'walk') { _x = _x + wspeed; this.gotoAndStop('walkr'); } else { if (_root.movem == 'run') { _x = _x + rspeed; this.gotoAndStop('runr'); } } } else { if (_root.dir == 'left') { this.gotoAndStop('standl'); } else { this.gotoAndStop('standr'); } } } if (Key.isDown(17)) { _root.movem = 'walk'; } else { _root.movem = 'run'; } } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.port = 'left'; _root.gotoAndPlay(_root._currentframe + 1); } } } instance talktohealer of movieClip 1254 { onClipEvent (enterFrame) { if (_root.freeze == false) { if (this.hitTest(_root.murloc.hero)) { if (Key.isDown(32)) { _root.textbox.gotoAndStop('spirithealer'); _root.freeze = true; } } } } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (_root.freeze == false && _root.isdead != true) { if (this.hitTest(_root.murloc.hero)) { if (Key.isDown(32)) { _root.textbox.gotoAndStop('waxen'); _root.freeze = true; } } } } } instance ttmsphealer of movieClip 1265 { onClipEvent (enterFrame) { if (_root.isdead == true) { this.gotoAndStop('!'); } else { this.gotoAndStop('done'); } } } frame 126 { stop(); if (_root.port == 'left') { _root.murloc._x = 50; } else { if (_root.port == 'right') { _root.murloc._x = 650; } else { if (_root.port == 'postbattle') { if (_root.felvahelp == 4) { _root.felvahelp = 5; } if (_root.mport != 0) { _root.murloc._x = _root.mport; } else { _root.murloc._x = 650; } } } } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } if (_root.felvahelp == 5) { _root.jeklok.gotoAndStop(2); } else { _root.jeklok.gotoAndStop(1); } } instance of movieClip 6313 { onClipEvent (load) { this.gotoAndPlay(5); } } movieClip 6480 { frame 1 { stop(); } instance of movieClip 1252 { onClipEvent (enterFrame) { if (_root.freeze == false) { if (this.hitTest(_root.murloc.hero)) { if (Key.isDown(32)) { if (_root.felvahelp == 4) { _root.textbox.gotoAndStop('jeklok'); _root.freeze = true; } else { _root.textbox.gotoAndStop('onyxia'); _root.freeze = true; } } } } } } frame 2 { stop(); } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.port = 'right'; _root.gotoAndPlay(_root._currentframe - 1); } } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (_root.freeze == false) { if (this.hitTest(_root.murloc.hero)) { if (Key.isDown(32)) { _root.setupvendor('fliker'); } } } } } instance ttmjeklok of movieClip 1265 { onClipEvent (enterFrame) { if (_root.felvahelp == 4) { this.gotoAndStop('?'); } else { this.gotoAndStop('done'); } } } frame 127 { stop(); if (_root.port == 'left') { _root.murloc._x = 50; } else { if (_root.port == 'right') { _root.murloc._x = 650; } else { if (_root.port == 'postbattle') { if (_root.mport != 0) { _root.murloc._x = _root.mport; } else { _root.murloc._x = 650; } } else { if (_root.port == 'door') { _root.changezone('Stranglethorn Vale'); _root.murloc._x = 350; } } } } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.port = 'left'; _root.gotoAndPlay(_root._currentframe + 2); } } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (_root.freeze == false) { if (this.hitTest(_root.murloc.hero)) { _root.showarea('Gurubashi Arena'); if (Key.isDown(32)) { _root.port = 'left'; _root.gotoAndStop('guru'); } } else { _root.hidearea(); } } } } frame 128 { stop(); if (_root.port == 'left') { _root.dir = 'right'; _root.hidearea(); _root.murloc._x = 50; _root.changezone('Gurubashi Arena'); } else { if (_root.port == 'right') { _root.murloc._x = 650; } else { if (_root.port == 'postbattle') { _root.arena += 1; if (_root.arena >= 9) { API.unlockMedal('Arena Champion'); } if (_root.mport != 0) { _root.murloc._x = _root.mport; } else { _root.murloc._x = 650; } _root.port = 'right'; } } } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } } movieClip 6513 { } instance of movieClip 6313 { onClipEvent (load) { this.gotoAndPlay(5); } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.port = 'door'; _root.gotoAndPlay(_root._currentframe - 1); } } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (_root.freeze == false) { if (this.hitTest(_root.murloc.hero)) { if (Key.isDown(32)) { _root.setupvendor('menrok'); } } } } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (_root.freeze == false) { if (this.hitTest(_root.murloc.hero)) { if (Key.isDown(32)) { if (_root.arena == 1) { _root.textbox.gotoAndStop('arena1'); _root.freeze = true; } else { if (_root.arena == 2) { _root.textbox.gotoAndStop('arena2'); _root.freeze = true; } else { if (_root.arena == 3) { _root.textbox.gotoAndStop('arena3'); _root.freeze = true; } else { if (_root.arena == 4) { _root.textbox.gotoAndStop('arena4'); _root.freeze = true; } else { if (_root.arena == 5) { _root.textbox.gotoAndStop('arena5'); _root.freeze = true; } else { if (_root.arena == 6) { _root.textbox.gotoAndStop('arena6'); _root.freeze = true; } else { if (_root.arena == 7) { _root.textbox.gotoAndStop('arena7'); _root.freeze = true; } else { if (_root.arena == 8) { _root.textbox.gotoAndStop('arena8'); _root.freeze = true; } else { if (_root.arena >= 9) { _root.textbox.gotoAndStop('defendgm'); _root.freeze = true; } else { _root.arena = 0; _root.textbox.gotoAndStop('arena0'); } } } } } } } } } } } } } } instance ttmjohn of movieClip 1265 { onClipEvent (enterFrame) { if (_root.arena == 0) { this.gotoAndStop('!'); } else { this.gotoAndStop('?'); } } } frame 129 { stop(); if (_root.port == 'left') { _root.murloc._x = 50; } else { if (_root.port == 'right') { _root.murloc._x = 650; } else { if (_root.port == 'postbattle') { if (_root.mport != 0) { _root.murloc._x = _root.mport; } else { _root.murloc._x = 650; } } } } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } _root.stvmonster(50); } movieClip 6516 { frame 1 { stop(); } instance of movieClip 3478 { onClipEvent (enterFrame) { if (_root.freeze == false) { if (this.hitTest(_root.murloc.hero)) { temp = _root.roll(1, 100); if (temp <= 4) { _root.launch('harpy', _root.level, _root._currentframe); } else { _root.launch('mvale_gorilla', _root.level, _root._currentframe); } } } } } frame 2 { stop(); } instance of movieClip 3369 { onClipEvent (enterFrame) { if (_root.freeze == false) { if (this.hitTest(_root.murloc.hero)) { temp = _root.roll(1, 100); if (temp <= 2) { _root.launch('harpy', _root.level, _root._currentframe); } else { _root.launch('st_tiger', _root.level, _root._currentframe); } } } } } } movieClip 6517 { frame 1 { stop(); } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.port = 'right'; _root.gotoAndPlay(_root._currentframe - 2); } } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.port = 'left'; _root.gotoAndPlay(_root._currentframe + 1); } } } frame 130 { stop(); if (_root.port == 'left') { _root.murloc._x = 50; } else { if (_root.port == 'right') { _root.murloc._x = 650; } else { if (_root.port == 'postbattle') { if (_root.mport != 0) { _root.murloc._x = _root.mport; } else { _root.murloc._x = 650; } } } } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } _root.stvmonster(50); if (_root.falthflee == 1) { _root.falthirvendor.gotoAndStop('show'); } else { _root.falthirvendor.gotoAndStop('hide'); } } movieClip 6542 { } movieClip 6543 { frame 1 { stop(); } instance of movieClip 1252 { onClipEvent (enterFrame) { if (_root.freeze == false) { if (this.hitTest(_root.murloc.hero)) { if (Key.isDown(32)) { _root.setupvendor('falthir'); } } } } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (_root.freeze == false) { if (this.hitTest(_root.murloc.hero)) { if (Key.isDown(32)) { if (_root.zunk != 1 && _root.zg6 != 1) { _root.textbox.gotoAndStop('gethakkar'); _root.freeze = true; } else { if (_root.zunk != 1 && _root.zg6 == 1) { _root.textbox.gotoAndStop('gothakkar'); _root.freeze = true; } else { if (_root.zunk == 1) { _root.textbox.gotoAndStop('zunkilrumor'); _root.freeze = true; } } } } } } } } frame 2 { stop(); } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.port = 'right'; _root.gotoAndPlay(_root._currentframe - 1); } } } frame 131 { stop(); if (_root.port == 'left') { _root.murloc._x = 50; if (_root.felvahelp != 6 && _root.felvahelp != 5 && _root.felvahelp != 4 && _root.felvahelp != 3 && _root.felvahelp != 2 && _root.felvahelp != 1) { felroll = _root.roll(1, 100); if (felroll <= 20) { _root.felvahelp = 1; _root.felvas.gotoAndPlay('show'); } else { _root.felvas.gotoAndStop('hide'); } } else { _root.felvas.gotoAndStop('hide'); } } else { if (_root.port == 'right') { _root.murloc._x = 650; _root.felvas.gotoAndStop('hide'); } else { if (_root.port == 'postbattle') { if (_root.mport != 0) { _root.murloc._x = _root.mport; } else { _root.murloc._x = 650; } _root.felvas.gotoAndStop('hide'); } } } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } _root.stvmonster(50); } movieClip 6554 { frame 32 { stop(); } } frame 132 { stop(); if (_root.port == 'left') { _root.murloc._x = 50; if (_root.felvahelp == 3) { felroll = _root.roll(1, 100); if (felroll <= 70) { _root.felvas.gotoAndPlay('show'); } else { _root.felvas.gotoAndStop('hide'); } } else { if (_root.felvahelp == 5) { if (_root.dogotitem('fel_neck')) { felroll = _root.roll(1, 100); if (felroll <= 70) { _root.felvas.gotoAndPlay('show'); } else { _root.felvas.gotoAndStop('hide'); } } else { _root.felvas.gotoAndStop('hide'); } } else { _root.felvas.gotoAndStop('hide'); } } } else { if (_root.port == 'right') { _root.murloc._x = 650; _root.felvas.gotoAndStop('hide'); } else { if (_root.port == 'postbattle') { if (_root.mport != 0) { _root.murloc._x = _root.mport; } else { _root.murloc._x = 650; } _root.felvas.gotoAndStop('hide'); } } } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } _root.stvmonster(50); } instance felvas of movieClip 6554 { onClipEvent (enterFrame) { if (_root.felroll <= 70 && (_root.felvahelp == 3 || _root.felvahelp == 5)) { if (this.hitTest(_root.murloc.hero)) { _root.freeze = true; if (_root.felvahelp == 3) { _root.felvahelp = 4; this.stop(); _root.textbox.gotoAndStop('felvafind'); } else { this.stop(); _root.textbox.gotoAndStop('felvareward'); } } } } } frame 133 { stop(); if (_root.port == 'left') { _root.murloc._x = 50; } else { if (_root.port == 'right') { _root.murloc._x = 650; } else { if (_root.port == 'postbattle') { if (_root.mport != 0) { _root.murloc._x = _root.mport; } else { _root.murloc._x = 650; } } else { if (_root.port == 'door') { _root.changezone('Stranglethorn Vale'); _root.murloc._x = 350; } } } } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (_root.freeze == false) { if (this.hitTest(_root.murloc.hero)) { _root.showarea('Zul\'Gurub'); if (Key.isDown(32)) { _root.port = 'left'; _root.gotoAndStop('zg'); } } else { _root.hidearea(); } } } } frame 134 { stop(); if (_root.port == 'left') { _root.dir = 'right'; _root.hidearea(); _root.murloc._x = 50; _root.changezone('Zul\'Gurub'); _root.felvas.gotoAndStop('hide'); } else { if (_root.port == 'right') { _root.murloc._x = 650; if (_root.felvahelp == 1) { felroll = _root.roll(1, 100); if (felroll <= 20) { _root.felvahelp = 3; _root.felvas.gotoAndPlay('show'); } else { _root.felvas.gotoAndStop('hide'); } } else { _root.felvas.gotoAndStop('hide'); } } else { if (_root.port == 'postbattle') { if (_root.mport != 0) { _root.murloc._x = _root.mport; } else { _root.murloc._x = 650; } _root.felvas.gotoAndStop('hide'); } } } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.port = 'door'; _root.gotoAndPlay(_root._currentframe - 1); } } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.port = 'left'; _root.gotoAndPlay(_root._currentframe + 1); } } } frame 135 { stop(); if (_root.port == 'left') { _root.murloc._x = 50; } else { if (_root.port == 'right') { _root.murloc._x = 650; } else { if (_root.port == 'postbattle') { _root.zg1 = 1; if (_root.mport != 0) { _root.murloc._x = _root.mport; } else { _root.murloc._x = 650; } } } } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } if (_root.zg1 == 1) { _root.jeklikenc.gotoAndStop('hide'); } else { _root.jeklikenc.gotoAndStop('show'); } } movieClip 6563 { frame 1 { stop(); } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.noflee = true; _root.launch('jeklik', 15, _root._currentframe); } } } frame 2 { stop(); } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.port = 'right'; _root.gotoAndPlay(_root._currentframe - 1); } } } frame 136 { stop(); if (_root.port == 'left') { _root.murloc._x = 50; } else { if (_root.port == 'right') { _root.murloc._x = 650; } else { if (_root.port == 'postbattle') { if (_root.mport != 0) { _root.murloc._x = _root.mport; } else { _root.murloc._x = 650; } } } } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } } instance murloc of movieClip 1248 { onClipEvent (enterFrame) { wspeed = 10; rspeed = 20; if ((Key.isDown(37) || Key.isDown(65)) && _root.freeze == false) { _root.dir = 'left'; if (_root.movem == 'walk') { _x = _x - wspeed; this.gotoAndStop('walkl'); } else { if (_root.movem == 'run') { _x = _x - rspeed; this.gotoAndStop('runl'); } } } else { if ((Key.isDown(39) || Key.isDown(68)) && _root.freeze == false) { _root.dir = 'right'; if (_root.movem == 'walk') { _x = _x + wspeed; this.gotoAndStop('walkr'); } else { if (_root.movem == 'run') { _x = _x + rspeed; this.gotoAndStop('runr'); } } } else { if (_root.dir == 'left') { this.gotoAndStop('standl'); } else { this.gotoAndStop('standr'); } } } if (Key.isDown(17)) { _root.movem = 'walk'; } else { _root.movem = 'run'; } } } frame 137 { stop(); if (_root.port == 'left') { _root.murloc._x = 50; } else { if (_root.port == 'right') { _root.murloc._x = 650; } else { if (_root.port == 'postbattle') { _root.zg2 = 1; if (_root.mport != 0) { _root.murloc._x = _root.mport; } else { _root.murloc._x = 650; } } } } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } if (_root.zg2 == 1) { _root.venenc.gotoAndStop('hide'); } else { _root.venenc.gotoAndStop('show'); } } movieClip 6569 { frame 1 { stop(); } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.noflee = true; _root.launch('venoxis', 18, _root._currentframe); } } } frame 2 { stop(); } } instance murloc of movieClip 1248 { onClipEvent (enterFrame) { wspeed = 10; rspeed = 20; if ((Key.isDown(37) || Key.isDown(65)) && _root.freeze == false) { _root.dir = 'left'; if (_root.movem == 'walk') { _x = _x - wspeed; this.gotoAndStop('walkl'); } else { if (_root.movem == 'run') { _x = _x - rspeed; this.gotoAndStop('runl'); } } } else { if ((Key.isDown(39) || Key.isDown(68)) && _root.freeze == false) { _root.dir = 'right'; if (_root.movem == 'walk') { _x = _x + wspeed; this.gotoAndStop('walkr'); } else { if (_root.movem == 'run') { _x = _x + rspeed; this.gotoAndStop('runr'); } } } else { if (_root.dir == 'left') { this.gotoAndStop('standl'); } else { this.gotoAndStop('standr'); } } } if (Key.isDown(17)) { _root.movem = 'walk'; } else { _root.movem = 'run'; } } } frame 138 { stop(); if (_root.port == 'left') { _root.murloc._x = 50; } else { if (_root.port == 'right') { _root.murloc._x = 650; } else { if (_root.port == 'postbattle') { if (_root.mport != 0) { _root.murloc._x = _root.mport; } else { _root.murloc._x = 650; } } } } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } } instance murloc of movieClip 1248 { onClipEvent (enterFrame) { wspeed = 10; rspeed = 20; if ((Key.isDown(37) || Key.isDown(65)) && _root.freeze == false) { _root.dir = 'left'; if (_root.movem == 'walk') { _x = _x - wspeed; this.gotoAndStop('walkl'); } else { if (_root.movem == 'run') { _x = _x - rspeed; this.gotoAndStop('runl'); } } } else { if ((Key.isDown(39) || Key.isDown(68)) && _root.freeze == false) { _root.dir = 'right'; if (_root.movem == 'walk') { _x = _x + wspeed; this.gotoAndStop('walkr'); } else { if (_root.movem == 'run') { _x = _x + rspeed; this.gotoAndStop('runr'); } } } else { if (_root.dir == 'left') { this.gotoAndStop('standl'); } else { this.gotoAndStop('standr'); } } } if (Key.isDown(17)) { _root.movem = 'walk'; } else { _root.movem = 'run'; } } } frame 139 { stop(); if (_root.port == 'left') { _root.murloc._x = 50; } else { if (_root.port == 'right') { _root.murloc._x = 650; } else { if (_root.port == 'postbattle') { _root.zg3 = 1; if (_root.mport != 0) { _root.murloc._x = _root.mport; } else { _root.murloc._x = 650; } } } } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } if (_root.zg3 == 1) { _root.marlienc.gotoAndStop('hide'); } else { _root.marlienc.gotoAndStop('show'); } } movieClip 6576 { frame 1 { stop(); } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.noflee = true; _root.launch('marli', 21, _root._currentframe); } } } frame 2 { stop(); } } instance murloc of movieClip 1248 { onClipEvent (enterFrame) { wspeed = 10; rspeed = 20; if ((Key.isDown(37) || Key.isDown(65)) && _root.freeze == false) { _root.dir = 'left'; if (_root.movem == 'walk') { _x = _x - wspeed; this.gotoAndStop('walkl'); } else { if (_root.movem == 'run') { _x = _x - rspeed; this.gotoAndStop('runl'); } } } else { if ((Key.isDown(39) || Key.isDown(68)) && _root.freeze == false) { _root.dir = 'right'; if (_root.movem == 'walk') { _x = _x + wspeed; this.gotoAndStop('walkr'); } else { if (_root.movem == 'run') { _x = _x + rspeed; this.gotoAndStop('runr'); } } } else { if (_root.dir == 'left') { this.gotoAndStop('standl'); } else { this.gotoAndStop('standr'); } } } if (Key.isDown(17)) { _root.movem = 'walk'; } else { _root.movem = 'run'; } } } frame 140 { stop(); if (_root.port == 'left') { _root.murloc._x = 50; } else { if (_root.port == 'right') { _root.murloc._x = 650; } else { if (_root.port == 'postbattle') { if (_root.mport != 0) { _root.murloc._x = _root.mport; } else { _root.murloc._x = 650; } } } } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } if (_root.cageopen == true) { if (_root.falthflee == 1) { _root.cage.gotoAndStop('done'); } else { _root.cage.gotoAndStop('open'); } } } movieClip 6599 { frame 25 { stop(); } } movieClip 6600 { frame 1 { stop(); } instance of movieClip 1252 { onClipEvent (enterFrame) { if (_root.freeze == false) { if (this.hitTest(_root.murloc.hero)) { if (Key.isDown(32)) { if (_root.dogotitem('goblin_dynamite') == true) { _root.freeze = true; _root.textbox.gotoAndStop('blastcage'); } else { _root.freeze = true; _root.textbox.gotoAndStop('helpfalthir'); } } } } } } frame 2 { stop(); } instance of movieClip 1252 { onClipEvent (enterFrame) { if (_root.freeze == false) { if (this.hitTest(_root.murloc.hero)) { if (Key.isDown(32)) { _root.freeze = true; _root.textbox.gotoAndStop('falthirthanks'); } } } } } frame 3 { stop(); } frame 4 { stop(); } } movieClip 6601 { frame 1 { stop(); } frame 2 { _root.cageopen = true; _root.cage.gotoAndStop('open'); } frame 5 { stop(); } } frame 141 { stop(); if (_root.port == 'left') { _root.murloc._x = 50; } else { if (_root.port == 'right') { _root.murloc._x = 650; } else { if (_root.port == 'postbattle') { _root.zg4 = 1; if (_root.mport != 0) { _root.murloc._x = _root.mport; } else { _root.murloc._x = 650; } } } } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } if (_root.zg4 == 1) { _root.thekalenc.gotoAndStop('hide'); } else { _root.thekalenc.gotoAndStop('show'); } } movieClip 6604 { frame 1 { stop(); } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.noflee = true; _root.launch('thekal', 24, _root._currentframe); } } } frame 2 { stop(); } } frame 142 { stop(); if (_root.port == 'left') { _root.murloc._x = 50; } else { if (_root.port == 'right') { _root.murloc._x = 650; } else { if (_root.port == 'postbattle') { _root.zg5 = 1; if (_root.mport != 0) { _root.murloc._x = _root.mport; } else { _root.murloc._x = 650; } } } } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } if (_root.zg5 == 1) { _root.arlokkenc.gotoAndStop('hide'); } else { _root.arlokkenc.gotoAndStop('show'); } } movieClip 6607 { frame 1 { stop(); } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.noflee = true; _root.launch('arlokk', 27, _root._currentframe); } } } frame 2 { stop(); } } instance murloc of movieClip 1248 { onClipEvent (enterFrame) { wspeed = 10; rspeed = 20; if ((Key.isDown(37) || Key.isDown(65)) && _root.freeze == false) { _root.dir = 'left'; if (_root.movem == 'walk') { _x = _x - wspeed; this.gotoAndStop('walkl'); } else { if (_root.movem == 'run') { _x = _x - rspeed; this.gotoAndStop('runl'); } } } else { if ((Key.isDown(39) || Key.isDown(68)) && _root.freeze == false) { _root.dir = 'right'; if (_root.movem == 'walk') { _x = _x + wspeed; this.gotoAndStop('walkr'); } else { if (_root.movem == 'run') { _x = _x + rspeed; this.gotoAndStop('runr'); } } } else { if (_root.dir == 'left') { this.gotoAndStop('standl'); } else { this.gotoAndStop('standr'); } } } if (Key.isDown(17)) { _root.movem = 'walk'; } else { _root.movem = 'run'; } } } frame 143 { stop(); if (_root.port == 'left') { _root.murloc._x = 50; } else { if (_root.port == 'right') { _root.murloc._x = 650; } else { if (_root.port == 'postbattle') { if (_root.mport != 0) { _root.murloc._x = _root.mport; } else { _root.murloc._x = 650; } } } } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } } instance murloc of movieClip 1248 { onClipEvent (enterFrame) { wspeed = 10; rspeed = 20; if ((Key.isDown(37) || Key.isDown(65)) && _root.freeze == false) { _root.dir = 'left'; if (_root.movem == 'walk') { _x = _x - wspeed; this.gotoAndStop('walkl'); } else { if (_root.movem == 'run') { _x = _x - rspeed; this.gotoAndStop('runl'); } } } else { if ((Key.isDown(39) || Key.isDown(68)) && _root.freeze == false) { _root.dir = 'right'; if (_root.movem == 'walk') { _x = _x + wspeed; this.gotoAndStop('walkr'); } else { if (_root.movem == 'run') { _x = _x + rspeed; this.gotoAndStop('runr'); } } } else { if (_root.dir == 'left') { this.gotoAndStop('standl'); } else { this.gotoAndStop('standr'); } } } if (Key.isDown(17)) { _root.movem = 'walk'; } else { _root.movem = 'run'; } } } frame 144 { stop(); if (_root.port == 'left') { _root.murloc._x = 50; } else { if (_root.port == 'right') { _root.murloc._x = 650; } else { if (_root.port == 'postbattle') { API.unlockMedal('Scales of Gahz\'ranka'); _root.zg7 = 1; if (_root.mport != 0) { _root.murloc._x = _root.mport; } else { _root.murloc._x = 650; } } } } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } if (_root.slot[16] == 'lucky_fishing_hat') { _root.genc = 15; } else { _root.genc = 2; } if (_root.zg7 != 1) { _root.tenc = _root.roll(1, 100); if (tenc <= genc) { _root.gahzsound.gotoAndStop(2); } } } movieClip 6614 { frame 1 { stop(); } frame 2 { stop(); } } instance murloc of movieClip 1248 { onClipEvent (enterFrame) { wspeed = 10; rspeed = 20; if ((Key.isDown(37) || Key.isDown(65)) && _root.freeze == false) { _root.dir = 'left'; if (_root.movem == 'walk') { _x = _x - wspeed; this.gotoAndStop('walkl'); } else { if (_root.movem == 'run') { _x = _x - rspeed; this.gotoAndStop('runl'); } } } else { if ((Key.isDown(39) || Key.isDown(68)) && _root.freeze == false) { _root.dir = 'right'; if (_root.movem == 'walk') { _x = _x + wspeed; this.gotoAndStop('walkr'); } else { if (_root.movem == 'run') { _x = _x + rspeed; this.gotoAndStop('runr'); } } } else { if (_root.dir == 'left') { this.gotoAndStop('standl'); } else { this.gotoAndStop('standr'); } } } if (Key.isDown(17)) { _root.movem = 'walk'; } else { _root.movem = 'run'; } } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { if (_root.tenc <= _root.genc && _root.zg7 != 1 && _root.freeze == false) { _root.textbox.gotoAndStop('gahzenc'); _root.freeze = true; } } } } frame 145 { stop(); if (_root.port == 'left') { _root.murloc._x = 50; } else { if (_root.port == 'right') { _root.murloc._x = 650; } else { if (_root.port == 'postbattle') { _root.zg6 = 1; API.unlockMedal('Heart of Hakkar'); if (_root.mport != 0) { _root.murloc._x = _root.mport; } else { _root.murloc._x = 650; } } } } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } if (_root.zg6 == 1) { _root.hakkarenc.gotoAndStop('hide'); } else { _root.hakkarenc.gotoAndStop('show'); } } movieClip 6617 { frame 1 { stop(); } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.noflee = true; _root.launch('hakkar', 30, _root._currentframe); } } } frame 2 { stop(); } } instance murloc of movieClip 1248 { onClipEvent (enterFrame) { wspeed = 10; rspeed = 20; if ((Key.isDown(37) || Key.isDown(65)) && _root.freeze == false) { _root.dir = 'left'; if (_root.movem == 'walk') { _x = _x - wspeed; this.gotoAndStop('walkl'); } else { if (_root.movem == 'run') { _x = _x - rspeed; this.gotoAndStop('runl'); } } } else { if ((Key.isDown(39) || Key.isDown(68)) && _root.freeze == false) { _root.dir = 'right'; if (_root.movem == 'walk') { _x = _x + wspeed; this.gotoAndStop('walkr'); } else { if (_root.movem == 'run') { _x = _x + rspeed; this.gotoAndStop('runr'); } } } else { if (_root.dir == 'left') { this.gotoAndStop('standl'); } else { this.gotoAndStop('standr'); } } } if (Key.isDown(17)) { _root.movem = 'walk'; } else { _root.movem = 'run'; } } } frame 146 { stop(); if (_root.port == 'left') { _root.changezone('Onyxia\'s Lair'); _root.murloc._x = 50; } else { if (_root.port == 'right') { _root.murloc._x = 650; } else { if (_root.port == 'postbattle') { _root.onykilled = 1; API.unlockMedal('Head of Onyxia'); if (_root.mport != 0) { _root.murloc._x = _root.mport; } else { _root.murloc._x = 650; } } } } if (_root.dir == 'left') { _root.murloc.gotoAndStop('standl'); } else { _root.murloc.gotoAndStop('standr'); } if (_root.onykilled == 1) { _root.onyxiaenc.gotoAndStop('hide'); } else { _root.onyxiaenc.gotoAndStop('show'); } } movieClip 6618 { frame 1 { stop(); } instance of movieClip 1252 { onClipEvent (enterFrame) { if (this.hitTest(_root.murloc.hero)) { _root.noflee = true; _root.launch('onyxia', 62, _root._currentframe); } } } frame 2 { stop(); } } instance of movieClip 1252 { onClipEvent (enterFrame) { if (_root.freeze == false) { if (this.hitTest(_root.murloc.hero)) { _root.showarea('Jasperdine Mine'); if (Key.isDown(32)) { _root.port = 'right'; _root.fadeto('mineend'); } } else { _root.hidearea(); } } } } frame 154 { stopAllSounds(); } movieClip 6627 { } frame 582 { gotoAndPlay('credits'); } frame 1185 { API.unlockMedal('Game Over?'); } frame 1186 { gotoAndPlay('thefirstmenu'); }




http://swfchan.com/21/100065/info.shtml
Created: 21/3 -2019 12:46:24 Last modified: 21/3 -2019 12:46:24 Server time: 29/04 -2024 09:27:48