removed useless _ folders
This commit is contained in:
3
Kill_all_NPCs/Kill_all_NPCs.sol
Normal file
3
Kill_all_NPCs/Kill_all_NPCs.sol
Normal file
@@ -0,0 +1,3 @@
|
||||
<Solution name="Kill_all_NPCs">
|
||||
<Project name="Kill_all_NPCs" path="Kill_all_NPCs\Kill_all_NPCs.prj" active="true"/>
|
||||
</Solution>
|
||||
8
Kill_all_NPCs/Kill_all_NPCs/Kill_all_NPCs.prj
Normal file
8
Kill_all_NPCs/Kill_all_NPCs/Kill_all_NPCs.prj
Normal file
@@ -0,0 +1,8 @@
|
||||
<Project name="Kill_all_NPCs" guid="d8f06ec9-6c00-1014-b904-200204c60a89">
|
||||
<Object name="Object" guid="d8f06fba-6c00-1014-b904-200204c60a89">
|
||||
<Script name="Kill_all_NPCs_1.lsl" guid="d8f092af-6c00-1014-b904-200204c60a89">
|
||||
</Script>
|
||||
<Script name="Kill_Nearby_NPC (10 Meters).lsl" guid="8886f3c0-0035-4dc1-8f95-a8658cde83d3">
|
||||
</Script>
|
||||
</Object>
|
||||
</Project>
|
||||
@@ -0,0 +1,45 @@
|
||||
// :CATEGORY:OpenSim NPC
|
||||
// :NAME:Kill_all_NPCs
|
||||
// :AUTHOR:Fritigern and Ferd
|
||||
// :KEYWORDS:
|
||||
// :CREATED:2015-01-23 00:05:57
|
||||
// :EDITED:2015-01-23
|
||||
// :ID:422
|
||||
// :NUM:1713
|
||||
// :REV:1.0
|
||||
// :WORLD:OpenSim
|
||||
// :DESCRIPTION:
|
||||
// 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.
|
||||
// :CODE:
|
||||
|
||||
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);
|
||||
list detail = llGetObjectDetails((key) target, [OBJECT_POS]);
|
||||
vector pos = llList2Vector(detail, 0);
|
||||
if (llVecDist( pos, llGetPos()) < 10 ){
|
||||
|
||||
osNpcRemove(target);
|
||||
llSay(0,"NPC Removal: Target "+target);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
33
Kill_all_NPCs/Kill_all_NPCs/Object/Kill_all_NPCs_1.lsl
Normal file
33
Kill_all_NPCs/Kill_all_NPCs/Object/Kill_all_NPCs_1.lsl
Normal file
@@ -0,0 +1,33 @@
|
||||
// :CATEGORY:OpenSim NPC
|
||||
// :NAME:Kill_all_NPCs
|
||||
// :AUTHOR:Fritigern
|
||||
// :CREATED:2013-07-30 13:37:33.100
|
||||
// :EDITED:2013-09-18 15:38:55
|
||||
// :ID:422
|
||||
// :NUM:578
|
||||
// :REV:1.0
|
||||
// :WORLD:OpenSim
|
||||
// :DESCRIPTION:
|
||||
//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.
|
||||
// :CODE:
|
||||
|
||||
|
||||
default
|
||||
|
||||
{
|
||||
|
||||
touch_start(integer number)
|
||||
|
||||
{
|
||||
|
||||
list avatars = llList2ListStrided(osGetAvatarList(), 0, -1, 3);
|
||||
Reference in New Issue
Block a user