Page 1 of 1

How to get rid of NPCs

Posted: Tue Dec 03, 2019 5:36 pm
by Freda Frostbite
I am pretty sure we have discussed this befopre but it isn't coming up when I search the forums. How do I get rid of NPCs I created and that now will not leave my world?

Re: How to get rid of NPCs

Posted: Tue Dec 03, 2019 6:03 pm
by Freda Frostbite
NM. I found a script that worked through google search. If anyone wants a copy of the NPC kill object I just made, let me know.

Re: How to get rid of NPCs

Posted: Wed Dec 04, 2019 3:33 pm
by John Mela
For anyone searching the forums for a script like that in future:

Code: Select all

default
{
    touch_start(integer n)
    {
        llSensor("", NULL_KEY, OS_NPC, 500.0, PI) ;
    }
    sensor(integer n)
    {
        integer i ;
        for (i = 0 ; i < n ; i++)
        {
            key Detected = llDetectedKey(i) ;
            llSay(0, "Removing " + llKey2Name(Detected)) ;
            osNpcRemove(Detected) ;
        }
    }
}
Drop the script into a prim, and click the prim to delete nearby NPCs (within 500m). It only deletes the first 16 it finds, so you may need to click it more than once.

Re: How to get rid of NPCs

Posted: Wed Dec 04, 2019 8:58 pm
by Shandon Loring
That is a super useful script.
That one and several more complex ones are available free at Seanchai Mall, including the super fun Recorder app
Along with the all important NPC KILLER LoL

There is comprehensive creation and user guide for NPCs there also,
some of which can be seen in the Zetamax Knowledge base at:
https://billing.zetamex.com/index.php?r ... -PMAC.html

Also in the box is a collection of a couple dozen preconfigured NPCs that you only need to rez and click to get working.
You can change their animations easily to whatever you like. I haven't played with all of them, but they seem fully functional.. YMMV

It's in a yellow box labelled NPC STUFF in the Script Library Building at The Seanchai Mall.
hop://grid.kitely.com:8002/SEANCHAI%20MALL/155/167/23

And yes it's all free goodness... of course we hope you'll think of us when you're looking for entertainment and check out our many venues and Live Storytelling events. As always, on the Kitely Events Calendar and at http://www.storylinkradio.com/p/hyp.html