Results 1 to 5 of 5

Thread: OpenBankNPC question

  1. #1
    Join Date
    Sep 2010
    Posts
    305
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default OpenBankNPC question

    I am trying to use this function, but i keep getting an error and it exits.

    Progress Report:
    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

    Code:
    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?

  2. #2
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    Where are you trying to bank?

  3. #3
    Join Date
    Sep 2010
    Posts
    305
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    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.

  4. #4
    Join Date
    Feb 2006
    Posts
    3,044
    Mentioned
    4 Post(s)
    Quoted
    21 Post(s)

    Default

    You don't have DeclarePlayers in your script.

    ~Home

  5. #5
    Join Date
    Sep 2010
    Posts
    305
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by Home View Post
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •