Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

pay linden to other people?

Geuis Dassin
Filming Path creator
Join date: 3 May 2006
Posts: 565
05-11-2006 14:22
This is kind of a vendor question I think.

All vendor objects work by you paying $L to the object, which gives the cash to the owner of the object, from what I understand.

Is it possible to have a script that pays to someone who isn't the owner?

I'm thinking about a portable vendor. If I have people working for me as door-to-door type salesmen, I want other users to be able to buy my objects from my salespeople but have the money go straight to me. At that point I distribute the pay to my salesmen.

I'm envisioning an object that my people have to wear, which gives them access to the items to sell. But since to attach an object to an avatar you have to own the object, I would need to have the vendor object send the payment to me instead of the person that owns the object.
Keknehv Psaltery
Hacker
Join date: 11 Apr 2005
Posts: 1,185
05-11-2006 14:26
You need llPay() along with the appropriate permissions. Follow the wiki link in my signature to find information about this.

Unfortunately, money transfers aren't too reliable.
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
05-11-2006 14:54
llPay() doesn't exist, it's llGiveMoney().

I've never had llGiveMoney() fail, it's the money event that can't really be spoofed but does require you check they've paid the right amount!
Geuis Dassin
Filming Path creator
Join date: 3 May 2006
Posts: 565
05-11-2006 15:01
hey, llGiveMoney is exactly what I was looking for. Thanks!
Draco18s Majestic
Registered User
Join date: 19 Sep 2005
Posts: 2,744
05-11-2006 15:35
From: Eloise Pasteur
I've never had llGiveMoney() fail


Try making an object that uses llGiveMoney() to pay a (willing subject) more money that you currently have.

Have the (willing subject) let you know if they got any money.

I garuntee it fails.
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
05-11-2006 16:21
Hmm, I'm not sure I regard that as a failure... but OK, you cna't give more money than you own away...
Rodrick Harrington
Registered User
Join date: 9 Jul 2005
Posts: 150
05-11-2006 22:22
Tell me . . . when an object goes into a no-script zone does the pay pie menu still show up? If so that's an issue too. If not . . . they'd need to be in a VERY laggy sim and have VERY good timing to get rid of the money before it pays if you pay < what you take in the money event.
_____________________
Oasis Perun
Registered User
Join date: 2 Oct 2005
Posts: 128
05-18-2006 09:34
you will also need to have the script request permission to pay out of the sales person's acct since all money that is paid to an object goes to the owner of they object. And preferably check those permissions b4 any sales transactions are allowed otherwise the salesperson could deny the permission and keep all $L from the sales.
_____________________
Yumi Murakami
DoIt!AttachTheEarOfACat!
Join date: 27 Sep 2005
Posts: 6,860
05-18-2006 10:10
From: Eloise Pasteur
Hmm, I'm not sure I regard that as a failure... but OK, you cna't give more money than you own away...


It's a failure because the script isn't told that the money wasn't paid.

It means you can't, for example, write a script that pays a weekly subscription for something. A buyer could pass it to an alt, give all the alt's money to the main account, and then the subscription object couldn't tell that its owner couldn't afford the subscription.