Difference between revisions of "AdminBot for LSL/Events/SB SETUP SUCCESS"

From SmartBots Developers Docs
Jump to: navigation, search
(Created page with "{{DISPLAYTITLE: SB_SETUP_SUCCESS}} <onlyinclude>Raised when group has been set successfully (group exists and not expired)</onlyinclude> {{AdminBot Event Variables Table|even...")
 
 
Line 2: Line 2:
 
<onlyinclude>Raised when group has been set successfully (group exists and not expired)</onlyinclude>
 
<onlyinclude>Raised when group has been set successfully (group exists and not expired)</onlyinclude>
  
{{AdminBot Event Variables Table|event=SB_COMMAND_FAILED}}
+
{{AdminBot Event Variables Table|event=SB_SETUP_SUCCESS}}
 
{{API Variable|data|string}} group name
 
{{API Variable|data|string}} group name
 
{{API Variable|id|key}} group UUID
 
{{API Variable|id|key}} group UUID

Latest revision as of 11:37, 3 November 2017

Raised when group has been set successfully (group exists and not expired)

// Event usage:
link_message(integer sender, integer cmd, string data, key id) {

    if(cmd == SB_SETUP_SUCCESS) {
        llOwnerSay("Event " + cmd + " arrived! Data:\n" + data);     }
}

Event parameters

link_message event receives cmd, str and id parameters. Their meaning for SB_SETUP_SUCCESS event is explained below:

Variable Type Description
cmd integer the SB_SETUP_SUCCESS's numeric ID
data string group name
id key group UUID