Log in

View Full Version : Object clicking help



Noob King
05-30-2012, 07:02 AM
I have just started scripting, so I decided to make a simple script for firemaking. I don't have much so far, but already it goes haywire. All it is supposed to do is left click the noted maple logs and then stop.

program test;
{$i srl/srl.simba}
{$i sps/sps.simba}


Procedure MapleLogs;
var
x, y: integer;
begin
if FindObj(x, y, 'Maple logs', 7248040, 6)then
Mouse(x, y, 2, 2, true);
end;

begin
MapleLogs;
end.

It won't click on the maple logs, it just makes my mouse move to the left of the rs window and has a spaz attack in the black area. Can some one tell me what I did wrong?

Runaway
05-30-2012, 07:07 AM
You've forgotten to include SetupSRL!


begin
SetupSRL;
MapleLogs;
end.

Noob King
05-30-2012, 07:08 AM
You've forgotten to include SetupSRL!


begin
SetupSRL;
MapleLogs;
end.


Silly me. Thankyou.