Skip to content

Free Second Life Script: Avatar UUID Check

This is free script that can be used if you have obtained an avatar’s UUID and you wish to check to make sure it’s valid.  The script also provides you with the avatar’s name and a link to that individual’s profile.

Why would you want to use it?  It’s a way of double checking.  It’s a way to make sure you are using a valid or a correct UUID.  It’s particularly a good idea to use it when you are splitting revenues with a business partner.  If you have an incorrect UUID, the money could go to the wrong person.  (I’m sure that person would be happy, but not the person for whom is is intended.)

To use the script, rez a box and place this script in it.  You’ll need paste in the avatar’s UUID in the script below where noted.  After pasting in the avatar’s UUID, click on the box to do the check.

The script follows . . .

//Avatar UUID Check
//
//Chimera Firecaster - April, 2014
//  Based on coding examples provided in Second Life's LSL scripting portal
//  My thanks to the many Second Life scripters who generously give of their time
//  to make the LSL language more understandable.
//
//  More information on Second Life and free scripts are found at my website:
//     https://chimerafire.wordpress.com
//
//This script does the following . . .
//  Checks to make sure the avatar's UUID is valid, and, if valid, it provides both the avatar's unique
//  name (the same as there log-in name) and the avatar's display name.  If they don't have a display
//  name, the unique name will be repeated. You'll also be able to click on the avatar's unique name
//  to bring up their profile.
//
//To use this, you need an avatar's UUID.  You can get that from using the 
//  "Determining an Avatar’s UUID Key" found on my website at the following address:
//     https://chimerafire.wordpress.com/scripts_main/script-avatar-key/
//  You can also obtain it by the methods described here:
//     http://wiki.secondlife.com/wiki/Talk:How_can_I_find_my_avatar%27s_UUID%3F 
// 
//Note: this is a FREE script.  It is given generously to the Second Life
//   community without the expectation of anything in return. It may be
//   distributed, but please do not charge for it.  That's bad form and will
//   most certainly bring bad karma to those who dishonor the kindness of others.
//
//-----Do Not Remove Above Header
//
//INFORMATION THAT YOU NEED TO ADD . . .

// PUT THE UUID KEY IN THE FOLLOWING: where the x's are your partner's key
key uuid = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"; 
//The following is an example of my UUID...
//key uuid = "6a5eea44-49e6-4752-865c-640b376742a5";

// -----No changes are required below

default
{
    state_entry()
    {
        llOwnerSay("Click on the object to make sure the UUID is valid and to check its name.");
    }

    touch_start(integer total_number)
    {
        if (uuid)
        {
           llOwnerSay("The avatar's unique name (log-in name) is: " + "secondlife:///app/agent/" + (string)uuid + "/about");  
           llOwnerSay("Clicking on their name will bring up their profile"); 
           llOwnerSay("The avatar's display name is: " + "secondlife:///app/agent/" + (string)uuid + "/displayname");        
        }   
        else             
        {
           llOwnerSay("So sorry. This is not a valid UUID.");              
        }
    }
}


%d bloggers like this: