Exemplo n.º 1
0
        private static void CSConfig()
        {
            _Parent0x1A = OutgoingPacketOverrides.GetHandler(0x1A);
            _Parent0xF3 = OutgoingPacketOverrides.GetHandler(0xF3);

            OutgoingPacketOverrides.Register(0x1A, true, HandleWorldItem);
            OutgoingPacketOverrides.Register(0xF3, true, HandleWorldItemSAHS);
        }
Exemplo n.º 2
0
        public static void Configure()
        {
            EventSink.Logout       += OnLogoutImpl;
            EventSink.Disconnected += OnDisconnectedImpl;
            EventSink.Speech       += OnSpeechImpl;
            EventSink.Movement     += OnMovementImpl;

            NetState.GumpCap = 1024;

            VitaNexCore.OnConfigured += () =>
            {
                OutgoingPacketOverrides.Register(0xB0, true, OnEncode0xB0_0xDD);
                OutgoingPacketOverrides.Register(0xDD, true, OnEncode0xB0_0xDD);
            };
        }
Exemplo n.º 3
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);
        }