Weekly Raffle
Top Free Scripts
ASD Web Tools
Donation Box
 
Script ID : 9
Published Date: 2006/10/17 2:10:00
Reads : 18172
Money

I've seen this script in Freebie packs all the time, and it's always wrong. It doesn't correctly show how much has been collected so far. I assume it's because it is an old script and SL may have changed since. Either way, this is my own version, and it works.

integer totaldonated;

default
{
    
on_rezinteger sparam )
    {
        
llResetScript();
    }

    
state_entry()
    {
        
llSetText("Donation Box\nL$0 Donated so far",<1,1,1>,1);
    }

    
money(key idinteger amount)
    {
        
totaldonated totaldonated amount;
        
llSetText("Donation Box\nL$" + (string)totaldonated " Donated so far",<1,1,1>,1);
        
llInstantMessage(id,"Thank you for the donation!");
    }
}

Printer Friendly Page Send this Script to a Friend

Disclaimer: While I do not mind if these scripts are used in things you sell, I do not wish for these scripts to be sold either on their own or in script packs.
Now Available
Visit ASD Studios Hollywood
Search for Help
Monthly Free Item
Confetti Machine


Limit one per avatar
Teleport Now!



Sponsor

Site Info
Total Hits: