Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Freebie "bought" detection?

Nika Talaj
now you see her ...
Join date: 2 Jan 2007
Posts: 5,449
03-15-2009 15:11
This is a really dumb question, I'm sure. If I'm selling a freebie's contents (i.e. I've set the object "For Sale" for $L0, and checked off 'contents'), and an avatar buys it by choosing "buy" on the pie menu, is there any way to tell who buys it?

I tested the "money" event, the "changed" event, and (in desperation) touch_start, and though the purchase happens just fine, I don't get an event.
:confused:
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
03-15-2009 15:30
Well, you can always go to secondlife.com >> My Account >> Transactions History. Any transfer of ownership will show up there, whether it involves L$ or not.
Nika Talaj
now you see her ...
Join date: 2 Jan 2007
Posts: 5,449
03-15-2009 15:33
True ... but I was hoping to just build a list of the folks who bought it, or at least count them, automagically, inworld (like a visitor counter).
.
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
03-15-2009 15:35
The answer is still the same. A drop box or vendor box doesn't stop working just because you decide to wear it.
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
03-15-2009 15:36
Buy do not trigger any event.
If you want a script to detect who buy you must use the 'money' event.
When you have the 'money' event in a script the 'Pay' in the Pie menu will show, so the object can be payed not bought:)
_____________________
From Studio Dora
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
03-15-2009 15:44
OK.... Why not put a script in the object that has a changed event to test for whether the owner has changed? If so, the script sends you an IM with the name of the new owner and then deletes itself.
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
03-15-2009 15:47
That's why a lot of "freebies" actually cost L$1. So that the money event will be triggered. However, you could always use llGiveInventory() or llGiveInventoryList() from a touch event or something instead of a L$ or "pay" transaction.
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
03-15-2009 15:51
From: Rolig Loon
OK.... Why not put a script in the object that has a changed event to test for whether the owner has changed? If so, the script sends you an IM with the name of the new owner and then deletes itself.

That one won't work in many cases. The scripts can only detect when an item that has been rezzed and taken into inventory is rezzed by a new owner (or bought in-world if the object is set to buy the original). In addition to getting erroneous events if one person buys the object and passing it on to another resident without rezzing it, you'll get extra events if someone purchases an object and rezzes it multiple times from inventory instead of rezzing it, taking it back into inventory, then rezzing it again. That's because the state of the script is never updated while the object remains in inventory. This last problem might be less of an issue for attachments, since essentially they ARE rezzed and taken back into inventory when removed. So as long as a new owner attaches and detaches the attachment before rezzing it in any other way, it should be okay.
Nika Talaj
now you see her ...
Join date: 2 Jan 2007
Posts: 5,449
03-15-2009 16:22
Thanks, folks! I just couldn't believe there was no event on buying for zero ... hmmpf. I should have connected this with the $L1 freebie phenomenon!

I have no discretion on how to set up this freebie, since it's part of a hunt. And it isn't an attachment, so a script in the given object won't work ... oh well, so it goes!
.
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
03-15-2009 17:43
does pay at zero not generate an event?

if so then touch to give contents seems your only reliable way to track
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -