Results 1 to 4 of 4

Thread: Difficulty finding and walking through door!

  1. #1
    Join Date
    Sep 2013
    Posts
    73
    Mentioned
    0 Post(s)
    Quoted
    20 Post(s)

    Default Difficulty finding and walking through door!

    Hello, I am trying to make a tab maker for learning experience. However, I have come across a problem. I want to make my character go from the portal location, to the lectern room to the left. (see pics below) However, the door colours are very similar which makes it tough to use object finding methods. Also, I tried using DDTMs for walking but to no avail..


    Any suggestions would be greatly appreciated!



    Simba Code:
    procedure FindDoor;
    var x,y:Integer;
    begin
        makecompass(0 + randomrange( - 1, 1));
        MiniWalkToDoor;
        FindObjCustom(X, Y, ['Open','or Op','n Doo','Door'], [600628,3036262,1908000,3959683], 10)
        MMouse(X, Y, 2, 2);
        clickmouse2(mouse_right);
        chooseoption('Open');
        WriteLn('Opening Door');
        sleep(6000 + random(500));
        WalkToLecturn;
        end;

    rooms.png




    too similar.png

  2. #2
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    http://youtu.be/98wVrr6GwyU
    AutoColorAid might help!

    Also, you need to use some if/thens!
    Also, Mouse moves the mouse and clicks, instead of MMouse and then ClickMouse2.

    Simba Code:
    procedure FindDoor;
    var x,y:Integer;
    begin
        makecompass(0 + randomrange( - 1, 1));
        MiniWalkToDoor;
        if FindObjCustom(X, Y, ['Open','or Op','n Doo','Door'], [600628,3036262,1908000,3959683], 10) then
        Begin
          Mouse(X, Y, 2, 2, False);
          chooseoption('Open');
          WriteLn('Opening Door');
          sleep(6000 + random(500));
        End;
        WalkToLecturn;
    end;

  3. #3
    Join Date
    Sep 2013
    Posts
    73
    Mentioned
    0 Post(s)
    Quoted
    20 Post(s)

    Default

    Quote Originally Posted by YoHoJo View Post
    AutoColorAid might help!

    Also, you need to use some if/thens!
    Also, Mouse moves the mouse and clicks, instead of MMouse and then ClickMouse2.

    Simba Code:
    procedure FindDoor;
    var x,y:Integer;
    begin
        makecompass(0 + randomrange( - 1, 1));
        MiniWalkToDoor;
        if FindObjCustom(X, Y, ['Open','or Op','n Doo','Door'], [600628,3036262,1908000,3959683], 10) then
        Begin
          Mouse(X, Y, 2, 2, False);
          chooseoption('Open');
          WriteLn('Opening Door');
          sleep(6000 + random(500));
        End;
        WalkToLecturn;
    end;
    Thanks, I will give autocoloraid a try! Would you recommend using DDTMs to get to the lectern room? or would you recommend something else?

  4. #4
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    ACA, also learn TPA/ATPAs (a bit advanced, but SUPER powerful).
    Wouldn't recommend DTM/DDTM for any main-screen stuff, maybe DDTMs for a bit of MM walking though.

    Good Luck!

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
  •