SRL Archive - Help and Support

stop buying??


oliver1205

2008-02-19 06:06:43

now i havent scripted in a while so this may seem like a dumb question. i was using tara's CAST. i got tired of buying buckets and thought hey why not make a simple buckets buyer. it will only take me a hour and a half. 2 days later…

i cant get the damn thing to stop buying buckets. ive tried a counter, but it fails to count. i cant think of how to get it to stop. so now i need your help.( the bolded spots are where it buys the buckets. i took out the counter thats why its not in there.)

procedure FindClerk;
begin
MouseSpeed := 10;
if (not (LoggedIn)) then Exit;
if (FindObjTPA(x, y, ClerkColor, 5, -1, 209, 271, 5, 'hop')) then
begin
Mouse(x, y, 0, 0, false);
if ChooseOption('rade') then
[B] BuyColor(BC,27);[/B]
end else
if (FindObjCustom(x, y, ['eep', 'ssi'], [2046549, 2900290], 10)) then
begin
Mouse(x, y, 0, 0, false);
if ChooseOption('rade') then
[B]BuyColor(BC,27);[/B]
end else
LogOut;
TerminateScript;
end;

BobboHobbo

2008-02-19 06:14:24

if invcount = 28 then
result := true;

or

if invcount = 28 then
exit;

Why making it so complicated for youself?

PriSoner

2008-02-19 06:18:34

or
if InvFull then exit;

bear in mind that unless you have applied the temporary fix to SRL 13 problems like this can persist regardless of your scripting. all will be fixed in SRL 14.

oliver1205

2008-02-19 08:42:34

From: BobboHobbo
if invcount = 28 then
result := true;

or

if invcount = 28 then
exit;

Why making it so complicated for youself?


opps. so simple…

i havent scripted in a while and forgot some basic srl stuff :p.

thansk to both of you ill try this now