|
Ianni Lane
Registered User
Join date: 1 Mar 2007
Posts: 21
|
03-14-2007 12:17
Hello, I will be opening an in-world store soon, and I would like to offer a 'freebie' set to newbies to help them ease into SL. Does a script exist which would allow only avatars less than 30 days old to 'purchase' the product? Much in the same way that only newbies can pick L$ from the money trees? I've tried searching the forums, but haven't found anything; maybe I'm not using the correct search terms.  Any help would be greatly appreciated! Many thanks, Ianni
|
|
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
|
03-14-2007 12:21
What you need to do is run a script that does:
llRequestAgentData(id, DATA_BORN);
And then compare the timestamp between the date born and the current date to get an age.
If you need a script put together to do these functions and give an inventory list to anyone under a certain age I can hack one together for you pretty quick (I sell a n00b ejector that sends people under a certain age home if they try to get into 'age-restricted' parcels/sims and th script would basically be almost identical...just reversed). It won't be free...but it won't cost you much.
Of course, if you want to build it yourself...just remember that when you do an llRequestAgentData() you have to retrieve the data through a dataserver event.
_____________________
--AeonVox--Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.
|
|
Deanna Trollop
BZ Enterprises
Join date: 30 Jan 2006
Posts: 671
|
03-14-2007 12:59
But note, you'll only be able to use this restriction on "scripted" transactions, i.e. those using the "Pay" option. There's no way for script to restrict the "Buy" option.
|
|
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
|
03-14-2007 15:43
Deanna is right.
Of course...you can just use a touch_start() instead of a pay.
_____________________
--AeonVox--Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.
|
|
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
|
03-14-2007 19:41
i wrote this one up a few months ago for a noobie friendly place ... feel free to grab anything usefull /54/53/114336/1.html
|
|
Ianni Lane
Registered User
Join date: 1 Mar 2007
Posts: 21
|
03-15-2007 07:15
Thanks for the ideas everyone!  Osgeld, I'll give that script a try! Thanks!
|