Hey, So I have this script for the donation boxes on my land; 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)
{
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);
} However I would like to have them all connect to 1 server and the server telling me the total amount of money donated. So the boxes have to tell the server how much there is donated and then the server adds the amount to the total. I've been trying a lot and can't seem to get it to work.