Difference between revisions of "Script functions"

From StealthBot Wiki Backup
Jump to: navigation, search
 
m (1 revision imported)
 
(No difference)

Latest revision as of 08:20, 1 December 2017

Script functions are functions which are available to the StealthBot Scripting system.

There are three things available to every script:

Script Support Class

Template:Main The SSC object is available automatically to all scripts loaded.

Syntax:

[SSC.]FunctionName Argument, Argument
ReturnValue = [SSC.]FunctionName(Argument, Argument)

Where the [ ] means that this part is optional!

Bot Variables object

Template:Main The BotVars object is available automatically to all scripts loaded.

Syntax:

BotVars.PropertyName = Value
Value = BotVars.Property

Module-level functions

Template:Main The module-level functions are a set of functions that the bot adds to the end of your script so that you can do actions specific to the current script.

Use them like you would call any VBScript function.

See also