Event LoggedOff

From StealthBot Wiki Backup
Jump to: navigation, search

The [[Event_LoggedOf] scripting event occurs when disconnecting from Battle.net.

History

The Event_LoggedOff() event was added in StealthBot version 2.7 by Stealth by request of Imhotep.

Syntax

Sub Event_LoggedOff()
    ' ...
End Sub

Note, when this event occurs, all connection-dependent data, such as the Channel object, Clan object, and IsOnline function's return value has already set to the empty or false state. This means, you cannot get your clan's tag and IsOnline() will return false.

Example

Sub Event_LoggedOff()
    AddChat vbRed, "You are no longer logged on."
End Sub

See also