Package com.epicbot.api.shared.script
Class TreeScript
java.lang.Object
com.epicbot.api.shared.script.Script
com.epicbot.api.shared.script.LoopScript
com.epicbot.api.shared.script.TreeScript
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intloop()The script loop function.voidsetRootTask(TreeTask rootTask) Methods inherited from class com.epicbot.api.shared.script.Script
addTask, antiRandom, getAPIContext, getIterationDelay, getLogger, getManifest, getRandomHandler, getScriptProfile, getScriptType, getSettingsDirectory, getState, getTaskContainer, init, isPaused, isRunning, isStopping, onBreak, onChatMessage, onGameTick, onPaint, onPause, onResume, onStart, onStop, pause, removeTask, removeTask, resume, setIterationDelay, startBreak, stop, submitTask
-
Field Details
-
EMPTY_LEAF
-
-
Constructor Details
-
TreeScript
public TreeScript()
-
-
Method Details
-
loop
protected int loop()The script loop function.By default returns a random number between 50-300. Override this and call super.loop() to override the return value.
- Specified by:
loopin classLoopScript- Returns:
- a positive number of the amount the script should sleep or a negative number to the stop script