Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Can I split a donation box?

Katoomi Yoshikawa
Registered User
Join date: 17 May 2007
Posts: 22
05-17-2007 17:10
I am brand new to SL, and want to do this... Is it possible? and if so how do I do it?

I want to create an object that has an avatar animation linked to it.
This animation will be some form of entertainment, such as busking.
While using this animation/object I want a 'tip box' in front of the avatar on the floor so that passers by can give donations.

So far... I know all this is possible.... Now for the bit I'm unsure about....

I want to give this entire 'busking animation' away (or sell it) and when a person (not me) uses it, any donations that they recieve in the tip box should be split so that a percentage of the donation goes to the person that is busking, and a percentage goes to me.

If anyone can help me set this up it would be very much appreciated... but... please bare in mind that I've only been playing SL for about 3 days!! So I might need some pretty basic instructions... A complete script that does everything I need with details of what variables do what would be great :) So that I can simply put it on the tip jar.

I've had a good look through a tip box script I found online but can not see anywhere that I might be able to set the recipient of the tip. (or split the donation) I assume that the entire tip simply goes to the owner by default.

Thank you for reading!!
Kat
Stavros Augustus
Registered User
Join date: 14 Nov 2005
Posts: 38
05-17-2007 17:52
It won't be a simple variable that you can just change. If you've only been on for three days, you really should take more time to learn scripting, but I'll give you a few hints:
-You'll need two separate calls of llGiveMoney. For one, use llAvatarOnSitTarget, and the other llGetScriptCreator.
-Store the amount donated and calculate two amounts as a percentage of that.
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
05-17-2007 23:51
Try a search for commission scripts in this forum.
_____________________
I'm back......
RJ Source
Green Sky Labs
Join date: 10 Jan 2007
Posts: 272
05-18-2007 05:52
Another way to split donations seems to be to create a group, and deed the object to the group. Any money given to the object will be split amoung the group members automatically.

So the docs say.