SB_CHAT_SUCCESS

From SmartBots Developers Docs
AdminBot for LSLEvents
Revision as of 11:44, 3 November 2017 by Gg (Talk | contribs) (Created page with "{{DISPLAYTITLE: SB_CHAT_SUCCESS}} <onlyinclude>Raised when bot successfully connects to the group chat (see SB_CHAT_LISTEN)</on...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Raised when bot successfully connects to the group chat (see SB_CHAT_LISTEN)

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

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

Event parameters

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

Variable Type Description
cmd integer the SB_CHAT_SUCCESS's numeric ID
data string not used
id key group UUID