Roflme
2012-10-13 11:20:55
procedure WalkToTanner;
var
myPath: TPointArray;
begin
MarkTime(WalkTimer);
myPath := [Point(4576, 2929), Point(4566, 2971),
Point(4565, 3025), Point(4584, 3029)];
SPS_WalkPath(myPath);
if TimeFromMark(WalkTimer) > 45000 then
begin
if FindNormalRandoms then
begin
WalkToTanner;
end else
begin
WalkToBank;
WalkToTanner;
end;
end;
end;(someone tell me if I've used end else correctly there; for some reason I can never use it correctly)
FindNormalRandoms will only come back true if it finds a random and solves it right? I don't want it to throw my script off because I'm not using it properly.
The procedure is supposed to walk to the tanner, and if it takes a while (45 seconds) if it finds a random it'll solve it and then resume walking to tanner. If it doesn't find a random then it got stuck somehow and it'll walk back to the bank, and then return back to the tanner.