Advertisement
Guest User

Jae Somerset

a guest
Dec 26th, 2016
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Keknehv Psaltery Updated Version of DONATION BOX By jean cook, ama omega, and nada epoch Debugged by YadNi Monde (LoL) Yea, that s a Bunch O Peeps =)
  2.  
  3. //Summary: The following script will make an object accept donations on your behalf.
  4. //Usage: stick it on any object you own(my favorite is a top hat), and it will promptly display:
  5. //"<your name>'s donation hat.
  6. //Donate if you are so inclined."
  7. //at which point anyone can right click on it and give you a tip. also, the script tells the donator thanks, and then tells you who donated how much
  8. //also shows the total amount donated
  9.  
  10.  
  11.  
  12. integer totaldonated;
  13. string owner;
  14.  
  15. default
  16. {
  17.     on_rez( integer sparam )
  18.     {
  19.         llResetScript();
  20.     }
  21.     state_entry()
  22.     {
  23.         owner = llKey2Name( llGetOwner() );
  24.         llSetText("THANK YOU FOR SUPPORTING \n THETA NU SIGMA SORORITY \n Click To Tip",<1,1,1>,1);
  25.         llSetPayPrice(PAY_HIDE, [100 ,250, 500, 1000]);
  26.     }
  27.  
  28.     money(key id, integer amount)
  29.     {
  30.         totaldonated += amount;
  31.         llSetText("Theta Nu Sigma Sorority Tip Jar \n" + (string)amount + "L$ donated last time!\n" + (string)totaldonated + "L$ donated so far!",<1,1,1>,1);
  32.         llInstantMessage(id,"Thanks For Your Tip!");
  33.         llInstantMessage(llGetOwner(),(string)llKey2Name(id)+" donated L$" + (string)amount);
  34.     }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement