Advertisement
Mayumi_H

Get avatar's currently active group UUID

Mar 15th, 2024 (edited)
876
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //MH+ presents, Get avatar's currently active group UUID
  2. //join us! => https://discord.me/SLguru
  3. //visit my blog => https://sl-memo.blogspot.com/
  4. //指定したアバターの現在アクティブなグループのUUIDを取得するサンプルです
  5. default{
  6.     touch_start(integer total_number){
  7.         key id = llDetectedKey(0);
  8.         list tempLIST  = llGetAttachedList(id);
  9.         string group;
  10.         if(tempLIST){//Check only the first attachment
  11.             group = llList2String(llGetObjectDetails(llList2Key(tempLIST,0), [OBJECT_GROUP]), 0);
  12.             if(group != NULL_KEY){
  13.                 group = "UUID = " + group + " ( " + "secondlife:///app/group/"+group+"/about )";
  14.             }else{
  15.                 group = "Not Set";
  16.             }
  17.         }else{
  18.             group = "unknown";
  19.         }
  20.         llRegionSayTo(id,0,"The currently active group for " + llDetectedName(0) + " is " + group );
  21.     }
  22. }
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement