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));