Event LoggedOn

From StealthBot Wiki Backup
Revision as of 08:20, 1 December 2017 by Davnit (talk | contribs) (1 revision imported)
(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.

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