User:Kireji Haiku/A more complex freebie-giver (setup with notecard)
Help Portal: |
Avatar | Bug Fixes | Communication | Community | Glossary | Land & Sim | Multimedia | Navigation | Object | Video Tutorials | Viewer | Wiki | Misc |
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
About this script:
You can find a working system right here: Click this SLURL!
Initial thoughts
- This script has been provided by Kireji Haiku.
- It takes a while until you get a hang of the structure. This is my first more complex script.
- Parts of this script have been taken from this wiki, others of fullperm inworld scripts I have collected.
I wanted to make a freebie- and/or notecard-giver that:
- gives up to nine different lists of its inventory items and gives the ability to send an eMail as feedback to the owner (or the owners!). Complete setup with notecard support and ability to resctrict to group. Including parts of List2CSV, Advanced Notecard Reader, llUnsit, llSameGroup, Particle System and last but not least the three main functions llEmail, llGiveInventoryList and llDialog.
This setup here will give you:
- A freebie giver, not a vendor.
- A possibility for people to send an email to multiple recipients without them knowing the addresses. (Ok, you can change that, but I like it that way because I can use a private email-address nobody in SL needs to know about.)
- A possibility to give a group or anybody multiple arrangements of freebies into folder, without a big hassle.
- A very easy way to add stuff, once it has been setup. Although I have to say that the initial setup can be a bit nasty.
You can find a working system right here: Click this SLURL!
Setup-guide:
Important: Please note the BIG DIFFERENCE between the two setups by referring to the script of the main version (eMail-Addresses from notecard, you can make them private or public) and its correspondent with manual input (users have to input address themselves and CAN send an eMail to anybody) |
- Create the final prim you want to use and put in the configuration-notecard. Make sure the name of that notecard ends with ".cfg". Then put the main script inside.
- Put all stuff you want to give away into the same prim and set all scripts other than the configuration script to "not running".
- Create a helper-prim for every button you want to use (as it is now, max is 9) and copy a list of the contents into it.
- Setup your notecard with the help of the script for the helper-prim.
- Recheck setup, remove spaces around "=" in the notecard between the command and the arguement.
- This giver will rename itself during the sending process to the user's SL name and after that perform a script-reset. Make sure you have the name you want for your system set up for active status in the notecard. Renaming the prim manually wont do the magic, because the next reset will kill the changes and take the name from notecard again.
- DO NOT USE ITEMS YOU GIVE AWAY THAT CONTAIN A = IN THEIR NAME! AND BE ADVISED, THAT NAMES ARE CASE SENSITIVE. LONG SETUP NOTECARDS AND A LOT OF ITEMS CAN CRASH THIS SYSTEM EVENTUALLY, SO DON'T OVERDO IT, all'right?
- If you wonder why all those messages appear after reconfiguring, or why not...try changing the value for debug in the notecard
You can find a working system right here: Click this SLURL!
Use these links to the different parts:
- Normal Version
- Version with manual eMail-Address Input
- Help with setup
Normal Version
You're highly advised to read the INTRO first before starting here.
Main Script
You can do anything with this, but please be so kind and leave me a note if you use my work, thanks.
Script to put in desired prim(name doesn't matter here):
{{#widget:Kireji Haiku/A more complex freebie-giver (setup with notecard)
|key=0AdlLeYPtgPiBZGZ4d3YyczRfMTBkczNqdzQ1NQ
|width=500
|height=300
}}
config.cfg Notecard
- Configuration Script to this notecard
- Help with setup of this notecard
- Have a look at the Notecard-Version for manual eMail-Input
Notecard to put in desired prim:
- Keep timer for sending mail above 30 seconds.
- Use this script to create lists.
- Any name followed by .cfg is fine.
{{#widget:Kireji Haiku/A more complex freebie-giver (setup with notecard)
|key=0AdlLeYPtgPiBZGZ4d3YyczRfOWc5aDZ0NWZi
|width=500
|height=300
}}
Help with setup
You're highly advised to read the INTRO first before starting here.
Script for prims with a copy of the inventory list you give away by pressing one particular button
You can do anything with this, but please be so kind and leave me a note if you use my work, thanks.
This script is for:
- Setting up the Normal Version
- Setting up the Version with manual eMail-Address Input
Use this script for creating a list:
- Make a copy of the content list for every button in different prims.
- Name the object with the list name for your desired button, not the button name.
- Example for above, your button "a" gives you a list of the items listed under "1". Name your prim "1"
- You can copy&paste the created local chat text into the notecard and replace your "timestamp + prim_name:" with "prim_name=" for every line
- Yeah, sorry. That's the fastest way for the first setup, adding single items later is a lot faster.
{{#widget:Kireji Haiku/A more complex freebie-giver (setup with notecard)
|key=0AdlLeYPtgPiBZGZ4d3YyczRfOGdwN3F0bWg0
|width=500
|height=300
}}
Version with manual eMail-Address Input
You're highly advised to read the INTRO first before starting here.
manual eMail Script
- config.cfg Notecard for this script
- Normal Version (because you might not want them to be able to send an eMail to ANY eMail-Address)
VERSION WITH MANUAL eMAIL-ADDRESS INPUT
Script:
{{#widget:Kireji Haiku/A more complex freebie-giver (setup with notecard)
|key=0AdlLeYPtgPiBZGZ4d3YyczRfN244cjZmZ2cy
|width=500
|height=300
}}
manual eMail Notecard
- Script-Version for manual eMail-Address-Input
- Normal Version (because you might not want them to be able to send an eMail to ANY eMail-Address)
VERSION WITH MANUAL eMAIL-ADDRESS INPUT
Notecard to put in desired prim:
- Keep timer for sending mail above 30 seconds.
- Use this script to create lists.
- Any name followed by .cfg is fine.