the henhead
2013-01-29 13:59:08
I'm making a script for the RSPS soulplit, i'm having trouble, when I run this, it doesn't click the maple tree, but it hovers over it. If you can also help me I need to drop or firemake the logs. Thanks
program chopper;
{$I SRL/SRL.SIMBA}
procedure CutTree;
var
x, y: integer;
begin
if FindObjCustom(x, y, ['Chop down', 'Maple tree'], [10344, 26768, 8264], 7) or //This will have the script find an object of your choice
FindObj (x,y, 'Maple tree', 10344,10) or
FindObj (x,y, 'Maple tree', 26768,10) then
repeat
Mouse(x,y,0,0, true);
ChooseOption('Chop down');
wait(1500+random(1000)); // This will make the script wait for a certain time
until (InvFull);
end;
begin
SetupSRL;
MouseSpeed := 10; //Mouse speed
repeat
CutTree
until(false);
end.