T0ffee Posted August 28, 2020 Share Posted August 28, 2020 Hello, I've been having some trouble getting my script to hover over and click a specific tile near the player (in this case in the Al-kharid mine). new Position(3299, 3273, 0).hover(getBot()); getMouse().click(false); It seems neither of these methods work, even when directly next to the tile. I've cobbled this solution together from a few old threads but perhaps the API has changed? I'm using mirror mode if that makes any difference. Any help would be appreciated. Quote Link to comment Share on other sites More sharing options...
Explv Posted August 28, 2020 Share Posted August 28, 2020 4 hours ago, T0ffee said: Hello, I've been having some trouble getting my script to hover over and click a specific tile near the player (in this case in the Al-kharid mine). new Position(3299, 3273, 0).hover(getBot()); getMouse().click(false); It seems neither of these methods work, even when directly next to the tile. I've cobbled this solution together from a few old threads but perhaps the API has changed? I'm using mirror mode if that makes any difference. Any help would be appreciated. Hello old bean Are you trying to just walk to said tile? If so you can do it with a WalkingEvent: WalkingEvent walkingEvent = new WalkingEvent(new Position(3299, 3273, 0)); walkingEvent.setMinDistanceThreshold(0); execute(walkingEvent); Could you please also elaborate on what you mean by "neither of these methods work"? Does it not hover the tile? Does it hover but not click? 1 Quote Link to comment Share on other sites More sharing options...
T0ffee Posted August 28, 2020 Author Share Posted August 28, 2020 4 hours ago, Explv said: Hello old bean Are you trying to just walk to said tile? If so you can do it with a WalkingEvent: WalkingEvent walkingEvent = new WalkingEvent(new Position(3299, 3273, 0)); walkingEvent.setMinDistanceThreshold(0); execute(walkingEvent); Could you please also elaborate on what you mean by "neither of these methods work"? Does it not hover the tile? Does it hover but not click? Rather embarrassingly my original snippet worked perfectly once I put it inside a skeleton script. My original intention was to interact with a rather obscure NPC for whom the .interact() method doesn't work (but I could extract its position). Many thanks for your reply, and for your work more generally within the OSBot community. 1 Quote Link to comment Share on other sites More sharing options...
Explv Posted August 28, 2020 Share Posted August 28, 2020 2 hours ago, T0ffee said: Rather embarrassingly my original snippet worked perfectly once I put it inside a skeleton script. My original intention was to interact with a rather obscure NPC for whom the .interact() method doesn't work (but I could extract its position). Many thanks for your reply, and for your work more generally within the OSBot community. Glad you got it working Quote Link to comment Share on other sites More sharing options...