Ejemplo n.º 1
0
 private void SendCryptPacket()
 {
     if (!this._Crypt.IsInitialisedSend())
     {
         int         a      = new Random().Next();
         WorldPacket packet = new WorldPacket();
         packet.Initialize(7);
         packet.InputInt(a);
         this.SendCorePacket(packet);
         this._Crypt.InitialiseSend((uint)a);
     }
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 private void SendCryptPacket()
 {
     if (!this._Crypt.IsInitialisedSend())
     {
         int a = new Random().Next();
         WorldPacket packet = new WorldPacket();
         packet.Initialize(5);
         packet.InputInt(a);
         this.SendCorePacket(packet);
         this._Crypt.InitialiseSend((uint) a);
     }
 }
Ejemplo n.º 4
0
 public void SendCompletTask(uint taskID, int taskSteps)
 {
     WorldPacket packet = new WorldPacket();
     packet.Initialize(0x19);
     packet.InputUInt32(taskID);
     packet.InputInt(taskSteps);
     this.AddPacket(packet);
 }