removed useless _ folders
This commit is contained in:
3
ChatLoggerScript/ChatLoggerScript.sol
Normal file
3
ChatLoggerScript/ChatLoggerScript.sol
Normal file
@@ -0,0 +1,3 @@
|
||||
<Solution name="ChatLoggerScript">
|
||||
<Project name="ChatLoggerScript" path="ChatLoggerScript\ChatLoggerScript.prj" active="true"/>
|
||||
</Solution>
|
||||
6
ChatLoggerScript/ChatLoggerScript/ChatLoggerScript.prj
Normal file
6
ChatLoggerScript/ChatLoggerScript/ChatLoggerScript.prj
Normal file
@@ -0,0 +1,6 @@
|
||||
<Project name="ChatLoggerScript" guid="D7DD1BCF-6C00-1014-B904-200204C60A89">
|
||||
<Object name="Object" guid="D7DD1CC5-6C00-1014-B904-200204C60A89">
|
||||
<Script name="ChatLoggerScript_1.lsl" guid="D7DD3A92-6C00-1014-B904-200204C60A89">
|
||||
</Script>
|
||||
</Object>
|
||||
</Project>
|
||||
@@ -0,0 +1,87 @@
|
||||
// :CATEGORY:Chat
|
||||
// :NAME:ChatLoggerScript
|
||||
// :AUTHOR:Patch
|
||||
// :CREATED:2010-01-10 05:20:56.000
|
||||
// :EDITED:2013-09-18 15:38:50
|
||||
// :ID:171
|
||||
// :NUM:242
|
||||
// :REV:1.0
|
||||
// :WORLD:Second Life
|
||||
// :DESCRIPTION:
|
||||
// Chat-Logger-Script.lsl
|
||||
// :CODE:
|
||||
|
||||
|
||||
list names;
|
||||
list speech;
|
||||
list colours=["002EB8","FF6633","006600","660066","660033","663300","1A9900","FF14B1","001A99","#B88A00"];
|
||||
list unique_names;
|
||||
|
||||
default
|
||||
{
|
||||
state_entry()
|
||||
{
|
||||
llSetText("This is a chat logger - currently only for testing",<0,0,0>,1.0);
|
||||
integer i;
|
||||
integer c;
|
||||
for (i=0;i<llGetListLength(names);i++)
|
||||
{
|
||||
c = llListFindList(unique_names,llList2List(names,i,i) );
|
||||
while (c >= llGetListLength(colours)) // dont crash if I run out of colours
|
||||
c -= llGetListLength(colours);
|
||||
llSetObjectName("[color=#" + llList2String(colours,c)
|
||||
+ "]" + llList2String(names,i) );
|
||||
llOwnerSay( llList2String(speech,i) + "[/color]" );
|
||||
}
|
||||
names = [];
|
||||
speech = [];
|
||||
unique_names = [];
|
||||
llSetObjectName("Patch's Funky Chat Logger");
|
||||
}
|
||||
|
||||
on_rez(integer i)
|
||||
{
|
||||
llResetScript();
|
||||
}
|
||||
|
||||
touch_start(integer total_number)
|
||||
{
|
||||
if (llDetectedKey(0) == llGetOwner() )
|
||||
{
|
||||
llSay(0, "logging on!.");
|
||||
state logging_chat;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
state logging_chat
|
||||
{
|
||||
state_entry()
|
||||
{
|
||||
llListen(0,"",NULL_KEY,"");
|
||||
}
|
||||
|
||||
on_rez(integer i)
|
||||
{
|
||||
llOwnerSay("Logging still on! Touch to get playback");
|
||||
}
|
||||
|
||||
touch_start(integer total_number)
|
||||
{
|
||||
if (llDetectedKey(0) == llGetOwner() )
|
||||
{
|
||||
llSay(0, "chat logging now off - replaying log!.");
|
||||
state default;
|
||||
}
|
||||
}
|
||||
|
||||
listen(integer channel, string name, key id, string message)
|
||||
{
|
||||
if(llListFindList(unique_names,[name]) == -1)
|
||||
{
|
||||
unique_names += name;
|
||||
}
|
||||
names += name;
|
||||
speech += message;
|
||||
}
|
||||
} // end
|
||||
Reference in New Issue
Block a user