Results 1 to 8 of 8

Thread: Door opening.

  1. #1
    Join Date
    Aug 2009
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default Door opening.

    Almost complete with my port phast ore to cball smither, but there's only one issue. There is a door on the building with the furnace in it, and my script will run fine as long as the door stays open. I was wondering if someone could please let em know the most efficient way to detect if a door is open or not so i can open it. Please help. thank you.

  2. #2
    Join Date
    Nov 2011
    Location
    United States
    Posts
    815
    Mentioned
    6 Post(s)
    Quoted
    284 Post(s)

    Default

    Use DTM's Or ATPA's to check for the Uptext if it is open /closed before you enter the building. but yes doors are very annoying and there isnt really a perfect solution.. One of those things that have always been so simple yet annoyed me so much.

  3. #3
    Join Date
    Aug 2009
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    Ok cool, thank you i think i have it figured out now. One more question though, does anyone know why simba constantly cannot find mt DTM's? They will work just fine until i hop worlds or something, then it messes up. Any suggestions?

    I am finding the furnace DTM

  4. #4
    Join Date
    Mar 2013
    Posts
    224
    Mentioned
    1 Post(s)
    Quoted
    127 Post(s)

    Default

    Quote Originally Posted by ralfpker View Post
    Ok cool, thank you i think i have it figured out now. One more question though, does anyone know why simba constantly cannot find mt DTM's? They will work just fine until i hop worlds or something, then it messes up. Any suggestions?

    I am finding the furnace DTM
    Add a higher tolerance, the colors change each time you're logged in/out.

  5. #5
    Join Date
    Aug 2009
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    So would there be any way to add a tolerance to mt DTM? Or a way to have it grab the DTM each time the game loads possibly? Because when i use other people's scripts with DTM's in them, regardless of what world i am in they will run every time.

  6. #6
    Join Date
    Aug 2009
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    Code:
    procedure smelt;
    begin
      writeln('Starting Smelting');
        repeat
        begin
      Compass;
      writeln('Beggining Trip to Furnace');
      repeat
        sleep(50 + Random(25));
      until FindDTM(DTMFURNACE, x, y, P07_MMX1, P07_MMY1, P07_MMX2, P07_MMY2);
      writeln('Moving to Furnace');
      Mouse(x, y, 0, 3, True);
      repeat
        sleep(50);
      until (not P07_FindMMFlag);
      writeln('Arrival At Furnace');
    end;
    Thats my function for going to the furnace, where would i add the tolerance there?

  7. #7
    Join Date
    Mar 2013
    Posts
    224
    Mentioned
    1 Post(s)
    Quoted
    127 Post(s)

    Default

    Quote Originally Posted by ralfpker View Post
    Code:
    procedure smelt;
    begin
      writeln('Starting Smelting');
        repeat
        begin
      Compass;
      writeln('Beggining Trip to Furnace');
      repeat
        sleep(50 + Random(25));
      until FindDTM(DTMFURNACE, x, y, P07_MMX1, P07_MMY1, P07_MMX2, P07_MMY2);
      writeln('Moving to Furnace');
      Mouse(x, y, 0, 3, True);
      repeat
        sleep(50);
      until (not P07_FindMMFlag);
      writeln('Arrival At Furnace');
    end;
    Thats my function for going to the furnace, where would i add the tolerance there?
    The first time you grab the dtm, add tolerance for the colored dots in the DTM editor. You'll see a Tolerance box on the right. (Don't change tolerance for black ones.)

  8. #8
    Join Date
    Jul 2011
    Location
    /home/litoris
    Posts
    2,226
    Mentioned
    0 Post(s)
    Quoted
    159 Post(s)

    Default

    Use finddtmsrotatedalternating or whatever it is, that will let you search for the DTM in many angles.
    Make a DTM of a very small but unique region on the door.(eg. if the door has stripes, take two points from the stripes and two points from the paler colored region)
    Load the result of the function above to a TPA, then split it into an ATPA, then sort them by size, and check each section for door uptext.
    Miner & Urn Crafter & 07 Chicken Killer
    SPS BlindWalk Tutorial

    Working on: Nothing

    teacher in every art, brought the fire that hath proved to mortals a means to mighty ends

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
  •