SB_SETUP_BOTNAME

From SmartBots Developers Docs
Jump to: navigation, search

Raised after successful AdminBot initialization. Delivers the bot name and UUID serving the choosen group.

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

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

Event parameters

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

Variable Type Description
cmd integer the SB_SETUP_BOTNAME's numeric ID
data string SL bot name
id key SL bot UUID