Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public byte Level
- {
- get { return (byte)BitConverter.ToUInt32(Buffer, 16); }
- set
- {
- if (Database.SpellTable.SpellInformations != null)
- if (Database.SpellTable.SpellInformations.ContainsKey(ID))
- if (!Database.SpellTable.SpellInformations[ID].ContainsKey(value))
- value = Database.SpellTable.SpellInformations[ID].Keys.LastOrDefault();
- WriteUInt16(value, 16, Buffer);
- }
- }
- public uint Experience
- {
- get { return BitConverter.ToUInt32(Buffer, 8); }
- set { WriteUInt32(value, 8, Buffer); }
- }
- public ushort ID
- {
- get { return (ushort)BitConverter.ToUInt16(Buffer, 12); }
- set { WriteUInt16(value, 12, Buffer); }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement