Difference between revisions of "User:Kireji Haiku/A more complex freebie-giver (setup with notecard)"

From Second Life Wiki
Jump to navigation Jump to search
(Replaced content with "{{delete|out of date}}")
 
(24 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Help |Wiki=*}}
{{delete|out of date}}
{{LSL Header}}
<noinclude>
<div style="float:right;">__TOC__</div>
<div id="box">
=About this script:=
<div style="padding: 0.5em;">
'''You can find a working system right here:''' [http://slurl.com/secondlife/Cypris_Village/113/142/27/ 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 [http://wiki.secondlife.com/wiki/List2CSV List2CSV], [http://wiki.secondlife.com/wiki/AdvancedNotecardReader Advanced Notecard Reader], [http://wiki.secondlife.com/wiki/LlUnSit llUnsit], [http://wiki.secondlife.com/wiki/LlSameGroup llSameGroup], [http://wiki.secondlife.com/wiki/LlParticleSystem Particle System] and last but not least the three main functions [http://wiki.secondlife.com/wiki/LlEmail llEmail], [http://wiki.secondlife.com/wiki/LlGiveInventoryList llGiveInventoryList] and [http://wiki.secondlife.com/wiki/LlDialog 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:''' [http://slurl.com/secondlife/Cypris_Village/113/142/27/ Click this SLURL!]
 
 
 
 
[http://wiki.secondlife.com/wiki/User:Kireji_Haiku/A_more_complex_freebie-giver_(setup_with_notecard) Go to top!]
==Setup-guide:==
 
{{KBcaution|Please note the '''BIG DIFFERENCE''' between the two setups by referring to [[#Main Script|the script of the main version]] '''(eMail-Addresses from notecard, you can make them private or public)''' and [[#manual eMail Script|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 [[#config.cfg Notecard|notecard]]
 
 
 
'''You can find a working system right here:''' [http://slurl.com/secondlife/Cypris_Village/113/142/27/ Click this SLURL!]
 
 
 
'''Use these links to the different parts:'''
* Normal Version
** [[#Main Script|Configuration Script]]
** [[#config.cfg Notecard|config.cfg Notecard]]
* Version with manual eMail-Address Input
** [[#manual eMail Script|Script-Version for manual eMail-Address-Input]]
** [[#manual eMail Notecard|Notecard-Version for manual eMail-Address-Input]]
* [[#Help with setup|Help with setup]]
 
 
 
 
 
[http://wiki.secondlife.com/wiki/User:Kireji_Haiku/A_more_complex_freebie-giver_(setup_with_notecard) Go to top!]
</div></div>
<div id="box">
=Normal Version=
{{Help/Box|Note!|You're highly advised to read the [[#About this script:|INTRO]] first before starting here.}}
<div style="padding: 0.5em;">
==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):'''
 
 
* [[#config.cfg Notecard|config.cfg Notecard to this script]]
* [[#manual eMail Script|other Script-Version for manual eMail-Address-Input]]
 
 
<nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>
|key=0AdlLeYPtgPiBZGZ4d3YyczRfMTBkczNqdzQ1NQ
|width=500
|height=300
}}</nowiki>
 
 
[http://wiki.secondlife.com/wiki/User:Kireji_Haiku/A_more_complex_freebie-giver_(setup_with_notecard) Go to top!]
==config.cfg Notecard==
 
* [[#Main Script|Configuration Script to this notecard]]
* [[#Help with setup|Help with setup of this notecard]]
* [[#manual eMail Notecard|Have a look at the Notecard-Version for manual eMail-Input]]
** [[#manual eMail Script|and its Script-Version for manual eMail-Input]]
 
 
'''Notecard to put in desired prim:'''
 
* Keep timer for sending mail above 30 seconds.
* Use [[#Help with setup|this script]] to create lists.
* Any name '''followed by .cfg''' is fine.
 
 
<nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>
|key=0AdlLeYPtgPiBZGZ4d3YyczRfOWc5aDZ0NWZi
|width=500
|height=300
}}</nowiki>
 
 
[http://wiki.secondlife.com/wiki/User:Kireji_Haiku/A_more_complex_freebie-giver_(setup_with_notecard) Go to top!]
</div></div>
<div id="box">
=Help with setup=
{{Help/Box|Note!|You're highly advised to read the [[#About this script:|INTRO]] first before starting here.}}
<div style="padding: 0.5em;">
==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'''
** [[#config.cfg Notecard|set up this notecard(list)]]
** [[#Main Script|for its script(list)]]
* '''Setting up the Version with manual eMail-Address Input'''
** [[#manual eMail Notecard|set up this notecard (manual)]]
** [[#manual eMail Script|for its script(maunal)]]
 
'''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.
 
 
<nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>
|key=0AdlLeYPtgPiBZGZ4d3YyczRfOGdwN3F0bWg0
|width=500
|height=300
}}</nowiki>
 
 
[http://wiki.secondlife.com/wiki/User:Kireji_Haiku/A_more_complex_freebie-giver_(setup_with_notecard) Go to top!]
</div></div>
<div id="box">
=Version with manual eMail-Address Input=
{{Help/Box|Note!|You're highly advised to read the [[#About this script:|INTRO]] first before starting here.}}
<div style="padding: 0.5em;">
==manual eMail Script==
 
* [[#manual eMail Notecard|config.cfg Notecard for this script]]
** [[#Help with setup|Help with setup]]
* Normal Version '''(because you might not want them to be able to send an eMail to ANY eMail-Address)'''
** [[#Main Script|Configuration Script]]
** [[#config.cfg Notecard|config.cfg Notecard]]
 
 
 
'''VERSION WITH MANUAL eMAIL-ADDRESS INPUT
 
Script:'''
 
 
<nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>
|key=0AdlLeYPtgPiBZGZ4d3YyczRfN244cjZmZ2cy
|width=500
|height=300
}}</nowiki>
 
 
[http://wiki.secondlife.com/wiki/User:Kireji_Haiku/A_more_complex_freebie-giver_(setup_with_notecard) Go to top!]
==manual eMail Notecard==
 
 
 
 
* [[#manual eMail Script|Script-Version for manual eMail-Address-Input]]
** [[#Help with setup|Help with setup]]
* Normal Version '''(because you might not want them to be able to send an eMail to ANY eMail-Address)'''
** [[#Main Script|Configuration Script]]
** [[#config.cfg Notecard|config.cfg Notecard]]
 
 
'''VERSION WITH MANUAL eMAIL-ADDRESS INPUT
 
 
 
Notecard to put in desired prim:'''
 
* Keep timer for sending mail above 30 seconds.
* Use [[#Help with setup|this script]] to create lists.
* Any name '''followed by .cfg''' is fine.
 
 
<nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>
|key=0AdlLeYPtgPiBZGZ4d3YyczRfNmhjdnBqZmc0
|width=500
|height=300
}}</nowiki>
 
 
[http://wiki.secondlife.com/wiki/User:Kireji_Haiku/A_more_complex_freebie-giver_(setup_with_notecard) Go to top!]
</div></div>
</noinclude><includeonly><iframe width="<!--{$width|escape:'html'|default:500}-->" height="<!--{$height|escape:'html'|default:300}-->" frameborder="1"  src="http://docs.google.com/Doc?docid=<!--{$key|escape:'urlpathinfo'}-->&hl=en"></iframe></includeonly>

Latest revision as of 18:03, 29 May 2011

Deletion Requested
The deletion of this article was requested for the following reason:

out of date

If there is a need to discuss the deletion of this article, please add your comment(s) here.