How to get rid of NPCs

Ask technical support questions about other topics
Post Reply
User avatar
Freda Frostbite
Posts: 597
Joined: Sat Mar 29, 2014 2:10 am
Location: Florida, space coast.
Has thanked: 417 times
Been thanked: 619 times

How to get rid of NPCs

Post by Freda Frostbite » Tue Dec 03, 2019 5:36 pm

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?
User avatar
Freda Frostbite
Posts: 597
Joined: Sat Mar 29, 2014 2:10 am
Location: Florida, space coast.
Has thanked: 417 times
Been thanked: 619 times

Re: How to get rid of NPCs

Post by Freda Frostbite » Tue Dec 03, 2019 6:03 pm

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.
These users thanked the author Freda Frostbite for the post (total 2):
Ilan TochnerSelby Evans
User avatar
John Hopkin
Posts: 19
Joined: Tue Feb 04, 2014 9:50 pm
Has thanked: 7 times
Been thanked: 13 times

Re: How to get rid of NPCs

Post by John Hopkin » Wed Dec 04, 2019 3:33 pm

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.
These users thanked the author John Hopkin for the post (total 2):
Ilan TochnerShandon Loring
User avatar
Shandon Loring
Posts: 893
Joined: Sat Oct 26, 2013 3:25 am
Has thanked: 565 times
Been thanked: 979 times
Contact:

Re: How to get rid of NPCs

Post by Shandon Loring » Wed Dec 04, 2019 8:58 pm

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
These users thanked the author Shandon Loring for the post:
Freda Frostbite
Post Reply