I created an object, that sells it's content. Is it possible to write a script that recognizes when this object sold sth? I want to save the buyers name....
thank u

These forums are CLOSED. Please visit the new forums HERE
Recognize when object sells it contents? |
|
|
Tomfox Wiranata
Registered User
Join date: 20 Dec 2006
Posts: 80
|
03-19-2007 16:27
Hi !
I created an object, that sells it's content. Is it possible to write a script that recognizes when this object sold sth? I want to save the buyers name.... thank u ![]() |
|
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
|
03-19-2007 16:52
So I'm assuming that the customer 'pays' the object?
At that point, you have the buyer's key in your money(key giver, integer amount) Just do an llKey2Name()...and you've got their name. _____________________
--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. |
|
DoteDote Edison
Thinks Too Much
Join date: 6 Jun 2004
Posts: 790
|
03-19-2007 17:01
If you're not using a scripted method to sell contents, then your best source of sales data is your account's transaction page: https://secure-web6.secondlife.com/account/transactions.php
|
|
Lex Neva
wears dorky glasses
Join date: 27 Nov 2004
Posts: 1,361
|
03-20-2007 08:27
Yes. You can use a changed() event, and check for CHANGED_OWNER. This will trigger when someone uses the "buy" command, even on the original object (as well as in their copy). More info here:
http://www.lslwiki.net/lslwiki/wakka.php?wakka=changed |
|
Tomfox Wiranata
Registered User
Join date: 20 Dec 2006
Posts: 80
|
03-20-2007 15:37
ok...worked...thanks to all of u
![]() |