Event LoggedOff

From StealthBot Wiki Backup
Revision as of 23:17, 9 September 2010 by Neco (talk) (Example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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