Results 1 to 3 of 3

Thread: OpenBankNPC

  1. #1
    Join Date
    Jun 2006
    Posts
    694
    Mentioned
    0 Post(s)
    Quoted
    31 Post(s)

    Default OpenBankNPC

    Wasn't getting good readings in some spots.

    So I added the Banker's Ginger hair.

    Tested.

    Simba Code:
    function OpenBankNPC: Boolean;
    var
      bx, by, Speed, ColFace, ColGrey, ColBlue, ColHair: Integer;
    begin
      Result := (LoggedIn) and (BankScreen or PinScreen);
      if (Result) then exit;

      Speed := GetColorToleranceSpeed;
      ColorToleranceSpeed(2);
      ColFace := 7774419; // Face Color
      ColGrey := 6381925; // Grey Color [ Clothes ]
      ColBlue := 2429979; // Blue Color [ Clothes ]
      ColHair := 1398163; // Orange Hair [wyn10]
      if (FindObjThroughMM(bx, by, 'npc', [ColHair, ColFace, ColBlue, ColGrey], [5, 5, 5, 5],
        ['anke', 'to B', 'Banker', 'nker'], 2, 2)) then
      begin
        Mouse(bx, by, 0, 0, False);
        WaitOptionMulti(['ank B', 'ank', 'nker'], 1000);
        FFlag(0);
        Wait(2000 + Random(500));
        if (Length(Players) > 0) then
          if ((PinScreen) and (Players[CurrentPlayer].Pin <> '')) then
            InPin(Players[CurrentPlayer].Pin);
        Result := (BankScreen) or (PinScreen);
      end;
      ColorToleranceSpeed(Speed);
    end;


    Verification...(Used a 24 bitmap)


    Last edited by Wyn; 11-25-2011 at 01:28 PM.

  2. #2
    Join Date
    Jun 2006
    Posts
    694
    Mentioned
    0 Post(s)
    Quoted
    31 Post(s)

    Default

    Hmm...ya....

    :/

  3. #3
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Committed, sorry it took so long.

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
  •