SRL Archive - Help

Omgggggggg


shnk

2011-12-30 01:41:58

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]

shnk

2011-12-30 02:40:44

anyone?

YoHoJo

2011-12-30 02:44:42

Error: Exception: Out of memory at line 24
Opens Flag.Simba
and line 24 is
if FindBitmapToleranceIn(bmpFlag, X, Y, MMX1, MMY1, MMX2, MMY2, 60) then ?

Odd One hmm will look into

Edit:
No clue that is so weird! Does it always happen every time your banking procedure is called?

Edit:
Try looking up and using OpenBank instead of FindBank

Edit:
You use both I see…
FindBank clicks the bank on minimap AND opens it up, so you only need to use one or the other.
Try clicking on bank on minimap/getting near the bank yourself, and then just using OpenBank.

shnk

2011-12-30 02:47:23

no actually i just restarted my computer and it seems to be working fine now o.O

legoace

2011-12-30 21:24:02

Yea I sometimes get errors like this. There are occasionally weird access violations when Simba starts up and tries to load SRL or Smart.

I always fix it by closing Simba/SMART, making sure it's really closed by killing the process in Task Manager, and restarting.