shnk
12-30-2011, 06:41 AM
idk whats up with the banking... heres my code
program test;
//{$DEFINE SMART}
{$i SRL\SRL.scar}
const
//World = 0; //Leave it 0 for a random world
//Members = false; //F2P = false, P2P = true
BreakEvery = 60; //Break every 'x' minutes. Default is 60.
BreakFor = 5; //Break for 'x' minutes. Default is 5.
Version = '1.0';
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name :=''; //RuneScape username
Players[0].Pass :=''; //RuneScape password
Players[0].Nick :='';
Players[0].Active:=True;
end;
function Banking: boolean;
begin
if (InvEmpty) then
begin
FindBank ('fwb');
OpenBank ('fwb', true, true);
end;
end;
begin
SetUpSRL;
//ActivateClient;
DeclarePlayers;
//SetAngle(False);
//LoginPlayer;
Banking;
end.
when i run it, it opens a new tab in simba named "flag" and highlights this
if FindBitmapToleranceIn(bmpFlag, X, Y, MMX1, MMY1, MMX2, MMY2, 60) then
and this is the error it gives
Error: Exception: Out of memory at line 24
The following DTMs were not freed: [SRL - Lamp bitmap, 1, 2]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap]
program test;
//{$DEFINE SMART}
{$i SRL\SRL.scar}
const
//World = 0; //Leave it 0 for a random world
//Members = false; //F2P = false, P2P = true
BreakEvery = 60; //Break every 'x' minutes. Default is 60.
BreakFor = 5; //Break for 'x' minutes. Default is 5.
Version = '1.0';
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name :=''; //RuneScape username
Players[0].Pass :=''; //RuneScape password
Players[0].Nick :='';
Players[0].Active:=True;
end;
function Banking: boolean;
begin
if (InvEmpty) then
begin
FindBank ('fwb');
OpenBank ('fwb', true, true);
end;
end;
begin
SetUpSRL;
//ActivateClient;
DeclarePlayers;
//SetAngle(False);
//LoginPlayer;
Banking;
end.
when i run it, it opens a new tab in simba named "flag" and highlights this
if FindBitmapToleranceIn(bmpFlag, X, Y, MMX1, MMY1, MMX2, MMY2, 60) then
and this is the error it gives
Error: Exception: Out of memory at line 24
The following DTMs were not freed: [SRL - Lamp bitmap, 1, 2]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap]