Advertisement
Guest User

Untitled

a guest
Mar 19th, 2018
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. Program SimpleAlcher;
  2. {$DEFINE SMART}
  3. {$I SRL/OSR.simba}
  4. {$DEFINE SMARTDEBUG}
  5.  
  6. Const
  7. MAX_ALCHES: Integer = 10000;
  8. CONTROL_POINT: TPoint = [713, 331];
  9.  
  10. Var
  11. alches: Integer;
  12. alchPoint: TPoint = CONTROL_POINT;
  13.  
  14. Procedure CastAlchemy();
  15. Begin
  16. if (Gametabs.Open(tabMagic, 3)) then
  17. Begin
  18. if (GetColor(721, 333) = 849658) then
  19. Begin
  20. Mouse.Click(alchPoint, MOUSE_LEFT);
  21. if (Gametabs.IsOpen(tabInventory, 1200 + SRL.NormalRange(300, 800))) then
  22. Begin
  23. if (Inventory.IsSlotUsed(15)) then
  24. Begin
  25. Wait(50, 100 + SRL.NormalRange(50, 1400));
  26. Mouse.Click(MOUSE_LEFT);
  27. if (Gametabs.IsOpen(tabMagic, 4500 + SRL.NormalRange(300, 800))) then
  28. Begin
  29. INC(alches);
  30. Wait(50, 100 + SRL.NormalRange(50, 1400));
  31. End;
  32. End Else
  33. TerminateScript('No more Items left to alch...');
  34. End;
  35. End Else
  36. TerminateScript('No more nature runes...');
  37. End;
  38. End;
  39.  
  40. Begin
  41. Smart.EnableDrawing := False;
  42.  
  43. Srl.Setup([]);
  44. Srl.Options := [soDebugAntiban];
  45.  
  46. Mouse.Speed := 12;
  47. //NATIFY(@deriveAlchemyPoint);
  48.  
  49. While ( SRL.isLoggedIn() and (alches < MAX_ALCHES) ) do
  50. Begin
  51. CastAlchemy();
  52. WriteLn(SRL.MsToTime(GetTimeRunning, Time_Bare) , ' | Alches (P/H): ' , alches , ' (', Round(alches * (3600.0 / (GetTimeRunning / 1000.0))) , ') > XP (P/H) ' , alches * 65 , ' (', Round(alches * 65 * (3600.0 / (GetTimeRunning / 1000.0))) , ')');
  53.  
  54. if (Random(1, 750) = 69) then
  55. Begin
  56. WriteLn('Alchemy point changed from ' , alchPoint);
  57. alchPoint := CONTROL_POINT.Random(-5, 5, true);
  58. WriteLn('to ' , alchPoint);
  59. End;
  60.  
  61. Wait(50, 100);
  62. End;
  63. End.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement