예제 #1
0
 public static void SendBuyError(IPacketReceiver client, IEntity vendor, Asda2ItemId itemEntryId,
                                 BuyItemError error)
 {
     using (RealmPacketOut packet = new RealmPacketOut((PacketId)RealmServerOpCode.SMSG_BUY_FAILED, 13))
     {
         packet.Write((ulong)vendor.EntityId);
         packet.Write((uint)itemEntryId);
         packet.Write((byte)error);
         client.Send(packet, false);
     }
 }
예제 #2
0
파일: NPCHandler.cs 프로젝트: NVN/WCell
		public static void SendBuyError(IPacketReceiver client, IEntity vendor, ItemId itemEntryId, BuyItemError error)
		{
			using (var packet = new RealmPacketOut(RealmServerOpCode.SMSG_BUY_FAILED, 8 + 4 + 1))
			{
				packet.Write(vendor.EntityId);
				packet.Write((uint)itemEntryId);
				packet.Write((byte)error);

				client.Send(packet);
			}
		}
예제 #3
0
        public static void SendBuyError(IPacketReceiver client, IEntity vendor, ItemId itemEntryId, BuyItemError error)
        {
            using (var packet = new RealmPacketOut(RealmServerOpCode.SMSG_BUY_FAILED, 8 + 4 + 1))
            {
                packet.Write(vendor.EntityId);
                packet.Write((uint)itemEntryId);
                packet.Write((byte)error);

                client.Send(packet);
            }
        }