Exemplo n.º 1
0
 private void doSceneEx(string account, string password, string password2, string nickName, int bindUin, string bindEmail, string bindMobile, string imgSid, string imgCode, int regMode, string ticket)
 {
     base.beginBuilder();
     base.mBuilder.BaseRequest = NetSceneBase.makeBaseRequest(0x20);
     base.mBuilder.UserName    = Util.NullAsNil(account);
     base.mBuilder.Pwd         = Util.NullAsNil(password);
     base.mBuilder.NickName    = Util.NullAsNil(nickName);
     base.mBuilder.BindUin     = (uint)bindUin;
     base.mBuilder.BindEmail   = Util.NullAsNil(bindEmail);
     base.mBuilder.BindMobile  = Util.NullAsNil(bindMobile);
     base.mBuilder.RegMode     = (uint)regMode;
     base.mBuilder.SetTicket(Util.NullAsNil(ticket));
     base.mBuilder.Language         = AccountMgr.GetCurrentLanguage();
     base.mBuilder.DLSrc            = 1;
     base.mSessionPack.mCmdID       = 0x20;
     base.mSessionPack.mConnectMode = 2;
     base.endBuilder();
 }
Exemplo n.º 2
0
 private void doScene(string account, string password, string password2, string nickName, int bindUin, string bindEmail, string bindMobile, string imgSid, string imgCode)
 {
     base.beginBuilder();
     base.mBuilder.BaseRequest = NetSceneBase.makeBaseRequest(0x1f);
     base.mBuilder.UserName    = Util.toSKString(account);
     base.mBuilder.Pwd         = Util.toSKString(password);
     base.mBuilder.NickName    = Util.toSKString(nickName);
     base.mBuilder.BindUin     = (uint)bindUin;
     base.mBuilder.BindEmail   = Util.toSKString(bindEmail);
     base.mBuilder.BindMobile  = Util.toSKString(bindMobile);
     base.mBuilder.Ticket      = Util.toSKString("");
     base.mBuilder.ImgSid      = Util.toSKString(imgSid);
     base.mBuilder.ImgCode     = Util.toSKString(imgCode);
     base.mBuilder.Pwd2        = password2;
     base.mBuilder.Language    = AccountMgr.GetCurrentLanguage();
     base.mBuilder.DLSrc       = 1;
     base.mSessionPack.mCmdID  = 0x1f;
     base.endBuilder();
 }