Jump to content
Sign in to follow this  
MrSndbad

think about llGetInventoryCreator

Recommended Posts

hello 

i try to make something like

when secript get custem creator say it in world

for example

 

if(llGetInventoryCreator , "Avatar UUID" ) 

{

llSay(0,"there creator here");

}

i try for that its not work an i keep try 

Share this post


Link to post
Share on other sites

The correct way to use that is

llGetInventorycreator(<name of item in the edit contents of the prim the script is in>);

not the UUID of the Avatar

If you are trying to get the creator of the object that the script is in, that's not going to work.

If that is what you are trying to do see this: http://wiki.secondlife.com/wiki/llGetCreator

Share this post


Link to post
Share on other sites

thank you for answer

but i try to not get creator 

i want say something in world if this a correct creator 

for example

 

if(get creator mrsndbad)

{

llsay(0,"this item is correct ");

}

else 

{

 llSay(0,"sorry this item not for mrsndbad");

}

 

some like that

Share this post


Link to post
Share on other sites

FIrst you need to have the script get the creator then listen for the answer to who the creator is then compare the two.

The script can get the creator using llGetCreator, or you can tell it who the creator is using

string creator = <name of the creator>;

then have a listen event

then compare the answer to the correct name

if (message = creator){llsay(0,"that is correct ");}else { llSay(0,"that is not correct");}

 

 

 

 

Share this post


Link to post
Share on other sites

You have to detect the person and compare that to the creator of the item.  You can detect the client by a touch start event...

 

touch_start(integer detected){key toucher = llDetectedKey(detected);}

Then compare that to the key of the creator, or convert the detected key to name using llKey2Name()

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...