Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Available Nodes - Visual Scripting


    Hashtag

    Recommended Posts

    Visual Scripting for DreamBot > Available Nodes


    This thread lists all nodes available in the Visual Scripting tool.

    Node Palette
    • Event
    • Control
      • If Statement
      • Bernoulli Trial
    • Logic
      • Compare Objects
      • Compare Booleans
      • Compare Numbers
      • And
      • Or
      • Not
    • Math
      • Arithmetic Operation
      • Maximum
      • Minimum
      • Absolute
      • Square Root
      • Exponentiation
      • Round
    • Filter
      • Custom Filter
      • Name Equals
      • Name Contains
      • Name Starts With
      • Name Ends With
    • World
      • Entity
        • Entity Info
        • Find Entity
        • Interact With Entity
        • Local Player
        • Exists
        • Is Moving
        • Is Animating
        • Is In Area
        • Has Action
        • Has Model Colors
      • Inventory
        • Inventory Info
        • Inventory Contains
        • Drop Items
      • Bank
        • Is Bank Open
        • Open Bank
        • Bank Contains
        • Deposit Items All
        • Withdraw Item X
        • Withdraw Item All
      • Walking
        • Should Walk
        • Walk To
        • Distance To Tile
      • Dialogue
        • Dialogue Info
      • Mouse
        • Move Mouse Outside
        • Move Mouse Minimap
    • Utility
      • Print To Console
      • Random Text
      • Sleep
      • Sleep Until
    • Variable
      • Set Variable
      • Get Variable
    Link to comment
    Share on other sites

    Visual Scripting for DreamBot > Available Nodes > On Start


    kuva.png

    Name On Start
    Category Event
    Description This event is invoked one time upon script start.
    Options None
    Inputs None
    Outputs None
    Exits Continue

    On Start is commonly used to configure script settings and initialize variable values. Because any code connected to this node is executed only one time when the script is started, it is adviced not to connect any logic that interacts with the game to this node.

    Link to comment
    Share on other sites

    Visual Scripting for DreamBot > Available Nodes > On Loop


     kuva.png

    Name On Loop
    Category Event
    Description This event is invoked repeatedly and should contain the script's main logic.
    Options None
    Inputs Delay Start: the duration to wait before looping again. Input a value in milliseconds.
    Outputs None
    Exits Continue

    On Loop is the entry point for a script's logic. The Delay Start parameter determines the duration to wait before looping again. For example, having 1000 as the value would result in one second wait before each loop. While a low value makes the script react faster to changes in the game, it also increases the performance overhead of the script. On Loop is required for every script built with the Visual Scripting tool.

    Link to comment
    Share on other sites

    Visual Scripting for DreamBot > Available Nodes > On Chat Message


    kuva.png

    Name On Chat Message
    Category Event
    Description This event is invoked when a chat message of selected type is received.
    Options Message Type: Game, Player, Trade, Clan, Private
    Inputs None
    Outputs Message Contents: the contents of the message
    Arrival Time: when the message arrived
    Sender Name: who sent the message (null if none)
    Exits Continue

    On Chat Message can be used to have a script listen to game messages. Because this node is executed on a separate thread from the main script loop, it is not adviced to connect any logic that interact with the game to this node. Instead, this listener should be used to change variable values the main loop logic uses. If there are duplicates of this node with the same Message Type, the nodes are executed in random order.

    Link to comment
    Share on other sites

    Visual Scripting for DreamBot > Available Nodes > If Statement


    kuva.png

    Name If Statement
    Category Control
    Description Branches flow by checking if a condition is true or false.
    Options None
    Inputs Condition: the condition to check
    Outputs None
    Exits True: the condition was true
    False: the condition was false

    If Statements are an essential part of a script. They allow the script to execute different code based on the input boolean condition. For example, an If Statement can be used to achieve the following behaviour:

    1. Is inventory full?
      Yes: deposit logs in a bank
      No: chop trees
    2. Is my player in combat?
      Yes:
      wait until out of combat
      No: attack nearby monster
    Link to comment
    Share on other sites

    Visual Scripting for DreamBot > Available Nodes > Bernoulli Trial


    kuva.png

    Name Bernoulli Trial
    Category Control
    Description Branches flow based on a bernoulli trial with given success probability.
    Options None
    Inputs Success Probability: the probability to return Success. Input a number between 0 and 1.
    Outputs None
    Exits Success: the outcome of the experiment was success
    Fail: the outcome of the experiment was failure

    Bernoulli Trial can be used to introduce randomness in a script. It allows the script to execute different code based on random chances. For example, a Bernoulli Trial node can be used to achieve the following behaviour:

    • Perform a Bernoulli Trial
      60% chance: move mouse outside screen
      40% chance: do nothing
    Link to comment
    Share on other sites

    Visual Scripting for DreamBot > Available Nodes > Compare Objects


    kuva.png

    Name Compare Objects
    Category Logic
    Description Compares two objects to determine whether they are equal.
    Options Comparison: the comparison type, either Equal or Not Equal.
    Inputs Input A: the object (of any type) to compare
    Input B: the object (of any type) to compare against
    Outputs Result: the result as a boolean
    Exits None

     

    Link to comment
    Share on other sites

    Visual Scripting for DreamBot > Available Nodes > Compare Booleans


    kuva.png

    Name Compare Booleans
    Category Logic
    Description Compares two booleans based on the selected option.
    Options Comparison: Are Both True, Are Both False, Is Either True, Is Only One True
    Inputs Input A: the first boolean to compare
    Input B: the second boolean to compare
    Outputs Result: the result as a boolean
    Exits None

     

    Link to comment
    Share on other sites

    Visual Scripting for DreamBot > Available Nodes > Compare Numbers


    kuva.png

    Name Compare Numbers
    Category Logic
    Description Compares two numbers based on the selected option.
    Options Comparison: A < B, A > B, A == B, A != B, A <= B, A >= B
    Inputs Input A: the number to compare
    Input B: the number to compare against
    Outputs Result: the result as a boolean
    Exits None

    Compare Numbers can be used to compare two numbers with the following options:

    • A < B: is A less than B?
    • A > B: is A greater than B?
    • A == B: are A and B equal?
    • A != B: are A and B not equal?
    • A <= B: is A less than or equal to B?
    • A >= B: is A greater than or equal to B?

    For example, a Compare Numbers node can be used to check if the distance to a tile is less than 10, indicating that a location of interest is near.

    Link to comment
    Share on other sites

    Archived

    This topic is now archived and is closed to further replies.

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.