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.
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.
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.
:-)
The door will have a different id for open and closed. Use RsBot's Debug to figure out the ids...
Edit: method beat me...
Ok thanks, I will try to do that.
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;
When I try to go to the tile of the door i can't because its like in between two.
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.
:-)
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
I've never heard you say that zasz. Make the tutorial right now pl0x.
.
tut made =P
I do visit every 2-6 months
Wtf don't lie to me. That was too fast. >.>
http://www.villavu.com/forum/showthread.php?t=41763
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
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*)
There are currently 1 users browsing this thread. (0 members and 1 guests)