Tiger Crossing
The Prim Maker
Join date: 18 Aug 2003
Posts: 1,560
|
08-18-2004 13:52
Is it just me, or are we in need of an "on_buy_original" event or a "changed -> owner" event?
_____________________
~ Tiger Crossing ~ (Nonsanity)
|
Wednesday Grimm
Ex Libris
Join date: 9 Jan 2003
Posts: 934
|
08-18-2004 13:58
objects are bought in to inventory, so couldn't you do it on_rez? on_rez(integer p) { if (llGetOwner() != kSavedOwner) { kSavedOwner = llGetOwner(); // do owner change stuff; } }
_____________________
Sarcasm meter: 0 |-----------------------*-| 10 Rating: Awww Jeeze!
|
Grim Lupis
Dark Wolf
Join date: 11 Jul 2003
Posts: 762
|
08-18-2004 15:14
From: someone Originally posted by Wednesday Grimm objects are bought in to inventory, so couldn't you do it on_rez?
Not originals.
_____________________
Grim
"God only made a few perfect heads, the rest of them he put hair on." -- Unknown
|
Archaegeo Platini
Ancient Earth University
Join date: 12 Aug 2004
Posts: 152
|
08-18-2004 15:16
Hmm, if kSavedOwner has never been set or changed from some default, then its Original owner.
|
Grim Lupis
Dark Wolf
Join date: 11 Jul 2003
Posts: 762
|
08-18-2004 15:18
From: someone Originally posted by Archaegeo Platini Hmm, if kSavedOwner has never been set or changed from some default, then its Original owner. Not what I meant. When you buy an original item, instead of a copy of an item, it doesn't go into your inventory, it stays where it is. For instance, if I have someone build me a house, they sell me all the prims as original items, that way I don't have to go digging them out of my inventory and trying to line them all back up again.
_____________________
Grim
"God only made a few perfect heads, the rest of them he put hair on." -- Unknown
|
Wednesday Grimm
Ex Libris
Join date: 9 Jan 2003
Posts: 934
|
08-18-2004 15:39
From: someone Originally posted by Grim Lupis Not originals. Ah, right, I missed that part. Is there a permissions hack maybe? I'm thinking maybe some granted permissions might change on ownership transfer so you could check the owner in run_time_permissions... have to investigate. Or use the hated llSetTimer.
_____________________
Sarcasm meter: 0 |-----------------------*-| 10 Rating: Awww Jeeze!
|
Tiger Crossing
The Prim Maker
Join date: 18 Aug 2003
Posts: 1,560
|
08-18-2004 15:50
Yes, and though you could have a script on the object in a tight timer loop checking to see if it's owner's key has changed, that's not good script programming, AND events could still slip between the ownership transfer and the next timer cycle.
A llReturnToOwner would be nice too.
_____________________
~ Tiger Crossing ~ (Nonsanity)
|