|
RaveWolf Strauss
Registered User
Join date: 1 Jan 2006
Posts: 53
|
06-16-2006 04:41
I Would Like This Script To Emit A Sound Upon Being Tipped Like Asound From The Inventroy Can Someone Please Help default { state_entry() { llRequestPermissions(llGetOwner(),PERMISSION_DEBIT); llSay(0, "Tip Jar Rezzed."); llSetText("Pay to tip "+llKey2Name(llGetOwner()),<1,1,1>,1); }
//touch_start(integer total_number) //{ // llSay(0, "Pay me to tip "+llKey2Name(llGetOwner())+"."); //} on_rez(integer params) { llResetScript(); } money(key id, integer amount) { llSay(0, "Thank you "+llKey2Name(id)+" for the tip!"); } }
|
|
Artemis Cain
Take it or Leave it
Join date: 11 Apr 2005
Posts: 116
|
06-16-2006 06:21
default { state_entry() { llRequestPermissions(llGetOwner(),PERMISSION_DEBIT ); llSay(0, "Tip Jar Rezzed."); llSetText("Pay to tip "+llKey2Name(llGetOwner()),<1,1,1>,1); }
//touch_start(integer total_number) //{ // llSay(0, "Pay me to tip "+llKey2Name(llGetOwner())+"."); //} on_rez(integer params) { llResetScript(); } money(key id, integer amount) { llPlaySound("name of sound file", 1); llSay(0, "Thank you "+llKey2Name(id)+" for the tip!"); } }
Just make sure that the name of the sound file and the name in the script are exactly the same. The sound should play as money is placed in the tip jar.
|
|
RaveWolf Strauss
Registered User
Join date: 1 Jan 2006
Posts: 53
|
06-16-2006 06:44
Thank You Very Much
|
|
Artemis Cain
Take it or Leave it
Join date: 11 Apr 2005
Posts: 116
|
06-16-2006 06:49
Just remember that the sound comes from the tip jar, so if someone is across the room from it, they might not hear it.
it will be loudest right in front of the jar...
and, for the love of god ***Please*** don't make the sound a howl!!!
|