removed useless _ folders

This commit is contained in:
Fred Beckhusen
2015-08-09 16:54:31 -05:00
parent fde850293c
commit 948a44dfba
5204 changed files with 2425579 additions and 0 deletions

View File

@@ -0,0 +1,77 @@
// :CATEGORY:NPC
// :NAME:OpenSim NPC Populate Region Randomly
// :AUTHOR:Fritigern
// :KEYWORDS:
// :CREATED:2014-02-20 14:27:38
// :EDITED:2014-02-20
// :ID:1030
// :NUM:1601
// :REV:1
// :WORLD:Opensim
// :DESCRIPTION:
// Touch to create an NPC at a random position in your region.
// :CODE:
// :SOURCE: http://opensimulator.org/wiki/User:Fritigern/Scripts
// touch to create an NPC at a random position in your region.
// The NPC will be created at 100m up in the air, just for dramatic effect :-)
// Set npcNum to how many NPCs you want.
key npc;
vector toucherPos;
integer n;
integer i;
integer npcNum = 5;
integer wait = 0;
string toucher;
key toucherkey;
default
{
state_entry()
{
llSetText("Populate this region",<1,1,1>,1);
}
touch_start(integer number)
{
toucher = llKey2Name(llDetectedKey(0));
toucherkey = llDetectedKey(0);
state raise;
}
}
state raise
{
state_entry()
{
for (n=0;n<npcNum;++n)
{
llSetText("Creating NPC #"+(string)(n+1)+"...",<1,1,1>,1);
vector npcPos = <llFrand(255),llFrand(255),100>;
osNpcCreate(toucher, "", npcPos, toucherkey);
if (wait)
{
for (i=wait;i>0;--i)
{
llSetText("Creating NPC #"+(string)(n+2)+" in "+(string)i+"...",<1,1,1>,1);
llSleep(1);
}
}
}
llSetText("Done",<1,1,1>,1);
}
touch_start(integer number)
{
llSay(0,"Removing all NPCs from this scene!");
list avies = osGetAvatarList();
for(n=0;n<llGetListLength(avies);n=n+3)
{
llOwnerSay("Attempting to remove "+llList2String(avies,n+2)+" with UUID "+llList2String(avies,n+0));
osNpcRemove((key)llList2Key(avies,n));
}
llResetScript();
}
}

View File

@@ -0,0 +1,6 @@
<Project name="OpenSim NPC Populate Region Randomly" guid="6f75448a-80bd-45a2-819e-a01bbc8f464c">
<Object name="Object" guid="389011c2-3bb9-4e2a-9dca-74ae924b92e5" active="true">
<Script name="Script.lsl" guid="ac43d91c-173f-40eb-a3ef-78a6c8ebd172">
</Script>
</Object>
</Project>