SRL Archive - OSR Help

Clicking NPC 2 or more tiles big


levunit

2014-12-28 19:26:14

Hey guys, I'm currently having trouble clicking Wolves on white wolf mountain. It's a disaster using color up there, and with reflection, their models are tiny but they somehow span 4 tiles, so it never clicks them. I know how to click an object that is more than 1 tile easily, but NPCs move around and walk next to each other and such, so using static offsets doesn't work. Any tips? Thanks.

Kyle

2014-12-28 21:25:56

From: levunit
Hey guys, I'm currently having trouble clicking Wolves on white wolf mountain. It's a disaster using color up there, and with reflection, their models are tiny but they somehow span 4 tiles, so it never clicks them. I know how to click an object that is more than 1 tile easily, but NPCs move around and walk next to each other and such, so using static offsets doesn't work. Any tips? Thanks.


If you can wait a week or so when I finish the lape version of reflection it will take care of npc's that are more than one tile..

Flight

2014-12-28 22:52:17

Could you post a screenshot of the wolves you're trying to target?

levunit

2014-12-29 20:48:34

[ATTACH=CONFIG]24684[/ATTACH]

There is a pic of the wolf, I can't really seem to find a good color to use…lol

Flight

2014-12-29 23:00:04

From: levunit
[ATTACH=CONFIG]24684[/ATTACH]

There is a pic of the wolf, I can't really seem to find a good color to use…lol


You're right that's tricky, even for dual-color finding. The simplest way is just find a different NPC to train on. If you're still determined then I suggest color counting or pixelshift. Grid off the screen into boxes, get a TBoxArray of the most animated areas and search within those boxes only for some wolf colors, or just statically move the mouse to the middle of each until the uptext is found.

levunit

2014-12-30 00:52:56

From: Flight
You're right that's tricky, even for dual-color finding. The simplest way is just find a different NPC to train on. If you're still determined then I suggest color counting or pixelshift. Grid off the screen into boxes, get a TBoxArray of the most animated areas and search within those boxes only for some wolf colors, or just statically move the mouse to the middle of each until the uptext is found.


I did eventually find a pretty stable way of finding the wolf, using reflection to find the tile it's on and then sorting my ATPA with a kind of unique color, from the tile, but now I have a new issue. I wish to only search for the wolf within a certain zone, so it doesn't click one all the way down the mountain(this only happens once all the other wolves in the immediate area are dead, the area I defined is pretty big). The only way I can think to do this is convert the area where the mouse is on into a Tile, and check if the tile is in the zone. However, I noticed there is no MsToTile function. Would it be possible to look at TileToMs and kind of reverse it for this effect?