BOT_EVENT_LISTEN_MONEY

From SmartBots Developers Docs
TotalControl for LSLEvents
Revision as of 09:25, 20 May 2017 by Chevonn Edelmann (Talk | contribs) (Created page with "{{DISPLAYTITLE:BOT_EVENT_LISTEN_MONEY}} <onlyinclude>Raised when Bot receives a payment</onlyinclude> {{API Event Table}} {{API Variable Group|''event'' object properties}} {...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Raised when Bot receives a payment

Reference

This event comes with the following event object:

Variable Required Description
event object properties:
str amount of L$ received
id uuid of person that sent money

Example

link_message( integer sender_num, integer num, string str, key id ) {
    /////////////////// Bot listen money event
    if(num==BOT_EVENT_LISTEN_MONEY) {
    	llOwnerSay("Got L$" + str + " from " + (string)id);
    }
}