• Log in or sign up for an account here: https://www.sythe.org/login

How Do I?

Joined
Feb 23, 2008
Sythe Gold
0
Messages
257
I play a game called RF Online


I wanna do the following

Send the key F4
Click On my character
Wait 90 seconds
Loop

On a different program it would be

PHP:
Set activewindow RF Online
Delay 5 Sec

Key {F4}
Delay 90 sec
Restart
 
I think it would be similar to
program new;
{.include srl/srl.scar}
begin
repeat
(WhateverthefunctiontohittheFKeyIs(4))
Mouse(charactercoordinatesx, charactercoordinatesy, 0, 0, True);
wait(90000);
until false;
end.
substitute charactercoordinates with the coordinates...or you could set them as constants/whatever. Do what you want, thats the code.
 
I guess just change all this into a procedure:

Code:
program New;

var
x,y: integer;

begin
repeat
KeyDown(115);  //The f4 key
sleep(65);
KeyUp(115);
sleep(65);
if(FindColor(x,y,ColorCode,0,0,1000,1000)) then  //Replace ColorCode with the colorcode
//of a unique color found on your character
 begin
 MoveMouseSmoothEx(x,y+random(0),20,45,40,25,20); //Moves your mouse to the color
 ClickMouse(x,y,true);  //Clicks (left-click)
 Wait(90000);   //Your 90 second wait :)
 end;
until(IsFKeyDown(8));  //Will continue looping until you press the F8 key
end.

It looks much simpler when you paste into SCAR lol
 
duelarena.gg
Back
Top