Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //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 =)
- //Summary: The following script will make an object accept donations on your behalf.
- //Usage: stick it on any object you own(my favorite is a top hat), and it will promptly display:
- //"<your name>'s donation hat.
- //Donate if you are so inclined."
- //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
- //also shows the total amount donated
- integer totaldonated;
- string owner;
- default
- {
- on_rez( integer sparam )
- {
- llResetScript();
- }
- state_entry()
- {
- owner = llKey2Name( llGetOwner() );
- llSetText("THANK YOU FOR SUPPORTING \n THETA NU SIGMA SORORITY \n Click To Tip",<1,1,1>,1);
- llSetPayPrice(PAY_HIDE, [100 ,250, 500, 1000]);
- }
- money(key id, integer amount)
- {
- totaldonated += amount;
- 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);
- llInstantMessage(id,"Thanks For Your Tip!");
- llInstantMessage(llGetOwner(),(string)llKey2Name(id)+" donated L$" + (string)amount);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement