Difference between revisions of "TotalControl for LSL/Events/BOT GET BALANCE REPLY"

From SmartBots Developers Docs
Jump to: navigation, search
(Correction)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
{{DISPLAYTITLE:BOT_GET_BALANCE_REPLY}}
 
{{DISPLAYTITLE:BOT_GET_BALANCE_REPLY}}
<onlyinclude>Raised when when balance is successfully requested</onlyinclude>
+
<onlyinclude>Raised when balance is successfully requested</onlyinclude>
  
 
{{API Event Table}}
 
{{API Event Table}}
Line 14: Line 14:
 
link_message( integer sender_num, integer num, string str, key id ) {
 
link_message( integer sender_num, integer num, string str, key id ) {
 
     if(num==BOT_GET_BALANCE_REPLY) {
 
     if(num==BOT_GET_BALANCE_REPLY) {
 
 
     llOwnerSay("Bot balance is: L$" + str);
 
     llOwnerSay("Bot balance is: L$" + str);
 
     }
 
     }

Latest revision as of 16:56, 20 March 2019

Raised when balance is successfully requested

Reference

This event comes with the following event object:

Variable Required Description
event object properties:
str amount
id ---

Example

link_message( integer sender_num, integer num, string str, key id ) {
    if(num==BOT_GET_BALANCE_REPLY) {
    	llOwnerSay("Bot balance is: L$" + str);
    }
}