I've been watching YoHoJo's tutorials and read the newbie help thread and have started to attempt some scripting of my own, what I'm trying to do is to make a script that will click at a set position every minute or so to restore my hp and prayer, and also be able to right click - attack revenant dragons. I'm currently getting a compiling error (The script is far from done, just trying to understand why I'm getting an error before moving on. Also, how do I figure out how to set up simba for use with an rsps? I have only been able to find setups for RS3 and OSRS. Appreciate any help! Thank you!
Code:
program AutoRevs;
procedure HealPray;
Begin
MoveMouse(733, 180);
ClickMouse(733, 180);
End;
procedure AttackRevs;
var
x, y:integer;
Begin
if FindColorSpiralTolerance(x,y, 8353141, 117, 117, 127, 20) or
FindColorSpiralTolerance(x,y, 11122620, 188, 183, 169, 20)or
FindColorSpiralTolerance(x,y, 5127485, 61, 61, 78, 20) or
FindColorSpiralTolerance(x,y, 6183000, 88, 88, 94, 20) Then
begin
MoveMouse (x,y:integer);
ClickMouse (x,y:integer, 2);
If FindColorSpiralTolerance (x, y,
Begin
HealPray;
AttackRevs;
end.