Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Name/Description Changer

Jason Keegan
Registered User
Join date: 20 Apr 2004
Posts: 26
10-02-2004 03:22
Not sure if this is the right place for this seen as its a very basic script but I have found this to be SOoooooo useful and one that a few have not yet thought of using so I thought it would be cool to share it.


edit-Removed the code so that some unsuspecting patron doesn't injure one of their obejcts through the mis-use of the original script. - NE


I hope someone gets use out of this :)
_____________________
Need help understanding Secondlife scripting language?
Check here
Jason Keegan
Registered User
Join date: 20 Apr 2004
Posts: 26
10-02-2004 15:07
Ok, Sorry all, Please dont use the last script, it will delete
the wrong script from the inventory of your object if you have
more than one in there. I am very sorry about that.

Here is the corerct version.



CODE
//-------------------------------------

//REMOVE THIS NUMBER FOR THIS SCRIPT TO WORK

string name = "EXAMPLE NAME"; //Here you add the name you wish the object to be changed to.

string desc = "EXAMPLE DESCRIPTION"; //Here you add the description you wish the object to change to.

float 1.0; // this is how long the script stays in the object before being removed.

string scriptname = "THIS SCRIPT"; //This is where you write the name of this script.
//----------------------------------------

default
{
state_entry()
{
llSetObjectName(name);
llSetObjectDesc(desc);
llSleep(time);
llSay(0, "Script " + scriptname + " is being removed now!");
llRemoveInventory(scriptname);
}
on_rez(integer start_param)
{
llResetScript();
}
}



----------------------
again, sorry all.

edit-added the code tags.
_____________________
Need help understanding Secondlife scripting language?
Check here