Esempio n. 1
0
        public static AddStatInfo RecvAddStatRequest(Packet p)
        {
            p.Skip(2);
            byte stat = p.ReadByte();
            byte amount = p.ReadByte();

            AddStatInfo asi = new AddStatInfo
            {
                Stat = stat,
                Amount = amount
            };

            return asi;
        }
Esempio n. 2
0
 public static byte[] SendAddStat(int error, AddStatInfo asi, int pointsleft, int statamount)
 {
     Packet p = new Packet(200);
     p.WriteHexString("1E 35 07 00");
     p.WriteByte(error);
     p.WriteByte(asi.Stat);
     p.WriteByte(asi.Amount);
     p.WriteShort(pointsleft);
     p.WriteShort(statamount);
     return p.GetWrittenBuffer();
 }
Esempio n. 3
0
 public ClientAddStatEventArgs(AddStatInfo AddStat)
 {
     this.asi = AddStat;
 }