|
Stormy Wilde
The Bones In Your Closet
Join date: 31 Jul 2004
Posts: 130
|
08-11-2006 20:49
OK I am looking for an unpacking script that will unpack tattoos I make from the tattoo ink bottle they come in. They are sold as transferable only. So far the only script I can find will only do items that are transferable. I know very very very little about scripting so any help anyone could give me would be great.
Thanks!
Stormy Wilde
|
|
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
|
08-11-2006 21:25
if you need to use a vendor the item only needs to be transferable to you, and located in the vendors inventory... (notice the items permissions says "next owner"  unless your selling more than 1 tattoo out of 1 ink bottle there is no need for this ... if you have it setup for 1 tattoo in 1 ink bottle you can just set the ink bottle to "sell contents" and slap a price on it in the edit window  which will sell whatever is in the ink bottle for the set price ... it sends the item(s) to the payer's inventory under a folder (no unpacking, no scripts)
|
|
Stormy Wilde
The Bones In Your Closet
Join date: 31 Jul 2004
Posts: 130
|
08-12-2006 06:54
I do have more then one in each bottle. Say its an upper body tattoo...I give them both as shirts, and undershirts. Or if its lower body I give them as pants and under pants, somtimes even socks to, depending on where the tattoo is located. As for how I have them displayed, they are put in the bottles, then put into either A. The Jevn vendor system. B. a plain box with the item in it on display And soon I will be adding the Jevn catalog system. If you really want to see how they are displayed my store is The Wilde Lily in Nauru.
~Stormy
|
|
Xixao Dannunzio
Owner, X3D Enterprises
Join date: 20 Mar 2006
Posts: 114
|
08-12-2006 07:11
From the Wiki: default { on_rez(integer nevermind) { llSetText("Touch me to receive your tattoos.",<1,1,1>,1.0); } touch_start(integer total_number) { if(llDetectedKey(0) == llGetOwner()){ list inventory; string name; integer num = llGetInventoryNumber(INVENTORY_ALL); string text = llGetObjectName() + " is unpacking..."; integer i; for (i = 0; i < num; ++i) { name = llGetInventoryName(INVENTORY_ALL, i); if(llGetInventoryPermMask(name, MASK_NEXT) & PERM_COPY) inventory += name; else llOwnerSay("Cannot give asset \""+name+"\", owner lacks copy permission"); llSetText(text + (string)((integer)(((i + 1.0) / num) * 100))+ "%", <1, 1, 1>, 1.0); } } //chew off the end off the text message. text = llGetObjectName(); //we don't want to give them this script i = llListFindList(inventory, [llGetScriptName()]); inventory = llDeleteSubList(inventory, i, i); if (llGetListLength(inventory) < 1) llSay(0, "No items to offer."); else { llGiveInventoryList(llGetOwner(), text, inventory); llOwnerSay("Your new tattoos can be found in your inventory, in a folder called '"+ text +"'."); } } } http://secondlife.com/badgeo/wakka.php?wakka=llGiveInventoryList
|