Difference between revisions of "Disconnect function"

From StealthBot Wiki
Jump to: navigation, search
(Created page with 'The Disconnect() subroutine is available to StealthBot through the Script Support Class. It allows users to disconnect the bot through scripting from [[Battle.net…')
 
m (See also)
 
(2 intermediate revisions by 2 users not shown)
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>
  
 
==See also==
 
==See also==
* [[Connect]]()
+
* [[Connect function]]
* [[IsOnline]]()
+
* [[IsOnline function]]
* [[BotClose]]()
+
* [[BotClose function]]
 
* [[Script Support Class]]
 
* [[Script Support Class]]
 
* [[Script system]]
 
* [[Script system]]

Latest revision as of 07:52, 21 November 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