File:example.lsl.html 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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>File:example.lsl - 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-File_example_lsl">
  22. <div id="globalWrapper">
  23. <div id="column-content">
  24. <div id="content">
  25. <a name="top" id="contentTop"></a>
  26. <h1 class="firstHeading">File:example.lsl</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"><pre>/*********************************************
  32. * Copyright (c) 2009 yourname
  33. * Released under the GNU GPL 3.0
  34. * This script can be used in your scripts, but you must include this copyright header as per the GPL Licence
  35. * 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>
  36. * This script is part of the SLOODLE Project see <a rel="nofollow" class="external free" href="http://sloodle.org">http://sloodle.org</a>
  37. *
  38. * example_plugin.lsl
  39. * Copyright:
  40. * yourname
  41. * youremail
  42. *
  43. *
  44. */
  45. integer PLUGIN_RESPONSE_CHANNEL =998822; //sloodle_api.lsl responses
  46. integer PLUGIN_CHANNEL =998821;//sloodle_api requests
  47. default {
  48. state_entry() {
  49. llOwnerSay("Example Plugin. All commands sent to the _sloodle.api script go on channel 998822.\nAll responses come in on 998821");
  50. }//end state_entry
  51. touch_start(integer num_detected) {
  52. llMessageLinked(LINK_SET, PLUGIN_CHANNEL, "PLUGIN:user,FUNCTION:getClassList\nAWARDID:"+(string)104+"\nSENDERUUID:"+(string)llGetOwner()+"|INDEX:0|SORTMODE:balance", NULL_KEY);
  53. }//end touch
  54. link_message(integer sender_num, integer channel, string str, key id) {
  55. if (channel==PLUGIN_RESPONSE_CHANNEL){
  56. llOwnerSay(str);
  57. }
  58. }//end link_message
  59. }//end state
  60. </pre>
  61. <!--
  62. NewPP limit report
  63. Preprocessor node count: 1/1000000
  64. Post‐expand include size: 0/2097152 bytes
  65. Template argument size: 0/2097152 bytes
  66. Expensive parser function count: 0/100
  67. -->
  68. </div><div class="printfooter">
  69. </div>
  70. <div id="catlinks"><div id='catlinks' class='catlinks catlinks-allhidden'></div></div> <!-- end content -->
  71. <div class="visualClear"></div>
  72. </div>
  73. </div>
  74. </div>
  75. <div id="column-one">
  76. <div id="p-cactions" class="portlet">
  77. <h5>Views</h5>
  78. <ul>
  79. <li id="ca-nstab-main"
  80. class="selected" ><a href="../../../../articles/e/x/a/File:example.lsl.html">Page</a></li><li id="ca-talk"
  81. class="new" ><a href="http:http://localhost/sl/index.php?title=Talk:File:example.lsl&amp;action=edit&amp;redlink=1">Discussion</a></li><li id="ca-current"
  82. ><a href="http://localhost/sl/index.php/File:example.lsl">Latest revision</a></li> </ul>
  83. </div>
  84. <div class="portlet" id="p-logo">
  85. <a style="background-image: url(../../../../misc/wiki.png);"
  86. href="../../../../index.html"
  87. title="Main Page"></a>
  88. </div>
  89. <script type="text/javascript"> if (window.isMSIE55) fixalpha(); </script>
  90. <div class='portlet' id='p-navigation'>
  91. <h5>Navigation</h5>
  92. <div class='pBody'>
  93. <ul>
  94. <li id="n-mainpage-description"><a href="../../../../index.html">Main page</a></li>
  95. <li id="n-SLOODLE"><a href="../../../../articles/s/l/o/Sloodle.html">SLOODLE</a></li>
  96. <li id="n-currentevents"><a href="../../../../articles/c/u/r/SLIS_Second_Life_Wiki:Current_events.html">Current events</a></li>
  97. <li id="n-help"><a href="../../../../articles/c/o/n/Help:Contents.html">Help</a></li>
  98. </ul>
  99. </div>
  100. </div>
  101. <div class='portlet' id='p-SEARCH'>
  102. <h5>Search</h5>
  103. <div class='pBody'>
  104. <ul>
  105. </ul>
  106. </div>
  107. </div>
  108. <div class='portlet' id='p-TOOLBOX'>
  109. <h5>Toolbox</h5>
  110. <div class='pBody'>
  111. <ul>
  112. </ul>
  113. </div>
  114. </div>
  115. <div class='portlet' id='p-LANGUAGES'>
  116. <h5>LANGUAGES</h5>
  117. <div class='pBody'>
  118. <ul>
  119. </ul>
  120. </div>
  121. </div>
  122. <div id="p-search" class="portlet">
  123. <h5><label for="searchInput">Search</label></h5>
  124. <div id="searchBody" class="pBody">
  125. <form action="javascript:goToStatic(3)" id="searchform"><div>
  126. <input id="searchInput" name="search" type="text"
  127. accesskey="f" value="" />
  128. <input type='submit' name="go" class="searchButton" id="searchGoButton"
  129. value="Go" />
  130. </div></form>
  131. </div>
  132. </div>
  133. </div><!-- end of the left (by default at least) column -->
  134. <div class="visualClear"></div>
  135. <div id="footer">
  136. <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">
  137. <li id="f-credits">This page was last modified 22:36, 3 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>
  138. </div>
  139. </div>
  140. </body>
  141. </html>