smurg
2010-11-08 23:04:38
I'm having trouble interacting with objects that are located on a tile, yet don't take up the whole area. So when it goes to click on the, it might miss it, yet still be in the same tile.
Would I have to refer to color TPA's then inside the tile or can I click on stuff by ID or such that the cursor is actually on the object?
traveler
2010-11-08 23:14:02
what are you trying to click? you might be able to find the object by using an ID.
see if this helps out any:
http://villavu.com/forum/showpost.php?p=742050&postcount=6
smurg
2010-11-08 23:23:17
Branches on the gnome agility course. The objects only have uptext and are clickable for a small portion of the tile space.
That tutorial is all I have been referencing, however, I think the getobjectbyid will return the TRSOBJECT to me. All that has though is the ID, Type, and Tile, it doesn't move the mouse to the uptext or anything.
Heysus
2010-11-08 23:30:49
If it's on the edge of a tile you can find the MS points of the two tiles it borders and then find the midpoint.
smurg
2010-11-08 23:38:01
From: Heysus
If it's on the edge of a tile you can find the MS points of the two tiles it borders and then find the midpoint.
Ok, the branch is in the middle of the tile.
How would I find the MainScreen coords of the sides of the Tile?
ty
smurg
2010-11-09 00:39:45
From: TomTuff
Or just use TileToMSEx
That looks superb, let me try it out.
Thanks
Naike
2010-11-09 06:37:12
Objects like this can be dealt with using TileToMSEx.
You just need the correct input :)
(Note, if you know that the object is static, there is no real point trying to find the object)
TomTuff
2010-11-09 09:58:23
From: Naike
(Note, if you know that the object is static, there is no real point trying to find the object)
Except for multi-tile objects that span many tiles (e.g. rune essence)
JuKKa
2010-11-09 15:18:19
use the following:
TileToMS
FindColorsTolerance in a small box 20x20 pixels
MiddleTPA
then just move mouse there
Bad Boy JH
2010-11-10 05:19:34
From: JuKKa
use the following:
TileToMS
FindColorsTolerance in a small box 20x20 pixels
MiddleTPA
then just move mouse there
This is a good idea, its actually what I used to collect grain, in my (In Progress) flour making script.