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
- //The lowest ammount of L$ to shoot lips
- integer lowestamnt = 100;
- //The penis item's name put between the "" and be accurate with the name
- string penisname = "penis";
- //The Lip's item's name put between the "" and be accurate with the name
- string lipname = "lips";
- //Dont mess with this stuff
- key lastdonated;
- integer totaldonated;
- string owner;
- default
- {
- on_rez( integer sparam )
- {
- llResetScript();
- }
- state_entry()
- {
- owner = llKey2Name( llGetOwner() );
- llSetText( owner + "'s donation hat.\nDonate if you are so inclined!\n$0 Donated so far",<1,1,1>,1);
- }
- money(key id, integer amount)
- {
- lastdonated = id;
- totaldonated+=amount;
- llSetText( owner + "'s donation hat.\nDonate if you are so inclined!\n$" + (string)amount + " Donated so far",<1,1,1>,1);
- llInstantMessage(id,"Thanks for the tip!");
- llInstantMessage(owner,llKey2Name(id)+" donated $" + (string)amount);
- if(lowestamnt >= amount)
- {
- llRezObject(penisname,llGetPos() + <0.0,0.2,0.0>,<0,0,0>,<0,0,0,1.0>,0);
- llSay(0,"This is what you get with that tip!");
- }
- else if(lowestamnt <= amount)
- {
- llRezObject(lipname,llGetPos() + <0.0,0.2,0.0>,<0,0,0>,<0,0,0,1.0>,0);
- llSay(0,"You are the greatest tipper in this Virtual world! Mwah!");
- }
- }
- object_rez(key id)
- {
- llSay(-4867,(string)lastdonated);
- }
- }
Add Comment
Please, Sign In to add comment