GetSloodleObjects.html 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  5. <!-- headlinks removed -->
  6. <link rel="shortcut icon" href="../../../../misc/favicon.ico"/>
  7. <title>GetSloodleObjects - SLIS Second Life Wiki</title>
  8. <style type="text/css">/*<![CDATA[*/ @import "../../../../skins/offline/main.css"; /*]]>*/</style>
  9. <link rel="stylesheet" type="text/css" media="print" href="../../../../skins/common/commonPrint.css" />
  10. <!--[if lt IE 5.5000]><style type="text/css">@import "../../../../skins/monobook/IE50Fixes.css";</style><![endif]-->
  11. <!--[if IE 5.5000]><style type="text/css">@import "../../../../skins/monobook/IE55Fixes.css";</style><![endif]-->
  12. <!--[if IE 6]><style type="text/css">@import "../../../../skins/monobook/IE60Fixes.css";</style><![endif]-->
  13. <!--[if IE]><script type="text/javascript" src="../../../../skins/common/IEFixes.js"></script>
  14. <meta http-equiv="imagetoolbar" content="no" /><![endif]-->
  15. <script type="text/javascript" src="../../../../skins/common/wikibits.js"></script>
  16. <script type="text/javascript" src="../../../../skins/offline/md5.js"></script>
  17. <script type="text/javascript" src="../../../../skins/offline/utf8.js"></script>
  18. <script type="text/javascript" src="../../../../skins/offline/lookup.js"></script>
  19. </head>
  20. <body
  21. class="ns-0 ns-subject page-GetSloodleObjects">
  22. <div id="globalWrapper">
  23. <div id="column-content">
  24. <div id="content">
  25. <a name="top" id="contentTop"></a>
  26. <h1 class="firstHeading">GetSloodleObjects</h1>
  27. <div id="bodyContent">
  28. <h3 id="siteSub">From SLIS Second Life Wiki</h3>
  29. <div id="contentSub"></div>
  30. <!-- start content -->
  31. <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%;">
  32. <tr>
  33. <td> <a href="../../../../articles/s/l/o/SLOODLE_LSL_API.html" title="SLOODLE LSL API">Back to Sloodle API</a>
  34. </td></tr></table>
  35. <p><br />
  36. </p>
  37. <table border="2" cellpadding="0" cellspacing="0" style="text-align: top; width: 95%; color:#5a3696; border-color:black;">
  38. <tr>
  39. <td>
  40. <table border="0" style="width: 100%; background:#f4f8fb; color:#5a3696; font-weight:bold; font-size:180%;">
  41. <tr>
  42. <td>Function: getSloodleObjects
  43. </td></tr></table>
  44. </td></tr>
  45. <tr>
  46. <td>
  47. <table border="0">
  48. <tr>
  49. <td style="width: 10%; font-weight:bold;"> Description:
  50. </td>
  51. <td style="width: 90%;"> Returns a list of sloodle tools in the course of the type specified
  52. </td></tr></table>
  53. </td></tr>
  54. <tr>
  55. <td>
  56. <table border="0">
  57. <tr>
  58. <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>);
  59. </td></tr></table>
  60. </td></tr>
  61. <tr>
  62. <td>
  63. <table border="0">
  64. <tr>
  65. <td style="width: 10%; font-weight:bold;" colspan="2"> Parameters:
  66. </td></tr>
  67. <tr>
  68. <td style="width: 10%; color:green;"> <b>SLOODLE_ID:null</b>
  69. </td>
  70. <td style="width: 90%;"> this is left as null
  71. </td></tr>
  72. <tr>
  73. <td style="width: 10%; color:green;"> <b>TYPE:</b>
  74. </td>
  75. <td style="width: 90%;"> The type of objects you'd like to return: presenter, distributor, quiz, awards
  76. <p>If the value of TYPE: is "null", then all Sloodle types will be output
  77. </p>
  78. </td></tr>
  79. <tr>
  80. <td style="width: 10%; color:green;"> <b>INDEX</b>:
  81. </td>
  82. <td style="width: 90%;"> The index of the tool you'd like to start from
  83. </td></tr>
  84. <tr>
  85. <td style="width: 10%; color:green;"> <b>ITEMS_PER_PAGE</b>:
  86. </td>
  87. <td style="width: 90%;"> The number of items you'd like to appear in the output
  88. </td></tr></table>
  89. <p><br />
  90. </p>
  91. </td></tr>
  92. <tr>
  93. <td>
  94. <table border="0">
  95. <tr>
  96. <td style="width: 10%; font-weight:bold;"> Output:
  97. </td>
  98. <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>
  99. </td></tr></table>
  100. <p><br />
  101. </p>
  102. </td></tr>
  103. <tr>
  104. <td>
  105. <table border="0">
  106. <tr>
  107. <td style="width: 10%; font-weight:bold;"> Example Script:
  108. </td>
  109. <td style="width: 90%;">
  110. <pre>/*********************************************
  111. * Copyright (c) 2009 Paul Preibisch
  112. * Released under the GNU GPL 3.0
  113. * This script can be used in your scripts, but you must include this copyright header as per the GPL Licence
  114. * 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>
  115. * This script is part of the SLOODLE Project see <a rel="nofollow" class="external free" href="http://sloodle.org">http://sloodle.org</a>
  116. *
  117. * example_plugin.lsl
  118. * Copyright:
  119. * Paul G. Preibisch (Fire Centaur in SL)
  120. * fire@b3dMultiTech.com
  121. *
  122. *
  123. */
  124. integer PLUGIN_RESPONSE_CHANNEL =998822; //sloodle_api.lsl responses
  125. integer PLUGIN_CHANNEL =998821;//sloodle_api requests
  126. default {
  127. state_entry() {
  128. llOwnerSay("Example Plugin. All commands sent to the _sloodle.api script go on channel 998822.\nAll responses come in on 998821");
  129. }//end state_entry
  130. touch_start(integer num_detected) {
  131. llMessageLinked(LINK_SET, PLUGIN_CHANNEL, "PLUGIN:general,FUNCTION:getSloodleObjects\nSLOODLEID:null\nTYPE:distributor|INDEX:0|ITEMSPERPAGE:10", NULL_KEY);
  132. }//end touch
  133. link_message(integer sender_num, integer channel, string str, key id) {
  134. if (channel==PLUGIN_RESPONSE_CHANNEL){
  135. llOwnerSay(str);
  136. }
  137. }//end link_message
  138. }//end state
  139. </pre>
  140. </td></tr></table>
  141. <p><br />
  142. </p>
  143. </td></tr></table>
  144. <!--
  145. NewPP limit report
  146. Preprocessor node count: 5/1000000
  147. Post‐expand include size: 0/2097152 bytes
  148. Template argument size: 0/2097152 bytes
  149. Expensive parser function count: 0/100
  150. -->
  151. </div><div class="printfooter">
  152. </div>
  153. <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 -->
  154. <div class="visualClear"></div>
  155. </div>
  156. </div>
  157. </div>
  158. <div id="column-one">
  159. <div id="p-cactions" class="portlet">
  160. <h5>Views</h5>
  161. <ul>
  162. <li id="ca-nstab-main"
  163. class="selected" ><a href="../../../../articles/g/e/t/GetSloodleObjects.html">Page</a></li><li id="ca-talk"
  164. class="new" ><a href="http:http://localhost/sl/index.php?title=Talk:GetSloodleObjects&amp;action=edit&amp;redlink=1">Discussion</a></li><li id="ca-current"
  165. ><a href="http://localhost/sl/index.php/GetSloodleObjects">Latest revision</a></li> </ul>
  166. </div>
  167. <div class="portlet" id="p-logo">
  168. <a style="background-image: url(../../../../misc/wiki.png);"
  169. href="../../../../index.html"
  170. title="Main Page"></a>
  171. </div>
  172. <script type="text/javascript"> if (window.isMSIE55) fixalpha(); </script>
  173. <div class='portlet' id='p-navigation'>
  174. <h5>Navigation</h5>
  175. <div class='pBody'>
  176. <ul>
  177. <li id="n-mainpage-description"><a href="../../../../index.html">Main page</a></li>
  178. <li id="n-SLOODLE"><a href="../../../../articles/s/l/o/Sloodle.html">SLOODLE</a></li>
  179. <li id="n-currentevents"><a href="../../../../articles/c/u/r/SLIS_Second_Life_Wiki:Current_events.html">Current events</a></li>
  180. <li id="n-help"><a href="../../../../articles/c/o/n/Help:Contents.html">Help</a></li>
  181. </ul>
  182. </div>
  183. </div>
  184. <div class='portlet' id='p-SEARCH'>
  185. <h5>Search</h5>
  186. <div class='pBody'>
  187. <ul>
  188. </ul>
  189. </div>
  190. </div>
  191. <div class='portlet' id='p-TOOLBOX'>
  192. <h5>Toolbox</h5>
  193. <div class='pBody'>
  194. <ul>
  195. </ul>
  196. </div>
  197. </div>
  198. <div class='portlet' id='p-LANGUAGES'>
  199. <h5>LANGUAGES</h5>
  200. <div class='pBody'>
  201. <ul>
  202. </ul>
  203. </div>
  204. </div>
  205. <div id="p-search" class="portlet">
  206. <h5><label for="searchInput">Search</label></h5>
  207. <div id="searchBody" class="pBody">
  208. <form action="javascript:goToStatic(3)" id="searchform"><div>
  209. <input id="searchInput" name="search" type="text"
  210. accesskey="f" value="" />
  211. <input type='submit' name="go" class="searchButton" id="searchGoButton"
  212. value="Go" />
  213. </div></form>
  214. </div>
  215. </div>
  216. </div><!-- end of the left (by default at least) column -->
  217. <div class="visualClear"></div>
  218. <div id="footer">
  219. <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">
  220. <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&amp;action=edit&amp;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>
  221. </div>
  222. </div>
  223. </body>
  224. </html>