<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://opensimulator.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://opensimulator.org/index.php?action=history&amp;feed=atom&amp;title=OSSL_Script_Library%2FSimple_Notecard_Reader</id>
		<title>OSSL Script Library/Simple Notecard Reader - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://opensimulator.org/index.php?action=history&amp;feed=atom&amp;title=OSSL_Script_Library%2FSimple_Notecard_Reader"/>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/index.php?title=OSSL_Script_Library/Simple_Notecard_Reader&amp;action=history"/>
		<updated>2026-05-14T01:02:57Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.9</generator>

	<entry>
		<id>http://opensimulator.org/index.php?title=OSSL_Script_Library/Simple_Notecard_Reader&amp;diff=26078&amp;oldid=prev</id>
		<title>Fritigern: New page: This script is intended to demonstrate the use of osGetNotecard* functions in OSSL. They can (and should) be used to eliminate the dataserver hell that LSL puts a scripter through.   &lt;sour...</title>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/index.php?title=OSSL_Script_Library/Simple_Notecard_Reader&amp;diff=26078&amp;oldid=prev"/>
				<updated>2011-10-16T06:29:22Z</updated>
		
		<summary type="html">&lt;p&gt;New page: This script is intended to demonstrate the use of osGetNotecard* functions in OSSL. They can (and should) be used to eliminate the dataserver hell that LSL puts a scripter through.   &amp;lt;sour...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This script is intended to demonstrate the use of osGetNotecard* functions in OSSL. They can (and should) be used to eliminate the dataserver hell that LSL puts a scripter through.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lsl&amp;quot;&amp;gt;&lt;br /&gt;
string NoteCardName = &amp;quot;testcard&amp;quot;;&lt;br /&gt;
integer n;&lt;br /&gt;
&lt;br /&gt;
default&lt;br /&gt;
{&lt;br /&gt;
    state_entry()&lt;br /&gt;
    {&lt;br /&gt;
        string NoteCardContents = osGetNotecard(NoteCardName); //Read the notecard, and store its contents in a string&lt;br /&gt;
        llOwnerSay(NoteCardContents); // Read the string to the owner of the object&lt;br /&gt;
        &lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
    touch_start(integer numdet)&lt;br /&gt;
    {&lt;br /&gt;
        integer NumLines = osGetNumberOfNotecardLines(NoteCardName);  // Get the number of lines in the notecard&lt;br /&gt;
        for(n=0;n&amp;lt;NumLines;++n)&lt;br /&gt;
        {&lt;br /&gt;
            string NoteCardLine = osGetNotecardLine(NoteCardName,n); // Read a single line from the notecard, and store it/&lt;br /&gt;
            llOwnerSay(NoteCardLine);   // Read the single line to the object's owner&lt;br /&gt;
        }        &lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Scripts]]&lt;/div&gt;</summary>
		<author><name>Fritigern</name></author>	</entry>

	</feed>