SRL Archive - OSR Help

How to open the door?


Troll

2011-04-16 20:04:43

Ok so sorry for all the spam for help today, ive been making my first script which is now just under 500 lines and i only have walking left and banking and well i dont want to know i need sleep :p
So i need sleep but i want to know how to open doors in the strong hold(Like in the pic below). I would love colour but if that cant be 95% + on finding it reflection it is, so ideas and thanks and sorry for the help spam ;)

P.S. lots of the doors have the same id i think
P.S.S. its need to be the right one or it will spam click what it cant get to



So thanks for any help
Sorry for spam
And im of to bed so ill thank you when i wake up :p

TomTuff

2011-04-16 20:37:46

Well first you need to know the tile. Get the tile the door is on by prerecording it, or by using object finding during the script. I think it would be easier to use prerecorded tiles though. Then, use TileToMSEx to generate a point on screen. (TileToMS won't work as the point you want to click isn't centered on the tile)

KingKong

2011-04-16 22:11:32

Look in my prince ali rescue quester, i use ref to get the top left and bottom right of the tile the door is on, then i do a findcolorstolerance using two colors from the door in that area, then mmouse and check uptext

Flight

2011-04-16 22:48:15

Use tiles, not IDs if there's multiple of the same IDs and you know exactly where the object is located that you want to click.

Troll

2011-04-17 02:44:58

Thanks guys your the best