Difference between revisions of "Script events"

From StealthBot Wiki
Jump to: navigation, search
(How to Use section)
(How to Use)
Line 2: Line 2:
  
 
==How to Use==
 
==How to Use==
# Put the event in your script like so.
+
<ol>
 +
<li>Put the event in your script like so.</li>
 
  Sub Event_Load()
 
  Sub Event_Load()
 
     ' place VBScript code here
 
     ' place VBScript code here
 
  End Sub
 
  End Sub
 
+
<li>Put valid VBScript code in place of the comment.</li>
# Put valid VBScript code in place of the comment.
+
<li>You're done! Your bot will do the specified instructions when the event occurs.</li>
# You're done! Your bot will do the specified instructions when the event occurs.
+
</ol>
  
 
==List of Script Events==
 
==List of Script Events==

Revision as of 17:08, 31 July 2009

Script events are VBScript Subroutines that StealthBot recognizes and calls automatically when something happens in the bot.

How to Use

  1. Put the event in your script like so.
  2. Sub Event_Load()
        ' place VBScript code here
    End Sub
    
  3. Put valid VBScript code in place of the comment.
  4. You're done! Your bot will do the specified instructions when the event occurs.

List of Script Events

Here are a list of the current script events that you can use: