Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Share payment with Seller and Creator

Doctor Hickman
Registered User
Join date: 16 Oct 2006
Posts: 15
10-30-2006 04:17
Hi, is there an example script that I can work with that when a buyer buys an item, the payment is split, say 50%/50% with the seller and creator? Thanks for any tips.
Joannah Cramer
Registered User
Join date: 12 Apr 2006
Posts: 1,539
10-30-2006 06:44
There's Adriana Caligari's script called "split proceeds" on slExchange, which allows this and comes with full permissions ... it's either free or costs something like L$10
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
10-30-2006 07:30
The basic format is dead simple:

in the money event you multiply the amount paid by the split and give that amount to the partner that doesn't own the vendor (it comes from the person that does).

something like (in parts):
CODE

float split=0.5;
key partner=//your partner's key;
money(key id, integer amount)
{
llGiveMoney(partner, llRound((float)amount * split));
}


The rest of it is more fun of course, but that works for those bits. There's tons of freebie vendor scripts around, so have a look at them for pointers for the rest.
_____________________
Eloise's MiniMall
Visit Eloise's Minimall
New, smaller footprint, same great materials.

Check out the new blog