Event LoggedOff

From StealthBot Wiki
Revision as of 15:17, 9 September 2010 by Neco (talk | contribs) (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.


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


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.


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

See also