Guest User

meme

a guest
Mar 4th, 2018
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function yourManualLogin() //change this to your manual login functiuon
  2.     AIRTOWER.username = this._localLoginServerData.nau;
  3.     AIRTOWER.password = this._localLoginServerData.nal;
  4.     // then
  5.     this._airtower.handleOnLogin = OnLogin;
  6.     AIRTOWER.server.login("w1",this._localLoginServerData.nau,this._localLoginServerData.nal); // encrypted password
  7. }
  8.  
  9. function OnLogin(serverResponse)
  10. {
  11.     this._airtower.removeListener(this._airtower.HANDLE_LOGIN,this._airtower.handleOnLogin);
  12.     this._airtower.removeListener(this._airtower.HANDLE_LOGIN_EXPIRED,this._airtower.handleExpiredPreactivationLogin,this._airtower);
  13.     this._airtower.server.diconnect();
  14.  
  15.     var _loc5_ = serverResponse[1].split("|");
  16.     this._airtower.loginObject = {};
  17.     this._airtower.loginObject.loginDataRaw = serverResponse[1];
  18.     this._airtower.loginObject.playerID = _loc5_[0];
  19.     this._airtower.loginObject.swid = _loc5_[1];
  20.     this._airtower.loginObject.username = _loc5_[2];
  21.     this._airtower.loginObject.loginKey = _loc5_[3];
  22.     this._airtower.loginObject.languageApproved = _loc5_[5];
  23.     this._airtower.loginObject.languageRejected = _loc5_[6];
  24.     this._airtower.loginObject.friendsLoginKey = serverResponse[3];
  25.     com.clubpenguin.login.handlers.LoginHandler.LoginKey = _loc5_[3];
  26.     this._airtower.loginObject.confirmationHash = serverResponse[2];
  27.     this._airtower.loginObject.emailAddress = serverResponse[5];
  28.     if (serverResponse[6] != null)
  29.     {
  30.         var _loc3_ = serverResponse[6].split("|");
  31.         this._airtower.loginObject.remaining_hours = _loc3_[0];
  32.         this._airtower.loginObject.trialMax = _loc3_[1];
  33.         this._airtower.loginObject.max_grace_hours = _loc3_[2];
  34.         var _loc6_ = new Object();
  35.         _loc6_.modalBackgroundEnbaled = true;
  36.         _loc6_.blockPuffleNotifications = true;
  37.         _loc6_.hideLoadingDialog = true;
  38.         var _loc4_ = new Object();
  39.         _loc4_.state = this._airtower.FRAME_LABEL_WELCOME;
  40.         _loc4_.trialRemaining = _loc3_[0];
  41.         _loc4_.trialMax = _loc3_[1];
  42.         _loc4_.graceMax = _loc3_[2];
  43.         _loc4_.confirmationHash = this._airtower.loginObject.confirmationHash;
  44.         _loc4_.loginDataRaw = this._airtower.loginObject.loginDataRaw;
  45.         this._shell.sendOpenAS3Module("preactivation",_loc4_,_loc6_);
  46.         flash.external.ExternalInterface.call("showActivationBanner",_loc3_[0]);
  47.     }
  48.     this._shell.playerModel.initMyPlayer(this._airtower.loginObject);
  49.     this._airtower.playerId = this._airtower.loginObject.playerID;
  50.     this._shell.updateWorldPopulations(serverResponse[4]);
  51.     var _loc9_ = new Object();
  52.     _loc9_.type = 15;
  53.     _loc9_.playerSWID = this._airtower.loginObject.swid;
  54.     _loc9_.playerID = this._airtower.loginObject.playerID;
  55.     this._shell.sendPlaydomTracking(_loc9_);
  56.  
  57.     this._airtower.is_logged_in = true;
  58.  
  59.     ConnectToWorld();
  60. }
  61. function ConnectToWorld () {
  62.     this._shell.connectToWorld = function()
  63.     {
  64.         var _loc1_ = _this._shell.getWorldById(_this._shell.world_id_holder);
  65.            _this._shell.showLoading();
  66.            ConnectToWorldServer(_loc1_.ip,_loc1_.port,_this._shell.connectToWorldResponse);
  67.     }
  68.     var _loc1_ = this._shell.getWorldById(WORLD_ID);    
  69.     this._shell.setWorldForConnection(WORLD_ID);
  70. }
  71. function ConnectToWorldServer(ip, port, response) {
  72.     this._airtower.isRedemption = false;
  73.     this._airtower.on_world_response = response;
  74.     this._airtower.server.onConnection = com.clubpenguin.util.Delegate.create(this,this.LoginConnection);
  75.     this._airtower.server.onRandomKey = com.clubpenguin.util.Delegate.create(this,this.LoginRandomKey);
  76.     this._airtower.server.onExtensionResponse = com.clubpenguin.util.Delegate.create(this._airtower,this._airtower.onAirtowerResponse);
  77.     this._airtower.server.debug = true;
  78.     var _this = this;
  79.     var _loc1_ = function()
  80.     {
  81.         _this._airtower.joinWorld();
  82.     }
  83.    
  84.     this._airtower.addListener(this._airtower.HANDLE_LOGIN, _loc1_, this);
  85.    
  86.     if (this._airtower.server.isConnected)
  87.     {
  88.         this._airtower.server.disconnect();
  89.     }
  90.    
  91.     this._airtower.server.connect(ip, port);
  92. }
Add Comment
Please, Sign In to add comment