Class Script

  • Direct Known Subclasses:
    TaskScript

    public abstract class Script
    extends Object
    • Constructor Detail

      • Script

        public Script()
    • Method Detail

      • getDataDirectory

        public static Path getDataDirectory()
      • isInterruptable

        public boolean isInterruptable​(ScriptMeta meta)
        Returns:
        true if a DynamicPassive script can take over the script. For example birdhouses or farm runs
      • isSafeToBreak

        public boolean isSafeToBreak()
        Returns:
        true if the player is in a safe state to break. The default behaviour of this method checks if the player is in combat, in an instance or has the bank open.
      • isPassiveForceEnabled

        public boolean isPassiveForceEnabled​(ScriptMeta meta)
        Returns:
        true if a DynamicPassive script should run, regardless of if the user has enabled or added it
      • onStart

        public void onStart​(com.google.gson.JsonElement args)
      • processArgs

        public void processArgs​(String args)
      • onFinish

        public void onFinish()
      • getInjector

        public final com.google.inject.Injector getInjector()
      • setState

        public final void setState​(Script.State state)
      • setAccount

        public void setAccount​(GameAccount account)
      • getBreakProfile

        public Break getBreakProfile()
      • setBreakProfile

        public void setBreakProfile​(Break breakProfile)
      • onHighlightTextboxClientScript

        public final void onHighlightTextboxClientScript​(ClientScriptEvent event)
        For internal use only. Closes the bank tutorial interface