Difference between revisions of "TotalControl for LSL/Events/BOT SETUP FAILED"

From SmartBots Developers Docs
Jump to: navigation, search
(Created page with "{{DISPLAYTITLE:BOT_SETUP_FAILED}} <onlyinclude>aised when there was an error setting the bot</onlyinclude>(Bot does not exist, expired etc) {{API Event Table}} {{API Variable...")
 
Line 1: Line 1:
 
{{DISPLAYTITLE:BOT_SETUP_FAILED}}
 
{{DISPLAYTITLE:BOT_SETUP_FAILED}}
<onlyinclude>aised when there was an error setting the bot</onlyinclude>(Bot does not exist, expired etc)
+
<onlyinclude>aised when there was an error setting the bot</onlyinclude> (Bot does not exist, expired etc)
  
 
{{API Event Table}}
 
{{API Event Table}}

Revision as of 18:20, 6 July 2016

aised when there was an error setting the bot (Bot does not exist, expired etc)

Reference

This event comes with the following event object:

Variable Required Description
event object properties:
str first line - Bot status code
second life - group expiration date
id ---

Example

link_message(integer sender,integer cmd, string data, key id) {
  /////////////////// Group setup failed event
  if(cmd==BOT_SETUP_FAILED) {
    // We split the string parameter to the lines
    list parts=llParseString2List(data,["\n"],[]);

    // The first line is a status code, and second line is the bot expiration date
    string code=llList2String(parts,0);
    string expires=llList2String(parts,1);
            
    // Inform user
    llOwnerSay("AdminBot bot setup failed:\n"+
      "error code: "+code+"\n"+
      "expired: "+expires);
  }
}