Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Transfer files out of a object into your inventory .....

Deathmare zadoq
Registered User
Join date: 11 Oct 2004
Posts: 15
11-06-2004 03:39
Somehow it seems last patch changed something in the used routines to do that ( yea i'm no Scripter ). However my prob is that, i have two different scripts, both worked fine before the patch ( one gave all files single, the other in one direktory an yea last was my most used ) now when inserting those scripts, i get nothing anymore, as would that prim be empty but as there are still Scripts that work i want to ask for a location where i can find a working one, or maybe one can post me a solution here.
Thanks allready for even reading till here ;)
Dancininda Street
Registered User
Join date: 3 Aug 2004
Posts: 19
llGiveInventory is down?!
11-06-2004 11:07
I agree, I'm not able to give notecards from my object. I thought it was something I did wrong, since this is the first time I've scripted these.

But just try clicking on any of those "touch to rent this space" boxes - they aren't giving me anything.

Can one of you expert scripters out there please confirm?
Ace Cassidy
Resident Bohemian
Join date: 5 Apr 2004
Posts: 1,228
11-06-2004 11:23
I was helping lilone with some scripts to llGiveInventory() both objects and notecards just a couple of hours ago, and didn't have any problems.

Sounds bizarre... I'd bug report it, but that won't get looked at until Monday.

- Ace
_____________________
"Free your mind, and your ass will follow" - George Clinton
Logan Bauer
Inept Adept
Join date: 13 Jun 2004
Posts: 2,237
Hmm...
11-06-2004 12:40
While I'm by no means an "expert", and hardly even a more-than-decent "scripter", it does appear to be working for me. I have vendors that use llGiveInventory, and many items that use it to hand just a notecard. While it's possible there could have been a bug that was already fixed...

Dancininda, is it possible the rent-boxes you clicked were ones that whisper or say instead of giving notecards? I've noticed that with those ones, I'll zoom in my camera and click, but my avatar is not close enough to hear what it says - this happens to me all the time.

Deathmare, if it's still happening, aaaand it's not too complex of a script you're using , aaand you don't mind posting it, if you post it I'll try to take a look and see if I can help more...

Here's a piece of script that you can test and should give "Notecard Name" when you click on the object containing the script.


default
{

touch_start(integer total_number)

{

llGiveInventory(llDetectedKey(0), "Notecard Name";);

}
}
Aru Opel
Registered User
Join date: 5 Aug 2004
Posts: 36
11-06-2004 14:58
Would the keys be changed because of the update to the servers? The assets recreated after the update?
Samhain Broom
Registered User
Join date: 1 Aug 2004
Posts: 298
11-06-2004 15:59
With the script that was described, if yours is similar, then even if the keys DID change, that script would not be changed. Should still be ok.
_____________________
rm -rf /bin/ladden #beware of geeks bearing grifts
Deathmare zadoq
Registered User
Join date: 11 Oct 2004
Posts: 15
11-06-2004 17:59
Heres the basic script the one who give ( normaly ) the items single, it is not from me but a free one ( the better one is no mod so i cant post it here ).
I once more tested em both and they dont work. ( longest are the comments ;) )

// Copyright 2004, Trimming Hedges. Released to the public domain.
// This is a simple script that gives everything in a box to the person who clicked.
// By default, it will only give items to the owner of the box.
// I wrote this because of all the texture bundles that are given out. It's really a PAIN
// to move a lot of textures or other contents out of a box. This speeds that up.
// This is NOT a vending script. You can use this script to give everything in a box to someone, by changing 'owneronly' to be 0. BUT:
//
// I suggest not using this script in an area where several people are going to touch it at once, because giving inventory is slow.
// Version 2.0 of this script now detects multiple simultaneous touches: it is still slow, but it should work better at classes or events.
// THIS IS NOT A VENDING SCRIPT. It gives items away, it does NOT SELL THEM. (You don't need a script for most vending anyway.)
// This script doesn't give itself away. If you want it to, put it in the box, and set it to not running.
// Then rename a copy and put that in the box too. The renamed copy should be the running one.
// Rename it FIRST, I had weird issues with renaming it when it was already in
// the box. (version 1.2.12 of SL.)

integer owneronly = 0;
key owner;

default
{
state_entry()
{
owner = llGetOwner();
}

touch_start(integer total_number)
{
integer i;
for (i=0;i<total_number;i++)
{
key target = llDetectedKey(i);

if ( (target != owner) && (owneronly == 1) ) // person clicking isn't owner and owneronly is set;
{
llInstantMessage(target,"Sorry, only the owner is allowed to get my contents.";);
return;
}
list inventory_types = [INVENTORY_BODYPART,INVENTORY_CLOTHING,INVENTORY_LANDMARK,INVENTORY_NOTECARD,INVENTORY_OBJECT,INVENTORY_SCRIPT,INVENTORY_SOUND,INVENTORY_TEXTURE];
integer inventory_count = llGetListLength(inventory_types);
integer j;
integer k;
integer type;
integer typecount;
string myname = llGetScriptName();
string objectname;

for (j=0; j<inventory_count;j++)
{
type = llList2Integer(inventory_types,j); // get the next inventory type from the list
typecount = llGetInventoryNumber(type); // how many of that kind of inventory is in the box?
if (typecount > 0)
{
for (k=0; k<typecount;k++)
{
objectname = llGetInventoryName(type,k);
if (objectname != myname) // don't give self out so the user doesn't get fifty thousand copies.
{
llGiveInventory(target,objectname);
}
}
}
}
}
}
}
Deathmare zadoq
Registered User
Join date: 11 Oct 2004
Posts: 15
11-08-2004 10:26
:D heh seems i had to find it out my self and learn a bit scripting.

Ok ..All files in the the boxes i tested were animatons and i noticed one thing ... the Data types in that script dont hold that type, to make it short correct list would be :
INVENTORY_TEXTURE, INVENTORY_SOUND, INVENTORY_OBJECT, INVENTORY_SCRIPT, INVENTORY_LANDMARK, INVENTORY_CLOTHING, INVENTORY_NOTECARD, INVENTORY_BODYPART, INVENTORY_ANIMATION, INVENTORY_GESTURE
( seems alot of similar scripts like the one who gives all content in one folder are based on the same script ). However i'm sure before the patch i had allready Boxes with animations and those worked ... hmm

so all couse of a wrong datatype, so I'm very Sorry !
Samhain Broom
Registered User
Join date: 1 Aug 2004
Posts: 298
11-08-2004 12:17
You know what, sometimes when I see questions like that, I have to think about what the possibilities are that can possibly be wrong, and even if I know the answer, it does something similar to the "Memory Refresh Sequence", and if I did not know it in the first place, then I get to know it.

I would hope no one else is bothered by it, but sometimes I post a question in here, and about the time I get done the post, if I ask the question well enough, I will be that much closer to answering my own question.

When I do, I come back and post the answer. :o

I hope that's not annoying, at least if someone else had that same question, it will help them too.
_____________________
rm -rf /bin/ladden #beware of geeks bearing grifts