Deleting and NPC clone
-
- Posts: 3
- Joined: Sun Sep 24, 2017 6:48 pm
- Has thanked: 1 time
- Been thanked: 2 times
Deleting and NPC clone
We created an NPC clone and now we cannot get rid of it. It seems to be preventing our sim from closing too. Any suggestions about how to delete it?
- These users thanked the author Snow Gryphon for the post:
- Ilan Tochner
- Ilan Tochner
- Posts: 6727
- Joined: Sun Dec 23, 2012 8:44 am
- Has thanked: 5249 times
- Been thanked: 4674 times
- Contact:
Re: Deleting and NPC clone
Hi Snow,
An NPC shouldn't prevent a world from shutting down. The world should do so automatically a few minutes after the last user leaves that world. You can track when the world shuts down in the Active World panel on that world's World Page.
That said, if you go to your world's World Page while it's active you'll see an option to manually "stop world" in the world's Active World panel.
For more details about the Active World panel, please see: https://kitely.atlassian.net/wiki/space ... erformance
An NPC shouldn't prevent a world from shutting down. The world should do so automatically a few minutes after the last user leaves that world. You can track when the world shuts down in the Active World panel on that world's World Page.
That said, if you go to your world's World Page while it's active you'll see an option to manually "stop world" in the world's Active World panel.
For more details about the Active World panel, please see: https://kitely.atlassian.net/wiki/space ... erformance
- Brayla Sana
- Posts: 82
- Joined: Wed Mar 27, 2013 7:09 pm
- Has thanked: 19 times
- Been thanked: 155 times
Re: Deleting and NPC clone
Put this script in a box and then click the box. It will remove all NPC's from your sim.
Code: Select all
// sim-wide NPC killer
// kill all of NPCs in this SIM
// Attempts to kill agents too, but it will silently fail
// http://opensimulator.org/wiki/OsNpcRemove
default
{
touch_start(integer number)
{
list avatars = llList2ListStrided(osGetAvatarList(), 0, -1, 3);
integer i;
llSay(0,"NPC Removal: No avatars will be harmed or removed in this process!");
for (i=0; i<llGetListLength(avatars); i++)
{
string target = llList2String(avatars, i);
osNpcRemove(target);
llSay(0,"NPC Removal: Target "+target);
}
}
}
- These users thanked the author Brayla Sana for the post (total 2):
- Ilan Tochner • Michael Timeless
Dadiella's for Fashion and Brayla Sana Gallery for Building!