Class ScriptController

java.lang.Object
net.botwithus.rs3.script.ScriptController

public final class ScriptController extends Object
  • Method Details

    • getScript

      public static ImmutableScript getScript(String name)
    • getActiveScript

      public static ImmutableScript getActiveScript()
    • getScripts

      public static List<ImmutableScript> getScripts()
    • getBackgroundScripts

      public static List<ImmutableScript> getBackgroundScripts()
    • getScriptByOutput

      public static ImmutableScript getScriptByOutput(int... itemIds)
    • setActiveDirect

      public static boolean setActiveDirect(ImmutableScript source, String name)
      Activates a source by name This method can only be called from a local source
      Parameters:
      source - The source that is activating the script
      name - The name of the script to activate
      Returns:
      true if the script was activated, false otherwise
    • getConfiguration

      public static StrictConfig getConfiguration(ImmutableScript source, ImmutableScript target)
    • setActive

      public static void setActive(ImmutableScript source, ImmutableScript requestedScript, boolean active)
    • setActive

      public static void setActive(ImmutableScript source, String scriptName, boolean active)
    • emitEvent

      public static <T> void emitEvent(String name, T event)