|
Mitralone Yalin
Registered User
Join date: 1 Jan 2008
Posts: 3
|
07-14-2008 04:15
Hello all,
Is it possible to detect if the contents of an object is purchased and for what price through a script? I am trying to give people permission to sell stuff in my place but I need to take the comission when the item is purchased through the "BUY" menu.
Thanks for all the responses.
Mitralone
|
|
Dekka Raymaker
thinking very hard
Join date: 4 Feb 2007
Posts: 3,898
|
07-14-2008 04:22
I believe a vendor is the best option to do this, search the script library, commission based vendor scripts are in there.
|
|
Ordinal Malaprop
really very ordinary
Join date: 9 Sep 2005
Posts: 4,607
|
07-14-2008 04:29
Yes, you will need a vendor script.
There is no way for scripts to detect if the object has been bought via the Buy option.
_____________________
http://ordinalmalaprop.com/forum/ - visit Ordinal's Scripting Colloquium for scripting discussion with actual working BBCode!
http://ordinalmalaprop.com/engine/ - An Engine Fit For My Proceeding, my Aethernet Journal
http://www.flickr.com/groups/slgriefbuild/ - Second Life Griefbuild Digest, pictures of horrible ad griefing and land spam, and the naming of names
|
|
Deanna Trollop
BZ Enterprises
Join date: 30 Jan 2006
Posts: 671
|
07-14-2008 09:30
From: Ordinal Malaprop There is no way for scripts to detect if the object has been bought via the Buy option. Actually, there is. CHANGED_OWNER is passed to a changed event handler in the original object when a copy is bought:  However, this isn't a secure solution for the OP, if ownership of the items to be sold remains with others, since there's no way to ensure they keep an active "commission" script in their items.
|
|
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
|
07-14-2008 09:52
From: Deanna Trollop Actually, there is. CHANGED_OWNER is passed to a changed event handler in the original object when a copy is bought: Yes, but it does not give you the price that was paid, which is what the OP was asking. In addition, it also will be triggered on someone giving said item to another (if it was transfer), so that may also be a problem. Not to mention that an object giving a commission after it is "purchased" in this manner would require PERMISSION_DEBIT from the *new* owner.
|
|
ArchTx Edo
Mystic/Artist/Architect
Join date: 13 Feb 2005
Posts: 1,993
|
07-14-2008 10:03
There is a free full permissions "split proceeds" vendor script in the box of "Free useful stuff" at my store in Shona.
_____________________
 VRchitecture Model Homes at http://slurl.com/secondlife/Shona/60/220/30 http://www.slexchange.com/modules.php?name=Marketplace&MerchantID=2240 http://shop.onrez.com/Archtx_Edo
|
|
Deanna Trollop
BZ Enterprises
Join date: 30 Jan 2006
Posts: 671
|
07-14-2008 21:47
From: Talarus Luan Yes, but it does not give you the price that was paid, which is what the OP was asking. True, which I realized just after my post, and was about to edit and add, but I was in a bit of a rush to leave and figured it was moot anyway. From: someone Not to mention that an object giving a commission after it is "purchased" in this manner would require PERMISSION_DEBIT from the *new* owner. If the intent was to only pay commissions from the original "display model" object, and not subsequent copies (which would just look shady anyway) then PERMISSION_DEBIT could be requested only in default state_entry, then when CHANGED_OWNER is raised, check llGetOwner() against llGetPermissionsKey(), and if different, delete the commission script.
|