OsLoadedCreationID

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m (some format conversions)
m (Typo)
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{osslfunc
 
{{osslfunc
 
|threat_level=Low
 
|threat_level=Low
|function_syntax=osLoadedCreationID()
+
|permissions=${OSSL|osslParcelOG}ESTATE_MANAGER,ESTATE_OWNER
 +
|delay=0
 +
|function_syntax=string osLoadedCreationID()
 +
|description=* This function returns a string containing the UUID that a sim was originally created with.
 +
* It will return empty string if the region hasn't been created by oar import, or the region uses SQLite as region database.
 
|ossl_example=<source lang="lsl">
 
|ossl_example=<source lang="lsl">
//Example Usage:
+
//
 +
// osLoadedCreationID Script Exemple
 +
// Author: djphil
 +
//
  
default {
+
default
     touch_start(integer num) {
+
{
         string data = "\n\n Creation Date: " + osLoadedCreationDate();
+
    state_entry()
         data += "\n Creation Time: " + osLoadedCreationTime();
+
    {
         data += "\n Creation ID: " + osLoadedCreationID();
+
        llSay(PUBLIC_CHANNEL, "Touch to see osLoadedCreationID usage.");
         llSay(0, data);
+
    }
 +
 
 +
     touch_start(integer number)
 +
    {
 +
         string CreationID = osLoadedCreationID();
 +
          
 +
        if (CreationID == "")
 +
         {
 +
            llSay(PUBLIC_CHANNEL, "The region hasn't been created by oar import, or the region uses SQLite for region database.");
 +
         }
 +
 
 +
        else
 +
        {
 +
            llSay(PUBLIC_CHANNEL, "The first creation ID is " + CreationID);
 +
        }
 
     }
 
     }
 
}
 
}
 
</source>
 
</source>
|description=This function returns a string containing the UUID that a sim was created with.
+
|additional_info=
 
+
|
+
 
}}
 
}}
 +
== See Also ==
 +
* [[osLoadedCreationDate]]
 +
* [[osLoadedCreationTime]]
 +
* [[osLoadedCreationID]]

Latest revision as of 10:05, 7 December 2020

string osLoadedCreationID()
  • This function returns a string containing the UUID that a sim was originally created with.
  • It will return empty string if the region hasn't been created by oar import, or the region uses SQLite as region database.
Threat Level Low
Permissions ${OSSL|osslParcelOG}ESTATE_MANAGER,ESTATE_OWNER
Extra Delay 0 seconds
Example(s)
//
// osLoadedCreationID Script Exemple
// Author: djphil
//
 
default
{
    state_entry()
    {
        llSay(PUBLIC_CHANNEL, "Touch to see osLoadedCreationID usage.");
    }
 
    touch_start(integer number)
    {
        string CreationID = osLoadedCreationID();
 
        if (CreationID == "")
        {
            llSay(PUBLIC_CHANNEL, "The region hasn't been created by oar import, or the region uses SQLite for region database.");
        }
 
        else
        {
            llSay(PUBLIC_CHANNEL, "The first creation ID is " + CreationID);
        }
    }
}


[edit] See Also

Personal tools
General
About This Wiki