SB_ADJUST_GROUP_ROLE

From SmartBots Developers Docs
AdminBot for LSLCommands
Revision as of 21:54, 4 May 2017 by Gg (Talk | contribs) (Created page with "{{DISPLAYTITLE: SB_ADJUST_GROUP_ROLE}} <onlyinclude>Adds or removes the group role to the group member .</onlyinclude> {{AdminBot Variables Table|command=SB_ADJUST_GROUP_ROLE...")

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

Adds or removes the group role to the group member .

// Command usage:
llMessageLinked(LINK_SET, SB_ADJUST_GROUP_ROLE, string str, key id);


API parameters

llMessageLinked function accepts str and id parameters. Their meaning for SB_ADJUST_GROUP_ROLE is explained below:

Variable Required Description.


str yes an action to perform and role name.
  • An action can be either assign or remove.
  • Role name is case sensitive.

Examples:
assign Officers
remove Active tenants

id yes avatar UUID

Comments

  • To assign members to the role:
    1. bot has to be in this role
    2. bot has to have a "Assign Members to Assigner's Roles"
  • To remove members from a role:
    1. bot has to have a "Remove members from Roles"

Examples

Assign member to the role:

llMessageLinked(LINK_SET, SB_ADJUST_GROUP_ROLE, "assign Officers", "042536ca-dc19-45ef-bd3c-2f3c829d4e56");

Remove member from the role:

llMessageLinked(LINK_SET, SB_ADJUST_GROUP_ROLE, "remove Active tenants", "042536ca-dc19-45ef-bd3c-2f3c829d4e56");