Jump to content

Single folder giver script


Freo Benavente
 Share

You are about to reply to a thread that has been inactive for 4096 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

G'day all!  I've recently installed a single board vendor system that allows a prospective viewer to click to preview the available samples to consider when placing their order.  My problem is that I'd like to include a script that would dispense a SINGLE folder, as to the one I'm currently using which dispenses one with every click...

 

Can someone either provide an appropriate script, or post the line(s) I'd need to add in order to mod my exisiting one- so IT would only dispense once per each avatar?  Thank you muchly! =]

Link to comment
Share on other sites

One problem is that you cannot place a folder into an object.  You can place the content sof a folder but not a single folder itself.  Folders more or less do not exist in the form you see it as they are really just placeholders within your inventory.

What you will more than likely need to do is place those content within another object and dispense that object or give out multiple objects but not a folder.

 

Link to comment
Share on other sites

I understand what you mean, and in essence you are correct.  Its not the actual FOLDER being dispensed, but the contents of a specified folder.  But I've tested that part, and the items in the folder that I've placed within the board are functioning as designed.  My problem is that a new batch is given upon every click.  So with 10 clicks, they get 1 packet, with 9 duplicates.  Thank you though, as you helped me to clarify my issue. =]

Link to comment
Share on other sites

Ooook, that sounds like what I need, but I lack the scripting skills to formulate that into a functioning LSL.  So specifics would be GREATLY appreciated.  I checked the wiki link you provided, but if i'm interpretting it correctly, it "gives" everything in the inventory, and I don't want that - just the items specified by the folder.  But I agree, something that would allow the script to recognize that it's already provided the aforementioned contents to a certain avatar, and thus to desist from resending, is precisiely what I'm looking for.  So ty too...

Link to comment
Share on other sites

The LSL Library is meant as a place for scripters share completed, tested scripts.  If you are looking for someone to write a script for you, the best place to ask is in the Inworld Employment section of the Commerce Forums (http://community.secondlife.com/t5/Inworld-Employment/bd-p/InworldEmployment). If you are looking for a script that is not in this library, try Marketplace or the Wanted section of the Commerce forums (http://community.secondlife.com/t5/Wanted/bd-p/Wanted). You will have much better luck.

Link to comment
Share on other sites

No, llGiveInventoryList gives everything in the list you've specified.   How you make up the list at run-time is up to you.   So if, for example, you wanted to give someone a folder comprising a landmark and a notecard, the names of which you'd already assigned to variables, and that the string "item" holds the name of the selected item, you could say, llGiveInventoryList(id,"a folder of stuff", [notecard+landmark+item]);

Link to comment
Share on other sites

That is precisily my quandry, Qwalyphi and if I've erred in coming here (to this thread), then please direct me to the appropriate venue.  Though since I already have a script that functions MOSTLY as I'd like; that I just needed to figure out how to tweak it into perfection.  I thought perhaps someone HERE might possess the skill I lack, and could answer what i'd PRESUMED would be an easy resolution.  Like some closed end command, or avatar recognition text...  Just to finish off the process cleanly.  But I'm grasping at straws perhaps...  I just hate being so close, but yet so far.  Yanno? =]

 

And Rolig, I thought this was the Scripting Thread, not the library?  So I thought this was the place to discuss all things scripting - even problem resolution?  Am I mistaken? =/

Link to comment
Share on other sites

Perhaps it would have been easier to post the part of the script that was giving you trouble. We were all trying to guess the problem from your sketchy description, so all we could offer was generic advice.

And yes, your original post was to the LSL Library.  The moderators kindly moved it here.

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4096 days.

Please take a moment to consider if this thread is worth bumping.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...