Contents

Support Managers

Xartashah
English
online
Aerielle Kiyori
English
offline
show offline managers  
English, Hindi, Russian  

give_money (SBSL Command)

Have a question? Ask at SmartBots DevPortal!

DevPortal is a blog and forum for developers. Ask your questions to get a prompt reply!

Continue to DevPortal


Sends the money to specific resident.

Syntax

give_money RESIDENT-UUID AMOUNT PAYMENT-COMMENT

Command parameters

The following table explain the entries of the command:

Entry Description
RESIDENT-UUID the resident UUID to pay to
AMOUNT the amount of L$ to pay
PAYMENT-COMMENT the optional comment to add to transaction history


Example

The following script accepts the money transactions from other residents, and immediately pays them back:

balance_changed {
  im $source Thank you for your kind payment. However, I have to return the money back to you!
 
  give_money $source $amount Returning your payment
}

<< return back to SBSL commands