Log in

View Full Version : OpenBankNPC question



blother
04-01-2012, 02:44 PM
I am trying to use this function, but i keep getting an error and it exits.

Error: Out Of Range at line 1664
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]

It highlights


MMouse(Booths[i].X, Booths[i].Y, 3, 3);
if WaitUpTextMulti(UpText, 1000) Then
begin
GetMousePos(Booths[i].X, Booths[i].Y);
Mouse(Booths[i].X, Booths[i].Y, 0, 0, mouse_left);
FFLag(0);
MarkTime(c);
repeat
Wait(100);
until (BankScreen) or (PinScreen) or (TimeFromMark(c) > 10000);
Wait(Random(300));
if (HowManyPlayers > 0) then
if (Players[CurrentPlayer].Pin <> '') then
InPin(Players[CurrentPlayer].Pin);
Result := (BankScreen) or (PinScreen);
if (Result) then Exit;

Should i just use a different bank function, or code it be something in my script that is causing the problem?

Olly
04-01-2012, 03:02 PM
Where are you trying to bank?

blother
04-01-2012, 05:53 PM
Well i want it to be multi-functional, but probably would be at the GE, although i am testing it at varrock west. It opens the bank fine, but the error stops the script from continuing past that. OpenBankFast works fine, but i still want it to work at the GE and i didn't see a location for it.

Home
04-01-2012, 06:25 PM
You don't have DeclarePlayers in your script.

~Home

blother
04-01-2012, 07:44 PM
You don't have DeclarePlayers in your script.

~Home

Oh, i didn't know you needed that to work. I'll try it again since I am almost done and testing it on SMART.