Originally Posted by
badusername1234
Are you trying to find a path by raycasting..? Don't do that, that's not what it's for
You need to use one of the polygon finding methods to find the polygon you're standing on and the polygon the vendor is on, then findPath will get the polygons that your path goes through. Then findStraightPath will turn that into your 'actual' path to follow.
Whether or not you're using a pixel bot is irrelevant as long as you have all three of your position coordinates - it's extremely difficult to get them accurately by just looking at the screen, though