Difference between revisions of "Script events"

From StealthBot Wiki
Jump to: navigation, search
(How to Use)
Line 1: Line 1:
 
Script events are [[VBScript]] [[Subroutine]]s that [[StealthBot]] recognizes and calls automatically when something happens in the bot.
 
Script events are [[VBScript]] [[Subroutine]]s that [[StealthBot]] recognizes and calls automatically when something happens in the bot.
  
==How to Use==
+
==How to use==
 
<ol>
 
<ol>
 
<li>Put the event in your script like so.</li>
 
<li>Put the event in your script like so.</li>
Line 11: Line 11:
 
</ol>
 
</ol>
  
==List of Script Events==
+
==List of script events==
 
Here are a list of the current script events that you can use:
 
Here are a list of the current script events that you can use:
 
* [[Event_FirstRun]]()
 
* [[Event_FirstRun]]()
Line 53: Line 53:
 
* [[Event_PacketReceived]](Protocol, ID, Length, Data)
 
* [[Event_PacketReceived]](Protocol, ID, Length, Data)
 
* [[Event_ChannelList]](Channels())
 
* [[Event_ChannelList]](Channels())
 +
 +
==See also==
 +
* [[Scripting System]]
 +
* [[Script]]

Revision as of 20:27, 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:

See also