Visit Superuser

UUID getters

From Superuser Wiki

Source: UUID getters

This script tells you the UUID of the object when you click on it:

// This code is public domain.
//   -Decimus Schomer

default
{
    touch_start(integer total_number)
    {
        llSay(0, (string)llGetKey());
    }
}

And this one tells you the UUID of everyone who touches it at once:

// This code is public domain.
//   -Decimus Schomer

default
{
    touch_start(integer n)
    {
        integer i;
        for (i = 0; i < n; i++)
        {
            llSay(0, llDetectedName(i) + " has a UUID of " + (string)llDetectedKey(i));
        }
    }
}

This one gives the UUID of the closest 16 people within 96 metres (most distant first):

default
{
    touch_start(integer num)
    {
        llSensor("",NULL_KEY,AGENT,96,PI);
    }
    
    sensor(integer num)
    {
        while(num--)
        {
            llSay(0,llDetectedName(num)+"'s UUID is "+(string)llDetectedKey(num));
        }
    }
}