SRL Archive - Reflection Help

How to determine door closed or open?


Rich

2010-12-15 13:17:42

Title says it. I've read Cstrike's tutorial and used the script which gets the object ID and tile, but the door isn't showing up in the debug box. For anyone wondering, it's the door into Duke Horacio's room in Lumbridge castle. Also, after determining if it's open or shut, what reflection code would I run to open it if it was shut? Same thing for the stairs there. What code to run to click on the stairs?

Thanks,
Richard.

mormonman

2010-12-15 13:21:29

Closed ID - 36844
Open ID - 36845

Then determine offsets for tiletomsex with trial/error tests.

Rich

2010-12-15 14:31:32

I had a look through Objects.simba and found R_OpenDoor. I used the closed door ID you gave me, but it outputs
[Reflection] Door not found, returning false
when it's called. Is the ID wrong, or is it something to do with R_OpenDoor?

KillerTHC

2010-12-15 21:44:45

I've noticed that reflection fails to find the door if you are standing right beside it. Check this thread out once I get an answer, it should help. Also notice that R_OpenDoor will try to open the first door with the ID, you need to make your own function if there are multiple doors around with the same ID.

Rich

2010-12-16 11:00:30

From: KillerTHC
I've noticed that reflection fails to find the door if you are standing right beside it. Check this thread out once I get an answer, it should help. Also notice that R_OpenDoor will try to open the first door with the ID, you need to make your own function if there are multiple doors around with the same ID.
Thanks. I'll make my script move the player one tile away. Thanks for the heads up.