Difference between revisions of "AdminBot for LSL/Documentation/Initializing AdminBot"

From SmartBots Developers Docs
Jump to: navigation, search
(Created page with "{{DISPLAYTITLE: Initializing AdminBot}} AdminBot have to know the SL group name you are going to use. == Sending SB_SETUP_SETGROUP command == You can set the group in two wa...")
 
 
(5 intermediate revisions by one other user not shown)
Line 8: Line 8:
 
# By calling SB_SETUP_SETGROUPUUID command (with the group UUID).
 
# By calling SB_SETUP_SETGROUPUUID command (with the group UUID).
  
<syntaxhighlight>
+
<syntaxhighlight lang="lsl">
 
llMessageLinked(LINK_SET,SB_SETUP_SETGROUP,"My group name","SECURITY CODE");
 
llMessageLinked(LINK_SET,SB_SETUP_SETGROUP,"My group name","SECURITY CODE");
 
</syntaxhighlight>
 
</syntaxhighlight>
Line 14: Line 14:
 
OR
 
OR
  
<syntaxhighlight>
+
<syntaxhighlight lang="lsl">
 
llMessageLinked(LINK_SET,SB_SETUP_SETGROUPUUID,"SECURITY CODE","group-UUID");
 
llMessageLinked(LINK_SET,SB_SETUP_SETGROUPUUID,"SECURITY CODE","group-UUID");
 
</syntaxhighlight>
 
</syntaxhighlight>
Line 22: Line 22:
 
=== Security Code ===
 
=== Security Code ===
  
To protect your group from abusive scripters, you have to pass the group security code while initializing - ([[Security code|read more about security code]]).
+
To protect your group from abusive scripters, you have to pass the group security code while initializing - ([[AdminBot_for_Groups/Documentation/Security_Code|read more about security code]]).
  
 
== Determining Success ==
 
== Determining Success ==
  
 
AdminBot will raise the event after SB_SETUP_SETGROUP or SB_SETUP_SETGROUPUUID
 
AdminBot will raise the event after SB_SETUP_SETGROUP or SB_SETUP_SETGROUPUUID
* [[AdminBot Events|SB_SETUP_SUCCESS]] indicates that this group can be used now,
+
* [[AdminBot for Groups/Events|SB_SETUP_SUCCESS]] indicates that this group can be used now,
* [[AdminBot Events|SB_SETUP_FAILED]] indicates that there were an error setting the group. See [[AdminBot Status Codes]] for details.
+
* [[AdminBot for Groups/Events|SB_SETUP_FAILED]] indicates that there were an error setting the group. See [[AdminBot for Groups/Documentation/Status Codes|AdminBot Status Codes]] for details.
  
 
{{NavMenu}}
 
{{NavMenu}}
  
 
__NOTOC__
 
__NOTOC__

Latest revision as of 13:11, 12 May 2017

AdminBot have to know the SL group name you are going to use.

Sending SB_SETUP_SETGROUP command

You can set the group in two ways:

  1. By calling SB_SETUP_SETGROUP command (with the group name).
  2. By calling SB_SETUP_SETGROUPUUID command (with the group UUID).
llMessageLinked(LINK_SET,SB_SETUP_SETGROUP,"My group name","SECURITY CODE");

OR

llMessageLinked(LINK_SET,SB_SETUP_SETGROUPUUID,"SECURITY CODE","group-UUID");
  • (yes, the above examples are correct: you can pass the string value instead of key)

Security Code

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

Determining Success

AdminBot will raise the event after SB_SETUP_SETGROUP or SB_SETUP_SETGROUPUUID