on_rez() event not firing in bought objects?
|
|
Ryas Fizir
Registered User
Join date: 7 Oct 2006
Posts: 15
|
11-22-2006 12:20
I've got an object I've set for sale (copy of object). The problem is, when someone buys the object, their purchased copy no longer fires the on_rez() event. The event fires in the original object, it fires if I transfer the object to someone else, but if someone purchases the object, their copy no longer works.
Has anyone else noticed this? Does selling an item disable the script?
Thanks! -Ryas
|
|
Burke Prefect
Cafe Owner, Superhero
Join date: 29 Oct 2004
Posts: 2,785
|
11-22-2006 12:32
Um. What all happens in the on_rez event?
|
|
Ryas Fizir
Registered User
Join date: 7 Oct 2006
Posts: 15
|
11-22-2006 12:39
From: Burke Prefect Um. What all happens in the on_rez event? You mean in my particular script? Besides the debugging llSay's all I do is llSetText() and llListen(). The particular text and who the object listens to is dependent on the start_param of on_rez. In other words, if rezzed from my rezzing vendor, set the text to one thing and listen to the vendor. If rezzed from someone's inventory, set the text to something else and listen to the new owner.
|
|
Jopsy Pendragon
Perpetual Outsider
Join date: 15 Jan 2004
Posts: 1,906
|
11-22-2006 13:04
Is the purchase item "Next owner may copy" or not?  Also, if the buyer is attaching the item the on_rez() might not get called too.
_____________________
* The Particle Laboratory * - One of SecondLife's Oldest Learning Resources. Free particle, control and targetting scripts. Numerous in-depth visual demonstrations, and multiple sandbox areas. - Stop by and try out Jopsy's new "Porgan 1800" an advanced steampunk styled 'particle organ' and the new particle texture store!
|
|
Ryas Fizir
Registered User
Join date: 7 Oct 2006
Posts: 15
|
11-22-2006 13:21
From: Jopsy Pendragon Is the purchase item "Next owner may copy" or not?  Also, if the buyer is attaching the item the on_rez() might not get called too. No, the next owner may not copy or modify. Does that have an effect on how the script runs? Also, the item is not an attachment.
|
|
Menenenendez Menendez
Registered User
Join date: 22 Nov 2006
Posts: 2
|
11-22-2006 13:40
I'm a noob and I have a similar problem I think... I purchased on object (which I cannot copy or edit) and it doesn't do what it is supposed to. When I drag it from my inventory or try to wear or attach it, it's just a box and it doesn't do anything.
|
|
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
|
11-22-2006 13:42
Menenenendez: Maybe the object you need is inside the box that you bought. Try rezzing the box on the ground, right-click, and select Open.
|
|
Ryas Fizir
Registered User
Join date: 7 Oct 2006
Posts: 15
|
11-22-2006 14:02
I just ran a test where I allowed the next user to modify the object and the script worked fine. It seems odd that a script won't run in a purchased item that is no-modify. Is that a bug or a feature?
-Ryas
|
|
Menenenendez Menendez
Registered User
Join date: 22 Nov 2006
Posts: 2
|
11-22-2006 14:10
Thanks, that got it working  Sorry I guess there was no problem except for me!
|
|
Ryas Fizir
Registered User
Join date: 7 Oct 2006
Posts: 15
|
11-22-2006 14:33
And here's where I put on my dunce hat.
Apparently, the locations where I originally tested my code (a couple of public sandboxes and a newly acquired parcel of mine) all had "Allow other scripts" disabled. Once I enabled the option on my parcel, the purchased objects worked fine. I believe that was the source of my problem.
-Kyle
|
|
Jopsy Pendragon
Perpetual Outsider
Join date: 15 Jan 2004
Posts: 1,906
|
11-22-2006 14:38
From: Ryas Fizir No, the next owner may not copy or modify. Does that have an effect on how the script runs? Also, the item is not an attachment. Sorry, copy/no-copy shouldn't be an issue, my mind was wandering astray. Other considerations: 1) Do you have multiple states in your script? (only the current state's on_rez() event is active, if there is one.) 2) Is this happening on land that you own... and you've disabled outside scripts on? (and I'm assuming you've re-read: http://lslwiki.com/lslwiki/wakka.php?wakka=on_rez ) [ edited: duh.. see this is what happens when you write a post, forget to hit [send], wander away, come back and THEN hit [send] before catching up on the thread! ]
_____________________
* The Particle Laboratory * - One of SecondLife's Oldest Learning Resources. Free particle, control and targetting scripts. Numerous in-depth visual demonstrations, and multiple sandbox areas. - Stop by and try out Jopsy's new "Porgan 1800" an advanced steampunk styled 'particle organ' and the new particle texture store!
|