Results 1 to 13 of 13

Thread: Quick Reflection Question

  1. #1
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Quick Reflection Question

    I have never used Reflection before so I'm REALLY noob at it.

    How would one go about checking if a door is open/closed?

    The door I am trying to check is the door to the room where the spinner is in Lumbridge castle by the way.

  2. #2
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    Doors have different IDs when they're open/closed. Pick one of the two tiles the door is on to check and then check the ID on that tile against the known closed or open one (which you can figure out with GetObjectAt or using RSBot's debug system.
    :-)

  3. #3
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    The door will have a different id for open and closed. Use RsBot's Debug to figure out the ids...

    Edit: method beat me...

  4. #4
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok thanks, I will try to do that .

  5. #5
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    Here is how I do it in my tut runner
    SCAR Code:
    function ChurchDoor : boolean;
    var Open, Closed : TPoint; P: TPoint; I: Integer;
    begin
      I := 0;
      Result := FindObjectEx(Open, 37003, 20)
      repeat
        if FindObjectEx(Closed, 37002, 4) then
        begin
          P := TileToMS(Closed, 20);
          Mouse(P.x, P.y, 1, 1, False);
          Wait(500+random(500));
          ChooseOption('Open');
          FFlag(0);
          Wait(1000+Random(300));
        end;
        Inc(I);
      until Result or (I >= 15);
      Writeln('Church Door Open!');
    end;

  6. #6
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    When I try to go to the tile of the door i can't because its like in between two.

  7. #7
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    Adjust your camera to point towards the door (lowest angle, facing towards it for example) and pick a tile just past it to see if you can click it then.
    :-)

  8. #8
    Join Date
    Oct 2007
    Location
    http://ushort.us/oqmd65
    Posts
    2,605
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Or as I have said countless times, use offsets.

    You know what, ima make a tut on the subject!
    I do visit every 2-6 months

  9. #9
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I've never heard you say that zasz . Make the tutorial right now pl0x. .

  10. #10
    Join Date
    Oct 2007
    Location
    http://ushort.us/oqmd65
    Posts
    2,605
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    tut made =P
    I do visit every 2-6 months

  11. #11
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Wtf don't lie to me. That was too fast. >.>

    http://www.villavu.com/forum/showthread.php?t=41763

  12. #12
    Join Date
    Oct 2007
    Location
    http://ushort.us/oqmd65
    Posts
    2,605
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    I started about 15 minutes ago... when i was talking about countless times i said it i opened up a new page.
    I do visit every 2-6 months

  13. #13
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    Offsets are not always accurate... it works the same way as using the tile behind the door, because you have to have your camera a certain angle or it will miss.(ex. do is sideways on the screen and it missclicks it*even with offsets*)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Quick question
    By TheSantaMan in forum OSR Help
    Replies: 3
    Last Post: 02-07-2009, 07:11 AM
  2. Just a quick question? Did I say quick?
    By SeanJohn in forum OSR Help
    Replies: 3
    Last Post: 01-28-2009, 12:03 AM
  3. Quick Question.
    By Hey321 in forum OSR Help
    Replies: 4
    Last Post: 12-22-2006, 12:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •