Script functions

From StealthBot Wiki

Jump to: navigation, search

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

There are three things available to every script:

Contents

Script Support Class

Main article: Script Support Class

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

Main article: Bot Variables

The BotVars object is available automatically to all scripts loaded.

Syntax:

BotVars.PropertyName = Value
Value = BotVars.Property

Module-level functions

Main article: Module functions

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

Personal tools