SRL Archive - OSR Help

Beginner Scripting help! Just started today!


jstemper

2013-06-30 22:30:47

Alright, so I am very new to this scripting stuff and just started today. I used Griff's guide on how to script my first tree, and this is where I am at right now. The mouse keeps hovering over the yew tree, without actually clicking it. Hopefully I didn't screw this up too bad. NOTE: I am using this on a private server, any help with clicking the tree and banking would be appreciated, cheers



program New;
{$i srl/srl.simba}


procedure ChopDown;
var x, y: integer;
begin
repeat
if FindObj(x, y, 'chop', 2247232, 15) then
Mouse(x, y, 0, 0, false);
ClickMouse(x, y, 1);
repeat
wait(1200+random(250));
Until not IsUpText('ew') or (InvFull);
until(InvFull);
end;

begin
SetUpSRL;
Repeat;
ChopDown;
Until(False);
end.

Ian

2013-06-30 22:40:20

Because you are using this on a private server, the uptext is likely to be different so FindObj and other things that use uptext will not work unless you create a font to use with them that works for your private server. Here's a tutorial that shows you how to do that: http://villavu.com/forum/showthread.php?t=60451

jstemper

2013-06-30 22:42:16

Thanks for the information, and the link. Too bad everything in the link looks like latin to me…..