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?
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?