|
VonGklugelstein Alter
Bedah Profeshinal Tekstur
Join date: 22 Dec 2007
Posts: 808
|
02-10-2008 07:02
Hi,
I am looking for a script for a notecard/object giver that only gives notecards/objects to a member of a specific group.
Also I would like to send a Instant message with an app/teleport/xx/xx/xx line to that AV once the notecard has been succesfully transferred.
Any Help would be greatly appreciated
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
02-10-2008 11:30
if (llSameGroup( llDetectedKey( 0 ) ){ //-- give stuff }
also, most people seem to prefer a landmark to chatted location link.
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
02-10-2008 12:16
Keep in mind that llSameGroup() and llDetectedGroup() can only tell if someone has the group tag of the group the object is set/deeded to ACTIVATED. If they have another group's tag on, or none at all if the object is set to one, it can't tell whether they belong to the group or not. Also, these functions are only going to work if the avatar is present; within sensor range or in the same sim.
Sadly there really aren't any workarounds, except managing group memberships in such a way that a parallel list can be maintained in some place like a webserver (or perhaps a custom client).
|
|
VonGklugelstein Alter
Bedah Profeshinal Tekstur
Join date: 22 Dec 2007
Posts: 808
|
02-11-2008 10:13
Thank you!!!
|
|
Harleen Gretzky
Registered User
Join date: 27 Oct 2005
Posts: 51
|
02-11-2008 22:14
The instant TP click would be: llInstantMessage(llDetectedKey(0), "Click here: secondlife:///app/teleport/<simname>/x/y/z/"  ; Personally I give them a LM and output this so they can choose themselves which to use.
|
|
Isebella Dallagio
Registered User
Join date: 15 Aug 2007
Posts: 5
|
02-20-2008 14:41
From: Void Singer if (llSameGroup( llDetectedKey( 0 ) ){ //-- give stuff }
also, most people seem to prefer a landmark to chatted location link. How do I use this? Do I create a prim and put the object/notecard I want to give inside contents and then put this script in or is this part of a larger giving script code? May I have the rest of the code if the latter is the case? Thank you so much. 
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
02-20-2008 15:07
From: Isebella Dallagio How do I use this? Do I create a prim and put the object/notecard I want to give inside contents and then put this script in or is this part of a larger giving script code? May I have the rest of the code if the latter is the case? Thank you so much.  it's part of the larger code, and would depend greatly on what you are giving away...
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|