Simple Welcome Script Needed
|
Gene Jacobs
Who? Me?
Join date: 30 Jul 2004
Posts: 127
|
09-20-2004 10:23
I need a simple, no frills, Welcome Script.
Where when an avatar moves onto a parcel or within a range of an object, the object will say "Welcome (avatar's name)".
I have passed by a store and a message will appear saying... Counter: Welcome to my shop Gene Jacobs!
I want one of those scripts... please
|
Padraig Stygian
The thin mick
Join date: 15 Aug 2004
Posts: 111
|
09-20-2004 13:13
//Greeter script //by Padraig Stygian // //Range is in meters, alter to suit the size of your shop. //Rate is in seconds, and determines how often it will scan for visitors. //I have not compiled this, and don't know if it works, //but it looks right, at a glance. float rate = 1.0; float range = 5.0; integer j;
default { state_entry() { llSensorRepeat( "", "", AGENT, range, TWO_PI, rate ); } sensor(integer total_number) { for (j=0;j<total_number;j++) { llSay(0,"Hello, " + llDetectedName(j)) } } on_rez(integer st) { llResetScript(); } }
|
Ace Cassidy
Resident Bohemian
Join date: 5 Apr 2004
Posts: 1,228
|
09-20-2004 13:53
I'm sorry, Padraig, but this is just not right.
I mean, I'm not saying your script isn't right. I haven't compiled it either, but it looks like it does what you want it to do.
What is NOT right is posting scripts on the forums like this, which can potentially be used by uninformed scripters, and which are incredible lag monsters.
Performing a sensor scan every 1 second just isn't right. Its scripts like this that are out there that bring down the SL experience for everyone, by adding to overall sim-lag.
My US$0.02...
- Ace
_____________________
"Free your mind, and your ass will follow" - George Clinton
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
09-20-2004 14:09
*cough* that script will spam chat every second with every person it finds in range. It needs a memory. You would be better off getting a copy of the Visitory List scanner the lindens made and mod'ing it. You can find them all over SL; but a good place to look for them is Luna in the stores (because store owners like to know who has visited). They are free to copy by all. (and US$0.02 comes out to be about $5L  )
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly
Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey
|
Ace Cassidy
Resident Bohemian
Join date: 5 Apr 2004
Posts: 1,228
|
09-20-2004 14:17
One more thing I should have added in my initial comments...
Padraig... I'm not trying to jump on you personally. In fact, I'm sure you were trying to be helpful, which is a good thing, and I know that the SL community appreciates it when code snippets are posted and shared.
But please, fellow forum posters... try to make sure you aren't tossing out lag monsters when you try to be helpful.
If you're not sure whether your code snippet is a lag monster, then don't post it. Or at least run it by someone who can answer that question for you before sharing it with others.
- Ace
_____________________
"Free your mind, and your ass will follow" - George Clinton
|
Nick Fortune
National Alchemist
Join date: 30 May 2003
Posts: 74
|
LagMonster v1.0
09-20-2004 23:26
default { state_entry() { llSay(0, "Hello, Avatar. I am a lag monster. RAWR."); }
touch_start(integer total_number) { llSay(0, "Hello, Avatar. I am a lag monster. RAWR."); } }

|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
09-21-2004 00:30
National Alchemist shouldn't be making lag monsters.
*looks around for suit of armor to hide in*
(if my post came off as being a bit harsh i just ment it as a way to avoid extraneous scripting)
think 48 came out a day or so ago...
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly
Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey
|
Hiro Pendragon
bye bye f0rums!
Join date: 22 Jan 2004
Posts: 5,905
|
09-21-2004 00:34
How about, for starters, we replace llSay with an instant message command? 
_____________________
Hiro Pendragon ------------------ http://www.involve3d.com - Involve - Metaverse / Emerging Media Studio
Visit my SL blog: http://secondtense.blogspot.com
|
Nick Fortune
National Alchemist
Join date: 30 May 2003
Posts: 74
|
09-21-2004 00:40
From: someone Originally posted by Strife Onizuka National Alchemist shouldn't be making lag monsters.
*looks around for suit of armor to hide in*
(if my post came off as being a bit harsh i just ment it as a way to avoid extraneous scripting)
think 48 came out a day or so ago... Lol yay somebody got it! Yea i just watched 48. A couple hours ago 
|
Padraig Stygian
The thin mick
Join date: 15 Aug 2004
Posts: 111
|
09-22-2004 11:15
1. D'oh! Forgot about the visitor list part to keep the spam down... I was tired.
2. So, alter the time setting on it. It's got a clearly labelled variable for that. I just happen to live in a fairly uninhabited sim that doesn't suffer horribly from short delay scripts, and I forget that not everyone can run them on that short a timer.
There, both cases acknowledged. When I can get near my machine to compile things again, I'll write one that works properly.
|
Catherine Omega
Geometry Ninja
Join date: 10 Jan 2003
Posts: 2,053
|
09-22-2004 14:40
From: someone Originally posted by Strife Onizuka National Alchemist shouldn't be making lag monsters.
*looks around for suit of armor to hide in* Ohhhhhh! THAT'S where I recognized your forum icon from, Nick. 
|