コード例 #1
0
ファイル: ItemUseOn.cs プロジェクト: Creative-Person/Ladabot
        public static void Send(Objects.Client client, Objects.Location fromLocation, ushort fromItemId, byte fromStackPostion, Objects.Location toLocation, ushort toItemId, byte toStackPosition)
        {
            NetworkMessage packet = new NetworkMessage();

            packet.Position = 0;
            packet.AddByte(0x83);
            packet.AddBytes(fromLocation.ToBytes());
            packet.AddUInt16(fromItemId);
            packet.AddByte(fromStackPostion);
            packet.AddBytes(toLocation.ToBytes());
            packet.AddUInt16(toItemId);
            packet.AddByte(toStackPosition);

            client.HookProxy.SendPacketToServer(packet.Data);
        }
コード例 #2
0
ファイル: MoveItem.cs プロジェクト: Creative-Person/Ladabot
        public static void Send(Client client, Objects.Location fromLocation, ushort spriteId, byte fromStackPostion, Objects.Location toLocation, byte count)
        {
            NetworkMessage packet = new NetworkMessage();

            packet.Position = 0;
            packet.AddByte(0x78);
            packet.AddBytes(fromLocation.ToBytes());
            packet.AddUInt16(spriteId);
            packet.AddByte(fromStackPostion);
            packet.AddBytes(toLocation.ToBytes());
            packet.AddByte(count);

            client.HookProxy.SendPacketToServer(packet.Data);
            //client.HookProxy.SendToInternal(packet.Data);
        }
コード例 #3
0
ファイル: ItemUse.cs プロジェクト: Creative-Person/Ladabot
        public static void Send(Objects.Client client, Objects.Location fromPosition, ushort itemId, byte fromStack, byte index)
        {
            NetworkMessage packet = new NetworkMessage();

            Objects.Item item = new Objects.Item(Core.client, itemId);

            packet.Position = 0;
            packet.AddByte(0x82);
            packet.AddBytes(fromPosition.ToBytes());
            packet.AddUInt16(itemId);
            packet.AddByte(fromStack);
            packet.AddByte(index);

            client.HookProxy.SendPacketToServer(packet.Data);
            // client.HookProxy.SendToInternal(packet.Data);
        }
コード例 #4
0
 public void AddLocation(Objects.Location pos)
 {
     AddBytes(pos.ToBytes());
 }