Module functions

From StealthBot Wiki Backup
Revision as of 17:22, 26 December 2009 by Ribose (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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. The bot also provides the Script object to store information about the specific script.

History

Module-level functions were added by Eric for StealthBot version 2.7. To function, a hidden SSC function is called from your script's module-level functions.

How to use

Use them like you would call any VBScript function.

List of module-level functions

Script object

Template:Main The script object is a standard Scripting.Dictionary provided by the bot per module to store script information. The bot uses keys set in the object after the initial execution of the script (before events are called).

DataBuffer object

Template:Main The DataBuffer object is a DataBuffer object provided by the bot per module. Use it, but remember to clean up after each packet. Alternatively, create a new DataBuffer every packet using the DataBufferEx function.

See also