A Lil More Help
|
|
RaveWolf Strauss
Registered User
Join date: 1 Jan 2006
Posts: 53
|
06-06-2006 06:23
i need this script to give tipper a note card after tippin how would i go about this 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"  ; if (llGetInventoryNumber(INVENTORY_SOUND) > 0 ) { llPlaySound(llGetInventoryName(INVENTORY_SOUND, 0), 1.0); } } }
|
|
Ginge Reymont
Registered User
Join date: 10 Oct 2005
Posts: 190
|
06-06-2006 06:29
string notecard = "Thanks!"; 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"); llGiveInventory(id, notecard); if (llGetInventoryNumber(INVENTORY_SOUND) > 0 ) { llPlaySound(llGetInventoryName(INVENTORY_SOUND, 0), 1.0); } } }
|
|
RaveWolf Strauss
Registered User
Join date: 1 Jan 2006
Posts: 53
|
Didnt Work
06-06-2006 06:47
That Doesnt Compile ....
|
|
Artemis Cain
Take it or Leave it
Join date: 11 Apr 2005
Posts: 116
|
06-06-2006 07:23
From: RaveWolf Strauss That Doesnt Compile .... Take the last "}" out of it... in the future, please use the " [\php] to surround your code. Makes it easier to read the code.
|
|
RaveWolf Strauss
Registered User
Join date: 1 Jan 2006
Posts: 53
|
Still Not Compiling
06-06-2006 07:34
Still Wont Compile Heres The Orig maybe Be Easier For YOu To Help Me 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"); if (llGetInventoryNumber(INVENTORY_SOUND) > 0 ) { llPlaySound(llGetInventoryName(INVENTORY_SOUND, 0), 1.0); } } }
|
|
Ginge Reymont
Registered User
Join date: 10 Oct 2005
Posts: 190
|
06-06-2006 07:41
Im sorry, i forgot the variables  integer totaldonated; string owner; string notecard = "Thanks!"; 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"); llGiveInventory(id, notecard); if (llGetInventoryNumber(INVENTORY_SOUND) > 0 ) { llPlaySound(llGetInventoryName(INVENTORY_SOUND, 0), 1.0); } } }
|
|
Joannah Cramer
Registered User
Join date: 12 Apr 2006
Posts: 1,539
|
06-06-2006 07:42
From: RaveWolf Strauss i need this script to give tipper a note card after tippin how would i go about this in the money event: money( key id, integer amount ) {
llGiveInventory( id, "card name" ); }this will hand item named "card name" to person who paid the object money, as long as something with that name is in the object's inventory.
|
|
Artemis Cain
Take it or Leave it
Join date: 11 Apr 2005
Posts: 116
|
06-06-2006 07:47
string notecard = "Thanks!"; // This can be named whatever you want... just make sure that you match exactly the name of the notecard in the jars inventory. for example, if the notecard is called Thanks! in the script, the notecard MUST be called Thanks! in the jars inventory
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"); llGiveInventory(id, notecard); if (llGetInventoryNumber(INVENTORY_SOUND) > 0 ) { llPlaySound(llGetInventoryName(INVENTORY_SOUND, 0), 1.0); } } }
Make sure that you put a notecard inside the tip jar that matches exactly what the name of the notecard is in the script.
|
|
RaveWolf Strauss
Registered User
Join date: 1 Jan 2006
Posts: 53
|
kewl
06-06-2006 09:51
ty to all that replyed that last one works perfectly tyvm
|
|
Artemis Cain
Take it or Leave it
Join date: 11 Apr 2005
Posts: 116
|
06-06-2006 09:58
I have one of those tip dealies on my spot in Juanita... (hint.. hint)
|