Ejemplo n.º 1
0
        public void AccountDataTimes(Parser packet)
        {
            Time("Time");
            Byte("Unk(byte)");

            int mask = packet.ReadInt32("Mask");
            for (int i = 0; i < NUM_ACCOUNT_DATA_TYPES; ++i)
            {
                if ((mask & (1 << i)) != 0)
                    packet.ReadTime(((AccountDataType)i).ToString());
            }
        }
Ejemplo n.º 2
0
 public void HandleEventInviteAlert(Parser packet)
 {
     WriteLine("EventID: " + packet.ReadInt64());
     WriteLine("EventName: " + packet.ReadString());
     WriteLine("EventTime: " + packet.ReadTime());
     WriteLine("EventFlags: " + packet.ReadInt32());
     WriteLine("EventType: " + packet.ReadInt32());
     WriteLine("DungeonID: " + packet.ReadInt32());
     WriteLine("unk: " + packet.ReadInt32());
     WriteLine("InviteID: " + packet.ReadInt64());
     WriteLine("InviteStatus: " + packet.ReadInt8());
     WriteLine("Mod_Type: " + packet.ReadInt8());
     WriteLine("unk: " + packet.ReadInt32());
     WriteLine("Inviter_1: " + packet.ReadPackedGuid());
     WriteLine("Inviter_2: " + packet.ReadPackedGuid());
 }
Ejemplo n.º 3
0
        public void HandleTimeQueryResponse(Parser packet)
        {
            var curTime = packet.ReadTime();
            WriteLine("Current Time: " + curTime);

            var dailyReset = packet.ReadInt32();
            WriteLine("Daily Quest Reset: " + dailyReset);
        }
Ejemplo n.º 4
0
        public void HandleSenddCalendar(Parser packet)
        {
            var inviteCount = packet.ReadInt32("InviteCount");
            for (var i = 0; i < inviteCount; ++i)
            {
                WriteLine("  EventID: " + packet.ReadInt64());
                WriteLine("  InviteID: " + packet.ReadInt64());
                WriteLine("  InviteStats: " + packet.ReadInt8());
                WriteLine("  Mod_Type: " + packet.ReadInt8());
                WriteLine("  Invite_Type: " + packet.ReadInt8());
                WriteLine("  InvitedBy: " + packet.ReadPackedGuid());
                WriteLine("");
            }

            var EventCount = packet.ReadInt32("EventCount");
            for (var i = 0; i < EventCount; ++i)
            {
                WriteLine("  EventID: " + packet.ReadInt64());
                WriteLine("  EventName: " + packet.ReadString());
                WriteLine("  EventModFlags: " + packet.ReadInt32());
                WriteLine("  EventDate: " + packet.ReadPackedTime());
                WriteLine("  EventFlags: " + packet.ReadInt32());
                WriteLine("  DungeonID: " + packet.ReadInt32());
                WriteLine("  unk: " + packet.ReadInt64());
                WriteLine("  InvitedBy: " + packet.ReadPackedGuid());
                WriteLine("");
            }

            WriteLine("CurrentUnixTime: " + packet.ReadTime());
            WriteLine("CurrentPacketTime: " + packet.ReadPackedTime());

            var InstanceResetCount = packet.ReadInt32("InstanceResetCount");
            for (var i = 0; i < InstanceResetCount; ++i)
            {
                WriteLine("  MapID: " + packet.ReadInt32());
                WriteLine("  Difficulty: " + packet.ReadInt32());
                WriteLine("  ResetTime: " + packet.ReadTime());
                WriteLine("  RaidID: " + packet.ReadInt64());
                WriteLine("");
            }

            WriteLine("BaseTime: " + packet.ReadTime());

            var RaidResetCount = packet.ReadInt32("RaidResetCount");
            for (var i = 0; i < RaidResetCount; ++i)
            {
                WriteLine("  MapID: " + packet.ReadInt32());
                WriteLine("  ResetTime: " + packet.ReadTime());
                WriteLine("  NegativeOffset: " + packet.ReadInt32());
                WriteLine("");
            }

            var Counter = packet.ReadInt32();
            WriteLine("Counter: " + Counter + "(Never seen this larger than 0)");
        }
Ejemplo n.º 5
0
 public void HandleUpdateUITimer(Parser packet)
 {
     var time = packet.ReadTime();
     WriteLine("Time: " + time);
 }