Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

possible to script so that only certain people can pick up the object?

Mobius Hashimoto
Registered User
Join date: 18 Aug 2006
Posts: 146
08-26-2006 17:34
hi guys,

is it possible to script the object so that only certain people can pick it up? i was looking at the access to certain people for an area example but didn't really help


Thanks
Mobius
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
08-26-2006 17:42
not that im aware of .. but you can script an object to give inventory to only certian ppl, then you could just put a copy of the object inside a giver box

if you wanted limited edition type stuff get the giver to LL die once everyone on the list had their copy
Mobius Hashimoto
Registered User
Join date: 18 Aug 2006
Posts: 146
08-26-2006 17:45
hi that is what i need, to give to inventory only to certain people, can you please tell me which function i should use? i will look it up

thanks
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
08-26-2006 17:46
something like that wouldnt be just 1 llfunction, but basicly you would need

either some list functions or llGetNotecardLine (to read a notecard)
and llGive inventory
Mobius Hashimoto
Registered User
Join date: 18 Aug 2006
Posts: 146
08-26-2006 17:48
thank you!
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
08-26-2006 17:51
CODE

list valid_users =[
"joe avatar",
"jane avatar",
"Osgeld Barmy",
"Mobius Hashimoto"]; //names are case sensitive osgeld and Osgeld are 2 different things

default
{
touch_start(integer na)
{
if (llListFindList(valid_users,[llDetectedName(0)]) == -1)
{
llSay(0,"sorry bub your not on the list");
}
else llGiveInventory(llDetectedKey(0),"items name");
}
}
Mobius Hashimoto
Registered User
Join date: 18 Aug 2006
Posts: 146
08-26-2006 18:12
Thank you very much!