TipJar

code integer total = 0; vector color_start = < 1.0, 0.5, 0.0 >;           //before and after floating text colors vector color_used = < 1.0, 1.0, 0.0 >;

default {   state_entry {       llSetPayPrice( PAY_DEFAULT, [ 10, 100, 200, 500] );      //can customize four default values for which tipper can pay

llSetText( "Tip Jar\nall tips appreciated",             //sets the text above the jar            color_start, 1.0); }

money(key id, integer amount) {       total += amount; llSetText( "Tip Jar\nall tips appreciated\n" +           (string)amount + " was donated last\n" +            (string)total + " donated total",            color_used, 1.0); llInstantMessage(id, "Thanks for the tip!");                //sends an IM thanking the tipper llOwnerSay((string)llKey2Name(id) + " donated $" +           (string)amount); } }

code