Janilabo

Janilabo | RS07 DepositEverything() [SCAR Divi]

Mar 29th, 2013
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.92 KB | None | 0 0
  1. function DepositEverything: Boolean;
  2. var
  3.   i, t, m, s, w: Integer;
  4. begin
  5.   Result := False;
  6.   if RS07_BankOpen then
  7.   begin  
  8.     s := GetSystemTime;
  9.     for i := (RS07_BANK_SLOT_COUNT - 1) downto 0 do
  10.     begin
  11.       if (((GetSystemTime - s) > 300000) or not RS07_BankOpen) then
  12.         Exit;
  13.       w := GetSystemTime;
  14.       while RS07_InventorySlotUsed(i) do
  15.       begin  
  16.         if (not RS07_BankOpen or ((GetSystemTime - w) > 30000)) then
  17.           Exit;
  18.         if ((GetSystemTime - t) > 1500) then
  19.         begin
  20.           if RS07_DepositEx(i, -1) then
  21.           begin  
  22.             MSSL_Wait(350 + Random(100));
  23.             m := GetSystemTime;
  24.             while (((GetSystemTime - m) < 3000) and RS07_InventorySlotUsed(i)) do
  25.               MSSL_Wait(0);
  26.           end;
  27.         end;
  28.         MSSL_Wait(0);
  29.       end;  
  30.     end;
  31.     Result := ((i < 0) and (RS07_UsedInventorySlots = 0));
  32.   end;
  33. end;
Advertisement
Add Comment
Please, Sign In to add comment