Disconnect function

From StealthBot Wiki Backup
Revision as of 08:20, 1 December 2017 by Davnit (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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