Пример #1
0
        private static void ShowFakeClick(Vector3 position)
        {
            var tile = NavMesh.WorldToGrid(position.X, position.Y);
            var z = NavMesh.GetHeightForPosition(position.X, position.Y);

            var p = new GamePacket(0x87);
            p.WriteHexString(
                "00 00 00 00 02 69 DC 57 4D C9 4F 15 0A 20 00 00 00 00 00 00 00 00 00 01 00 00 00 00 B2 01 00 40");
            p.WriteInteger(ObjectManager.Player.NetworkId);
            p.WriteByte(0, 8);
            p.WriteShort((short) tile.X);
            p.WriteFloat(z);
            p.WriteShort((short) tile.Y);
            p.WriteHexString("6F F2 00 00 00 00 18 F3");
            p.WriteShort((short) tile.X);
            p.WriteFloat(z);
            p.WriteShort((short) tile.Y);
            p.WriteHexString(
                "00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 3F 69 DC 57 4D 79 0D DA 08 20 00 00 00 00 00 00 00 00 00 01 00 00 00 00 B1 01 00 40");
            p.WriteInteger(ObjectManager.Player.NetworkId);
            p.WriteByte(0, 8);
            p.WriteShort((short) tile.X);
            p.WriteFloat(z);
            p.WriteShort((short) tile.Y);
            p.WriteHexString("6F F2 00 00 00 00 18 F3");
            p.WriteShort((short) tile.X);
            p.WriteFloat(z);
            p.WriteShort((short) tile.Y);
            p.WriteHexString("00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 3F 00");
            p.Process();
        }
Пример #2
0
        private static void ChangeSize()
        {
            var p = new GamePacket(0xC4);
            p.WriteInteger(0);
            p.WriteInteger(LastSequence);
            p.WriteByte(0x1);
            p.WriteByte(0x8);
            p.WriteInteger(ObjectManager.Player.NetworkId);
            p.WriteInteger(0x800);
            p.WriteByte(0x8);
            p.WriteFloat(Size);
            p.Process();

            LastProcess = Environment.TickCount;
        }
Пример #3
0
 private static void ChangeSize(Int32 netId, Single size)
 {
     Obj_AI_Hero hero = ObjectManager.GetUnitByNetworkId<Obj_AI_Hero>(netId);
     if (hero != null)
     {
         GamePacket p = new GamePacket(0xC4);
         p.WriteInteger(0);
         p.WriteInteger(SequenceId++);
         p.WriteByte(0x1);
         p.WriteByte(0x8);
         p.WriteInteger(netId);
         p.WriteInteger(0x800);
         p.WriteByte(0x8);
         p.WriteFloat(size);
         p.Process();
         SequenceId++;
     }
 }