Vance Adder
Registered User
Join date: 29 Jan 2009
Posts: 402
|
08-21-2009 10:00
I have this idea... Let's say: - user1 has "object a" attached - under a certain condition, "object a" sends a message to my server - after processing the message, my server sends "object b" back to user1
Easy enough. I know that's possible...
Now... It would be so much better if the server could send "object b" and have it go directly into the inventory of "object a". What I'm asking for is impossible, right? I'd have to just send "object b" to the user, have them rez "object a" themselves, and manually put "object b" inside.
Now... I was looking at remote loading scripts into prims. As I understand it, I *could* remotely add scripts to "object a".
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
08-21-2009 10:31
If your server and attachment are in the same region, you should be able to do it with llGiveInventory(). The recipient will be the key of the prim in the attachment, not your own key. Remember that attached objects (and all of their child prims) get new keys every time they are attached. I believe the owner of the objects must be the same (which means YOU, not your group or friend or anything, will have to own the server since your attachment is always owned by you). I don't know if llAllowInventoryDrop() will work on this, but I guess you could try it. If you aren't in the same region as the server, it's not going to happen. See http://wiki.secondlife.com/wiki/LlGiveInventory
|
Vance Adder
Registered User
Join date: 29 Jan 2009
Posts: 402
|
08-21-2009 12:02
huh... yeah, I seem to have forgotten about llGiveInventory... what I want to do doesn't seem like it'll work the way I thought afterall though, back to the drawing board! thanks 
|
Darien Caldwell
Registered User
Join date: 12 Oct 2006
Posts: 3,127
|
08-21-2009 12:15
From: Hewee Zetkin If your server and attachment are in the same region, you should be able to do it with llGiveInventory(). The recipient will be the key of the prim in the attachment, not your own key. Remember that attached objects (and all of their child prims) get new keys every time they are attached. I believe the owner of the objects must be the same (which means YOU, not your group or friend or anything, will have to own the server since your attachment is always owned by you). I don't know if llAllowInventoryDrop() will work on this, but I guess you could try it. If you aren't in the same region as the server, it's not going to happen. See http://wiki.secondlife.com/wiki/LlGiveInventoryllAllowInventoryDrop will work, and allow someone else to send an object using llGiveInventory. I based an update system off this. However, there are some restrictions. The receiving item must be modify, and I don't think it would work with a worn item. The item would need to be placed on the ground near the updater (in the same sim as you say). Because of the possible abuse, it's important it be done carefully. I posted more specifics in this thread: /54/47/331565/1.html#post2508290At first I thought it worked for no mod items, which was the focus of that thread, but i was mistaken, the item receiving must be modify. So ignore the part that says it doesn't work, that just means it doesn't work for no modify items.
|