06-05-2006 09:40
I Need This Script To Not Have The Total Amount Tipped So Far Being Shown .....Dont Want Peeps To Know how Much Has Already Been Givin but Cant Seem To Get it Right...Pls Help







//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( owner + "'s Tip Box.\nDont Forget To Tip Your Dancers,Host,And Excorts For The Awesome Job They Are Doing!!\n$L0 Donated so far",<0,100,0>,1);
}

money(key id, integer amount)
{
totaldonated += amount;
llSetText( owner + "'s Tip Jar.\nPlease Dont Forget To Tip Your Dancers,Host,And Excorts For The Awesome Job They Are Doing!!\n" + "$L" ;
llInstantMessage(id,"ThankYou For The Tip! V^vv^V Howlzzzzz V^vv^V ";);
llInstantMessage(llGetOwner(),(string)llKey2Name(id)+" donated $" + (string)amount);if ( llGetInventoryNumber( INVENTORY_SOUND ) > 0 )
{
llPlaySound( llGetInventoryName( INVENTORY_SOUND, 0 ),1 );
}
}
}