SRL Archive - General Botting Help

Need help with clicking lol


Mysickname

2013-03-27 07:44:22

hey guys kinda new to rs 07 scripting, was just wondering how do i get the mouse to click
basically im trying to get to 53 theving in 07 and cba training it legit,

this is my code:
function PickpocketFarmer:boolean;
var X,Y : integer;
begin
P07_MakeCameraAngleHigh;
if (FindObjCustom(X,Y,['Pick'],[611945,5734778,3888978], 2)) then
begin
mouse(x,y,5,5,true);
end;
wait(600);
writeln('Pickpocketed MFarmer');

end;

//main start
begin
MouseSpeed:= 15;
repeat
PickpocketFarmer;
until false;
writeln('hello');
end.


the bot just seems to hover over the Masterfarmer repeatedly, can someone tell me what i'm doing wrong?
any help will be greatly appreciated cheers.

yorkie911

2013-03-27 09:21:30

I am doing a similar thing, trying to implement banking into my script, the mouse hovers over the item but never clicks on it, although i have 4 correct variations of the "uptext" in my findobjcustom

Neznam

2013-03-27 18:37:13

Someone please correct me if i'm wrong, but I'm trying here…


if (FindObjCustom(X,Y,['Pick'],[611945,5734778,3888978], 2)) then
begin
mouse(x,y,5,5,true); [b]//<--true will click right, you need to put false, which will click left[/b]
end;
wait(600);
writeln('Pickpocketed MFarmer');

Sjoe

2013-03-27 18:39:24

From: Neznam
Someone please correct me if i'm wrong, but I'm trying here…


if (FindObjCustom(X,Y,['Pick'],[611945,5734778,3888978], 2)) then
begin
mouse(x,y,5,5,true); [b]//<--true will click right, you need to put false, which will click left[/b]
end;
wait(600);
writeln('Pickpocketed MFarmer');


true = leftclick mate :)

OP:


function PickpocketFarmer:boolean;
var X,Y : integer;
begin
P07_MakeCameraAngleHigh;
if (FindObjCustom(X,Y,['ick'],[611945,5734778,3888978], 2)) then mouse(x,y,5,5,true);
//use 3 letters and try to avoid capital letters.
//no need for a new begin end; since you're only following up with ONE action.
wait(600);
writeln('Pickpocketed MFarmer');
end;

i'd suggest u to change over to SRL-OSR include though instead of using Danny's P07Include.
http://villavu.com/forum/showthread.php?t=99577

Neznam

2013-03-27 18:48:20

Wow I remember reading the script down your first rs tree, which is where I went to look it up and it does say true=left click I just completely read it wrong. Dummy.

My bad. Newb mistake.