Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Creating A Sales Demo

Michael Revere
Registered User
Join date: 30 May 2005
Posts: 47
09-13-2005 16:57
Hi,
I'm creating an item which will allow in-game sales people to show products to people. When the person buying the item pays the price I want that money to come to me. However, when the object rezzes in the sales person's hands it asks them for the permission to debit money from their account and when the person pays the object the money comes to them. Is there any way to have a person rez a object and still have that object pay me (and be able to give change) on a sale?
Best Regards,
Mike
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
09-13-2005 17:40
If someone 'pays' an object, the money always goes to the owner of the object. So it doesn't matter if you created the object, the money will go to the owner. When this happens, the 'money' event gets triggered. You could add a handler for that event in the script which would pay you. So basically the process is something like this:

* Customer pays the object
* Money goes to salesman's account
* 'money' event in object's script gets triggered
* Your code in the 'money' event handler takes the money from the salesman and gives it to you (llGiveMoney)

If I understood your question correctly, that's roughly what you would need to do.