Join us in Outworldz at www.outworldz.com:9000 or follow us:

Search dozens of selected web sites for OpenSim and LSL script

New! Script Meta-Search will search thousands of scripts here and at other sites for LSL or Opensim scripts.
Loading

Want to add a script or a project? Upload it and a half million people will see it and your name here this year.

Home   Show All
Category: Contributor: Creator
OpenSim NPC Kill_all_NPCs  

Kill_all_NPCs

//http://opensimulator.org/wiki/User:Fritigern/Scripts#NPC_stuff
sim-wide NPC killer
License: http://creativecommons.org/licenses/by-sa/2.5/
You are free:
to Share — to copy, distribute and transmit the work
to Remix — to adapt the work
to make commercial use of the work

kill all of NPCs in this SIM
Attempts to kill agents too, but it will silently fail
http://opensimulator.org/wiki/OsNpcRemove
Unfortunatly, from time to time, one or more NPCs do get stuck in the scene, and can not be removed. They can't be removed by this script either.

Category: OpenSim NPC
By : Fritigern and Ferd
Created: 2015-01-23 Edited: 2015-01-22
Worlds: OpenSim

the Zip file

Download all files for Kill_all_NPCs
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Kill_all_NPCs_1.lsl
Get file # 2. Kill_Nearby_NPC (10 Meters).lsl
1
2 default
3 {
4 touch_start(integer number)
5 {
6 list avatars = llList2ListStrided(osGetAvatarList(), 0, -1, 3);
7 integer i;
8 llSay(0,"NPC Removal: No avatars will be harmed or removed in this process!");
9 for (i=0; i<llGetListLength(avatars); i++)
10 {
11 string target = llList2String(avatars, i);
12 osNpcRemove(target);
13 llSay(0,"NPC Removal: Target "+target);
14 }
15 }
16 }

Kill_all_NPCs

Mods by Ferd Frederix to onlykill NPCS withing 10 meters
Based on http://opensimulator.org/wiki/User:Fritigern/Scripts#NPC_stuff
sim-wide NPC killer
License: http://creativecommons.org/licenses/by-sa/2.5/
You are free:
to Share — to copy, distribute and transmit the work
to Remix — to adapt the work
to make commercial use of the work

kill all of NPCs in the nearby area
Attempts to kill agents too, but it will silently fail
Unfortunatly, from time to time, one or more NPCs do get stuck in the scene, and can not be removed. They can't be removed by this script either.

Category: OpenSim NPC
By : Fritigern and Ferd
Created: 2015-01-23 Edited: 2015-01-22
Worlds: OpenSim

1
2 default
3 {
4 touch_start(integer number)
5 {
6 list avatars = llList2ListStrided(osGetAvatarList(), 0, -1, 3);
7 integer i;
8 llSay(0,"NPC Removal: No avatars will be harmed or removed in this process!");
9 for (i=0; i<llGetListLength(avatars); i++)
10 {
11 string target = llList2String(avatars, i);
12 list detail = llGetObjectDetails((key) target, [OBJECT_POS]);
13 vector pos = llList2Vector(detail, 0);
14 if(llVecDist( pos, llGetPos()) < 10 ){
15
16 osNpcRemove(target);
17 llSay(0,"NPC Removal: Target "+target);
18 }
19 }
20 }
21 }

Back to the Best Free Tools in Second Life and OpenSim.