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; }
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(); }
public ClientAddStatEventArgs(AddStatInfo AddStat) { this.asi = AddStat; }