baseball_260 Posted December 17, 2015 Share Posted December 17, 2015 If i use the walk method and pass it an area, will it randomize the path/clicks or do i have to do this on my own? Quote Link to comment Share on other sites More sharing options...
Explv Posted December 17, 2015 Share Posted December 17, 2015 If i use the walk method and pass it an area, will it randomize the path/clicks or do i have to do this on my own? Area area = new Area(0, 0, 1, 1); getLocalWalker().walk(area.getRandomPosition()); Quote Link to comment Share on other sites More sharing options...
baseball_260 Posted December 17, 2015 Author Share Posted December 17, 2015 Area area = new Area(0, 0, 1, 1); getLocalWalker().walk(area.getRandomPosition()); Exactly what I need! thank you! What about interacting with objects ect, is there a way to make sure i don't always click the same spot. RS2Object portal = objects.getClosest("portal"); portal.interact("Teleporte"); How can i make this click the portal at random locations? Quote Link to comment Share on other sites More sharing options...
Explv Posted December 17, 2015 Share Posted December 17, 2015 Exactly what I need! thank you! What about interacting with objects ect, is there a way to make sure i don't always click the same spot. RS2Object portal = objects.getClosest("portal"); portal.interact("Teleporte"); How can i make this click the portal at random locations? It should be fairly random as it is? Quote Link to comment Share on other sites More sharing options...
baseball_260 Posted December 17, 2015 Author Share Posted December 17, 2015 It should be fairly random as it is? I don't know..Im trying to make this thing as random as possible. Im pretty new to the scripting so maybe im being a little too cautious. Quote Link to comment Share on other sites More sharing options...
atoo Posted December 17, 2015 Share Posted December 17, 2015 I don't know..Im trying to make this thing as random as possible. Im pretty new to the scripting so maybe im being a little too cautious. i haven't added any randomizing to my wc bot, and it doesnt click the same spot all the time on the trees. Quote Link to comment Share on other sites More sharing options...
Explv Posted December 17, 2015 Share Posted December 17, 2015 I don't know..Im trying to make this thing as random as possible. Im pretty new to the scripting so maybe im being a little too cautious. Well interactions are pretty random by themselves. Also going back to path walking, if you call walk() like this: Position[] path = { new Position(0, 1, 0), new Position(0, 2, 0), new Position(0, 3, 0) }; getLocalWalker().walkPath(path); It will walk to each position in the array, but randomise each position to a distance of 1 tile. So most things are already randomised for you. 1 Quote Link to comment Share on other sites More sharing options...
Apaec Posted December 17, 2015 Share Posted December 17, 2015 if you're trying to reduce the ban rate, making it click different tiles on the way through a path won't do a thing! Quote Link to comment Share on other sites More sharing options...
baseball_260 Posted December 17, 2015 Author Share Posted December 17, 2015 if you're trying to reduce the ban rate, making it click different tiles on the way through a path won't do a thing! why not? and what would? Quote Link to comment Share on other sites More sharing options...
Apaec Posted December 17, 2015 Share Posted December 17, 2015 why not? and what would? Not much you can do to be honest. Best you can do is antiBan.rollAntiban(). Quote Link to comment Share on other sites More sharing options...
baseball_260 Posted December 17, 2015 Author Share Posted December 17, 2015 Not much you can do to be honest. Best you can do is antiBan.rollAntiban(). I cant find that method in the api.. Quote Link to comment Share on other sites More sharing options...
baseball_260 Posted December 28, 2015 Author Share Posted December 28, 2015 Area area = new Area(0, 0, 1, 1); getLocalWalker().walk(area.getRandomPosition()); So it turns out this doesn't work after all...I'm not certain but i think it will only work if every tile in that area is walkable... i.e there is not object on the floor that stop you from standing on 1 spot. For me this failed 1/2 times and walk() would return false. By simply using getLocalWalker().walk(area); the bot always walks to the correct area and walk never returns false... Also the position it clicks is randomized so no need to worry. It seems i was complicating thing by trying to randomize more... Live and learn people! 1 Quote Link to comment Share on other sites More sharing options...