This is a fantastic little script for creating a tip jar. This version is edited so the currency says, KC’s, but this can be edited to any currency type.
//FREE SCRIPTS - TESTED AND WORKING ON KITELY // If you paid for this script, you were ripped off. // You may use in your creations. // You may not sell it as a script or in a script collection. //Copy and paste the contents of this notecard into a new script. //The message to give the person that has paid a tip string gMessage = "Thank you for your tip, It is appreciated!"; //This is a recommendation which will be the set amount in the pay box integer gRecommendedTip = 25; //The color of the hover text vector gColor = <1,1,1>; //Show name of tipper? 'yes' or 'no' string gShowSwitch = "yes"; //Notify you when someone has tipped? 'yes' or 'no' string gNotifySwitch = "yes"; //_______________Do not edit below here____________ integer gTotal = 0; default { state_entry() { llSetText("", <1,1,1>, 1); llSetClickAction(CLICK_ACTION_PAY); llRequestPermissions(llGetOwner(), PERMISSION_DEBIT); } run_time_permissions(integer perms) { if(perms) { llSetPayPrice(gRecommendedTip, [PAY_DEFAULT, PAY_DEFAULT, PAY_DEFAULT, PAY_DEFAULT]); } } money(key customer, integer amount) { string CustomerName = llKey2Name(customer); integer Last = amount; gTotal += amount; string Prefix = ""; if(llToLower(gShowSwitch) == "yes") Prefix = "Last Tipper: "+CustomerName+"\n"; llSetText(Prefix+"Last Tip: KC "+(string)Last+"\nTotal: KC "+(string)gTotal,gColor, 1); // Change this to your Grid's Currency type llInstantMessage(customer, gMessage); if(llToLower(gNotifySwitch) == "yes") llInstantMessage(llGetOwner(), CustomerName+" has just made a donation of KC "+(string)amount+"."); // Change this to your Grid's Currency type } on_rez(integer start_param) { llResetScript(); } }