User:Kireji Haiku/A more complex freebie-giver (setup with notecard)

From Second Life Wiki
Jump to navigation Jump to search

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:


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!



Go to top!

Setup-guide:

KBcaution.png 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:



Go to top!

Normal Version

Note!

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 }}


Go to top!

config.cfg Notecard


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 }}


Go to top!

Help with setup

Note!

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:

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 }}


Go to top!

Version with manual eMail-Address Input

Note!

You're highly advised to read the INTRO first before starting here.

manual eMail Script


VERSION WITH MANUAL eMAIL-ADDRESS INPUT

Script:


{{#widget:Kireji Haiku/A more complex freebie-giver (setup with notecard) |key=0AdlLeYPtgPiBZGZ4d3YyczRfN244cjZmZ2cy |width=500 |height=300 }}


Go to top!

manual eMail Notecard


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.


Error in widget Google Document: Unable to load template 'wiki:Google Document'


Go to top!