Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Item renaming... help Please

Katatonik Quandry
Registered User
Join date: 6 Jul 2008
Posts: 2
08-14-2008 18:50
Hello, i am trying to make Money boxes for kids, i need to make them no mod as they are sculptie and the maps ar visible if thier modifyable, i have a great script that ive been playing with and ive added a few things to it to make it more fun but now im stumped, i really need for the money box to be renamed for the user, u know like "justins Money box"

Can anyone help me, i cant find the right command and its driving me nuts


Id be ever so greatful of any pointers please.
Cheree Bury
ChereeMotion Owner
Join date: 6 Jun 2007
Posts: 666
08-14-2008 19:49
I think this is what you need:

CODE

default
{
changed(integer change)
{
if (change & CHANGED_OWNER)
{
string Name;
string FirstName;

Name = llKey2Name(llGetOwner());
FirstName = llGetSubString(Name, 0, llSubStringIndex(Name, " ") - 1);
llSetObjectName(FirstName + "'s Money Box");
}
}
}
_____________________
Visit ChereeMotion - Life's Best Pinup Poses
http://slurl.com/secondlife/Wild%20Rice/38/230/51
Katatonik Quandry
Registered User
Join date: 6 Jul 2008
Posts: 2
08-14-2008 20:54
Awsume!! thankyou Sooo Much!!! ^_^