SRL Archive - Reflection Help

Object finding..


DeSnob

2010-06-06 17:33:22

Hey guys, i'm new to reflection so I'm confused on how to find objects and then click on them. Since there aren't any updated tuts, the only place i can go for help is here. Can somebody explain to me, how I would do so?

bbri06

2010-06-06 18:10:45

Use one of the GetObject type commands and then something like this


Obj := GetObjectByID(ID, ObjType, MaxDist);
P := TileToMS(Obj.Tile);//p is a TPoint
Mouse(p.x, p.y, 0, 0);

DeSnob

2010-06-06 18:42:22

From: bbri06
Use one of the GetObject type commands and then something like this


Obj := GetObjectByID(ID, ObjType, MaxDist);
P := TileToMS(Obj.Tile);//p is a TPoint
Mouse(p.x, p.y, 0, 0);


Thanks, i knew about those functions since i looked into includes, i just didn't know how to make it click! TYVM