Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Mailbox in prim attached to avatar

Lorna Sicling
Registered User
Join date: 15 Oct 2007
Posts: 7
03-15-2009 14:34
Hi, I would like to have a mailbox type script that accepts notecards - lots available - but, I want to have it work when the prim is attached to my avatar.

The idea is to have document pouch where others can drop notecards into it while I am wearing it. Another avatar (or me) can then touch the pouch and using a standard menu driven notecard selector and giver script they can then retrieve the desired notecard.

Is this possible?
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
03-15-2009 15:33
Yes. Treat it like any other drop box or vendor box.
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
03-15-2009 15:43
Hmm. I don't think that's true. I believe like payments, any items dropped anywhere on your avatar (including on any attachments) go directly to your inventory. I have a serious suspicion that llAllowInventoryDrop() does not change this.

MAYBE llGiveInventory() to the attachment will work though, and so MAYBE you could rez an object to act as a go-between, accepting inventory items and passing them on to your attachment.
Lorna Sicling
Registered User
Join date: 15 Oct 2007
Posts: 7
Standard mailbox scripts
03-16-2009 06:39
Yeah - I've tried three different "standard" mailbox scripts so far, and none of them work when the object is attached to my avi, but they're fine when rezzed on the ground. Shame if it's not possible without having to have intermediary objects etc.
Johan Laurasia
Fully Rezzed
Join date: 31 Oct 2006
Posts: 1,394
03-16-2009 07:16
dropping an object on an avatar (including their attachments) is already 'taken'. It causes the item to be transferred from inventory to inventory. There's no way to hook that action via scripting so that you can do anything else with it.
_____________________
My tutes
http://www.youtube.com/johanlaurasia
Lorna Sicling
Registered User
Join date: 15 Oct 2007
Posts: 7
03-16-2009 07:49
OK - thought that might be the case but wanted to check. Can a menu driven notecard giver script take it's list of scripts from an inventory folder instead of the attached object it is within - again I'm expecting that this would be "no" due to possible security reasons.
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
03-16-2009 08:10
From: Lorna Sicling
OK - thought that might be the case but wanted to check. Can a menu driven notecard giver script take it's list of scripts from an inventory folder instead of the attached object it is within - again I'm expecting that this would be "no" due to possible security reasons.

Correct. "No."