Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Creater / owner of an item

Mille Allen
Registered User
Join date: 1 Jun 2007
Posts: 25
12-26-2008 12:43
I would like to know i can get my hands on a script. When you buy the item the creator get the half and the owner gets the other half.

Anyone have that or know were i might be able to get it ?

Mille Allen
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
12-26-2008 13:03
There are many, many such scripts floating around. I'd recommend looking around the Scripting Library forum or doing some searches for "split proceeds vendor" or something like that. Whatever SLX is called now probably has dozens or even hundreds of such scripts as well. You could also try the Products Wanted forum.

HERE, on the other hand, we could help you develop such a script yourself. That's really what this forum is for. Good luck!
Mille Allen
Registered User
Join date: 1 Jun 2007
Posts: 25
12-26-2008 14:37
Thanks i tryed to look for it, but i cant find it. And i dont have the firste clue about making, guess i am googling it hehe

But still Thanks
Mille Allen
Registered User
Join date: 1 Jun 2007
Posts: 25
12-26-2008 16:14
i Cant find it. anyone ?
Escort DeFarge
Together
Join date: 18 Nov 2004
Posts: 681
12-26-2008 16:40
Try looking for "split script" or "splitter" (the general term for profit sharing) you may get better results from your searches :)

hth
/esc
_____________________
http://slurl.com/secondlife/Together
Nicolette Beebe
Registered User
Join date: 8 Feb 2007
Posts: 18
12-27-2008 04:46
I know both hippo and jenv make affiliate vendors that would perform this task.
Cypher Ragu
[Mad Scientist]
Join date: 6 Jul 2008
Posts: 174
12-27-2008 19:04
The funny thing about this is that there are only a few lines of code that make this type of script different than a normal vendor script ;)



//Put this code in the "money" event in a vendor script
//When someone pays the object, all the money goes to the owner, so...


integer half_price = amount/2;

llGiveMoney(llGetCreator(), half_price); //Takes care of the creator's share
//We give the creator back half of what the owner just made :D

//Note that this will only work if the owner has granted the object debit permissions.
//Otherwise, the owner gets all the money and the creator is left poor D:>
_____________________
Life is a highway... And I just missed my exit.
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
12-27-2008 21:23
From: Cypher Ragu
//Note that this will only work if the owner has granted the object debit permissions.
//Otherwise, the owner gets all the money and the creator is left poor D:>


The script can be designed such that it doesn't accept money AT ALL unless the owner grants debit permissions. Just don't enter a state with a 'money' event handler until the permission is granted. That makes the choice either "nonfunctional" or "sharing with creator".