Guest User

Untitled

a guest
Jul 18th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. procedure Bank;
  2. var
  3. BankTimer, i : Integer;
  4. begin
  5. if(not(LoggedIn))then Exit;
  6. if(not(FindNormalRandoms))then
  7. MarkTime(BankTimer);
  8. FTab(tab_Inv);
  9. if DecayedPouch then
  10. begin
  11. //Writeln('fixing pouch');
  12. Players[CurrentPlayer].Loc := 'Contact';
  13. Exit;
  14. end;
  15. if FindDTMRotated(BankBoothDTM, x, y, MSX1, MSY1, MSX2, MSY2, -Pi/4, Pi/4, Pi/60, aFound) then
  16. begin
  17. repeat
  18. FindDTMRotated(BankBoothDTM, x, y, MSX1, MSY1, MSX2, MSY2, -Pi/4, Pi/4, Pi/60, aFound)
  19. Mouse(x, y, 2, 2, true);
  20. For i := 0 to 20 do
  21. Wait(150);
  22. if BankScreen or Pinscreen then
  23. Break;
  24. until BankScreen or PinScreen;
  25. end;
  26. if PinScreen then
  27. begin
  28. If (Players[CurrentPlayer].Pin <> '') then
  29. InPin(Players[CurrentPlayer].Pin);
  30. end;
  31. if BankScreen then
  32. begin
  33. If (HPPercent < 50) then
  34. begin
  35. Eat;
  36. end;
  37. WithdrawEss;
  38. Exit;
  39. end;
  40. end;
Add Comment
Please, Sign In to add comment