Commands
All commands are invoked using the LSL function llMessageLinked:
llMessageLinked(integer linknum, integer num, string str, key id);num— The code of the command (see below).strandid— Parameters that depend on the specific command.
See the examples section for usage patterns.
Commands List
Startup commands | |
Sets the working personal Bot. Other commands require this command to be invoked first. | |
Queries the selected bot status (useful to determine the subscription length). | |
Invokes | |
Bot Status commands | |
Initiates bot login process. | |
Initiates bot logout process. | |
Returns the location of the bot. | |
Device settings commands | |
Sets various options for TotalControl. | |
Sets the device name and device creator for statistics purposes (visible in your SmartBots panel). | |
Commands TotalControl to use a specific link number for | |
Communication commands | |
Commands bot to say a message on the specified channel. | |
Commands bot to send an instant message to an avatar. | |
Commands bot to send a message to a specified group. | |
Commands bot to send a notice to a specified group. | |
Commands bot to send a teleport offer to the given avatar UUID. | |
Commands bot to listen to messages in local chat and send them to the script. | |
Commands bot to listen to IMs sent to the bot and send them to the script. | |
Movement commands | |
Commands bot to move/turn in the specified direction. | |
Commands bot to walk to the specified coordinates. | |
Commands bot to teleport to a specified location. | |
Commands bot to start flying. | |
Commands bot to sit on a prim. | |
Commands bot to stand up. If a permanent sit UUID is set, this command will clear it. | |
Group Management commands | |
Retrieves a list of all the groups the bot is in. | |
Retrieves a list of all role names and UUIDs for a group the bot is a member of. | |
Commands bot to join the specified group. | |
Commands bot to leave the specified group. | |
Commands bot to activate a group with the given group UUID. | |
Commands bot to add a group member to the specified role. (Note: the avatar must already be in the group.) | |
Commands bot to invite a resident to a group. | |
Commands bot to eject a resident from a group. | |
Changes the active group tag/title to the corresponding role UUID. | |
Friendship commands | |
Commands bot to offer friendship to someone. | |
Commands bot to remove a friend. | |
Controls a friend's ability to edit/take objects owned by the bot. | |
Controls a friend's ability to see the bot's online status. | |
Controls a friend's ability to see the bot's location on the map. | |
Money and Inventory commands | |
Commands bot to listen to inventory offers. | |
Commands bot to notify the script every time it receives a payment. | |
Commands bot to give an inventory object to someone. | |
Commands bot to give money to a specified UUID. | |
Commands bot to give money to a specified object UUID. | |
Requests the current L$ balance of the bot. | |
Commands bot to delete an inventory item by its UUID. | |
Commands bot to create a notecard in its inventory. | |
Commands bot to edit the contents of a notecard by UUID. | |
Commands bot to return the contents of a notecard. | |
Bot Appearance commands | |
Commands bot to wear or add a specified item. | |
Removes a clothing item, body part, or attachment. | |
Commands bot to rebake its appearance (reload clothing and textures). | |
Requests a list of attachments currently worn by the bot. | |
Sim Management commands | |
Commands bot to begin a sim restart. | |
Commands bot to stop a sim restart. | |
Sends a message to all avatars in the region (bot must be an estate manager). | |
Kicks an avatar from the region (bot must be an estate manager). | |
Controls access to a sim (requires estate manager). | |
Controls access to all sims in the estate (requires estate manager). | |
Misc. commands | |
Commands bot to send dialog requests to the script. | |
Commands bot to touch an object. | |
Commands bot to touch an object currently being worn. | |
Commands bot to reply to a dialog menu. | |
Note:
The numeric values for all commands and events are available here.