Event LoggedOn

From StealthBot Wiki
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.

History

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

Syntax

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

Arguments

  • 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.

Example

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

See also