|
Sara Lukas
.·:*¨¨* In Love *¨¨*:·.
Join date: 15 Dec 2006
Posts: 311
|
01-02-2008 11:03
hi
is it possible to gete a script that i can put in a box so only people in my group can buy the item?
if this is possible, does anyone know where i can get the script please?
ty xx
_____________________
O.o Neeeeeeeeed sleeeeeeeeeeep o.O Yes.. i know i have a lot of typos..  i can spell but i am too lazy and tired to correct them.. sorry
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
01-02-2008 11:40
you have 2 not so great choices 1) you could filter the money event refunding back to anyone not wearing group tags, via llSameGroup or llDetectedGroup money( key vKeyAv, integer vIntAmount ){ if (llSameGroup( vKeyAv )){ //-- other code } }
2) you could filter the money event based on a parcel restriction that only allows group members (they'd need to be standing on the parcel) using llOverMyLand() money( key vKeyAv, integer vIntAmount ){ if (llOverMyLand( vKeyAv )){ //-- other code } }
a slightly hairbrained idea, you might be able to filter the money event based on what permissions the payee has on the object, but this would likely require you to set some special persmissions for group members that you don't want to.
_____________________
| | . "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... | - 
|
|
Monica Balut
Beam-Me
Join date: 18 Feb 2007
Posts: 311
|
01-02-2008 13:36
What about doing the filtering in one state via a touch event? If the toucher is in the same group as the object, move to another state that contains the money event. This would require a two step process, but no big deal.
|
|
Trep Cosmo
Registered User
Join date: 3 Mar 2005
Posts: 101
|
01-02-2008 14:05
From: someone 2) you could filter the money event based on a parcel restriction that only allows group members (they'd need to be standing on the parcel) using llOverMyLand() llOverMyLand() may not be a good idea. I'm not sure because I have no way to test it, but it might be possible for someone to use the vendor if they're not part of the group by using the debug tools to remove the camera and selection restrictions. Like I said though, I have no way to test that at the moment.
_____________________
"There is no 'I' in team, but there is a 'Me' if you scramble it." -- House
|
|
Sara Lukas
.·:*¨¨* In Love *¨¨*:·.
Join date: 15 Dec 2006
Posts: 311
|
01-02-2008 18:18
O.o.... OK.. u have all completely confused me now.... lol i know nothing about scripting... i only know how to alter a very few basic things... colour of bling, tp locations etc.... was kinda hoping someone would jsut gimme a straight forward answer.. hehe yes it can be done.. no it cant... and if it can... was hoping someone could point me in the right direction to the script  i appreciate ur answers though... jsut wish i knew what u were talking about... ty 
_____________________
O.o Neeeeeeeeed sleeeeeeeeeeep o.O Yes.. i know i have a lot of typos..  i can spell but i am too lazy and tired to correct them.. sorry
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
01-02-2008 18:43
@ Trep camera postion or select distance won't affect the call to over my land, since that goes to by av position, but I'm not sure if limiting the land to group only would extend beyond the 50m above ground level..
@ Sara: there's a thread about a vendor that gives discounts to members, if you're curious enough to learn about how to do it, it uses the llSameGroup/llDetectedGroup method I mentiond above...
there really isn't a prebuilt script for this, and your description is a little light on details, for instance, is it a vendor, a single item? if you'd rather just have someone build it for you, the best bet would be to grab your favorite friend that does scripting and ask if they can spare a minute... barring that it's pretty straightforward so a post in 'products wanted' or an IM to a scripter you know does odd jobs should get you what you want pretty quick
_____________________
| | . "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... | - 
|