SRL Archive - Help and Support

Inv Items Change Colors?


shaunthasheep

2007-05-15 20:08:49

do colors in the inv of items change colors?
do colors in the inv of items change when the bank is open?

Im trying to find an item when i have bank open, but the script doesn't seem to find it? and its not a BankScreen problem.

shaunthasheep

2007-05-15 20:48:33

I Am using DTMS… =p

Cheesehunk

2007-05-15 21:38:53

From: The_Rs_Monkey
I Am using DTMS… =p

Maybe your calling FindNormalRandoms which calls FindBox which calls GameTab(4) which cannot be called when the banks open.

shaunthasheep

2007-05-15 21:55:24

procedure DoBankStuff;
var
Item : TPoint;
begin
if FindDTM(FullBucket, x, y, MIX1, MIY1, MIX2, MIY2) then
begin
Mouse(x, y, 0, 0, False);
Wait(100);
ClickOption('mpty', 2);
end;

if OpenMyBank then
Writeln('FoudnBank');

if not BankScreen then Exit;
Writeln('Starting');
Item := ItemCoords(1);

if FindDTM(EmptyBucket, x, y, Item.x - 10, Item.y - 15, Item.x + 10, Item.y + 15) then
Deposit(2, 28, 2)
else
Deposit(1, 28, 2);

Deposit(2, 28, 2); //Make Sure It Gets All

Wait(1000);

if not FindDTM(EmptyBucket, x, y, MIX1, MIY1, MIX2, MIY2) then
Withdraw(1, 1, 1);
Writeln('Done Withdrawing');
Wait(1000);

i := 0;
repeat
Writeln('Finding Clay');
if FindDTM(Clay, x, y, MSX1, MSY2, MSX2, MSY2) then
begin
Writeln('Found Clay!');
Mouse(x, y, 0, 0, False);
if ClickOption('All', 1) then
Break;
end;
i := i + 1;
until(i > 2)

if i > 2 then
begin
Players[CurrentPlayer].Loc := 'No Clay!?!?!';
Exit;
end;

Writeln('CLosing Bank');
CloseBank;
Wait(2000);

Writeln(Players[CurrentPlayer].Loc);
end;
it banks the empty bucket and doesn't withdraw any clay..
maybe its my DTMS, or my halfbaked-5minutemaded banking procedure above?
and yes im making a sexy flawless (if i can get banking flawless) clay softener =p

NinjaTerrorist

2007-05-15 22:53:02

Try setting the tolerance higher in the DTM editor, see if that works.

me_ntal

2007-05-15 23:24:24

did u set the first points tolerance?

shaunthasheep

2007-05-16 08:11:39

i found out why it was depositting the bucket, thought it was because it couldn't find it.. its because i left out an "not" lol…
and i have no idea why it wasn't finding the clay, but i got it to work now.
anyway thanks for anyone who tried to help.