Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Free gift to group member only?

Ralektra Breda
Template Painter
Join date: 7 Apr 2008
Posts: 1,875
08-21-2008 12:11
I have tried searching this thread and the library and don't seem to find anything that I can use to be able to give certain freebies to group members only.

Please let me know if there is nothing like this available for free, so I stop looking!

and if not, if anyone knows where I can purchase such a script reasonably, I would love to know that :P
_____________________

Mainstore: http://slurl.com/secondlife/Phantasm/51/164/501
http://rbzdesign.blogspot.com/
I'm not a designer IRL, but I RP one on SL!
Ron Khondji
Entirely unlike.
Join date: 6 Jan 2007
Posts: 224
The easy way.
08-21-2008 12:56
This gives a object from inventory, to the avatar that touches the prim, if the avatar has the same grouptag active as the object is set to. (just try it :) )

From: someone

key avatar;

default
{
touch_start(integer total_number)
{
integer i;
for (i=0; i<total_number; i++){
avatar = llDetectedKey(i);
if (llSameGroup(avatar)) llGiveInventory(avatar,llGetInventoryName(INVENTORY_OBJECT,0));
}
}
}
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
08-21-2008 12:57
on touch...
if llSameGroup
llGiveInventory

Edit: beat me to it.
_____________________

● Inworld Store: http://slurl.eclectic-randomness.com
● Website: http://www.eclectic-randomness.com
● Twitter: @WinterVentura
Ralektra Breda
Template Painter
Join date: 7 Apr 2008
Posts: 1,875
08-21-2008 15:43
thanks so much!
_____________________

Mainstore: http://slurl.com/secondlife/Phantasm/51/164/501
http://rbzdesign.blogspot.com/
I'm not a designer IRL, but I RP one on SL!
Catwise Yoshikawa
Registered User
Join date: 15 Aug 2007
Posts: 93
04-27-2009 10:20
Hi!
and what if the object is set to other group? I mean, your land is from other group the one you want to use to make gifts... is there a way to set that in the script?
thanx
_____________________
Neko, swings, trees, scripts, AO's, English to Spanish translation services and much more...

Blog ---> http://nyc-creations.blogspot.com
SLX ---> https://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=47841
In-world Store ---> http://slurl.com/secondlife/Blue%20Quill/214/118/69
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
04-27-2009 10:35
You can also give the item out attached to a group notice.
_____________________
Argent Stonecutter - http://globalcausalityviolation.blogspot.com/

"And now I'm going to show you something really cool."

Skyhook Station - http://xrl.us/skyhook23
Coonspiracy Store - http://xrl.us/coonstore
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
04-27-2009 10:51
From: Catwise Yoshikawa
Hi!
and what if the object is set to other group? I mean, your land is from other group the one you want to use to make gifts... is there a way to set that in the script?
thanx


The easiest thing to do is change the group setting on the object. You do that on the General tab when you have selected the object and have the Edit window open.
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask.... ;)

Look for my work in XStreetSL at
Chaz Longstaff
Registered User
Join date: 11 Oct 2006
Posts: 685
04-27-2009 16:48
From: Rolig Loon
The easiest thing to do is change the group setting on the object.



And then tell everyone to race for their freebie before auto-return returns that object cause it's set to the wrong group :}
_____________________
Thread attempting to compile a list of which animations are freebies, and which are not:

http://forums.secondlife.com/showthread.php?t=265609
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
04-28-2009 00:52
you can link items from different groups, the root will show as the group it's set for. you an use this to check same group in the child prim and give from there.
_____________________
|
| . "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...
| -
Chaz Longstaff
Registered User
Join date: 11 Oct 2006
Posts: 685
04-28-2009 01:07
From: Void Singer
you can link items from different groups, the root will show as the group it's set for. you an use this to check same group in the child prim and give from there.


Hmm. I tried tried that as an experiment, 4 prims assigned to different groups, linked them together. Object showed group of root prim, of course, but when I tried to look at group of linked parts, all it showed was (none).
_____________________
Thread attempting to compile a list of which animations are freebies, and which are not:

http://forums.secondlife.com/showthread.php?t=265609
Nexii Malthus
[Cubitar]Mothership
Join date: 24 Apr 2006
Posts: 400
04-28-2009 01:21
Set the groups when it IS linked together.
_____________________

Geometric Library, for all your 3D maths needs.
https://wiki.secondlife.com/wiki/Geometric

Creator of the Vertical Life Client
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
04-28-2009 01:52
I never tried setting that in already linked items for child prims... didn't know that was possible. thought you had to pre-set them
_____________________
|
| . "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...
| -