Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Help with Tipping System

Cattleya Harker
Registered User
Join date: 9 Jun 2005
Posts: 22
08-12-2005 05:27
I am trying to set up a tipping system where I own the "jars" but the employee still gets 100% of tip. I'm not that great with scripting yet and was hoping to get some help. Is there a code I can enter to pay them, instead of it going to me? or reroute it from me to them? Thanks for any help. Cattleya Harker

This is the script I am currently using, its been modified from a freebie spamming machine lol:

integer totaldonated;
string owner;
string tempstr;

default
{
on_rez( integer sparam )
{
llResetScript();
}
state_entry()
{
owner = llKey2Name( llGetOwner() );
llSetText( owner + "'s tip jar.",<1,1,1>,1);
}

money(key id, integer amount)
{
totaldonated+=amount;

llInstantMessage(id,"Thanks for the tip! You rock!";);
llSay(0,llKey2Name(id)+" donated $" + (string)amount + " to \"Host more events\" fund";);
}
}
Jesrad Seraph
Nonsense
Join date: 11 Dec 2004
Posts: 1,463
08-12-2005 05:54
Sure ! Just have your script request PERMISSION_DEBIT from you then use llGiveMoney() to resend the cash over everytime someone tips. You will just need to store the key of your employee inside.
_____________________
Either Man can enjoy universal freedom, or Man cannot. If it is possible then everyone can act freely if they don't stop anyone else from doing same. If it is not possible, then conflict will arise anyway so punch those that try to stop you. In conclusion the only strategy that wins in all cases is that of doing what you want against all adversity, as long as you respect that right in others.
Cattleya Harker
Registered User
Join date: 9 Jun 2005
Posts: 22
08-12-2005 06:36
Thanks I thought that was what I would have to do, just need key for each one then.

I appreciate it