public static NpcTradeInfo RecvNpcTrade(Packet p) { p.Skip(2); int map = p.ReadInt(); int npc = p.ReadInt(); byte bag = p.ReadByte(); NpcTradeInfo nti = new NpcTradeInfo { MapID = map, NpcID = npc, Bag = bag }; return nti; }
public ClientNpcTradeEventArgs(NpcTradeInfo n) { this.tradeinfo = n; }