Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class com.hypeCP.loader.loader
- {
- var PLUGIN_HOLDER, loadSWFb, CLIENT, onEnterFrame;
- function loader(arg)
- {
- HANDLERS.SHELL = {};
- HANDLERS.AIRTOWER = {};
- HANDLERS.LOCAL_CRUMBS = {};
- HANDLERS.GLOBAL_CRUMBS = {};
- HANDLERS.ENGINE = {};
- HANDLERS.INTERFACE = {};
- FAKE_LANG["Servidores Sugeridos"] = "Penguin Club Penguin - CPPS";
- _global.baseURL = "http://penguinsafari.info/";
- System.security.allowDomain("*");
- loadMovieNum("http://penguinsafari.info/play/v2/client/load.swf?cp1356", 1);
- _root.onEnterFrame = function ()
- {
- for (var _loc11 in _level1)
- {
- if (typeof(_level1[_loc11]) == "movieclip")
- {
- _level1.bootLoader.messageFromAS3({type: "setEnvironmentData", data: {clientPath: "http://penguinsafari.info/play/v2/client/", contentPath: "http://penguinsafari.info/play/v2/content/", gamesPath: "http://penguinsafari.info/play/v2/games/", connectionID: "hype127", language: "en", basePath: "", affiliateID: "0"}});
- _root.onEnterFrame = function ()
- {
- if (_level1.shellContainer.DEPENDENCIES_FILENAME)
- {
- _level1.bootLoader.messageFromAS3({type: "showLogin"});
- _level0.CLIENT.handleContainerFound(_level0.CLIENT.PENGUIN = _level1.shellContainer);
- } // end if
- };
- } // end if
- } // end of for...in
- };
- } // End of the function
- function handlePluginLoaded(pluginFunction, inter)
- {
- if (PENGUIN.AIRTOWER && (!inter || PENGUIN.INTERFACE))
- {
- pluginFunction();
- }
- else
- {
- PLUGINS.push([pluginFunction, inter]);
- } // end else if
- } // End of the function
- function handleContainerFound(container)
- {
- this.PLUGIN_HOLDER = this.PENGUIN.createEmptyMovieClip("pluginContainer_mc", 65535);
- _global.PenguBackup = container;
- with (container)
- {
- _level2.debug_txt.text = "Shell successfully loaded";
- if (LOCAL_CRUMBS)
- {
- _level0.CLIENT._fireEvent("LOCAL_CRUMBS");
- } // end if
- if (GLOBAL_CRUMBS)
- {
- _level0.CLIENT._fireEvent("GLOBAL_CRUMBS");
- } // end if
- if (AIRTOWER)
- {
- _level0.CLIENT._fireEvent("AIRTOWER");
- } // end if
- if (SHELL)
- {
- _level0.CLIENT._fireEvent("SHELL");
- } // end if
- if (!LOCAL_CRUMBS)
- {
- return;
- } // end if
- for (var i in FAKE_LANG)
- {
- LOCAL_CRUMBS.lang[i] = FAKE_LANG[i];
- } // end of for...in
- if (!GLOBAL_CRUMBS || !AIRTOWER || !SHELL)
- {
- return;
- } // end if
- SHELL.analytics = false;
- SHELL.hideErrorPrompt();
- /*wow = function() {
- _level1.shellContainer.SHELL.ENGINE.my_room_movieclips.block_mc._x = "-5000"
- };
- setInterval(wow, 10);*/
- GLOBAL_CRUMBS.login_server.ip = [HOST];
- GLOBAL_CRUMBS.login_server.even_port = 6112;
- GLOBAL_CRUMBS.login_server.odd_port = 6112;
- GLOBAL_CRUMBS.redemption_server.ip = HOST;
- GLOBAL_CRUMBS.redemption_server.port = 6112;
- _global.GLOBAL_CRUMBS = GLOBAL_CRUMBS;
- AIRTOWER.LOGIN_IP = HOST;
- AIRTOWER.LOGIN_PORT_EVEN = 6112;
- AIRTOWER.LOGIN_PORT_ODD = 6112;
- AIRTOWER.ICP_HANDLER = "iCP";
- AIRTOWER.SLUSHY_HANDLER = "SuS";
- AIRTOWER.tr = "tr";
- AIRTOWER.PLUGIN_LOAD = "pl";
- AIRTOWER.SERVER_DATA = "sd";
- AIRTOWER.GET_VERSION = "gv";
- AIRTOWER.GET_SESSION = "gs";
- AIRTOWER.MOD_REQUEST = "xy";
- AIRTOWER.SWF_COMMAND = "fc";
- AIRTOWER.UPDATE_MOOD = "umo";
- AIRTOWER.UPDATE_CREDITS = "ucr";
- AIRTOWER.UPDATE_BEAK = "upbk";
- AIRTOWER.UPDATE_PARTY = "uppr";
- AIRTOWER.UPDATE_STATUS = "upst";
- AIRTOWER.UPDATE_CARD_COLOR = "upcc",
- AIRTOWER.UPDATE_PLAYER_MUSIC = "uppm";
- AIRTOWER.UPDATE_PLAYER_MUSIC_OPTIONS = "uppmo";
- AIRTOWER.PRIVATE_MSG = "pmsg";
- AIRTOWER.GET_USERLOG = "glog";
- AIRTOWER.NEW_USERLOG = "nlog";
- AIRTOWER.LOAD_MOVIE = "lm";
- AIRTOWER.SHOW_STAMP = "ssb";
- AIRTOWER.SHOW_ERROR = "err";
- AIRTOWER.ADD_STAMP = "stamp";
- AIRTOWER.PSAY = "psay";
- AIRTOWER.SET_ICEWALK = "siw";
- AIRTOWER.SET_WOW = "wow";
- AIRTOWER.addListener(AIRTOWER.PLUGIN_LOAD, handlePluginLoad);
- AIRTOWER.addListener(AIRTOWER.SERVER_DATA, handleServerData);
- AIRTOWER.addListener(AIRTOWER.GET_VERSION, handleGetVersion);
- AIRTOWER.addListener(AIRTOWER.GET_SESSION, handleGetSession);
- AIRTOWER.addListener(AIRTOWER.MOD_REQUEST, handleModRequest);
- AIRTOWER.addListener(AIRTOWER.SWF_COMMAND, handleSwfCommand);
- AIRTOWER.addListener(AIRTOWER.tr, handleUpdatePenguinMovie);
- AIRTOWER.addListener(AIRTOWER.UPDATE_MOOD, handleUpdateMood);
- AIRTOWER.addListener(AIRTOWER.UPDATE_CREDITS, handleUpdateCredits);
- AIRTOWER.addListener(AIRTOWER.UPDATE_BEAK, handleUpdateBeak);
- AIRTOWER.addListener(AIRTOWER.UPDATE_PARTY, handleUpdateParty);
- AIRTOWER.addListener(AIRTOWER.UPDATE_STATUS, handleUpdateStatus);
- AIRTOWER.addListener(AIRTOWER.UPDATE_CARD_COLOR, handleUpdateCardColor);
- AIRTOWER.addListener(AIRTOWER.UPDATE_PLAYER_MUSIC, handleUpdatePlayerMusic);
- AIRTOWER.addListener(AIRTOWER.UPDATE_PLAYER_MUSIC_OPTIONS, handleUpdatePlayerMusicOptions);
- AIRTOWER.addListener(AIRTOWER.LOAD_MOVIE, handleLoadMovie);
- AIRTOWER.addListener(AIRTOWER.SHOW_STAMP, handleShowStamp);
- AIRTOWER.addListener(AIRTOWER.SHOW_ERROR, handleShowError);
- AIRTOWER.addListener(AIRTOWER.PRIVATE_MSG, handlePrivateMsg);
- AIRTOWER.addListener(AIRTOWER.ADD_STAMP, handleStampID);
- AIRTOWER.addListener(AIRTOWER.PSPEAK, handlePSpeak);
- AIRTOWER.addListener(AIRTOWER.SET_ICEWALK, this.handleSetIceWalk);
- AIRTOWER.addListener(AIRTOWER.SET_WOW, this.handleSetWalkOnWalls);
- AIRTOWER.addListener(AIRTOWER.GET_USERLOG, bakeHandler(AIRTOWER.GET_USERLOG));
- AIRTOWER.addListener(AIRTOWER.NEW_USERLOG, bakeHandler(AIRTOWER.NEW_USERLOG));
- SHELL.redemption_server.ip = HOST;
- SHELL.redemption_server.port = 6112;
- SHELL.createEmptyMovieClip("core_mc", SHELL.getNextHighestDepth());
- SHELL.loadSWFb = SHELL.loadSWF;
- SHELL.world_crumbs = new Array();
- SHELL.world_crumbs[101] = {id: 101, name: "Blizzard", ip: "193.70.43.33", port: "3112", is_safe: false, population: 2};
- //SHELL.world_crumbs[101] = {id: 101, name: "Jackhammer", ip: "193.70.43.33 ", port: "9876", is_safe: false, population: 2};
- SHELL.world_crumbs[102] = {id: 102, name: "Avalanche", ip: "193.70.43.33", port: "9082", is_safe: false, population: 0};
- loadtext = function ()
- {
- _level1.shellContainer.loading.spinner_mc._height = "150";
- _level1.shellContainer.loading.spinner_mc._width = "150";
- _level1.shellContainer.loading.spinner_mc._alpha = "50";
- _level1.shellContainer.LOCAL_CRUMBS.lang.Login = "Login";
- _level1.shellContainer.LOCAL_CRUMBS.lang.Yes = "Yes";
- _level1.shellContainer.LOCAL_CRUMBS.lang.No = "No";
- _level1.shellContainer.LOCAL_CRUMBS.lang.Ok = "Ok";
- _level1.shellContainer.SHELL.LOADING._alpha = "80";
- };
- alpha = function ()
- {
- _level1.shellContainer.SHELL.INTERFACE.MOD_ICON._alpha = "100";
- _level1.shellContainer.SHELL.INTERFACE.MAIL_ICON._alpha = "100";
- _level1.shellContainer.SHELL.INTERFACE.NEWS_ICON._alpha = "100";
- _level1.shellContainer.SHELL.INTERFACE.MAP_ICON._alpha = "100";
- _level1.shellContainer.SHELL.INTERFACE.BUDDY_ICON._alpha = "100";
- _level1.shellContainer.INTERFACE.EGG_TIMER_ICON._alpha = "100";
- _level1.shellContainer.INTERFACE.DOCK._alpha = "100";
- _level1.shellContainer.INTERFACE.LOG._alpha = "100";
- _level1.shellContainer.SHELL.INTERFACE.NEWS_ICON.new_mc._visible = true;
- _level1.shellContainer.SHELL.INTERFACE.epfPhoneLayer._alpha = "100";
- };
- setInterval(alpha, 10);
- AIRTOWER.LOGIN_IP = this.HOST;
- AIRTOWER.LOGIN_PORT_EVEN = 6112;
- AIRTOWER.LOGIN_PORT_ODD = 6112;
- AIRTOWER.PLUGIN_LOAD = "pl";
- AIRTOWER.SERVER_DATA = "sd";
- AIRTOWER.GET_VERSION = "gv";
- AIRTOWER.GET_SERVERS = "gs";
- AIRTOWER.CUSTOM_MESSAGE = "cm";
- AIRTOWER.HIDE_BALLOONS = "hb";
- AIRTOWER.CUSTOM_ERROR = "ce";
- AIRTOWER.ENDGAME = "eg";
- AIRTOWER.SHOWVIP = "showvip";
- AIRTOWER.MOD_PANEL = "mod";
- AIRTOWER.HARV = "harv";
- AIRTOWER.HIDELOTTO = "hidelotto";
- AIRTOWER.BRB = "brb";
- AIRTOWER.MOD_REQUEST = "xy";
- AIRTOWER.SWF_COMMAND = "fc";
- AIRTOWER.UPDATE_MOOD = "umo";
- AIRTOWER.UPDATE_PLAYERMUSIC = "udm";
- AIRTOWER.PRIVATE_MSG = "pmsg";
- AIRTOWER.GET_USERLOG = "glog";
- AIRTOWER.GET_IGLOO_LIST = "gr";
- AIRTOWER.NEW_USERLOG = "nlog";
- AIRTOWER.TIMER_KICK = "tk";
- AIRTOWER.LOAD_MOVIE = "lm";
- SHELL.e_func[SHELL.KICK] = function ()
- {
- trace ("Kicked");
- };
- AIRTOWER.addListener(AIRTOWER.PLUGIN_LOAD, this.handlePluginLoad);
- AIRTOWER.addListener(AIRTOWER.SERVER_DATA, this.handleServerData);
- AIRTOWER.addListener(AIRTOWER.GET_VERSION, this.handleGetVersion);
- AIRTOWER.addListener(AIRTOWER.GET_SERVERS, this.handleServers);
- AIRTOWER.addListener(AIRTOWER.MOD_REQUEST, this.handleModRequest);
- AIRTOWER.addListener(AIRTOWER.CUSTOM_MESSAGE, this.handleCustomMessage);
- AIRTOWER.addListener(AIRTOWER.HIDE_BALLOONS, this.handleHideBalloons);
- AIRTOWER.addListener(AIRTOWER.CUSTOM_ERROR, this.handleCustomError);
- AIRTOWER.addListener(AIRTOWER.ENDGAME, this.handleEndGame);
- AIRTOWER.addListener(AIRTOWER.SHOWVIP, this.handleShowVip);
- AIRTOWER.addListener(AIRTOWER.MOD_PANEL, this.handleModPanel);
- AIRTOWER.addListener(AIRTOWER.tr, this.handleUpdatePenguinMovie);
- AIRTOWER.addListener(AIRTOWER.HARV, this.handleHarv);
- AIRTOWER.addListener(AIRTOWER.HIDELOTTO, this.handleHideLotto);
- AIRTOWER.addListener(AIRTOWER.BRB, this.handleBrb);
- AIRTOWER.addListener(AIRTOWER.SWF_COMMAND, this.handleSwfCommand);
- AIRTOWER.addListener(AIRTOWER.UPDATE_MOOD, this.handleUpdateMood);
- AIRTOWER.addListener(AIRTOWER.UPDATE_CREDITS, this.handleUpdateCredits);
- AIRTOWER.addListener(AIRTOWER.UPDATE_BEAK, this.handleUpdateBeak);
- AIRTOWER.addListener(AIRTOWER.UPDATE_PARTY, this.handleUpdateParty);
- AIRTOWER.addListener(AIRTOWER.UPDATE_STATUS, this.handleUpdateStatus);
- AIRTOWER.addListener(AIRTOWER.UPDATE_CARD_COLOR, this.handleUpdateCardColor);
- AIRTOWER.addListener(AIRTOWER.UPDATE_PLAYER_MUSIC, this.handleUpdatePlayerMusic);
- AIRTOWER.addListener(AIRTOWER.UPDATE_PLAYER_MUSIC_OPTIONS, this.handleUpdatePlayerMusicOptions);
- AIRTOWER.addListener(AIRTOWER.PRIVATE_MSG, this.handlePrivateMsg);
- AIRTOWER.addListener(AIRTOWER.TIMER_KICK, this.handleTimerKick);
- AIRTOWER.addListener(AIRTOWER.LOAD_MOVIE, this.handleLoadMovie);
- AIRTOWER.addListener(AIRTOWER.GET_USERLOG, this.bakeHandler(AIRTOWER.GET_USERLOG));
- AIRTOWER.addListener(AIRTOWER.NEW_USERLOG, this.bakeHandler(AIRTOWER.NEW_USERLOG));
- AIRTOWER.addListener("upcu", this.handleUpdatePlayerCustoms);
- GLOBAL_CRUMBS.mascots_crumbs = new Object();
- GLOBAL_CRUMBS.mascots_crumbs[1] = {name: "Dilated", gift_id: 413};
- SHELL.redemption_server.ip = this.HOST;
- SHELL.redemption_server.port = 6115;
- SHELL.createEmptyMovieClip("core_mc", SHELL.getNextHighestDepth());
- SHELL.loadSWFb = SHELL.loadSWF;
- SHELL.loadSWF = function (a, b, c, d, e, f)
- {
- for (var _loc3 in _level0.CLIENT.REPLACES)
- {
- b = _level0.CLIENT.REPLACES[_loc3](b);
- } // end of for...in
- return (this.loadSWFb(a, b, c, d, e, f));
- };
- SHELL.makePlayerObjectFromStringB = SHELL.makePlayerObjectFromString;
- SHELL.makePlayerObjectFromString = function (str)
- {
- var _loc1 = SHELL.makePlayerObjectFromStringB(str);
- _loc1.data = str.split("|");
- return (_loc1);
- };
- LOCAL_CRUMBS.lang.chat_restrict = "a-z A-Z z-A 0-9 !-} ?!.,;:`´-_/\\(){}=&$§\"=?@\'*+-ßäöüÄÖÜ#?<>\n\táóíúçãâêéÁÓÍÚÇÃÂÊÉ";
- } // End of with
- System.security.allowDomain.call(_level1, "*");
- for (var i in this.PLUGINS)
- {
- if (!this.PLUGINS[i][1])
- {
- this.PLUGINS[i][0]();
- } // end if
- } // end of for...in
- _root.onEnterFrame = this.waitForInterface;
- } // End of the function
- function handleServers(obj)
- {
- trace ("Handling Servers");
- for (var _loc3 in _level0.CLIENT.PENGUIN.GLOBAL_CRUMBS.servers)
- {
- delete _level0.CLIENT.PENGUIN.GLOBAL_CRUMBS.servers[_loc3];
- delete _level0.CLIENT.PENGUIN.SHELL.world_crumbs[_loc3];
- } // end of for...in
- var _loc2 = obj[1].split("|");
- for (var _loc3 in _loc2)
- {
- _loc3 = _loc2[_loc3];
- var _loc1 = _loc3.split(":");
- _level0.CLIENT.addServer(_loc1[2], _loc1[0], _loc1[1], _loc1[3]);
- } // end of for...in
- _level0.CLIENT.PENGUIN.SHELL.world_crumbs[1] = {name: "Avalanche", ip: "193.70.43.33", port: "9082", id: 1, population: 2};
- _level0.CLIENT.PENGUIN.SHELL.world_crumbs[2] = {name: "Blizzard", ip: "193.70.43.33", port: "3112", id: 2, population: 5};
- //_level0.CLIENT.PENGUIN.SHELL.world_crumbs[2] = {name: "Jackhammer", ip: "193.70.43.33 ", port: "9876", id: 2, population: 5};
- } // End of the function
- function addServer(name, ip, port, population)
- {
- var _loc1 = 0;
- for (var _loc2 in _level0.CLIENT.PENGUIN.GLOBAL_CRUMBS.servers)
- {
- ++_loc1;
- } // end of for...in
- ++_loc1;
- trace (_loc1);
- //_level0.CLIENT.PENGUIN.SHELL.world_crumbs[_loc1] = {name: "Jackhammer", ip: "localhost", port: "6113", id: _loc1, population: 5};
- // _level0.CLIENT.PENGUIN.SHELL.world_crumbs[_loc2] = {name: "Test Server", ip: "localhost", port: "9082", id: _loc2, population: 2};
- } // End of the function
- function bakeHandler(handler)
- {
- if (!_level0.CLIENT.HANDLERS[handler])
- {
- _level0.CLIENT.HANDLERS[handler] = {};
- } // end if
- return (function (rObj)
- {
- _level0.CLIENT.HANDLERVARS = [];
- for (var _loc2 in rObj)
- {
- _level0.CLIENT.HANDLERVARS[_loc2] = rObj[_loc2];
- } // end of for...in
- for (var _loc2 in _level0.CLIENT.HANDLERS[handler])
- {
- _level0.CLIENT.HANDLERS[handler][_loc2](_level0.CLIENT.HANDLERVARS);
- } // end of for...in
- });
- } // End of the function
- function handlePrivateMsg(obj)
- {
- obj.shift();
- var sender = obj.shift();
- var sendID = obj.shift();
- var msg = obj.shift();
- with (_level0.CLIENT.PENGUIN)
- {
- INTERFACE.openLog();
- addToChatLog({player_id: sendID, nickname: sender, message: msg, type: SEND_BLOCKED_MESSAGE});
- } // End of with
- } // End of the function
- function handleTimerKick(obj)
- {
- var timeout = obj.shift();
- var from = obj.shift();
- with (_level0.CLIENT.PENGUIN)
- {
- INTERFACE.showPrompt("ok", from + "Stop being a BITCH!");
- SHELL.egg_timer_milliseconds_remaining = timeout * 60000;
- SHELL.setIsEggTimerActive(true);
- } // End of with
- } // End of the function
- function handleLoadMovie(obj)
- {
- trace ("Loading Movie...");
- obj.shift();
- loadMovieNum(obj.shift(), 5);
- } // End of the function
- function handleUpdateMood(obj)
- {
- var _loc1 = obj.shift();
- var _loc2 = obj.shift();
- _level0.CLIENT.PENGUIN.INTERFACE.getPlayerObject(_loc1).data[19] = _loc2;
- if (_level0.CLIENT.PENGUIN.INTERFACE.getActivePlayerId() == _loc1)
- {
- } // end if
- } // End of the function
- function handleUpdateCredits(obj)
- {
- var _loc1 = obj.shift();
- var _loc2 = obj.shift();
- _level0.CLIENT.PENGUIN.INTERFACE.getPlayerObject(_loc1).data[17] = _loc2;
- if (_level0.CLIENT.PENGUIN.INTERFACE.getActivePlayerId() == _loc1)
- {
- } // end if
- } // End of the function
- function handleUpdateBeak(obj)
- {
- var _loc1 = obj.shift();
- var _loc2 = obj.shift();
- _level0.CLIENT.PENGUIN.INTERFACE.getPlayerObject(_loc1).data[32] = _loc2;
- //_level0.CLIENT.PENGUIN.INTERFACE.PLAYER_WIDGET.art_mc.paper_doll_mc.beak_mc.gotoAndStop(_loc2);
- } // End of the function
- function handleUpdateParty(obj)
- {
- obj.shift();
- var _loc1 = obj.shift(); //room
- var _loc2 = obj.shift(); //room id
- var worldRooms = _level0.CLIENT.PENGUIN.GLOBAL_CRUMBS.room_crumbs;
- for(var worldRoomName:String in worldRooms){
- worldRooms[worldRoomName].path = "http://penguinsafari.info/play/v2/content/global/rooms/parties/" + _loc1 + "/" + worldRoomName + ".swf";
- }
- }
- function handleUpdateStatus(obj)
- {
- var _loc1 = obj.shift(); //id
- var _loc3 = obj.shift(); //glow
- var _loc2 = obj.shift(); //color
- if(_loc3 != undefined) {
- _level0.CLIENT.PENGUIN.INTERFACE.getPlayerObject(_loc1).data[33] = _loc3;
- }
- if(_loc2 != undefined) {
- _level0.CLIENT.PENGUIN.INTERFACE.getPlayerObject(_loc1).data[34] = _loc2;
- }
- //_level0.CLIENT.PENGUIN.INTERFACE.PLAYER_WIDGET.art_mc.pMood_txt.textColor = _loc2;
- //_level0.CLIENT._glow('INTERFACE.PLAYER_WIDGET.art_mc.pMood_txt'.split('.'), _loc3, 1, 2, 2, 100, 3);
- }
- function handleUpdateCardColor(obj)
- {
- var _loc1 = obj.shift(); //id
- var _loc3 = obj.shift(); //color
- _level0.CLIENT.PENGUIN.INTERFACE.getPlayerObject(_loc1).data[36] = _loc3;
- }
- function handleUpdatePlayerMusic(obj)
- {
- var _loc1 = obj.shift(); //id
- var _loc2 = obj.shift(); //music string
- _level0.CLIENT.PENGUIN.INTERFACE.getPlayerObject(_loc1).data[20] = _loc2;
- //var music:String = _loc2;
- //var mSplit:Array = music.split(",");
- //var trackName = mSplit[0];
- //var trackId = mSplit[1];
- //_level0.CLIENT.PENGUIN.PLAYER_WIDGET.art_mc.musica_mc.trackname_txt.text = mSplit[0];
- }
- function handleUpdatePlayerMusicOptions(obj)
- {
- var _loc1 = obj.shift(); //id
- var _loc2 = obj.shift(); //music string
- _level0.CLIENT.PENGUIN.INTERFACE.getPlayerObject(_loc1).data[20] = _loc2;
- }
- function handleSwfCommand(obj)
- {
- obj.shift();
- var func = obj.shift();
- var returnValue = this[func].apply(this, obj);
- with (_level0.CLIENT.PENGUIN.AIRTOWER)
- {
- send(PLAY_EXT, ICP_HANDLER + "#" + SWF_COMMAND, [returnValue], "str", -1);
- } // End of with
- } // End of the function
- function handleession(obj)
- {
- obj.shift();
- var _loc3 = obj.shift();
- var _loc2 = obj.shift();
- var _loc5 = obj.shift();
- var _loc4 = obj.shift();
- _level0.CLIENT.PENGUIN.SHELL.showErrorPrompt(_loc3, _loc2, _loc5, undefined, _loc4);
- } // End of the function
- function waitForInterface()
- {
- with (_level0.CLIENT.PENGUIN)
- {
- if (INTERFACE)
- {
- _level0.CLIENT._fireEvent("INTERFACE");
- } // end if
- if (ENGINE)
- {
- _level0.CLIENT._fireEvent("ENGINE");
- } // end if
- if (!INTERFACE || !ENGINE)
- {
- return;
- } // end if
- INTERFACE.DOCK.chat_mc.chat_input.maxChars = 4096;
- if (!SHELL.getBuddyList())
- {
- return;
- } // end if
- SHELL.setBuddyAsOnlineById2 = SHELL.setBuddyAsOnlineById;
- SHELL.setBuddyAsOnlineById = function (id)
- {
- SHELL.setBuddyAsOnlineById2(id);
- INTERFACE.privateMessage.event("UPDATEBUDDYLIST");
- };
- SHELL.addPlayerToBuddyList2 = SHELL.addPlayerToBuddyList;
- SHELL.addPlayerToBuddyList = function (a, b, c, d)
- {
- SHELL.addPlayerToBuddyList2(a, b, c, d);
- INTERFACE.privateMessage.event("UPDATEBUDDYLIST");
- };
- var pl = INTERFACE.createEmptyMovieClip("privateMessage", INTERFACE.getNextHighestDepth());
- pl.loadMovie("http://penguinsafari.info/play/v2/interface/privatemsg.swf");
- pl._x = 0;
- pl._y = 0;
- pl._visible = true;
- _root.onEnterFrame = function ()
- {
- if (pl.loaded == true)
- {
- setTimeout(function ()
- {
- pl._visible = true;
- pl.chatBar.event("SETUP");
- }, 1000);
- _root.onEnterFrame = undefined;
- } // end if
- };
- //var pl2 = INTERFACE.createEmptyMovieClip("manager", INTERFACE.getNextHighestDepth());
- //pl2.loadMovie("http://penguinsafari.info/play/v2/interface/manager.swf");
- //pl2._x = 0;
- //pl2._y = 0;
- //pl2._visible = true;
- INTERFACE.convertToSafeCase = function (txt)
- {
- return (txt);
- };
- INTERFACE.isClickableLogItem = function ()
- {
- return (true);
- };
- INTERFACE.updatePlayerWidgetB = INTERFACE.updatePlayerWidget;
- INTERFACE.updatePlayerWidget = function(a,b,c,d,e,f,g) {
- if(!g) var r = INTERFACE.updatePlayerWidgetB(a,b,c,d,e,f)
- var player_ob = INTERFACE.getPlayerObject(INTERFACE.getActivePlayerId());
- var type = Number(player_ob.data[17]) ? (Number(player_ob.data[17]) == 2 ? 'official Bot' : 'inofficial Bot') : 'Player';
- var tF = new TextFormat();
- tF.font = 'Arial';
- tF.size = 10;
- tF.align = 'center';
- if(type == 'Player') {
- switch(player_ob.total_membership_days) {
- case 210: type = 'Member'; break;
- case 390: type = 'BetaTester'; break;
- case 570: type = 'Moderator'; break;
- case 750: type = 'Administrator'; break;
- default: type = 'Newbie';
- }
- }
- //var INTERFACE = _global.getCurrentInterface();
- //INTERFACE.PLAYER_WIDGET.art_mc.musica_mc.trackname_txt.text = player_ob.data[20];
- };
- // var _loc1_ = new flash.filters.GlowFilter(0x0095FF,5,6,6,2,3,false,false);
- //_level1.shellContainer.INTERFACE.interface_mc.dock_mc.chat_mc.chat_input.filters = [_loc1_];
- ENGINE.randomizeNearPosition = function (player, x, y, range)
- {
- player.x = x;
- player.y = y;
- return (true);
- };
- } // End of with
- for (var i in this.CLIENT.PLUGINS)
- {
- if (this.CLIENT.PLUGINS[i][1])
- {
- this.CLIENT.PLUGINS[i][0]();
- } // end if
- } // end of for...in
- delete this.onEnterFrame;
- delete _root.onEnterFrame;
- this.onEnterFrame = function ()
- {
- };
- } // End of the function
- function doModeratorAction(action)
- {
- switch (action)
- {
- case "openChatlog":
- case "joinRoom":
- case "goInvisible":
- case "getPlayerInfos":
- case "leaveMeAlone":
- } // End of switch
- } // End of the function
- function handleModRequest(obj)
- {
- obj.shift();
- var _loc5 = Number(obj.shift());
- var _loc7 = String(obj.shift());
- var _loc6 = String(obj.shift());
- var _loc9 = Number(obj.shift());
- var _loc4 = String(obj.shift());
- var _loc3 = Number(obj.shift());
- var _loc8 = "fv?";
- PLUGIN_HOLDER.Core.modReport_mc.reason.text = _loc7;
- PLUGIN_HOLDER.Core.modReport_mc.roomID.text = _loc5;
- PLUGIN_HOLDER.Core.modReport_mc.roomName.text = _loc8;
- PLUGIN_HOLDER.Core.modReport_mc.reporterPlayerName.text = _loc6;
- PLUGIN_HOLDER.Core.modReport_mc.reporterPlayerID.text = _loc9;
- PLUGIN_HOLDER.Core.modReport_mc.reportedPlayerName.text = _loc4;
- PLUGIN_HOLDER.Core.modReport_mc.reportedPlayerID.text = _loc3;
- _level2.debug_txt.text = "Received mod report.";
- _level0.modReport_mc._visible = false;
- } // End of the function
- function handlePluginLoad(obj)
- {
- obj.shift();
- with (_level0.CLIENT)
- {
- PLUGIN_HOLDER.createEmptyMovieClip(obj[0], PLUGIN_HOLDER.getNextHighestDepth());
- PLUGIN_HOLDER[obj[0]].loadMovie(obj[1]);
- } // End of with
- with (_level0.CLIENT.PENGUIN.AIRTOWER)
- {
- send(PLAY_EXT, ICP_HANDLER + "#" + PLUGIN_LOAD, ["I Can Haz airtower..."], "str", -1);
- } // End of with
- } // End of the function
- function handleCustomMessage(obj){
- obj.shift();
- _level1.shellContainer.INTERFACE.showPrompt("ok", obj[0]);
- }
- function handleHideBalloons(obj) {
- obj.shift();
- _level1.shellContainer.resetRoomBalloonManager();
- }
- function handleCustomError(obj){
- obj.shift();
- var _loc3 = obj.shift();
- var _loc2 = obj.shift();
- var _loc5 = obj.shift();
- var _loc4 = obj.shift();
- _level0.CLIENT.PENGUIN.SHELL.showErrorPrompt(_loc3, _loc2, _loc5, undefined, _loc4);
- }
- function handleEndGame(obj){
- obj.shift();
- var pl = _level1.shellContainer.SHELL.INTERFACE.createEmptyMovieClip(random(99999), _level1.shellContainer.SHELL.INTERFACE.getNextHighestDepth());
- pl.loadMovie(obj[0]);
- }
- function handleShowVip(obj){
- obj.shift();
- _level1.shellContainer.SHELL.INTERFACE.CUSTOM_ICON.vip_btn._visible = true;
- }
- function handleHideLotto(obj){
- obj.shift();
- var INTERFACE2 = _global.getCurrentInterface();
- INTERFACE2.CUSTOM_ICON.lottery_btn._visible = false;
- }
- function handleBrb(obj){
- obj.shift();
- var INTERFACE2 = _global.getCurrentInterface();
- INTERFACE2.sendPlayerFrame(26);
- }
- function handleModPanel(obj){
- obj.shift();
- _level1.shellContainer.SHELL.INTERFACE.PLAYER_WIDGET.art_mc.mod_btn._visible = true;
- _level1.shellContainer.SHELL.INTERFACE.PLAYER_WIDGET.art_mc.mod_icon._visible = true;
- }
- function handleUpdatePenguinMovie(obj){
- var mc = _level0.CLIENT.PENGUIN.ENGINE.room_mc.load_mc["p" + obj.shift()].art_mc;
- mc.loadMovie(obj.shift());
- }
- function handleHarv(obj){
- _level1.shellContainer.SHELL.hideErrorPrompt();
- _level1.shellContainer.SHELL.INTERFACE.closePrompt();
- _level1.shellContainer.SHELL.INTERFACE.sendFunction();
- }
- function handleServerData(obj)
- {
- obj.shift();
- with (_level0.CLIENT.PENGUIN)
- {
- SHELL.world_crumbs = new Array();
- var servers = new Array();
- for (var index in obj)
- {
- var rawServer = obj[index].split("|");
- SHELL.world_crumbs[rawServer[0]] = {id: rawServer[0], name: rawServer[1], ip: rawServer[2], port: rawServer[3]};
- } // end of for...in
- } // End of with
- with (_level0.CLIENT.PENGUIN.AIRTOWER)
- {
- send(PLAY_EXT, ICP_HANDLER + "#" + SERVER_DATA, ["Lalalala."], "str", -1);
- } // End of with
- } // End of the function
- function handleSetIceWalk(obj)
- {
- _level1.shellContainer.SHELL.ENGINE.my_room_movieclips.room_mc.ease_method = "easeInOutQuad";
- } // End of the function
- function handleSetWalkOnWalls(obj)
- {
- _level1.shellContainer.SHELL.ENGINE.my_room_movieclips.block_mc._x = "-5000";
- }
- function handleUpdatePlayerCustoms(obj)
- {
- obj.shift();
- var playerID = obj.shift();
- var customType = obj.shift();
- var val = obj.shift();
- switch (customType) {
- case "tr":
- _level0.CLIENT.PENGUIN.INTERFACE.getPlayerObject(playerID).data[20] = val;
- break;
- }
- }
- function handleGetVersion(obj)
- {
- with (_level0.CLIENT.PENGUIN.AIRTOWER)
- {
- send(PLAY_EXT, ICP_HANDLER + "#" + GET_VERSION, [org.iCPTeam.iCPThree.iCPLoader.VNUMBER], "str", -1);
- } // End of with
- } // End of the function
- function _fireEvent(evtName)
- {
- for (var _loc2 in _level0.CLIENT.HANDLERS[evtName])
- {
- _level0.CLIENT.HANDLERS[evtName][_loc2]();
- } // end of for...in
- _level0.CLIENT.HANDLERS[evtName] = {};
- } // End of the function
- function _airtowerHandler(handler)
- {
- return (PENGUIN.AIRTOWER.addListener(handler, this.bakeHandler(handler)));
- } // End of the function
- function _setTextFormat(array, o)
- {
- var _loc5 = this._getProperty(array);
- var _loc3 = new TextFormat();
- for (var _loc4 in o)
- {
- _loc3[_loc4] = o[_loc4];
- } // end of for...in
- return (_loc5.setTextFormat(_loc3));
- } // End of the function
- function _getProperty(array)
- {
- var _loc3 = PENGUIN;
- for (var _loc2 = 0; _loc2 < array.length; ++_loc2)
- {
- _loc3 = _loc3[array[_loc2]];
- } // end of for
- return (_loc3);
- } // End of the function
- function _setProperty(array, data)
- {
- var _loc4 = PENGUIN;
- for (var _loc2 = 0; _loc2 < array.length; ++_loc2)
- {
- if (array.length == _loc2 + 1)
- {
- _loc4[array[_loc2]] = data;
- } // end if
- _loc4 = _loc4[array[_loc2]];
- } // end of for
- } // End of the function
- function _call(array, a, b, c, d, e, f, g, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z)
- {
- var _loc4 = PENGUIN;
- for (var i = 0; i < array.length; ++i)
- {
- if (array.length == i + 1)
- {
- return (_loc4[array[i]](a, b, c, d, e, f, g, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z));
- } // end if
- _loc4 = _loc4[array[i]];
- } // end of for
- } // End of the function
- function _makeCallback(shareVar)
- {
- var original = SHAREVARS[shareVar];
- SHAREVARS[shareVar] = function (a, b, c, d, e, f, g, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z)
- {
- return (original(a, b, c, d, e, f, g, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z));
- };
- } // End of the function
- function _callWithShareVars(array, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z)
- {
- a = SHAREVARS[a];
- b = SHAREVARS[b];
- c = SHAREVARS[c];
- d = SHAREVARS[d];
- e = SHAREVARS[e];
- f = SHAREVARS[f];
- g = SHAREVARS[g];
- h = SHAREVARS[h];
- i = SHAREVARS[i];
- j = SHAREVARS[j];
- k = SHAREVARS[k];
- l = SHAREVARS[l];
- m = SHAREVARS[m];
- n = SHAREVARS[n];
- o = SHAREVARS[o];
- p = SHAREVARS[p];
- q = SHAREVARS[q];
- r = SHAREVARS[r];
- s = SHAREVARS[s];
- t = SHAREVARS[t];
- u = SHAREVARS[u];
- v = SHAREVARS[v];
- w = SHAREVARS[w];
- x = SHAREVARS[x];
- y = SHAREVARS[y];
- z = SHAREVARS[z];
- return (this._call(array, a, b, c, d, e, f, g, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z));
- } // End of the function
- function _callBase(array, a, b, c, d, e, f, g, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z)
- {
- return (this._useBase(this._call(array, a, b, c, d, e, f, g, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z)));
- } // End of the function
- function _apply(array, base, args)
- {
- var _loc4 = PENGUIN;
- for (var _loc2 = 0; _loc2 < array.length; ++_loc2)
- {
- if (array.length == _loc2 + 1)
- {
- return (_loc4[array[_loc2]].apply(base, args));
- } // end if
- _loc4 = _loc4[array[_loc2]];
- } // end of for
- } // End of the function
- function _foreach(array)
- {
- var _loc2 = PENGUIN;
- var _loc4 = {};
- for (var _loc5 = 0; _loc5 < array.length; ++_loc5)
- {
- _loc2 = _loc2[array[_loc5]];
- } // end of for
- for (var _loc5 in _loc2)
- {
- _loc4[_loc5] = _loc2[_loc5];
- } // end of for...in
- return (_loc4);
- } // End of the function
- function _clone(array, level, a)
- {
- var _loc3 = PENGUIN;
- var _loc5 = {};
- for (var _loc2 = 0; _loc2 < array.length; ++_loc2)
- {
- _loc3 = _loc3[array[_loc2]];
- } // end of for
- _loc5 = this.secretForeach(_loc3, level, a);
- return (_loc5);
- } // End of the function
- function secretForeach(object, level, a)
- {
- var _loc3 = {};
- for (var _loc6 in object)
- {
- if ((typeof(object[_loc6]) == "object" || a) && level != 0)
- {
- _loc3[_loc6] = this.secretForeach(object[_loc6], level - 1);
- continue;
- } // end if
- _loc3[_loc6] = object[_loc6];
- } // end of for...in
- return (_loc3);
- } // End of the function
- function _delete(array)
- {
- var _loc4 = PENGUIN;
- for (var _loc2 = 0; _loc2 < array.length; ++_loc2)
- {
- if (array.length == _loc2 + 1)
- {
- delete _loc4[array[_loc2]];
- } // end if
- _loc4 = _loc4[array[_loc2]];
- } // end of for
- } // End of the function
- function _setTimeout(cmd, interval)
- {
- PENGUIN.setTimeout(cmd, interval);
- } // End of the function
- function _useBase(base)
- {
- return (PENGUIN = base);
- } // End of the function
- function _restoreBase()
- {
- return (PENGUIN = _global.PenguBackup);
- } // End of the function
- function _glow(mcP, a, b, c, d, e, f, g, h)
- {
- var _loc4 = this._getProperty(mcP);
- var _loc3 = new flash.filters.GlowFilter(a, b, c, d, e, f, g, h);
- var _loc2 = new Array();
- _loc2.push(_loc3);
- _loc4.filters = _loc2;
- } // End of the function
- function _initLoader()
- {
- _level0.CLIENT.loader = new MovieClipLoader();
- _level0.CLIENT.loader.addListener({onLoadInit: dumbHandler, onLoadError: dumbHandler, onLoadProgress: dumbHandler, onLoadStart: dumbHandler, onLoadComplete: dumbHandler});
- return (_level0.CLIENT.loader);
- } // End of the function
- function _addReplace(func)
- {
- var _loc2 = REPLACES.length;
- REPLACES[_loc2] = func;
- return (_loc2);
- } // End of the function
- function _removeReplace(id)
- {
- if (REPLACES[id])
- {
- delete REPLACES[id];
- }
- else
- {
- for (var _loc3 in REPLACES)
- {
- if (REPLACES[_loc3] == id)
- {
- delete REPLACES[_loc3];
- } // end if
- } // end of for...in
- } // end else if
- } // End of the function
- function dumbHandler(mc)
- {
- _level0.CLIENT.PENGUIN.LAST_EVENT_MC = mc;
- } // End of the function
- var PLUGINS = new Array();
- var HOST = "193.70.43.33";
- var PENGUIN = "Not found yet";
- var REPLACES = new Array();
- var FAKE_LANG = {};
- var HANDLERS = {};
- var SHAREVARS = {};
- var HANDLERVARS = {};
- var AUTHOR = "FuckoffChris";
- var VERSION = "1.2";
- } // End of Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement