Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Setting "When left-clicked" via script

Maris Kanto
Registered User
Join date: 4 Dec 2007
Posts: 47
01-23-2008 11:54
Hello guys,

am i missing something or not - i don't know.. but each time i am trying to duplicate my vendors, i lose all FOR SALE and WHEN LEFT-CLICKED setting for the original object i am duplicating via SHIFT-drag.

so being tired to re-setting these each time, i wonder - is there any way that these parameters can be set via the script?

if not, maybe there is any other workaround?

it is important that i use my vendors since already put a lot of functionality and business solutions in them.

Thanks,
Maris
Darien Caldwell
Registered User
Join date: 12 Oct 2006
Posts: 3,127
01-23-2008 12:42
Don't use Shift-Drag to duplicate. Take the item to inventory, and rez new copies from inventory. They will retain their settings. Items which are shift-dragged have all static prim parameters reset to their defaults.
_____________________
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
01-23-2008 12:43
I didn't know left-click behavior is lost. There's no way to set either by script, but you can accept payments with a 'money' event handler rather than using object for-sale settings. Handling payments can be tricky though. I'd very much recommend reading about some of the following before designing such a system:

http://www.lslwiki.net/lslwiki/wakka.php?wakka=LindenDollar
http://www.lslwiki.net/lslwiki/wakka.php?wakka=llGiveInventory
http://www.lslwiki.net/lslwiki/wakka.php?wakka=llGiveInventoryList
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
01-23-2008 13:46
See http://jira.secondlife.com/browse/SVC-767. In the cosmic scheme of things, I suppose having script access to this isn't the most important thing, but I do wish features would stop sneaking in without any attention to scripts. (Texture "glow" being a recent example--at least that one we'll get; later than acceptable, but better late than never.)
_____________________
Archived for Your Protection