Difference between revisions of "TotalControl for LSL/Commands"

From SmartBots Developers Docs
Jump to: navigation, search
(Created page with "{{DISPLAYTITLE: Commands}} All commands are invoked by calling [http://wiki.secondlife.com/wiki/LlMessageLinked llMessageLinked] LSL function: <syntaxhighlight lang="lsl"> ll...")
 
Line 17: Line 17:
  
 
{{API Group|Startup commands}}
 
{{API Group|Startup commands}}
{{API Entry|AdminBot|SB_SETUP_SETGROUP}}
+
{{API Entry|AdminBot|BOT_SETUP_SETBOT}}
{{API Entry|AdminBot|SB_SETUP_SETGROUPUUID}}
+
{{API Entry|AdminBot|BOT_STATUS_QUERY}}
{{API Entry|AdminBot|SB_STATUS_QUERY}}
+
{{API Entry|AdminBot|BOT_RESET_ADMINBOT}}
{{API Entry|AdminBot|SB_RESET_ADMINBOT}}
+
  
 
{{API Group|Device settings commands}}
 
{{API Group|Device settings commands}}
{{API Entry|AdminBot|SB_SETUP_SETOPTIONS}}
+
{{API Entry|AdminBot|BOT_SETUP_SETOPTIONS}}
{{API Entry|AdminBot|SB_SETUP_DEVICENAME}}
+
{{API Entry|AdminBot|BOT_SETUP_DEVICENAME}}
{{API Entry|AdminBot|SB_SETUP_DEBUG}}
+
{{API Entry|AdminBot|BOT_SETUP_DEBUG}}
{{API Entry|AdminBot|SB_SETUP_SETLINK}}
+
{{API Entry|AdminBot|BOT_SETUP_SETLINK }}
 
+
{{API Group|Group membership control}}
+
{{API Entry|AdminBot|SB_INVITE_SEND}}
+
{{API Entry|AdminBot|SB_GROUP_EJECT}}
+
{{API Entry|AdminBot|SB_AVATAR_GROUP}}
+
 
+
{{API Group|Group chat commands / spam control}}
+
{{API Entry|AdminBot|SB_CHAT_SAY}}
+
{{API Entry|AdminBot|SB_CHAT_LISTEN}}
+
{{API Entry|AdminBot|SB_CHAT_MUTE}}
+
 
+
{{API Group|Group notices commands}}
+
{{API Entry|AdminBot|SB_NOTICE_SEND}}
+
  
 
{{API Table end}}
 
{{API Table end}}

Revision as of 19:26, 4 July 2016

All commands are invoked by calling llMessageLinked LSL function:

llMessageLinked( integer linknum, integer num, string str, key id )
  • num is a code of the command (see below)
  • str and id parameters depend on a particular command

See the Examples for usage patterns.

AdminBot for Bots Commands List

The following commands are available within AdminBot for Bots library:

Command Description

Startup commands

BOT_SETUP_SETBOT Sets the working personal Bot. Other commands require this command to be invoked first.
BOT_STATUS_QUERY Queries the selected bot status (useful to determine the subscription length).
BOT_RESET_ADMINBOT Invokes llResetScript() for TotalControl script.

Device settings commands

BOT_SETUP_SETOPTIONS Sets various options for TotalControl.
BOT_SETUP_DEVICENAME Sets the device name and device creator for your statistics purposes (you will be able to see who is using your device).
BOT_SETUP_DEBUG Enables or disables the debug mode.
BOT_SETUP_SETLINK Commands TotalCotrol to use specific link number for llMessageLinked calls instead of LINK_SET.

The numeric values are available here: Commands and events values.