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

From SmartBots Developers Docs
Jump to: navigation, search
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);
 
     }
 
     }

Revision as of 16:40, 6 March 2019

Raised when 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);
    }
}