Guest User

Untitled

a guest
Jun 22nd, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.43 KB | None | 0 0
  1. Program PCTest;
  2. {$DEFINE SMART}
  3. {$DEFINE SRL5}
  4. {$i SRL/srl.simba}
  5. {$i sps/sps.simba}
  6. {$i SRL/SRL/skill/fighting.simba}
  7. Var
  8. WalkToPortal:TPointArray;
  9. const
  10. {==========Smart Setup==========}
  11. World = 53; // Input the runescape world number right here for it to select. You may leave it as 0 if you would like it to select a random world.
  12. MEMBERS = False; // Select False if you are not a member. Select True if you are a member.
  13. SIGNED = True; // Select True if you are using single account. Select False if not. Do know that this is a single account script.
  14. {===============================}
  15. procedure DeclarePlayers;
  16. begin
  17. HowManyPlayers := 1;
  18. NumberOfPlayers(HowManyPlayers);
  19. CurrentPlayer := 0;
  20.  
  21. Players[0].Name := ''; //Your Runescape username goes right here.
  22. Players[0].Pass := ''; //Your Runescape password goes right here.
  23. Players[0].Active := True; //Set to True if you want to use this player. Set to False to disable this player.
  24. Players[0].Pin := ''; //Put your Bank PIN here. Leave blank if you don't have a Bank PIN.
  25. end;
  26. Procedure WaitAndHigh;
  27. begin
  28. wait(15000);
  29. SetAngle(SRL_ANGLE_HIGH);
  30. end;
  31. Procedure CrossPlank;
  32. var x, y: integer;
  33. begin
  34. FindNormalRandoms;
  35. WriteLn('Looking for plank.');
  36. if FindObj(x, y, 'ross', 3892872, 10) then //This finds the object, records the X and Y values, and tells the script to find the option "Rocks" in order to work.
  37. WriteLn('Crossing Plank.');
  38. Mouse(x, y, 0, 0, true);
  39. ChooseOption('ross');
  40. wait(50);
  41. if FindBlackChatMessage('You board the lander.') then
  42. repeat
  43. wait(50);
  44. until FindNPCChatText('You must defend the Void Knight while the portals are unsummoned. The ritual takes twenty minutes though so you can help out by destroying them yourselves! Now GO GO GO!',True);
  45. end;
  46. Procedure WalkPortal;
  47. begin
  48. FindNormalRandoms;
  49. SPS_Setup(RUNESCAPE_SURFACE,['6_15']);
  50. WriteLn('Walking to portal.');
  51. WalkToPortal := [Point(2469, 6232), Point(2468, 6249), Point(2468, 6257), Point(2474, 6265), Point(2487, 6273), Point(2496, 6284), Point(2500, 6290), Point(2504, 6296), Point(2506, 6308), Point(2514, 6319), Point(2521, 6319), Point(2533, 6316), Point(2541, 6327)];
  52. SPS_WalkPath(WalkToPortal);
  53. WriteLn('We have arrived at the Portal.');
  54. MakeCompass('e');
  55. end;
  56. Procedure AttackPests;
  57. var x, y: integer;
  58. begin
  59. repeat
  60. FindNormalRandoms;
  61. WriteLn('Looking For Torcher.');
  62. if FindObj(x, y, 'ttack', 3689829, 10) then
  63. WriteLn('Attacking Torcher.');
  64. Mouse(x, y, 0, 0, true);
  65. ChooseOption('ttack');
  66. wait(500+random(250));
  67. Until InFight;
  68. Repeat
  69. Wait(50);
  70. Until (Not InFight);
  71. end;
  72. Procedure Win;
  73. var x, y: integer;
  74. begin
  75. FindNormalRandoms;
  76. if FindNPCChatText('Congratulations! You managed to destroy all the portals!',True) then
  77. WriteLn('Looking for Continue button.');
  78. if FindObj(x, y, 'ontinue', 1667398, 10) then
  79. Mouse(x, y, 0, 0, true);
  80. ChooseOption('ontinue');
  81. end;
  82. begin
  83. Smart_Server := WORLD; //This here sets up the SMART Minimizing Autoing Resource Thing so you can bot.
  84. Smart_Members := MEMBERS;
  85. Smart_Signed := SIGNED;
  86. Smart_SuperDetail := False;
  87. SetupSRL; //This here sets up SRL incase you didn't know.
  88.  
  89. DeclarePlayers; //This here is so the script knows that the player info is filled in with.
  90. LoginPlayer; //This here logs in your player you filled in with.
  91.  
  92. repeat
  93. WaitAndHigh;
  94. CrossPlank;
  95. WalkPortal;
  96. AttackPests;
  97. Win;
  98. until AllPlayersInactive;
  99. end.
Add Comment
Please, Sign In to add comment