Results 1 to 2 of 2

Thread: Checking if player is active & if bank interface is open

  1. #1
    Join Date
    Dec 2011
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Checking if player is active & if bank interface is open

    I'm working on a essence script and I'm trying to find a good way to see if a player is active. I know there's a way to do it with animations but the player is sometimes blocked by the giant block of essence so the bot can't see the player. Is there a way to do it by xp counter?

    Also, what's the best way to check if an interface is open, particularly the banking interface?

    edit: I'm also wondering what does area size mean in an ddtm. I know it's not related to the title though.
    Last edited by pitoms; 01-02-2012 at 04:46 AM.

  2. #2
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Hmm let's see...

    For mining detection, you could use one of three strategies; pixel-shift, inventory count tracking, XP Counter tracking.

    Here's what I personally use for pixel-shift mining detection:
    Simba Code:
    Function Mining: Boolean;
      var
        PBox: TBox;
      begin
        PBox := IntToBox(245, 130, 285, 195);
        Result := (AveragePixelShift(PBox, 250, 500) > 260);
      end;

    For the bank check, you could simply use "BankScreen". This is a boolean, so use it like this:
    Simba Code:
    if Bankscreen then
      Writeln('The bank screen is present')
    else
      Writeln('The bank is not on-screen');

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


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
  •