Guest User

Untitled

a guest
Apr 25th, 2018
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 3.57 KB | None | 0 0
  1. program CFletch;
  2.  
  3. {$i SRL\SRL.scar}
  4. {$define SMART}
  5.  
  6. var
  7.   logs, knife, shaftsChat, shafts, x, y, p, currLoads: Integer;
  8.  
  9. procedure DeclarePlayers;
  10. begin
  11.   HowManyPlayers := 1; // Number of Players to use
  12.   NumberOfPlayers(HowManyPlayers);
  13.   CurrentPlayer := 0; // Player to start with, first one is 0
  14.  
  15.   Players[0].Name := 'lolwutham2@mailinator.com'; // Username
  16.   Players[0].Pass := 'lolwutnom4'; // Password
  17.   Players[0].Active := True; // True if you are using this player
  18.   Players[0].Pin := ''; // Leave blank if the player doesn't have a bank pin
  19.   Players[0].Integers[1] := 2; // Number of loads
  20.  
  21. end;
  22.  
  23. procedure InitDTMs;
  24. begin
  25.   logs   := DTMFromString('mrAAAAHic42BgYOBngAA2KFsCiGWAWBKIxYGYD4hFoGwQLQTEPEDMAtUX564FJJlwYi4G/ICRAIYBAOg9Ae8=');
  26.   knife  := DTMFromString('mwQAAAHic42RgYOBhgABmIGYFYnYg5gZifiAWBmIRIOYCYhkglgViSSAWA2IBqDgrVH9aUhKQZMKLuRgIA0YiMBwAACU9AkQ=');
  27.   shaftsChat := DTMFromString('mwQAAAHic42RgYOAGYkYGCGAFYh4gFgJiMSgWBGIOJHFhIBYBYj6oODNUr4GCApBkQsFiPMwofC4GwoCRCAwHANBwAZI=');
  28.   shafts := DTMFromString('m6wAAAHic42ZgYMhhYmAoBOJSIK4E4jIgLgbifCDOBOI0II4H4hQgfgJUfwuI7wHxHSB+CMQvgPgdEH8E4tdA/BIq7qrBCSSZiMQQwMVAGDCSgJEAALm3D0s=');
  29. end;
  30.  
  31. procedure FreeDTMs;
  32. begin
  33.   FreeDTM(logs)
  34.   FreeDTM(knife)
  35.   FreeDTM(shafts)
  36.   FreeDTM(shaftsChat);
  37. end;
  38.  
  39. procedure WithdrawLogs;
  40. begin
  41.   if not LoggedIn then Exit;
  42.   if PinScreen then
  43.   begin
  44.     p := 0;
  45.     repeat
  46.       InPin(Players[0].Pin);
  47.       Inc(p)
  48.     until BankScreen or (p > 0) or not (LoggedIn);
  49.   end;
  50.   if FindDTM(shafts, x, y, MIX1, MIY1, MIX2, MIY2) then
  51.   begin
  52.     MMouse(x, y, 6, 6);
  53.     if WaitUptext('osit-1 Arrow', 500) then
  54.     begin
  55.       Mouse(x, y, 0, 0, False);
  56.       sleep(50);
  57.       ChooseOption('All');
  58.       sleep(500);
  59.       Inc(currLoads);
  60.       if currLoads = Players[CurrentPlayer].Integers[1] then
  61.       begin
  62.         Writeln('Finished loads for this player');
  63.         Players[CurrentPlayer].Active := False;
  64.         CloseBank;
  65.         LogOut;
  66.         Exit;
  67.       end;
  68.     end;
  69.   end;
  70.   if FindDTM(logs, x, y, MSX1, MSY1, MSX2, MSY2) then
  71.   begin
  72.     MMouse(x, y, 6, 6);
  73.     if WaitUptext('draw-1 Logs', 500) then
  74.     begin
  75.       Mouse(x, y, 0, 0, False);
  76.       sleep(50);
  77.       ChooseOption('All');
  78.       sleep(1000);
  79.       CloseBank;
  80.       Sleep(1000);
  81.     end;
  82.   end else begin
  83.   Writeln('No logs found, logging out');
  84.   Players[CurrentPlayer].Active := False;
  85.   CloseBank;
  86.   LogOut;
  87.   Exit;
  88.   end;
  89. end;
  90.  
  91. procedure CutLogs;
  92. begin
  93.   if not LoggedIn then Exit;
  94.   if FindDTM(knife, x, y, MIX1, MIY1, MIX2, MIY2) then
  95.   begin
  96.     MMouse(x, y, 6, 6);
  97.     if WaitUptext('Use Knife', 500) then
  98.     begin
  99.       Mouse(x, y, 0, 0, True);
  100.       sleep(300);
  101.     end;
  102.     if FindDTM(logs, x, y, MIX1, MIY1, MIX2, MIY2) then
  103.     begin
  104.       MMouse(x, y, 6, 6);
  105.       if WaitUptext('Logs', 500) then
  106.       begin
  107.         Mouse(x, y, 0, 0, True);
  108.         sleep(1500);
  109.         if FindDTM(shaftsChat, x, y, MCX1, MCY1, MCX2, MCY2) then
  110.         begin
  111.         MMouse(x, y, 6, 6);
  112.         if WaitUptext('Make All', 500) then
  113.           Mouse(x, y, 0, 0, True);
  114.           Sleep(48000);
  115.         end;
  116.       end;
  117.     end;
  118.   end;
  119. end;
  120.  
  121. begin
  122.  
  123.   ClearDebug;
  124.   Smart_Server := 18;
  125.   Smart_Members := True;
  126.   Smart_Signed := True;
  127.   Smart_SuperDetail := False;
  128.   SetupSRL;
  129.   DeclarePlayers;
  130.   LoginPlayer;
  131.  
  132.   InitDTMs;
  133.   currLoads := 0;
  134.  
  135.   repeat
  136.     repeat
  137.       OpenBank('vwb', True, True);
  138.       WithdrawLogs;
  139.       CutLogs;
  140.     until (not LoggedIn)
  141.     NextPlayer(Players[CurrentPlayer].Active);
  142.   until False;
  143.  
  144.   FreeDTMs();
  145. end.
Add Comment
Please, Sign In to add comment