From SLIS Second Life Wiki
| Function: makeTransaction
|
|
| Description:
|
makes a transaction for the user to the current award
|
|
| llMessageLinked:
|
//plugin:awards refers to awards.php in sloodle/mod/hq-1.0/plugins/awards.php
string plugin = plugin:awards,function:makeTransaction\nAWARDID:+(string)currentAwardId+"\n";
//data is the data we'll pass to the makeTransaction function in awards.php
string data = "SOURCE_UUID:"+(string)owner;
data += "|AVUUID:"+((string)avuuid;
data += "|AVNAME:"+avname;
data += "|POINTS:"+(string)points;
data += "|DETAILS:owner%20modify%20ipoints,OWNER:"+llEscapeURL(llKey2Name(owner))+",SCOREBOARD:"+(string)llGetKey()+",SCOREBOARDNAME:"+llGetObjectName();
//send the plugin function request via the plugin_channel
llMessageLinked(LINK_SET, PLUGIN_CHANNEL, plugin+data, NULL_KEY);
|
|
| Parameters:
|
| SOURCE_UUID:
|
uuid of object or user issuing command
|
| MODULE_ID:
|
sloodleid of award activity
|
| AVUUID:
|
avatar who we are making a transaction for
|
| AVNAME:
|
avatar name who we are making a transaction for
|
| POINTS:
|
The value of the transaction
|
| DETAILS:
|
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
|
|
| Output:
|
|
|