Jump to content

Tip Jar Script


rocker86X0X0X
 Share

You are about to reply to a thread that has been inactive for 4631 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts


rocker86X0X0X wrote:

ok so there is this club that has one single tip jar that is unlimited like 100 employees can assign a hovering tip jar from that one tip jar

 

anyone know where i can find that kind of script one thats cheap and full perm

like i dont know dude

could try the scripting forum

thats just a crazy guess though ok like

Link to comment
Share on other sites

key host_key; // Used to pay the host. string host_name; // Keep host's name, even if they are out of the sim integer channel = 9999; // Change this number for a secure channel number integer listening; Init() { llSay(0, "Setting up Tip Jar..."); host_key = NULL_KEY; host_name = ""; llSetText("Touch Here to Set Host",<1,1,1>,1); } start_listen() { if(listening) llListenRemove(listening); listening = llListen(channel,"","",""); } default { on_rez(integer param) { // Reset the script when a new tip jar is placed on the ground. llResetScript(); } state_entry() { // So the jar can give refunds and pay the hosts, the owner must give it // permission to take money from them. llRequestPermissions(llGetOwner(), PERMISSION_DEBIT); Init(); } touch_start(integer num_detected) { // Only allow people in the same group to set themselves as host. if(llSameGroup(llDetectedKey(0)) == FALSE) return; llDialog(llDetectedKey(0),"Tip Jar Options",["Reset","Set Host"],channel); start_listen(); } listen(integer channel, string name, key id, string message) { llListenRemove(listening); if(message == "Reset") { Init(); return; } if(message == "Set Host") { host_key = id; host_name = name; llSetText("Pay here to tip the host:\n" + host_name,<1,1,0>,1); } } money(key id, integer amount) { if(host_key == NULL_KEY) { llSay(0, "No host has been set, refunding your money."); llGiveMoney(id,amount); return; } llSay(0, "Thankyou for your generosity " + llKey2Name(id)); llInstantMessage(host_key,llKey2Name(id) + " has tipped you " + (string)amount + " Lindens."); // Transfer money to the host. llGiveMoney(host_key,amount); } run_time_permissions(integer perms) { if(perms & PERMISSION_DEBIT) { llOwnerSay("/me will now be able to function correctly."); return; } else { llOwnerSay("You must give permission for the tip jar to take money from you."); llSleep(5.0); llResetScript(); } }

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4631 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...