| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <!-- headlinks removed -->
- <link rel="shortcut icon" href="../../../../misc/favicon.ico"/>
- <title>GetSloodleObjects - SLIS Second Life Wiki</title>
- <style type="text/css">/*<![CDATA[*/ @import "../../../../skins/offline/main.css"; /*]]>*/</style>
- <link rel="stylesheet" type="text/css" media="print" href="../../../../skins/common/commonPrint.css" />
- <!--[if lt IE 5.5000]><style type="text/css">@import "../../../../skins/monobook/IE50Fixes.css";</style><![endif]-->
- <!--[if IE 5.5000]><style type="text/css">@import "../../../../skins/monobook/IE55Fixes.css";</style><![endif]-->
- <!--[if IE 6]><style type="text/css">@import "../../../../skins/monobook/IE60Fixes.css";</style><![endif]-->
- <!--[if IE]><script type="text/javascript" src="../../../../skins/common/IEFixes.js"></script>
- <meta http-equiv="imagetoolbar" content="no" /><![endif]-->
- <script type="text/javascript" src="../../../../skins/common/wikibits.js"></script>
- <script type="text/javascript" src="../../../../skins/offline/md5.js"></script>
- <script type="text/javascript" src="../../../../skins/offline/utf8.js"></script>
- <script type="text/javascript" src="../../../../skins/offline/lookup.js"></script>
- </head>
- <body
- class="ns-0 ns-subject page-GetSloodleObjects">
- <div id="globalWrapper">
- <div id="column-content">
- <div id="content">
- <a name="top" id="contentTop"></a>
- <h1 class="firstHeading">GetSloodleObjects</h1>
- <div id="bodyContent">
- <h3 id="siteSub">From SLIS Second Life Wiki</h3>
- <div id="contentSub"></div>
- <!-- start content -->
- <div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr"><table border="0" cellpadding="0" cellspacing="0" style="text-align: top; width: 95%;">
- <tr>
- <td> <a href="../../../../articles/s/l/o/SLOODLE_LSL_API.html" title="SLOODLE LSL API">Back to Sloodle API</a>
- </td></tr></table>
- <p><br />
- </p>
- <table border="2" cellpadding="0" cellspacing="0" style="text-align: top; width: 95%; color:#5a3696; border-color:black;">
- <tr>
- <td>
- <table border="0" style="width: 100%; background:#f4f8fb; color:#5a3696; font-weight:bold; font-size:180%;">
- <tr>
- <td>Function: getSloodleObjects
- </td></tr></table>
- </td></tr>
- <tr>
- <td>
- <table border="0">
- <tr>
- <td style="width: 10%; font-weight:bold;"> Description:
- </td>
- <td style="width: 90%;"> Returns a list of sloodle tools in the course of the type specified
- </td></tr></table>
- </td></tr>
- <tr>
- <td>
- <table border="0">
- <tr>
- <td style="width: 10%; font-weight:bold;"> <font color="red">llMessageLinked</font>(<font color="green">LINK_SET</font>, PLUGIN_CHANNEL, "<font color="green">PLUGIN:general,FUNCTION:getSloodleObjects\nSLOODLEID:null\nTYPE:presenter|INDEX:0|ITEMSPERPAGE:10</font>", <font color="green">NULL_KEY</font>);
- </td></tr></table>
- </td></tr>
- <tr>
- <td>
- <table border="0">
- <tr>
- <td style="width: 10%; font-weight:bold;" colspan="2"> Parameters:
- </td></tr>
- <tr>
- <td style="width: 10%; color:green;"> <b>SLOODLE_ID:null</b>
- </td>
- <td style="width: 90%;"> this is left as null
- </td></tr>
- <tr>
- <td style="width: 10%; color:green;"> <b>TYPE:</b>
- </td>
- <td style="width: 90%;"> The type of objects you'd like to return: presenter, distributor, quiz, awards
- <p>If the value of TYPE: is "null", then all Sloodle types will be output
- </p>
- </td></tr>
- <tr>
- <td style="width: 10%; color:green;"> <b>INDEX</b>:
- </td>
- <td style="width: 90%;"> The index of the tool you'd like to start from
- </td></tr>
- <tr>
- <td style="width: 10%; color:green;"> <b>ITEMS_PER_PAGE</b>:
- </td>
- <td style="width: 90%;"> The number of items you'd like to appear in the output
- </td></tr></table>
- <p><br />
- </p>
- </td></tr>
- <tr>
- <td>
- <table border="0">
- <tr>
- <td style="width: 10%; font-weight:bold;"> Output:
- </td>
- <td style="width: 90%;"> <a href="../../../../articles/g/e/t/File:Getobjects.jpg.html" class="image"><img alt="Getobjects.jpg" src="../../../../images/a/2F/a/a/a7/Getobjects.jpg" width="481" height="252" /></a>
- </td></tr></table>
- <p><br />
- </p>
- </td></tr>
- <tr>
- <td>
- <table border="0">
- <tr>
- <td style="width: 10%; font-weight:bold;"> Example Script:
- </td>
- <td style="width: 90%;">
- <pre>/*********************************************
- * Copyright (c) 2009 Paul Preibisch
- * Released under the GNU GPL 3.0
- * This script can be used in your scripts, but you must include this copyright header as per the GPL Licence
- * For more information about GPL 3.0 - see: <a rel="nofollow" class="external free" href="http://www.gnu.org/copyleft/gpl.html">http://www.gnu.org/copyleft/gpl.html</a>
- * This script is part of the SLOODLE Project see <a rel="nofollow" class="external free" href="http://sloodle.org">http://sloodle.org</a>
- *
- * example_plugin.lsl
- * Copyright:
- * Paul G. Preibisch (Fire Centaur in SL)
- * fire@b3dMultiTech.com
- *
- *
- */
- integer PLUGIN_RESPONSE_CHANNEL =998822; //sloodle_api.lsl responses
- integer PLUGIN_CHANNEL =998821;//sloodle_api requests
- default {
- state_entry() {
- llOwnerSay("Example Plugin. All commands sent to the _sloodle.api script go on channel 998822.\nAll responses come in on 998821");
- }//end state_entry
- touch_start(integer num_detected) {
- llMessageLinked(LINK_SET, PLUGIN_CHANNEL, "PLUGIN:general,FUNCTION:getSloodleObjects\nSLOODLEID:null\nTYPE:distributor|INDEX:0|ITEMSPERPAGE:10", NULL_KEY);
- }//end touch
- link_message(integer sender_num, integer channel, string str, key id) {
- if (channel==PLUGIN_RESPONSE_CHANNEL){
- llOwnerSay(str);
- }
- }//end link_message
- }//end state
- </pre>
- </td></tr></table>
- <p><br />
- </p>
- </td></tr></table>
- <!--
- NewPP limit report
- Preprocessor node count: 5/1000000
- Post‐expand include size: 0/2097152 bytes
- Template argument size: 0/2097152 bytes
- Expensive parser function count: 0/100
- -->
- </div><div class="printfooter">
- </div>
- <div id="catlinks"><div id='catlinks' class='catlinks'><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="http://localhost/sl/index.php/Special:Categories" title="Special:Categories">Category</a>: <ul><li><a href="../../../../articles/i/n/w/Category:Inworld_API.html" title="Category:Inworld API">Inworld API</a></li></ul></div></div></div> <!-- end content -->
- <div class="visualClear"></div>
- </div>
- </div>
- </div>
- <div id="column-one">
- <div id="p-cactions" class="portlet">
- <h5>Views</h5>
- <ul>
- <li id="ca-nstab-main"
- class="selected" ><a href="../../../../articles/g/e/t/GetSloodleObjects.html">Page</a></li><li id="ca-talk"
- class="new" ><a href="http:http://localhost/sl/index.php?title=Talk:GetSloodleObjects&action=edit&redlink=1">Discussion</a></li><li id="ca-current"
- ><a href="http://localhost/sl/index.php/GetSloodleObjects">Latest revision</a></li> </ul>
- </div>
- <div class="portlet" id="p-logo">
- <a style="background-image: url(../../../../misc/wiki.png);"
- href="../../../../index.html"
- title="Main Page"></a>
- </div>
- <script type="text/javascript"> if (window.isMSIE55) fixalpha(); </script>
- <div class='portlet' id='p-navigation'>
- <h5>Navigation</h5>
- <div class='pBody'>
- <ul>
- <li id="n-mainpage-description"><a href="../../../../index.html">Main page</a></li>
- <li id="n-SLOODLE"><a href="../../../../articles/s/l/o/Sloodle.html">SLOODLE</a></li>
- <li id="n-currentevents"><a href="../../../../articles/c/u/r/SLIS_Second_Life_Wiki:Current_events.html">Current events</a></li>
- <li id="n-help"><a href="../../../../articles/c/o/n/Help:Contents.html">Help</a></li>
- </ul>
- </div>
- </div>
- <div class='portlet' id='p-SEARCH'>
- <h5>Search</h5>
- <div class='pBody'>
- <ul>
- </ul>
- </div>
- </div>
- <div class='portlet' id='p-TOOLBOX'>
- <h5>Toolbox</h5>
- <div class='pBody'>
- <ul>
- </ul>
- </div>
- </div>
- <div class='portlet' id='p-LANGUAGES'>
- <h5>LANGUAGES</h5>
- <div class='pBody'>
- <ul>
- </ul>
- </div>
- </div>
- <div id="p-search" class="portlet">
- <h5><label for="searchInput">Search</label></h5>
- <div id="searchBody" class="pBody">
- <form action="javascript:goToStatic(3)" id="searchform"><div>
- <input id="searchInput" name="search" type="text"
- accesskey="f" value="" />
- <input type='submit' name="go" class="searchButton" id="searchGoButton"
- value="Go" />
- </div></form>
- </div>
- </div>
- </div><!-- end of the left (by default at least) column -->
- <div class="visualClear"></div>
- <div id="footer">
- <div id="f-poweredbyico"><a href="//www.mediawiki.org/"><img src="../../../../skins/common/images/poweredby_mediawiki_88x31.png" height="31" width="88" alt="Powered by MediaWiki" /></a></div> <ul id="f-list">
- <li id="f-credits">This page was last modified 18:48, 18 October 2009 by <a href="http:http://localhost/sl/index.php?title=User:Fire&action=edit&redlink=1" class="new" title="User:Fire (page does not exist)">Paul Preibisch</a>. </li> <li id="f-about"><a href="../../../../articles/a/b/o/SLIS_Second_Life_Wiki:About.html" title="SLIS Second Life Wiki:About">About SLIS Second Life Wiki</a></li> <li id="f-disclaimer"><a href="../../../../articles/g/e/n/SLIS_Second_Life_Wiki:General_disclaimer.html" title="SLIS Second Life Wiki:General disclaimer">Disclaimers</a></li> </ul>
- </div>
- </div>
- </body>
- </html>
|