|
Inigo Chamerberlin
Registered User
Join date: 13 May 2006
Posts: 448
|
07-17-2006 03:08
OK, I posted this in Products Wanted and got no reply - so, can any scripter out there help me out here? From: someone I need a script that will give an AV a message, preferably a notecard, once, on arriving at a LP. I don't want something that requires any action on the AV's part, such as 'touching' a 'touch me for a notecard' object, this has to be completely automated and involuntary. An IM inworld would be nice as this is kind of urgent.
|
|
Hank Ramos
Lifetime Scripter
Join date: 15 Nov 2003
Posts: 2,328
|
07-17-2006 06:28
//Notecard Giver via Sensor //by Hank Ramos list givenList; string notecard = "Welcome Notecard"; float sensorRange = 5.0;
default { state_entry() { llSensorRepeat("", NULL_KEY, AGENT, sensorRange, TWO_PI, 10); }
sensor(integer num_detected) { integer x; key detectedKey; for (x=0; x < num_detected; x += 1) { detectedKey = llDetectedKey(x); if (llListFindList(givenList, [detectedKey]) < 0) { givenList += llDetectedKey(x); llGiveInventory(detectedKey, notecard); if (llGetListLength(givenList) >= 80) { givenList = llDeleteSubList(givenList, 0, 59); } } } } }
This and many more example scripts at my Script Shop in Grignano (98,9 
|
|
Inigo Chamerberlin
Registered User
Join date: 13 May 2006
Posts: 448
|
07-17-2006 12:01
Thanks Hank, and all the others who responded with various solutions. The problem is now sorted.
|