Kostya Noyes Posted February 2, 2017 Share Posted February 2, 2017 llGiveInventory(llDetectedKey(0),"inner_Object"); this function give no copy "inner_object" from "main_object" to avatar, but "main_object" becomes empty.How give no copy "inner_object" many times? Link to comment Share on other sites More sharing options...
Rolig Loon Posted February 2, 2017 Share Posted February 2, 2017 You cannot. That's what "no copy" means. If your script gives away your copy, it is no longer there. You cannot expect to give it again. There is nothing a LSL script can do to change the next owner permissions on an object in its inventory. Link to comment Share on other sites More sharing options...
Kostya Noyes Posted February 2, 2017 Author Share Posted February 2, 2017 Hello! http://maps.secondlife.com/secondlife/Tournant/116/135/40\ Look "Edit" menu object "Royalty Vendor" with free Valentine Guitar. It have only script, but it give object many for many people. How? What right solution in my case? - Many 'inner_object in 'main_object'? Link to comment Share on other sites More sharing options...
Rolig Loon Posted February 2, 2017 Share Posted February 2, 2017 That Royalty Vendor is owned by Linden Lab, which has a full perm version of the object, so Linden Lab is not the "next owner". You are. The item you receive is "no copy" for you, but not for them. Also, that vendor is not delivering items from its own inventory. It is delivering them from a remote server, which is why you do not see an object there. The vendor sends a message to the remote server, somewhere in SL, and the server uses llGiveInventory to send the object from its inventory. Link to comment Share on other sites More sharing options...
Kostya Noyes Posted February 2, 2017 Author Share Posted February 2, 2017 Can you give me sample code? OK Maybe How can I change PRIM_TEXT, PRIM_NAME, PRIM_DESCRIPTION of "inner_object" (no mod, copy, no transfer) after llGiveInventory(); to avatar? Link to comment Share on other sites More sharing options...
Rolig Loon Posted February 2, 2017 Share Posted February 2, 2017 No, but it's easy to guess exactly how it works, at least without all the accounting frills that you or I would normally build into any vendor. The Royalty Vendor that you see can be very simple. All it needs to do is collect your UUID from a touch_start event and send it in a message to the remote server. I'm guessing that the message is sent by HTTP, but it could be e-mail. The remote server has the original item in its own inventory. The script there can also be incredibly simple. It receives the message, gets your UUID from it, and immediately does llGiveInventory(your_uuid,"The Item"); The llGiveInventory function can give the object to an avatar anywhere in SL, so you will receive it instantly. That's really all there is to it. No magic. If I were scripting a vendor like that, I would include all sorts of extra code for storing a history of transactions (probably in KVP), for double checking to be sure that you only get one copy of the item, and that the creator of the item gets paid a royalty for each transaction. And of course anything else that makes the vendor pretty. The basic vendor itself, though, is easy. Link to comment Share on other sites More sharing options...
Kostya Noyes Posted February 2, 2017 Author Share Posted February 2, 2017 Royality Vendor give no copy item trough llGiveInventory(your_uuid,"The Item"); this is I need! Please, can you give me sample of code? Link to comment Share on other sites More sharing options...
Rolig Loon Posted February 2, 2017 Share Posted February 2, 2017 I don't know how I can say it any more clearly: "That Royalty Vendor is owned by Linden Lab, which has a full perm version of the object, so Linden Lab is not the "next owner". You are. The item you receive is "no copy" for you, but not for them." Link to comment Share on other sites More sharing options...
Kostya Noyes Posted February 2, 2017 Author Share Posted February 2, 2017 I have main_object (I creator, owner other avatar) on land with `inner_object` into it. How I give `inner_object` (with no copy) to other users same as Royality Vendor? Importart given item `inner_object` must be no copy! Link to comment Share on other sites More sharing options...
Rolig Loon Posted February 2, 2017 Share Posted February 2, 2017 Please read https://community.secondlife.com/t5/English-Knowledge-Base/Object-permissions/ta-p/700129 Link to comment Share on other sites More sharing options...
Kostya Noyes Posted February 2, 2017 Author Share Posted February 2, 2017 Thank you, i read this. I understand than need create new object (I is creator, I is owner) which will be have inner_object and will be listen command trouth llSay from main_object (I creator, owner other) and give inner_object with no_copy permission. Maybe I can send item from my invetory? or any ways? Link to comment Share on other sites More sharing options...
Rolig Loon Posted February 2, 2017 Share Posted February 2, 2017 llGiveInventory sends the item from the inventory of the scripted object, not from your personal inventory. Link to comment Share on other sites More sharing options...
Love Zhaoying Posted February 2, 2017 Share Posted February 2, 2017 Just set the "Next owner permissions" to "No Copy". This way, it won't give the only copy, but whoever you give it to can't make copies. Don't make it a "True" no copy item, or it will give itself away and there will be no more copies in the inventory! The smart ones can call me out on this answer ;-) Link to comment Share on other sites More sharing options...
Uriah Eulenberg Posted February 3, 2017 Share Posted February 3, 2017 "No copy" means that no one can make a copy. However, if you were the creator of "inner object", you have full rights on the item. You can duplicate your own creation as many as you like, also your vending machine is able to duplicate the your creation as many as it needs. Then you'll never lose the original "inner object". If the "inner object (no copy)" was NOT created by you, you have to follow the original creator's permission set. Either you and your vending machine can not create any copies of the item. There will be only one solution : Put many (no copy) objects into the vending machine. That "Royal vendor" you mentioned above has a storage server in somewhere else. If you clicked the vendor, it sends your UUID to the storage server and the server sends you a guitar. That's why the vendor only has a script inside and doesn't have any copies of the guitar to give out. Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now