Difference between revisions of "Disconnect function"

From StealthBot Wiki
Jump to: navigation, search
(Examples: Corrected a typo)
Line 21: Line 21:
 
<ul>
 
<ul>
 
<li>Disconnect when [[Stealth]] says "[[Bye!]]".</li>
 
<li>Disconnect when [[Stealth]] says "[[Bye!]]".</li>
  If Username = "Stealth" And Message = "Bye!" Then Disconnect
+
  If Username = "Stealth" And Message = "Bye!" Then DoDisconnect
 
</ul>
 
</ul>
  

Revision as of 17:08, 6 October 2009

The Disconnect() subroutine is available to StealthBot through the Script Support Class. It allows users to disconnect the bot through scripting from Battle.net.

Development

The Disconnect function was added in StealthBot version 2.6 by the request of Imhotep.

Documentation

'// DISCONNECT
'// Closes any current connections within the bot.
Public Sub Disconnect()

    Call frmChat.DoDisconnect

End Sub

Summary

This subroutine will disconnect the bot from any Battle.net, BNLS and/or Diablo II realms it is connected to.

Syntax

Disconnect

Examples

  • Disconnect when Stealth says "Bye!".
  • If Username = "Stealth" And Message = "Bye!" Then DoDisconnect
    

See also