LostProphet

Money stuff

Dec 20th, 2011
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.62 KB | None | 0 0
  1. Player.Money:
  2.  
  3. public int Money
  4. {
  5.         get
  6.         {
  7.                 int num;
  8.                 Scripting.?A0x41b70ddb.StoreScore(Scripting.?A0x41b70ddb.ConvertIntToPlayerIndex((uint) this.pID), &num);
  9.                 return num;
  10.         }
  11.         set
  12.         {
  13.                 int num2;
  14.                 int num = Scripting.?A0x41b70ddb.ConvertIntToPlayerIndex((uint) this.pID);
  15.                 Scripting.?A0x41b70ddb.StoreScore(num, &num2);
  16.                 if (value < 0)
  17.                 {
  18.                         value = 0;
  19.                 }
  20.                 Scripting.?A0x41b70ddb.AddScore(num, value - num2);
  21.         }
  22. }
  23.  
  24. ---------------------------------------------------------------------------------------------------------------------------------------------------
  25. ---------------------------------------------------------------------------------------------------------------------------------------------------
  26. ---------------------------------------------------------------------------------------------------------------------------------------------------
  27.  
  28. Player.Character.Money:
  29.  
  30. public int Money
  31. {
  32.         get
  33.         {
  34.                 if (!this.Exists())
  35.                 {
  36.                         throw new NonExistingObjectException();
  37.                 }
  38.                 return Scripting.?A0x5984d89a.GetCharMoney(base.pHandle);
  39.         }
  40.         set
  41.         {
  42.                 if (!this.Exists())
  43.                 {
  44.                         throw new NonExistingObjectException();
  45.                 }
  46.                 Scripting.?A0x5984d89a.SetCharMoney(base.pHandle, (uint) value);
  47.         }
  48. }
Add Comment
Please, Sign In to add comment