Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llGiveMoney to an object?

Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
01-24-2007 03:27
Can script A, once paid.. pay money to scripted object B? (assuming I know the key of object B)
_____________________

● Inworld Store: http://slurl.eclectic-randomness.com
● Website: http://www.eclectic-randomness.com
● Twitter: @WinterVentura
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
01-24-2007 03:37
From: Winter Ventura
Can script A, once paid.. pay money to scripted object B? (assuming I know the key of object B)



Afraid not. From the Wikki:-

llGiveMoney(key destination, integer amount)

Transfers amount of Linden dollars from the script owner to destination. Requires the PERMISSION_DEBIT run-time permission.

destination can only be an avatar, not an an object or a group.
Damanios Thetan
looking in
Join date: 6 Mar 2004
Posts: 992
01-24-2007 05:59
I assume you intend to do something with the money the object that is been paid would receive.

Three situations:
1. Both objects are owned by the same owner:

It's possible to set up your own 'pay' system, by using any inter-object communication method (llIM, llEmail, llSay, whatever fits).
Instead of the sending object actually paying the receiving object. It sends an 'acknowledgement' of the payment. Then the receiving object uses that information to do something with the owners money. (Permission debit should be set).


2. Both objects have different owners:

You need two-way communication. Object 1 telling object 2 something has to be done with money. Object 2 giving the keys of the receiving parties (avies) of the money. Object 1 then doing the actual payment.

3. Receiving object is an arbitrary object without any scripting.

Get the ownerkey instead of the object key. And pay that. ;)


Ofcourse, it's wise to do some encryption/hashing on the communication, to make them less vulnerable to 'outside' attacks.
_____________________