Event Load

From StealthBot Wiki
Jump to: navigation, search

This StealthBot scripting event occurs when the bot loads, and after script reload.

The Event_Load() event is often used to create connections to databases or servers, or to create objects or default values for global variables that will be used throughout the script's lifetime, or to create special configuration or storage files that the script may use.


After script load and reload, the script will print "Hello world" in green using the AddChat function.

' occurs on script load and script reload
Sub Event_Load()
    AddChat vbGreen, "Hello world!"
End Sub

See also