Difference between revisions of "Event ServerError"

From StealthBot Wiki Backup
Jump to: navigation, search
m
 
m (1 revision imported)
 
(No difference)

Latest revision as of 08:20, 1 December 2017

The Event_ServerError scripting event occurs when the bot receives a red (or yellow on StarCraft) server error message from Battle.net.

This event is often used to deal with the response to a Battle.net /command (issued with the AddQ function).

History

The ServerError event was added in StealthBot version 2.4.

In version 2.7, ServerError was changed to fire when the bot disconnects.

Syntax

Sub Event_ServerError(Message)
    ' ...
End Sub

Arguments

  • Message is a string containing the Battle.net server error message.

This Event is Fired When

  • An executed Battle.net /command failed.
  • The bot is disconnected or loses connection (Message = "All connections closed.").

This Event is Not Fired When

  • A clan-related action failed.

Example

Repeats error messages to channel.

' occurs on Battle.net error messages
Sub Event_ServerError(Message)
    AddQ "Battle.net Error: " & Message
End Sub

See also