Restrict Purchases to a Particular Group
|
|
Amariah Francis
Registered User
Join date: 20 Dec 2006
Posts: 33
|
11-18-2008 18:53
How to I only allow only members of a certain group to buy something, but not allow anyone else? Is there a script like this available?
|
|
Lightwave Valkyrie
Registered User
Join date: 30 Jan 2004
Posts: 666
|
11-18-2008 19:21
in your event use llSamegroup
_____________________
L$ is the root of all evil videos work! thanks SL 
|
|
Paulo Dielli
Symfurny Furniture
Join date: 19 Jan 2007
Posts: 780
|
11-18-2008 19:37
I just started a group, although I have a shop for ages. Yeah yeah, I know...
I want to give away freebies to the group. Of course I can send them with my regular perms. But what do I do if I want group members to pick up the freebie at my store?
- Anyone can become a group member for a minute, take the freebie multiple times and resell it. So I need to set perms to 'no transfer' right?
- What if I want to give away freebies with my usual perms (no copy/mod/trans), how can I do that in my shop?
I think that's what the TS wants to know, and me too.
|
|
Malia Writer
Unemployed in paradise
Join date: 20 Aug 2007
Posts: 2,026
|
11-18-2008 20:30
A quick search on XStreet SL (formerly SL Exchange) for "group vendor" brought up several that would probably do what you want; you would need to read the description yourself to be sure.
In my experience group freebies usually seem to be no copy/no transfer.
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
11-18-2008 20:44
Also consider attaching an item to a group notice for a simple solution that doesn't even require a script to implement.
|
|
Escort DeFarge
Together
Join date: 18 Nov 2004
Posts: 681
|
11-19-2008 02:35
Bit of a warning about Group Notices -- the problem with attachments on group notices is that the attachments are given *as though the owner gave them directly*. So the issue of multiple copies (even if the object is no copy) remains. Also you can't delete notices, so you can't "take it back". Frankly, I think that's a functional bug.
_____________________
http://slurl.com/secondlife/Together
|
|
Innula Zenovka
Registered User
Join date: 20 Jun 2007
Posts: 1,825
|
11-19-2008 05:14
From: Paulo Dielli I just started a group, although I have a shop for ages. Yeah yeah, I know...
I want to give away freebies to the group. Of course I can send them with my regular perms. But what do I do if I want group members to pick up the freebie at my store?
- Anyone can become a group member for a minute, take the freebie multiple times and resell it. So I need to set perms to 'no transfer' right?
- What if I want to give away freebies with my usual perms (no copy/mod/trans), how can I do that in my shop?
I think that's what the TS wants to know, and me too. You could keep a list of who's had something and ration people to one item. You need to limit the length of the list, otherwise you run out of memory, but at least this means I can only take one item every day or so, which should solve your problem. Try something like: list given; integer total; integer maxList = 100;
default { on_rez(integer r) { llResetScript(); } state_entry() { given = [""]; total = 0; }
touch_start(integer num_detected) { if (llSameGroup(llDetectedKey(0))==FALSE) { llInstantMessage(llDetectedKey(0), "Sorry, you must be in the right group to use this"); return; } else { integer x; for(x;x <= num_detected- 1;x++) { integer find = llListFindList(given,[llDetectedKey(x)]); if(find < 1) { llGiveInventory(llDetectedKey(x), llGetInventoryName(INVENTORY_OBJECT, 0)); given = given+ [llDetectedKey(x)]; total = total + 1; if (total >= maxList) { given = llDeleteSubList(given,0,10); } } else { llInstantMessage(llDetectedKey(x), "You've already been given this. Don't be greedy."); //Message to repeat Toucher
} } } } }
|
|
Clio Cardiff
Registered User
Join date: 12 Feb 2008
Posts: 9
|
11-20-2008 02:22
Thanks Innula, that is a helpful solution to give out freebies with in a 'smart' way 
|
|
Paulo Dielli
Symfurny Furniture
Join date: 19 Jan 2007
Posts: 780
|
11-20-2008 03:58
Thank you very much Innula, that seems to be a good solution.
@ Malia You say 'group freebies usually seem to be no copy/no transfer'. But how can an object be both no copy and no transfer? I've never succeeded with that. In my experience an object can be either no copy or no transfer, not both.
|
|
Wouter Hobble
Registered User
Join date: 25 Mar 2008
Posts: 21
|
11-20-2008 04:07
From: Paulo Dielli Thank you very much Innula, that seems to be a good solution.
@ Malia You say 'group freebies usually seem to be no copy/no transfer'. But how can an object be both no copy and no transfer? I've never succeeded with that. In my experience an object can be either no copy or no transfer, not both. My guess is you should read the / as or: group freebies should be no copy or no transfer. In fact any object used commercially should be either in my eyes.
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
11-20-2008 08:41
You can in a sense make an object no-copy and no-transfer by, for example, making the object itself no-copy and making an item in the inventory of one of its prims no-transfer. However, removing the no-transfer inventory item will again allow the object to be transfered (and the inventory item iteself CAN be copied, so potential benefit of this approach is quite limited).
IMX copy, no-transfer has always worked well for group equipment. Just design your builds so it doesn't matter if someone has duplicates.
|
|
Atom Burma
Registered User
Join date: 30 May 2006
Posts: 685
|
11-20-2008 08:44
From: Paulo Dielli So I need to set perms to 'no transfer' right? That is your deal, if you picked up a freebee, then it deserves to not be edited, in my opinion. I have about 200, gawd, maybe 300 by now, freebee boxes on my sim, and I would never edit the builder's settings. That is if you didn't make them. However if you are giving away your own made freebees' sure, restrict them if you want to.
|