Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

NEED HELP: Poof when tip paid to jar?!?

Godiva Rugani
Registered User
Join date: 16 Jan 2009
Posts: 25
11-11-2009 19:50
Hello everyone! I have visited the particle laboratory and the particle and script wiki's for second life and AM STILL LOST!

All I want is a script, that allowed for a particle to be poofed once the tip jar has been paid or clicked upon? Thank you!
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
11-11-2009 20:37
if you went to the particle lab, you already should have the poof script, you just need to take a tip jar script and copy the particle source function to the money event. something like:

money(key id, integer amount)
{
llSay(llKey2Name(id) + " paid L$" + (string)integer);
llParticleSystem([
PARTICLE PARAMS..........
]);
llSleep(0.25);//sleep for a quarter of a second
llParticleSystem([]);//empty particle system turns the particles off
}
_____________________
Dark Heart Emporium

http://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=133020

want more layers for tattoos, specifically for the head? vote here
http://jira.secondlife.com/browse/VWR-1449?

llDetectedCollision* Functions similar to touch
http://jira.secondlife.com/browse/SVC-3369
Godiva Rugani
Registered User
Join date: 16 Jan 2009
Posts: 25
11-11-2009 20:58
I have tried that and am still getting error messages Ruth. Am I just not putting the code in the right place?
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
11-11-2009 21:16
it's hard to say without seeing what you've got, but my example is pretty straight forward of what's needed
_____________________
Dark Heart Emporium

http://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=133020

want more layers for tattoos, specifically for the head? vote here
http://jira.secondlife.com/browse/VWR-1449?

llDetectedCollision* Functions similar to touch
http://jira.secondlife.com/browse/SVC-3369
Godiva Rugani
Registered User
Join date: 16 Jan 2009
Posts: 25
11-11-2009 22:08
I suppose i'll try again tomorrow. I can't even seem to post my code here in the forums that i'm using.
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
11-12-2009 07:13
Don't post the whole code. Just post the money event, since that's obviously where it needs to be changed. If any "< " symbols in the code are followed by something other than a numeral, insert a space there to placate the forum gods so you can post the script.
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask.... ;)

Look for my work in XStreetSL at
Godiva Rugani
Registered User
Join date: 16 Jan 2009
Posts: 25
11-12-2009 10:11
CODE


money(key id, integer amount)
{
totaldonated += amount;
llSetText("Tip Jar for + " + owner + "\n" + (string)amount + "L$ donated last time!\n" + (string)totaldonated + "L$ donated so far!",<1,1,1>,1);
llParticleSystem([ // Texture Parameters:
PSYS_SRC_TEXTURE, llGetInventoryName(INVENTORY_TEXTURE, 0),
PSYS_PART_START_SCALE, <0.0, 1, FALSE>, PSYS_PART_END_SCALE, <1, 1, FALSE>,
PSYS_PART_START_COLOR, <1.00,1.00,1.00>, PSYS_PART_END_COLOR, <1.00,1.00,1.00>,
PSYS_PART_START_ALPHA, (float) 0.1, PSYS_PART_END_ALPHA, (float) 3.0,

// Production Parameters:
PSYS_SRC_BURST_PART_COUNT, (integer) 2,
PSYS_SRC_BURST_RATE, (float) 0.5,
PSYS_PART_MAX_AGE, (float) 5.0,
// PSYS_SRC_MAX_AGE, (float) 5.00,

// Placement Parameters:
PSYS_SRC_PATTERN, (integer) 2, // 1=DROP, 2=EXPLODE, 4=ANGLE, 8=CONE,

// Placement Parameters (for any non-DROP pattern):
PSYS_SRC_BURST_SPEED_MIN, (float) 00.5, PSYS_SRC_BURST_SPEED_MAX, (float) 00.5,
PSYS_SRC_BURST_RADIUS, (float) 00.1,

// Placement Parameters (only for ANGLE & CONE patterns):
PSYS_SRC_ANGLE_BEGIN, (float) 0.40 * PI, PSYS_SRC_ANGLE_END, (float) 0.00 * PI,
// PSYS_SRC_OMEGA, <00.00, 00.00, 00.00>,

// After-Effect & Influence Parameters:
PSYS_SRC_ACCEL, < 00.00, 00.00, - 00.1>,
// PSYS_SRC_TARGET_KEY, (key) llGetLinkKey(llGetLinkNum() + 1),

PSYS_PART_FLAGS, (integer) ( 0 // Texture Options:
| PSYS_PART_INTERP_COLOR_MASK
| PSYS_PART_INTERP_SCALE_MASK
| PSYS_PART_EMISSIVE_MASK
| PSYS_PART_FOLLOW_VELOCITY_MASK
// After-effect & Influence Options:
// | PSYS_PART_WIND_MASK
| PSYS_PART_BOUNCE_MASK
// | PSYS_PART_FOLLOW_SRC_MASK
// | PSYS_PART_TARGET_POS_MASK
// | PSYS_PART_TARGET_LINEAR_MASK
)
//end of particle settings
]);
llSleep(0.25);//sleep for a quarter of a second
llParticleSystem([]);//empty particle system turns the particles off
});
({
if ( AUTO_START ) llParticleSystem( particle_parameters );

}
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
11-12-2009 11:34
Ah... It looks like you've almost got it. You just have a little bit of extraneous code at the end of what you showed us. Remove the following....

);
({
if ( AUTO_START ) llParticleSystem( particle_parameters );

}

and all should be well.
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask.... ;)

Look for my work in XStreetSL at