Difference between revisions of "Usage/Initializing TotalControl"

From SmartBots Developers Docs
Jump to: navigation, search
(Created page with "{{DISPLAYTITLE: Initializing AdminBot}} AdminBot for Bots have to know the Bot name you are going to use. == Sending BOT_SETUP_SETBOT command == <syntaxhighlight lang="lsl">...")
 
Line 18: Line 18:
 
AdminBot for Bots will raise the event after BOT_SETUP_SETBOT
 
AdminBot for Bots will raise the event after BOT_SETUP_SETBOT
 
* [[AdminBot for Bots/Events|BOT_SETUP_SUCCESS]] indicates that this bot can be used now,
 
* [[AdminBot for Bots/Events|BOT_SETUP_SUCCESS]] indicates that this bot can be used now,
* [[AdminBot for Bots/Events|BOT_SETUP_FAILED]] indicates that there were an error setting the bot. See [[AdminBot for bot/Documentation/Status Codes|AdminBot Status Codes]] for details.
+
* [[AdminBot for Bots/Events|BOT_SETUP_FAILED]] indicates that there were an error setting the bot. See [[AdminBot for Bots/Documentation/Status Codes|AdminBot Status Codes]] for details.
  
 
{{NavMenu}}
 
{{NavMenu}}
  
 
__NOTOC__
 
__NOTOC__

Revision as of 02:35, 5 July 2016

AdminBot for Bots have to know the Bot name you are going to use.

Sending BOT_SETUP_SETBOT command

llMessageLinked(LINK_SET,BOT_SETUP_SETBOT,"My bot name","ACCESS CODE");
  • (yes, the above example are correct: you can pass the string value instead of key)

Access Code

To protect your bot from abusive scripters, you have to pass the bot access code while initializing - (read more about access code).

Determining Success

AdminBot for Bots will raise the event after BOT_SETUP_SETBOT