lilcmp1
2011-12-25 20:21:41
First of all I can't get InvFull to work. With a full inv of crayfish I try
For the real script I took out the If Inv Full Then Dropfish loop at the end because invfull isn't registering for me. With just this in place it clicks the fishing spot (yay!) but when it goes to drop fish it clicks on inventory tab, drops one fish, returns to hover over inventory tab then 3-5 sec later drops next fish. It takes 5 minutes to drop the whole inventory! How do I fix this? P:
program New;
{$i SRL\SRL.scar}
begin
SetupSRL;
If InvFull Then
Writeln('FULL');
end. And never get FULL, the script just keeps running and hovering on inventory tab.For the real script I took out the If Inv Full Then Dropfish loop at the end because invfull isn't registering for me. With just this in place it clicks the fishing spot (yay!) but when it goes to drop fish it clicks on inventory tab, drops one fish, returns to hover over inventory tab then 3-5 sec later drops next fish. It takes 5 minutes to drop the whole inventory! How do I fix this? P:
program New;
{$i SRL\SRL.scar}
Const
SRLStats_Username = '';
SRLStats_Password = '';
BreakEvery = 120;
BreakFor = 5;
Version = '.01';
NumbOfPlayers = 1;
StartPlayer = 0;
Procedure Fishy;
var
SeX, SeY: Integer;
Begin
If FindObjCustom(SeX, SeY, ['Cage', 'Fishing'], [7956571, 9998731,9406078], 10) Then
WriteLn('Found Spot!');
Begin
Case Random(2) Of
0:Mouse(SeX,SeY, 5,5, True);
1: Begin
Mouse(SeX,SeY,4,4,False);
WaitOption('Cage',Randomrange(100,300));
End;
End;
End;
End;
Procedure DropFish;
Var
SeX, SeY, CrayDTM, I: Integer;
Slotbox:TBox;
CrayPattern:TIntegerArray;
Begin
CrayDTM := DTMFromString('mggAAAHicY2NgYFBlZGAwAWIlIFYBYhkg1gLiPiDuBuIWIJ4FxDOAuBWIM63lgboYMbAkA3aAqRKCIQAA5I4FMw==');
CrayPattern:= [1,5,9,13,17,21,25,2,6,10,14,18,22,26,3,7,11,15,19,23,27,4,8,12,16,20,24,28]
For I:=0 To 27 Do
Begin
SlotBox:=InvBox(CrayPattern[I]);
If FindDtm(CrayDTM, SeX,SeY, Slotbox.X1,Slotbox.Y1,Slotbox.X2,Slotbox.Y2) Then
Begin
MouseItem(CrayPattern[I], False);
ChooseOption('Dro');
End;
End;
End;
Begin
SetupSRL;
Fishy;
DropFish;
End.