public void SendGateAuth() { WorldPacket packet = new WorldPacket(); int a = 0; string salt = LoginUtil.GenerateSalt(); packet.Initialize(3); packet.InputString(this._account, 0x20); packet.InputUInt32(this._accountTime); if ((this._accountTime == 0) && string.IsNullOrEmpty(this._K)) { a = 1; } packet.InputInt32(a); if (string.IsNullOrEmpty(this._K)) { this._K = LoginUtil.GenerateOrginalKey(this._account, this._password); } string str2 = string.Empty; str2 = LoginUtil.GenerateKey(this._K, salt); packet.InputString(salt, 0x40); packet.InputString(str2, 0x40); this.SendPacket(packet); }
private void SendAuthPacket() { WorldPacket packet = new WorldPacket(); int a = 0; string salt = LoginUtil.GenerateSalt(); string str2 = LoginUtil.GenerateKey(this._K, salt); packet.Initialize(3); packet.InputUInt32(this._accountID); packet.InputUInt32(this._accountTime); if ((this._accountTime == 0) && string.IsNullOrEmpty(this._K)) { a = 1; } packet.InputInt32(a); packet.InputString("1.0.0.37", 0x100); packet.InputString(salt, 0x40); packet.InputString(str2, 0x40); this.SendCorePacket(packet); }
private void SendAuthPacket() { WorldPacket packet = new WorldPacket(); int a = 0; string salt = LoginUtil.GenerateSalt(); string str2 = LoginUtil.GenerateKey(this._K, salt); packet.Initialize(3); packet.InputUInt32(this._accountID); packet.InputUInt32(this._accountTime); if ((this._accountTime == 0) && string.IsNullOrEmpty(this._K)) { a = 1; } packet.InputInt32(a); packet.InputString("1.0.0.37", 0x100); packet.InputString(salt, 0x40); packet.InputString(str2, 0x40); this.SendCorePacket(packet); }
public void GetTaskPacket(MyTask task, WorldPacket ms) { ms.InputInt(task._taskItems.Count); foreach (TaskInfo info in task._taskItems) { ms.InputString(info._param1, 0x20); ms.InputString(info._param2, 0x100); ms.InputString(info._param3, 0x100); ms.InputString(info._param4, 0x100); ms.InputString(info._param5, 0x100); } if ((task._HourClicks != null) && (task._HourClicks.Count == 0x30)) { for (int i = 0; i < 0x30; i++) { ms.InputUInt32((uint) task._HourClicks[i]); } } else { for (int j = 0; j < 0x30; j++) { ms.InputUInt32(0); } } int[] numArray = new int[2]; if ((task._AreaClicks != null) && (task._AreaClicks.Count == 0x23)) { for (int k = 0; k < 0x1f; k++) { numArray[0] |= ((bool) task._AreaClicks[k]) ? (((int) 1) << k) : 0; } for (int m = 0x1f; m < 0x23; m++) { numArray[1] |= ((bool) task._AreaClicks[m]) ? (((int) 1) << (m - 0x1f)) : 0; } } ms.InputInt(numArray[0]); ms.InputInt(numArray[1]); ms.InputString(task.Note, 0x40); }
public void SendStopTask(MyTask task) { WorldPacket packet = new WorldPacket(); packet.Initialize(0x13); packet.InputUInt32(task._id); this.AddPacket(packet); }
public void SendRemoveTask(uint taskID) { WorldPacket packet = new WorldPacket(); packet.Initialize(0x17); packet.InputUInt32(taskID); this.AddPacket(packet); }
public void SendModifyTask(MyTask task) { WorldPacket ms = new WorldPacket(); ms.Initialize(0x11); ms.InputUInt32(task._id); this.GetTaskPacket(task, ms); this.AddPacket(ms); }
public void SendGetLoginInfo(bool getTask = true) { WorldPacket packet = new WorldPacket(); packet.Initialize(11); if (getTask) { packet.InputUInt32(1); } else { packet.InputUInt32(0); } this.AddPacket(packet); }
public void SendCompletTask(uint taskID, int taskSteps) { WorldPacket packet = new WorldPacket(); packet.Initialize(0x19); packet.InputUInt32(taskID); packet.InputInt(taskSteps); this.AddPacket(packet); }
public void SendGateAuth() { WorldPacket packet = new WorldPacket(); int a = 0; string salt = LoginUtil.GenerateSalt(); packet.Initialize(3); packet.InputString(this._account, 0x20); packet.InputUInt32(this._accountTime); if ((this._accountTime == 0) && string.IsNullOrEmpty(this._K)) { a = 1; } packet.InputInt32(a); if (string.IsNullOrEmpty(this._K)) { this._K = LoginUtil.GenerateOrginalKey(this._account, this._password); } string str2 = string.Empty; str2 = LoginUtil.GenerateKey(this._K, salt); packet.InputString(salt, 0x40); packet.InputString(str2, 0x40); this.SendPacket(packet); }