コード例 #1
0
        public static void Packet(PacketReader packet)
        {
            // 1.04.16

            UInt64 NPCUID    = packet.ReadUInt64();
            UInt32 NPCID     = packet.ReadUInt32();
            float  XPos      = packet.ReadSingle();
            float  YPos      = packet.ReadSingle();
            float  ZPos      = packet.ReadSingle();
            float  Direction = packet.ReadSingle();
            UInt32 CurrentHP = packet.ReadUInt32();
            UInt32 MaxHP     = packet.ReadUInt32();
            UInt32 MoveSpeed = packet.ReadUInt32();

            UInt16 BuffCount = packet.ReadUInt16();

            // PktBuffInfo
            for (int i = 0; i < BuffCount; i++)
            {
                PktBuffInfo.Packet(packet);
            }

            byte   CombatMode  = packet.ReadByte();
            UInt32 SpawnInfoId = packet.ReadUInt32();
            UInt64 TeamID      = packet.ReadUInt64();
        }
コード例 #2
0
        public static void Packet(PacketReader packet)
        {
            UInt64 NPCUID    = packet.ReadUInt64();
            UInt32 NPCID     = packet.ReadUInt32();
            float  XPos      = packet.ReadSingle();
            float  YPos      = packet.ReadSingle();
            float  ZPos      = packet.ReadSingle();
            float  Direction = packet.ReadSingle();
            UInt32 CurrentHP = packet.ReadUInt32();
            UInt32 MaxHP     = packet.ReadUInt32();
            UInt32 MoveSpeed = packet.ReadUInt32();

            UInt16 BuffCount = packet.ReadUInt16();

            // PktBuffInfo
            for (int i = 0; i < BuffCount; i++)
            {
                PktBuffInfo.Packet(packet);
            }

            byte   CombatMode  = packet.ReadByte();
            UInt32 SpawnInfoId = packet.ReadUInt32();
            UInt64 TeamID      = packet.ReadUInt64();

            UInt16 NPCMoving = packet.ReadUInt16();

            // PktNpcMoveInfo
            for (int i = 0; i < NPCMoving; i++)
            {
                PktNpcMoveInfo.Packet(packet);
            }


            string OwnerName = packet.ReadString();

            UInt64 TargetID = packet.ReadUInt64();
        }
コード例 #3
0
        public static void Packet(PacketReader packet)
        {
            // 1.04.16

            UInt64 PlayerUID  = packet.ReadUInt64();
            string PlayerName = packet.ReadString();
            UInt32 Race       = packet.ReadUInt32();
            UInt32 Class      = packet.ReadUInt32();
            UInt16 Level      = packet.ReadUInt16();
            float  XPos       = packet.ReadSingle();
            float  YPos       = packet.ReadSingle();
            float  ZPos       = packet.ReadSingle();
            float  Direction  = packet.ReadSingle();
            UInt32 CurHP      = packet.ReadUInt32();
            UInt32 MaxHP      = packet.ReadUInt32();
            UInt32 MoveSpeed  = packet.ReadUInt32();


            UInt16 BuffCount = packet.ReadUInt16();

            // PktBuffInfo
            for (int i = 0; i < BuffCount; i++)
            {
                PktBuffInfo.Packet(packet);
            }

            byte   CombatMode      = packet.ReadByte();
            byte   SoulShotEnabled = packet.ReadByte();
            byte   PKStatus        = packet.ReadByte();
            byte   PKAttackState   = packet.ReadByte();
            UInt32 PKPoint         = packet.ReadUInt32();

            // PktAppearance
            PktAppearance.Packet(packet);


            UInt16 EquipCount = packet.ReadUInt16();

            // PktSimpleEquipment
            for (int i = 0; i < EquipCount; i++)
            {
                PktSimpleEquipment.Packet(packet);
            }


            UInt64 TeamID          = packet.ReadUInt64();
            UInt64 ControlGadgetID = packet.ReadUInt64();

            byte Guilded = packet.ReadByte();

            // PktPlayerGuild
            if (Guilded > 0)
            {
                PktPlayerGuild.Packet(packet);
            }

            UInt32 RidingPetInfoID = packet.ReadUInt32();
            UInt16 RidingPetLevel  = packet.ReadUInt16();
            byte   RidingPetGrade  = packet.ReadByte();

            UInt32 EquippedTitleInfoID = packet.ReadUInt32();

            //pktPartyEmblem
            byte SetEmblem = packet.ReadByte();

            if (SetEmblem > 0)
            {
                pktPartyEmblem.Packet(packet);
            }

            //PktSimpleCape
            PktSimpleCape.Packet(packet);

            //PktPKMode
            PktPKMode.Packet(packet);

            UInt32 CurBarrier      = packet.ReadUInt32();
            UInt32 MaxBarrier      = packet.ReadUInt32();
            byte   IsCostumeHidden = packet.ReadByte();
        }