Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

can someone do a will not open till Xmas script

RacerX Gullwing
Magic Rabbit
Join date: 18 Jun 2004
Posts: 371
12-19-2004 15:04
That'd be a real nice present for everyone but of course you could use it for Hananka too
Lefty Belvedere
Lefty Belvedere
Join date: 11 Oct 2004
Posts: 276
12-19-2004 20:12
the core question for me is this: Does the LSL have functions for date? i know it does time...


~Lefty
Lance LeFay
is a Thug
Join date: 1 May 2003
Posts: 1,488
12-19-2004 20:18
Yes, it does. It gives the GMT date (Don't ask why.)

Hmm, however, if you want it to give the object on "X mas", tough luck. You can just drag it out of the object.
_____________________
"Hoochie Hair is high on my list" - Andrew Linden
"Adorable is 'they pay me to say you are cute'" -Barnesworth Anubis
Elle Pollack
Takes internets seriously
Join date: 12 Oct 2004
Posts: 796
12-19-2004 20:34
Racer, I spent a coupple hours writing up such a script, based on touch and inventory drop but...yeah. It kinda defeats the purpose when someone can drag it out of the box in edit mode regardless of the script or object permissions.

The only way it will work is if you retain ownership of the gift box which prevents someone from dragging inventory out. If you're fine with it working that way, I'll make the needed changes and give you a copy of the script.
Azelda Garcia
Azelda Garcia
Join date: 3 Nov 2003
Posts: 819
12-19-2004 21:02
How about using SetPrimitiveParameters so the object is just a black cube until Christmas, then suddenly rezes itself into a Snail avatar on Christmas day?

Come to think of it, why has noone done this before? Sounds like kindof a neat trick?

Azelda
_____________________
Adam Zaius
Deus
Join date: 9 Jan 2004
Posts: 1,483
12-19-2004 21:12
I just added a quick little feature to secondserver to deliver items at a certain date (if buying for a friend.), just keep in mind, that all times are dealt with in Australian Western Standard Time, so it's quite likely that your item will be delivered a few hours early (for those staying up late.), you can however adjust for this, just append ' 10:00:00' to the end of the delivery time, to have the item delivered at midnight. :)

-Adam
_____________________
Co-Founder / Lead Developer
GigasSecondServer
Danny DeGroot
Sub-legendary
Join date: 7 Jul 2004
Posts: 191
12-19-2004 21:35
I'm in the middle of an experiment with another avie...we won't know if it's a success until tomorrow, since I can't test the priv transfers on myself.

1. I put a "gift" inside a small prim called "No Peeking!" The gift is full-priv. The "No Peeking!" prim (inner box) is no-copy, no-mod.

2. The inner box has a script which just gives its contents to the current owner the first time it's rezzed, and then does an llDie().

3. The inner box was placed inside another box, also no-mod, no-copy. The outer box's description was manually set to "Do not open until 2004-12-20." (The date is in the same format returned by llDate().) I also put some really tacky giftwrapping on it, but I couldn't find a Walgreen's in Loon for a 99-cent bow.

4. Whenever touched by the owner, the outer box reads its own description, discards the prefix "Do not open until " and then compares the remaining substring with the current date. If the two don't match, it whispers "Not yet, <owner_name>..." and reverts to default state. If the two do match, it rezzes the smaller "No Peeking!" inner box at its own position and location.

It all fired OK for me, but I can't tell what's going to get screwed up with the privs until another avie tries it. I sent one to a lucky Grid-citizen, locked until tomorrow. I guess I'll see then...and if it does work, boy howdy, is he going to be thrilled with the gift: a shiny metallic ball. But at least I made it myself.

== danny d.
RacerX Gullwing
Magic Rabbit
Join date: 18 Jun 2004
Posts: 371
12-19-2004 23:52
Well danny got by here a couple minutes before midnight. and read replys and tried the drag it thing to inventory out of the locked one, and you know how you get that item may be damaged if you do this, well I think that it was destoyed because its not in inventory i got the one ball you sent in the open one but the one that i wasnt sposed to open never made it to inventory and is not in the box. Also the die script didnt kill the first box just the item not sure what was to be deleted but I thought I'd thow that in.

oops I was thinking it would be the next thing on my objects like the first one I got and wasnt looking for someting called no peeking was looking for a bball like the first one just found no peeking in inventory objects with stuff i made at about the time i think you made it. so dragging did work.

I think i'll go with the second server plan I have an account there and if anyone else wnts it it'll be availeble at my second servers venders thier blue with a hand on them but not telling whats in the package. but I used to sell them for 25 . And its not the AV I give those away, allways have.
Danny DeGroot
Sub-legendary
Join date: 7 Jul 2004
Posts: 191
12-20-2004 05:25
Awww, man....(I mean, "awww, rabbit"....). Stoopid privs.

So much for my plan to become The Giftwrap Tycoon of SL.

*cancels order for private sim*

== danny d.
Chromal Brodsky
ExperimentalMetaphysicist
Join date: 24 Feb 2004
Posts: 243
12-20-2004 11:43
From: RacerX Gullwing
That'd be a real nice present for everyone but of course you could use it for Hananka too

Doalyn Vogel has built exactly this. I'm sure they'd be happy to share if you IMed them.
Alondria LeFay
Registered User
Join date: 2 May 2003
Posts: 725
12-21-2004 15:23
Have the box on click (and only on or after Christmas) signal (email) another object elsewhere to give the actual gift to the avatar.
Elle Pollack
Takes internets seriously
Join date: 12 Oct 2004
Posts: 796
12-21-2004 19:32
From: Alondria LeFay
Have the box on click (and only on or after Christmas) signal (email) another object elsewhere to give the actual gift to the avatar.


...that might work.

*steam comes out of ears*