Page 2 of 2 FirstFirst 12
Results 26 to 31 of 31

Thread: * function OpenBankNPC: Boolean;

  1. #26
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Watched my script for a bit and sometimes char was still moving while trying to look for bank so it didnt work.

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  2. #27
    Join Date
    May 2007
    Location
    England
    Posts
    4,141
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    Quote Originally Posted by BobboHobbo View Post
    Yeah, I couldnt get it to go perfectly to at Draynor, tried changing colours still goes around the floor before it goes to the banker.
    Is that in your Draynor Chopper? I get the same problem when using your script.
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  3. #28
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default

    Added GJ

    ~RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

  4. #29
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Cool function. I think it's been so long since they used the committed tag they forgot an M .

    ~Sandstorm

  5. #30
    Join Date
    May 2007
    Location
    England
    Posts
    4,141
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    Quote Originally Posted by Rasta Magician View Post
    Added GJ

    ~RM
    But it doesn't work fully in Draynor...Did you change it to work then?
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  6. #31
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Edited it so that it waits until Bank/Pin screen appears. Also now it doesn't wait 2sec in vain if the banker wasn't found (misclick)

    Uses WaitFunc so this would require BankScreenOrPinScreen: Boolean; to be commited as well.

    Works perfectly in Catherby btw Awesome job Home!
    SCAR Code:
    function BankScreenOrPinScreen: Boolean;
    begin
      Result := BankScreen or PinScreen;
    end;
    {*******************************************************************************
    function OpenBankNPC: Boolean;
    By: Home, edited by marpis
    Description: Opens the bank by using Banker.
    *******************************************************************************}

    function OpenBankNPC2: Boolean;
    var
      bx, by, Speed, ColFace, ColGrey, ColBlue: Integer;
    begin
      Speed := GetColorToleranceSpeed;
      ColorToleranceSpeed(2);
      ColFace := 7774419; // Face Color
      ColGrey := 6381925; // Grey Color [ Clothes ]
      ColBlue := 2429979; // Blue Color [ Clothes ]
      if (FindObjThroughMM(bx, by, 'npc', [ColFace, ColBlue, ColGrey], [5, 5, 5], ['anke', 'to B', 'Banker', 'nker'], 2, 2)) then
      begin
        Mouse(bx, by, 0, 0, False);
        if WaitOption('ank B', 350 + Random(50)) then
        begin
          FFlag(0);
          Result := WaitFunc(@BankScreenOrPinScreen, 100, 10000 + Random(2000));
          if Result then
            if (Length(Players) > 0) then
              if (Players[CurrentPlayer].Pin <> '') then
                InPin(Players[CurrentPlayer].Pin);
        end;
      end;
      ColorToleranceSpeed(Speed);
    end;
    Last edited by marpis; 10-06-2009 at 11:25 PM.

Page 2 of 2 FirstFirst 12

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
  •