Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Random Height/Time script?

Princess Ivory
SL is my First Life
Join date: 17 Jan 2007
Posts: 720
02-23-2008 08:51
I recently encountered an object that used a script called Random Height/Time V3.3 to move ad farm cubes up and down, in relationship to the objects around them.

Anyone know of this script? Or where I can get a copy (or write my own, if it isn't too hard) so I can counteract the affects this ad cube is having on my adjacent property

We were trying to discretely and attractively block it with semi-transparent clouds, but the owner is still using the script. In fact, at one point the ad cubes went above the cloud layer to 300m, as soon as I rezzed a platform and began building a store at that level. As soon as I removed the build, I stood right there and watched the cubes drop right back down to near ground level.

Anyone with some knowledge of this kind of script? I'l like my clouds to float "randomly" as well!!

Thanks
_____________________
Princess Ivory
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
02-23-2008 13:34
Randomly, or with a sensor to see where there are avatars to distract? Hmm.

Anyway, this is a good start: http://www.lslwiki.net/lslwiki/wakka.php?wakka=llFrand
Princess Ivory
SL is my First Life
Join date: 17 Jan 2007
Posts: 720
02-23-2008 16:51
From: Hewee Zetkin
Randomly, or with a sensor to see where there are avatars to distract? Hmm.

Anyway, this is a good start: http://www.lslwiki.net/lslwiki/wakka.php?wakka=llFrand


You will note my emphasis on *ramdomly*
Of course, ideally I would like clouds to be scripted to follow the z height of the cubes.

Any ideas how to make it detect another object, and follow it up and down?
_____________________
Princess Ivory
Nika Talaj
now you see her ...
Join date: 2 Jan 2007
Posts: 5,449
02-23-2008 17:19
The easiest way to follow the cubes is if you know their key(s). Then for each you can find out their height like this:

location = llList2Vector(llGetObjectDetails(key, OBJECT_POS), 0);
height = location.z;

And set your "cloud" height accordingly, via llSetPrimitiveParams, presumably at some time interval.

If the objects have keys that change and you wanted to track them automatically, then you would have to use the less-than-precise method of a sensor with limited distance and angle, and llDetectedKey to return each purported object's key.
.
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
02-23-2008 21:06
Right. llGetObjectDetails() if you grab their keys beforehand. You can use their names in a sensor too (you could then either continue with the sensor or remember the keys after the first successful sensor scan).

Note also the recent (blog) message from Linden Labs about ad farming, which may or may not be applicable to your situation.
Very Keynes
LSL is a Virus
Join date: 6 May 2006
Posts: 484
02-24-2008 03:16
From: Hewee Zetkin
Note also the recent (blog) message from Linden Labs about ad farming, which may or may not be applicable to your situation.


You beet me to it there :), yes file an abuse report. The ad following you up to 300m is most definatly a violation in terms of the TOS and will be investigated.
Princess Ivory
SL is my First Life
Join date: 17 Jan 2007
Posts: 720
02-24-2008 07:38
From: Very Keynes
You beet me to it there :), yes file an abuse report. The ad following you up to 300m is most definatly a violation in terms of the TOS and will be investigated.


Well, the ads are for businesses owned by the plot owner, and the plot is not for sale (not at an extortion price, or any other price.) So it doesn't really violate TOS.

Get this, the owner's profile says that if you contact her asking to buy any of her land, she will mute you!!

/me wanders away shaking her head, getting ready to script some *random* floating clouds.

Thanks for so much specif scripting help everyone. I'll run it all by my hubby, and see what you can write for me.
_____________________
Princess Ivory