Beispiel #1
0
 public void AddTradeRequest(ZoneClient pClient,ushort  MapObjectIDto)
 {
     Log.WriteLine(LogLevel.Debug, "{0} AddTradeReqest {1}", pClient.Character.Character.Name, MapObjectIDto);
        TradeReqest pRequest = new TradeReqest(pClient.Character, MapObjectIDto);
        this.TradeReqests.Add(pRequest);
        SendTradeRequest(pRequest);
 }
Beispiel #2
0
 private void SendTradeRequest(TradeReqest pRequest)
 {
     using (var pPacket = new Packet(SH19Type.SendTradeReqest))
        {
        pPacket.WriteUShort(pRequest.pFromTradeClient.MapObjectID);
        pRequest.pToTradeClient.Client.SendPacket(pPacket);
        }
 }