public static BuyItemInfo RecvBuyItem(Packet p) { p.Skip(2); int npcid = p.ReadInt(); short wref = p.ReadShort(); p.Skip(2); short amount = p.ReadShort(); p.Skip(2); byte bag = p.ReadByte(); BuyItemInfo i = new BuyItemInfo { NpcID = npcid, ReferenceID = wref, Amount = amount, Bag = bag }; return i; }
public ClientBuyItemEventArgs(BuyItemInfo i) { buyinfo = i; }