lare96 Posted April 22, 2014 Share Posted April 22, 2014 (edited) EDIT: I did a bit of searching around and apparently there was a bug with the camera rotations in versions prior to 1.8.3, I'm using 1.8.1 which might explain the issue I'm having. I'm going to update to version 1.8.3 and test out the script again. I'll update the topic with the results. For the antiban portion of my script I'm trying to get it to move the camera randomly. I've accomplished this by using the rotateCameraPitch(int degrees) and the rotateCameraAngle(int degrees) methods. This works sometimes, but other times I encounter a problem where the script will literally just block (stop, pause, etc.) forever when its supposed to rotate the camera! I thought it might've been the values I was entering into the methods so I tried changing the random intervals with no luck. Anyone have similar problems? Any possible fixes for this? The code I'm using to rotate the camera: script.myPlayer().getClient().rotateCameraPitch(MethodProvider.random(30, 50)); and script.myPlayer().getClient().rotateCameraToAngle(MethodProvider.random(50, 200)); Edited April 22, 2014 by lare96 Link to comment Share on other sites More sharing options...
GoldenGates Posted April 22, 2014 Share Posted April 22, 2014 Just a tip, you can shorten that to this: script.client.rotateCameraPitch(MethodProvider.random(30, 50)); Link to comment Share on other sites More sharing options...
lare96 Posted April 28, 2014 Author Share Posted April 28, 2014 turned out to be the client I was using, thanks for the advice pain. feel free to lock/move this or whatever. Link to comment Share on other sites More sharing options...