epsonsalt Posted October 4, 2016 Share Posted October 4, 2016 To start I'm new to java but I"m trying my best to learn as best I can. I'm currently working on a script that when you spawn in the instance you have a different location every time. ( some of you might know what I'm doing ahah ) I haven't been able to find any really suitable walking guides/snippets that fit into the specific needs I have. I need to be able to put in in : 1) Start X 2) Start Y 3) Choose 4 position the map to get me around -35 Y, X doesn't really matter. Current bit of code I was using to get the job done. as I said its crude as I just haven't been able to get anything else to work as I need it to. Any suggestions / code snippets I could use to improve on my talking method Any help/tips/pointers would be appreciated. dialogues.clickContinue(); sleep(1000); while (count < 4){ count++; startY-= 9; log(startY); Area MONSTERS = new Area(startX, startY, startX, startY); getWalking().walk(MONSTERS); sleep(750); Quote Link to comment Share on other sites More sharing options...
Team Cape Posted October 4, 2016 Share Posted October 4, 2016 (edited) getWalking().webWalk(new Position(myPosition().getY() - 35), myPosition().getX(), myPosition().getZ())); is that what you're looking for? this would move you 35 tiles south Edited October 4, 2016 by Imateamcape 1 Quote Link to comment Share on other sites More sharing options...
Solzhenitsyn Posted October 4, 2016 Share Posted October 4, 2016 (edited) Sounds like you are doing MTA mazes. Did I guess right? When I was doing work in instanced areas, you can use the location of fixed objects as anchors. You can also use them to identify which instance you are in. I would use minimap tiles for all navigation, since the webwalker sometimes does strange things in instances. Edited October 4, 2016 by Solzhenitsyn Quote Link to comment Share on other sites More sharing options...
Apaec Posted October 4, 2016 Share Posted October 4, 2016 If we're talking about pest control, find a known object and get its position. Then calculate everything relative to it 2 Quote Link to comment Share on other sites More sharing options...