Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

simple help needed

RaveWolf Strauss
Registered User
Join date: 1 Jan 2006
Posts: 53
06-05-2006 09:42
i need this script not to show total tip amount no need for peeps to know how much has already been given pls some one 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 );
}
}
}
Ordinal Malaprop
really very ordinary
Join date: 9 Sep 2005
Posts: 4,607
06-05-2006 09:55
Replace this line:
CODE
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);

with this:
CODE
llSetText( owner + "'s Tip Box.\nDont Forget To Tip Your Dancers,Host,And Excorts For The Awesome Job They Are Doing!!",<0,1.0,0>,1);

and then remove the second line starting with llSetText, the one in the money() event, this one:
CODE
llSetText( owner + "'s Tip Jar.\nPlease Dont Forget To Tip Your Dancers,Host,And Excorts For The Awesome Job They Are Doing!!\n" + "$L" ;

(Actually, that second line won't work at all as you've posted it, but that doesn't matter if you're just going to remove it.)

N.B. it's spelled "escorts"...
RaveWolf Strauss
Registered User
Join date: 1 Jan 2006
Posts: 53
Not Working Now
06-05-2006 10:13
Id It Twice How ya Said And It Still Errors Out Can Someone Or YOu Edit The Script And Repost In This Thread Pls So i Know Its Done Right
Ordinal Malaprop
really very ordinary
Join date: 9 Sep 2005
Posts: 4,607
06-05-2006 10:36
edit: never mind, here's the full version
CODE

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 Escorts For The Awesome Job They Are Doing!!", <0.0, 1.0, 0.0>, 1.0);
}

money(key id, integer amount)
{
totaldonated += amount;
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.0);
}
}
}
RaveWolf Strauss
Registered User
Join date: 1 Jan 2006
Posts: 53
06-05-2006 11:38
Tyvm For Your Help
RaveWolf Strauss
Registered User
Join date: 1 Jan 2006
Posts: 53
A lil more Help Pls Or A Question
06-05-2006 12:02
Is There A waY to make the sound played louder to be heard better?
Ordinal Malaprop
really very ordinary
Join date: 9 Sep 2005
Posts: 4,607
06-05-2006 12:59
Sorry, no, not with scripting - it's playing it at full volume already. You may have to use a sound recorded at a louder volume.