Advertisement
XConquer

Untitled

Jul 1st, 2015
406
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.87 KB | None | 0 0
  1.   public byte Level
  2.         {
  3.             get { return (byte)BitConverter.ToUInt32(Buffer, 16); }
  4.             set
  5.             {
  6.                 if (Database.SpellTable.SpellInformations != null)
  7.                     if (Database.SpellTable.SpellInformations.ContainsKey(ID))
  8.                         if (!Database.SpellTable.SpellInformations[ID].ContainsKey(value))
  9.                             value = Database.SpellTable.SpellInformations[ID].Keys.LastOrDefault();
  10.                 WriteUInt16(value, 16, Buffer);
  11.             }
  12.         }
  13.      
  14.         public uint Experience
  15.         {
  16.             get { return BitConverter.ToUInt32(Buffer, 8); }
  17.             set { WriteUInt32(value, 8, Buffer); }
  18.         }
  19.         public ushort ID
  20.         {
  21.             get { return (ushort)BitConverter.ToUInt16(Buffer, 12); }
  22.             set { WriteUInt16(value, 12, Buffer); }
  23.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement