Class ScriptManager

  • public class ScriptManager
    extends java.lang.Object
    • Field Detail

      • args

        public java.lang.String[] args
    • Method Detail

      • getScriptManager

        public static ScriptManager getScriptManager()
      • startFromSchedule

        public AbstractScript startFromSchedule​(AbstractScript script,
                                                java.util.Map<java.lang.reflect.Field,​java.lang.Object> fields)
      • getLastRanScript

        public org.dreambot.internal.scripts.ScriptWrapper getLastRanScript()
      • reloadLastScript

        public void reloadLastScript()
      • start

        public void start​(org.dreambot.internal.scripts.ScriptWrapper scriptWrapper)
      • start

        public void start​(java.lang.String scriptName,
                          java.lang.String... args)
      • start

        public void start​(java.lang.Class<? extends AbstractScript> scriptClass)
      • addListener

        public void addListener​(java.util.EventListener listener)
      • pause

        public void pause()
      • resume

        public void resume()
      • stop

        public void stop()
      • isPaused

        public boolean isPaused()
      • isRunning

        public boolean isRunning()
      • getAccount

        public org.dreambot.core.Account getAccount()
      • setAccount

        public void setAccount​(java.lang.String nickname)
      • getAccountNickname

        public java.lang.String getAccountNickname()
        Gets the currently selected account nickname from the Dreambot account manager
        account nickname if an account is selected, otherwise null
      • _setAccount

        public void _setAccount​(org.dreambot.core.Account account)
      • isAccountSet

        public boolean isAccountSet()
      • getIdleMouseThread

        public java.lang.Thread getIdleMouseThread()
      • getIdleCameraThread

        public java.lang.Thread getIdleCameraThread()
      • getLock

        public java.lang.Object getLock()
      • getArgs

        public java.lang.String[] getArgs()
      • resetArgs

        public void resetArgs()
      • hasPremiumScript

        public boolean hasPremiumScript​(int productId)
        Checks if the current user has access to a premium script
        productId - The product ID of the script in the store, you can find it by looking in the URL of the product before the name
        true if the user has an active trial or if they have an active purchase of the script
      • clearReloadedScript

        public void clearReloadedScript()