Log in

View Full Version : Clicking an something dead center of 4 tiles..



Brandon
03-12-2011, 07:17 AM
http://img846.imageshack.us/i/88370599.png/
http://img846.imageshack.us/i/88370599.png/



Ok now you see the image.. Its my crap half assed drawing of a farming patch.

I tried everything to click dead center with reflection.. it just doesnt work.. because the item is located right in the middle of 4 tiles.


I also experimented with this on waterbirth island where I tested it on the snape grasses... It never clicks the 3rd snape grass from the north.. it always clicks either of the tiles beside it or the water. I got it to click with TP: = TileToMS(Tile,0); and Mouse(x - 50, y + 13, 1, 1, true); BUT I had to be on a specific Tile, at a specific angle to click that.

I've Tried this with opening and closing the doors at trollheim, it doesnt work either.. And Object finding/clicking has huge memory leaks.. So how exactly do I click the thing in the dead center without having to have my character at a specific spot and co-ordinate clicking it.

Would RealTile work?? And does NormalTile not work? I tried updating reflection and it says no updates found. so its updated already.
I was thinking a doing something with a Tbox and have the mouse click from the (min to max) / 2 on all sides.. but thats so inefficient. Unless there is already a function that does this :S

Iamadam
03-12-2011, 08:06 AM
Use reflection TileToMS to get a general idea of where on the screen you want to click, and then use color to find the exact location.

Wanted
03-12-2011, 08:11 AM
Average four tiles cords.

Also, this would be easy with model finding.

I think RRL will support model finding soon.

Zyt3x
03-12-2011, 01:22 PM
(Continuation of IceFire908's post)

P[0] := TileToMM(Tile1, TileHeight);
P[1] := TileToMM(Tile2, TileHeight);
P[2] := TileToMM(Tile3, TileHeight);
P[3] := TileToMM(Tile4, TileHeight);
pAverage.X := ((P[0].X + P[1].X + P[2].X + P[3].X) div 4);
pAverage.Y := ((P[0].Y + P[1].Y + P[2].Y + P[3].Y) div 4);
MMouse(pAverage.X, pAverage.Y, 0, 0, True);

Will click the center of 4 tiles by averaging them