Event LoggedOn

From StealthBot Wiki
Revision as of 15:19, 9 September 2010 by Neco (talk | contribs) (Example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The Event_LoggedOn scripting event occurs after the bot has completed logging on, after telling Battle.net to join its home channel. The bot should not receive the Event_ChannelJoin() events until after this one, though. This event will also fire after a script reload.


The Event_LoggedOn() event was added in StealthBot version 2.4.


Sub Event_LoggedOn(Username, Product)
    ' ...
End Sub


  • Username is a string containing the bot's username. This is not affected by naming conventions.
  • Product is the reversed four-character product code for the game the bot is currently using.


 Sub Event_LoggedOn(Username, Product)
     AddChat vbGreen, StringFormat("You are logged on using {0} under the name {1}.", Product, Username)
 End Sub

See also