{4} helper methods
You have already seen the onLoop method in the Script class, but there are also other methods that you can optionally override:
The onStart method will be called when the script starts:
The onExit method will be called when the script exits
The onMessage method is called when a message arrives in the RuneScape chatbox:
The onPaint method provides you with a Graphics2D instance to draw on the screen:
The full list of methods in the Script class can be found here: http://osbot.org/api/org/osbot/rs07/script/Script.html
Last updated