Here2help
2012-05-22 02:21:47
program Here2cook;
{$DEFINE SMART}
{$i srl/srl.simba}
{$i sps/sps.simba}
var
Mypath : TPointArray;
myAreas : TStringArray;
procedure DeclarePlayers;
begin
NumberOfPlayers(1);
CurrentPlayer := 0;
With Players[0] do
begin
Name := ''; //Username
Pass := ''; //Password
Pin := ''; //Bank Pin
Active := True;
end;
end;
Procedure OpeningAndWithdrawing;
begin
OpenBank('ctb', False, True);
If BankScreen Then
Withdraw(0,0,28);
Closebank;
end;
procedure walk2cook;
begin
myPath := [Point(278, 89), Point(278, 89), Point(299, 81)];
sps_walkpath(mypath)
end;
procedure clickthisitem;
begin
mouseitem(1, 1);
end;
function ClickRange: Boolean;
var
MyTPA : TPointArray;
MyPoint : TPoint;
x, y, i : Integer;
begin
FindColorsTolerance(MyTPA, 2830733, MSx1, MSy1, MSx2, MSy2, 10);
for i := 0 to High(MyTPA)do
begin
MyPoint := MyTPA[i]
MMouse (MyPoint.x, MyPoint.y, 3, 3);
if (IsUpTextMultiCustom(['ange', 'Range'])) then
begin
GetMousePos(x, y);
Mouse(x, y, 4, 4, mouse_Left);
Wait(6500);
mousebox(226, 402, 292, 456, mouse_left);
wait(170000)
end;
end;
end;
procedure walk2bank;
begin
inverttpa(mypath);
sps_walkpath(mypath);
end;
begin
Smart_Server := 64
Smart_Members := True;
Smart_Signed := True;
SetupSRL;
SPS_Areas := ['7_7'];
SPS_Setup(RUNESCAPE_SURFACE, ['7_7']);
DeclarePlayers;
repeat
OpeningAndWithdrawing;
walk2cook;
clickthisitem;
ClickRange;
walk2bank;
until(false);
end.
Why wont it do the walking part? It will open the bank, withdraw 28 items, then just stop…. wont even bother to do the walking..
WHY NOT?? Really starting to frustrate me..