예제 #1
0
        public static void TradeReady(InPacket lea, Client c)
        {
            var chr = c.Character;

            TradePacket.TradeReady(chr.Trader.Client);
            TradePacket.TradeInviteResponses(chr.Trader.Client, 2);
            TradePacket.TradeConfirm(chr.Trader.Client);
        }
예제 #2
0
        public static void TradeInviteResponses(InPacket lea, Client c)
        {
            int Respons = lea.ReadInt();
            var chr     = c.Character;

            if (Respons == 1)
            {
                chr.Trade        = new CharacterTrade();
                chr.Trader.Trade = new CharacterTrade();
            }

            if (Respons == 1)
            {
                TradePacket.TradeInviteResponses(c, Respons);
            }

            TradePacket.TradeInviteResponses(c.Character.Trader.Client, Respons);
        }