Ejemplo n.º 1
0
        public static void Init()
        {
            if (Initialized)
            {
                return;
            }

            ReqOplParent = PacketHandlers.GetExtendedHandler(0x10);
            PacketHandlers.RegisterExtended(ReqOplParent.PacketID, ReqOplParent.Ingame, OnQueryProperties);

            ReqBatchOplParent = PacketHandlers.GetHandler(0xD6);

            PacketHandlers.Register(
                ReqBatchOplParent.PacketID,
                ReqBatchOplParent.Length,
                ReqBatchOplParent.Ingame,
                OnBatchQueryProperties);

            PacketHandlers.Register6017(
                ReqBatchOplParent.PacketID,
                ReqBatchOplParent.Length,
                ReqBatchOplParent.Ingame,
                OnBatchQueryProperties);

            OutParent0xD6 = OutgoingPacketOverrides.GetHandler(0xD6);
            OutgoingPacketOverrides.Register(0xD6, OnEncode0xD6);

            Initialized = true;
        }
Ejemplo n.º 2
0
        public static void ContentChangeOverride()
        {
            PacketHandlers.Register(0x66, 0, true, new OnPacketReceive(XmlTextEntryBook.ContentChange));
#if (CLIENT6017)
            PacketHandlers.Register6017(0x66, 0, true, new OnPacketReceive(XmlTextEntryBook.ContentChange));
#endif
        }
Ejemplo n.º 3
0
        public static void UseReqOverride()
        {
            PacketHandlers.Register(0x06, 5, true, new OnPacketReceive(XmlAttach.UseReq));
#if (CLIENT6017)
            PacketHandlers.Register6017(0x06, 5, true, new OnPacketReceive(XmlAttach.UseReq));
#endif
        }
Ejemplo n.º 4
0
        public static void ContentChangeOverride()
        {
            PacketHandlers.Register(0x66, 0, true, BaseEntryBook.ContentChange);
#if (CLIENT6017)
            PacketHandlers.Register6017(0x66, 0, true, BaseEntryBook.ContentChange);
#endif
        }
Ejemplo n.º 5
0
        private static void CMConfig()
        {
            LookReqParent = PacketHandlers.GetHandler(0x09);

            PacketHandlers.Register(0x09, 5, true, OnSingleClick);
            PacketHandlers.Register6017(0x09, 5, true, OnSingleClick);
        }
Ejemplo n.º 6
0
        public static void Init()
        {
            if (Initialized)
            {
                return;
            }

            ReqOplParent = PacketHandlers.GetExtendedHandler(0x10);
            PacketHandlers.RegisterExtended(ReqOplParent.PacketID, ReqOplParent.Ingame, OnQueryProperties);

            ReqBatchOplParent = PacketHandlers.GetHandler(0xD6);

            bool is6017 = (PacketHandlers.Get6017Handler(0xD6) != null);

            PacketHandlers.Register(
                ReqBatchOplParent.PacketID, ReqBatchOplParent.Length, ReqBatchOplParent.Ingame, OnBatchQueryProperties);

            if (is6017)
            {
                PacketHandlers.Register6017(
                    ReqBatchOplParent.PacketID, ReqBatchOplParent.Length, ReqBatchOplParent.Ingame, OnBatchQueryProperties);
            }

            OutParent0xD6 = OutgoingPacketOverrides.GetHandler(0xD6);
            OutgoingPacketOverrides.Register(0xD6, true, OnEncode0xD6);

            Initialized = true;

            PollTimer.FromSeconds(10.0, FreeCache);
        }
Ejemplo n.º 7
0
        private static void CMConfig()
        {
            EquipItemRequestParent    = PacketHandlers.GetHandler(0x13);
            DropItemRequestParent     = PacketHandlers.GetHandler(0x08);
            DropItemRequestParent6017 = PacketHandlers.Get6017Handler(0x08);

            EquipItemParent = OutgoingPacketOverrides.GetHandler(0x2E);

            PacketHandlers.Register(0x13, 10, true, EquipItemRequest);
            //PacketHandlers.Register6017(0x13, 10, true, EquipItemRequest6017);
            PacketHandlers.Register(0x08, 14, true, DropItemRequest);
            PacketHandlers.Register6017(0x08, 15, true, DropItemRequest6017);

            OutgoingPacketOverrides.Register(0x2E, true, EquipItem);
        }
        public static void Configure()
        {
            EventSink.QuestGumpRequest += XmlQuest.QuestButton;

            ContentChangeParent = PacketHandlers.GetHandler(0x66);
            UseReqParent        = PacketHandlers.GetHandler(0x06);
            LookReqParent       = PacketHandlers.GetHandler(0x09);

            PacketHandlers.Register(0x66, 0, true, BaseEntryBook.ContentChange);
            PacketHandlers.Register(0x06, 5, true, XmlAttach.UseReq);
            PacketHandlers.Register(0x09, 5, true, XmlAttach.LookReq);

                        #if CLIENT6017
            PacketHandlers.Register6017(0x66, 0, true, BaseEntryBook.ContentChange);
            PacketHandlers.Register6017(0x06, 5, true, XmlAttach.UseReq);
            PacketHandlers.Register6017(0x09, 5, true, XmlAttach.LookReq);
                        #endif
        }
Ejemplo n.º 9
0
        private static void CMDispose()
        {
            if (EquipItemRequestParent != null && EquipItemRequestParent.OnReceive != null)
            {
                PacketHandlers.Register(0x13, 10, true, EquipItemRequestParent.OnReceive);
            }

            if (EquipItemRequestParent6017 != null && EquipItemRequestParent6017.OnReceive != null)
            {
                PacketHandlers.Register6017(0x13, 10, true, EquipItemRequestParent6017.OnReceive);
            }

            if (DropItemRequestParent != null && DropItemRequestParent.OnReceive != null)
            {
                PacketHandlers.Register(0x08, 14, true, DropItemRequestParent.OnReceive);
            }

            if (DropItemRequestParent6017 != null && DropItemRequestParent6017.OnReceive != null)
            {
                PacketHandlers.Register6017(0x08, 15, true, DropItemRequestParent6017.OnReceive);
            }
        }
Ejemplo n.º 10
0
        public static void Initialize()
        {
            m_Target     = PacketHandlers.GetHandler(0x6C);
            m_Target6017 = PacketHandlers.Get6017Handler(0x6C);

            m_Equip     = PacketHandlers.GetHandler(0x13);
            m_Equip6017 = PacketHandlers.Get6017Handler(0x13);

            if (m_Target6017 == null)
            {
                m_Target6017 = m_Target;
            }

            if (m_Equip6017 == null)
            {
                m_Equip6017 = m_Equip;
            }

            PacketHandlers.Register(0x6C, 19, true, new OnPacketReceive(TargetResponse));
            PacketHandlers.Register6017(0x6C, 19, true, new OnPacketReceive(TargetResponse6017));
            PacketHandlers.Register(0x13, 10, true, new OnPacketReceive(EquipReq));
            PacketHandlers.Register6017(0x13, 10, true, new OnPacketReceive(EquipReq6017));
        }