PDA

View Full Version : [Fighting] New here, need a little help! :)



Ays
11-02-2016, 07:00 PM
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! :)


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.

acow
11-02-2016, 07:02 PM
every begin needs an end

Ays
11-02-2016, 07:05 PM
Okay, fixed that now but I am getting a closing parenthesis error here: MoveMouse (x, y:integer); I have both opening and closing parenthesis, why isnt it working?

acow
11-02-2016, 07:09 PM
https://villavu.com/forum/showthread.php?t=58935