Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

do something with buy

Tony21 Jonesford
Registered User
Join date: 17 Sep 2007
Posts: 16
09-21-2007 09:18
Hi

I want to do an action when an user buy my object.

I don't find this event.

How to do that?

thanks
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
09-21-2007 11:17
You cannot trigger an event on "Buy"...but you can cause a user to "Pay" your object and receive a copy...and then have the money() event trigger.
_____________________
--AeonVox--

Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
09-21-2007 13:47
Well, there's the CHANGED_OWNER event, but it's a bit tricky. See the handy-dandy table at for details. The main thing to keep in mind is that the event will trigger both in the original object and in a purchased copy when it's first rezzed by its new owner (and perhaps other times when one least expects it). Disambiguating which circumstance triggered the event is left as an exercise to the scripter. ;)
Tony21 Jonesford
Registered User
Join date: 17 Sep 2007
Posts: 16
09-21-2007 15:10
I saw we can detect changed_owner

but how to detect changed_owner with clothes?
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
09-21-2007 15:20
Tony, you cannot script clothes--period. There is no way to put a script inside of a clothing texture. If you are using "prim-clothes", then you can place a script inside one of the prim pieces of the clothing set.
_____________________
--AeonVox--

Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.