MakeTransaction.html 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  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>MakeTransaction - 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-MakeTransaction">
  22. <div id="globalWrapper">
  23. <div id="column-content">
  24. <div id="content">
  25. <a name="top" id="contentTop"></a>
  26. <h1 class="firstHeading">MakeTransaction</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: makeTransaction
  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%;"> makes a transaction for the user to the current award
  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;"> llMessageLinked:
  59. </td>
  60. <td style="width: 90%; font-weight:bold;">
  61. <pre> <font color="orange">//plugin:awards refers to awards.php in sloodle/mod/hq-1.0/plugins/awards.php</font>
  62. <font color="green">string</font> plugin = <font color="green">plugin:awards,function:makeTransaction\nAWARDID:</font>+(<font color="green">string</font>)currentAwardId+"<font color="green">\n</font>";
  63. <font color="orange">//data is the data we'll pass to the makeTransaction function in awards.php</font>
  64. <font color="green">string</font> data = <font color="green">"SOURCE_UUID:"</font>+(<font color="green">string</font>)owner;
  65. data += <font color="green">"|AVUUID:"</font>+((<font color="green">string</font>)avuuid;
  66. data += <font color="green">"|AVNAME:"</font>+avname;
  67. data += <font color="green">"|POINTS:"</font>+(<font color="green">string</font>)points;
  68. data += <font color="green">"|DETAILS:owner%20modify%20ipoints,OWNER:"</font>+<font color="red">llEscapeURL</font>(<font color="red">llKey2Name</font>(owner))+<font color="green">",SCOREBOARD:"</font>+(<font color="green">string</font>)llGetKey()+",SCOREBOARDNAME:"+llGetObjectName();
  69. <font color="orange">//send the plugin function request via the plugin_channel</font>
  70. <font color="red">llMessageLinked</font>(<font color="green">LINK_SET</font>, PLUGIN_CHANNEL, plugin+data, <font color="green">NULL_KEY</font>);
  71. </pre>
  72. </td></tr></table>
  73. </td></tr>
  74. <tr>
  75. <td>
  76. <table border="0">
  77. <tr>
  78. <td style="width: 10%; font-weight:bold;" colspan="2"> Parameters:
  79. </td></tr>
  80. <tr>
  81. <td style="width: 10%; color:green;"> <b>SOURCE_UUID:</b>
  82. </td>
  83. <td style="width: 90%;"> uuid of object or user issuing command
  84. </td></tr>
  85. <tr>
  86. <td style="width: 10%; color:green;"> <b>MODULE_ID:</b>
  87. </td>
  88. <td style="width: 90%;"> sloodleid of award activity
  89. </td></tr>
  90. <tr>
  91. <td style="width: 10%; color:green;"> <b>AVUUID</b>:
  92. </td>
  93. <td style="width: 90%;"> avatar who we are making a transaction for
  94. </td></tr>
  95. <tr>
  96. <td style="width: 10%; color:green;"> <b>AVNAME</b>:
  97. </td>
  98. <td style="width: 90%;"> avatar name who we are making a transaction for
  99. </td></tr>
  100. <tr>
  101. <td style="width: 10%; color:green;"> <b>POINTS</b>:
  102. </td>
  103. <td style="width: 90%;"> The value of the transaction
  104. </td></tr>
  105. <tr>
  106. <td style="width: 10%; color:green;"> <b>DETAILS</b>:
  107. </td>
  108. <td style="width: 90%;"> Any special details you'd like to insert in the sloodle_awards_trans table for this transaction. This field can be useful for later parsing of the db
  109. </td></tr></table>
  110. <p><br />
  111. </p>
  112. </td></tr>
  113. <tr>
  114. <td>
  115. <table border="0">
  116. <tr>
  117. <td style="width: 10%; font-weight:bold;"> Output:
  118. </td>
  119. <td style="width: 90%;"> <a href="../../../../articles/m/a/k/File:MakeTrans.jpg.html" class="image"><img alt="MakeTrans.jpg" src="../../../../images/2/2F/2/2/22/MakeTrans.jpg" width="304" height="65" /></a>
  120. </td></tr></table>
  121. </td></tr></table>
  122. <!--
  123. NewPP limit report
  124. Preprocessor node count: 24/1000000
  125. Post‐expand include size: 0/2097152 bytes
  126. Template argument size: 0/2097152 bytes
  127. Expensive parser function count: 0/100
  128. -->
  129. </div><div class="printfooter">
  130. </div>
  131. <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 -->
  132. <div class="visualClear"></div>
  133. </div>
  134. </div>
  135. </div>
  136. <div id="column-one">
  137. <div id="p-cactions" class="portlet">
  138. <h5>Views</h5>
  139. <ul>
  140. <li id="ca-nstab-main"
  141. class="selected" ><a href="../../../../articles/m/a/k/MakeTransaction.html">Page</a></li><li id="ca-talk"
  142. class="new" ><a href="http:http://localhost/sl/index.php?title=Talk:MakeTransaction&amp;action=edit&amp;redlink=1">Discussion</a></li><li id="ca-current"
  143. ><a href="http://localhost/sl/index.php/MakeTransaction">Latest revision</a></li> </ul>
  144. </div>
  145. <div class="portlet" id="p-logo">
  146. <a style="background-image: url(../../../../misc/wiki.png);"
  147. href="../../../../index.html"
  148. title="Main Page"></a>
  149. </div>
  150. <script type="text/javascript"> if (window.isMSIE55) fixalpha(); </script>
  151. <div class='portlet' id='p-navigation'>
  152. <h5>Navigation</h5>
  153. <div class='pBody'>
  154. <ul>
  155. <li id="n-mainpage-description"><a href="../../../../index.html">Main page</a></li>
  156. <li id="n-SLOODLE"><a href="../../../../articles/s/l/o/Sloodle.html">SLOODLE</a></li>
  157. <li id="n-currentevents"><a href="../../../../articles/c/u/r/SLIS_Second_Life_Wiki:Current_events.html">Current events</a></li>
  158. <li id="n-help"><a href="../../../../articles/c/o/n/Help:Contents.html">Help</a></li>
  159. </ul>
  160. </div>
  161. </div>
  162. <div class='portlet' id='p-SEARCH'>
  163. <h5>Search</h5>
  164. <div class='pBody'>
  165. <ul>
  166. </ul>
  167. </div>
  168. </div>
  169. <div class='portlet' id='p-TOOLBOX'>
  170. <h5>Toolbox</h5>
  171. <div class='pBody'>
  172. <ul>
  173. </ul>
  174. </div>
  175. </div>
  176. <div class='portlet' id='p-LANGUAGES'>
  177. <h5>LANGUAGES</h5>
  178. <div class='pBody'>
  179. <ul>
  180. </ul>
  181. </div>
  182. </div>
  183. <div id="p-search" class="portlet">
  184. <h5><label for="searchInput">Search</label></h5>
  185. <div id="searchBody" class="pBody">
  186. <form action="javascript:goToStatic(3)" id="searchform"><div>
  187. <input id="searchInput" name="search" type="text"
  188. accesskey="f" value="" />
  189. <input type='submit' name="go" class="searchButton" id="searchGoButton"
  190. value="Go" />
  191. </div></form>
  192. </div>
  193. </div>
  194. </div><!-- end of the left (by default at least) column -->
  195. <div class="visualClear"></div>
  196. <div id="footer">
  197. <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">
  198. <li id="f-credits">This page was last modified 18:47, 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>
  199. </div>
  200. </div>
  201. </body>
  202. </html>