Push All Scripts
This commit is contained in:
3
Pandora_Chatbot/Pandora_Chatbot.sol
Normal file
3
Pandora_Chatbot/Pandora_Chatbot.sol
Normal file
@@ -0,0 +1,3 @@
|
||||
<Solution name="Pandora_Chatbot">
|
||||
<Project name="Pandora_Chatbot" path="Pandora_Chatbot\Pandora_Chatbot.prj" active="true"/>
|
||||
</Solution>
|
||||
76
Pandora_Chatbot/Pandora_Chatbot/Object/Pandora_Chatbot_1.lsl
Normal file
76
Pandora_Chatbot/Pandora_Chatbot/Object/Pandora_Chatbot_1.lsl
Normal file
@@ -0,0 +1,76 @@
|
||||
// :CATEGORY:ChatBot
|
||||
// :NAME:Pandora_Chatbot
|
||||
// :AUTHOR:Destiny Niles
|
||||
// :CREATED:2010-01-10 05:20:56.000
|
||||
// :EDITED:2013-09-18 15:38:59
|
||||
// :ID:603
|
||||
// :NUM:826
|
||||
// :REV:1.0
|
||||
// :WORLD:Second Life
|
||||
// :DESCRIPTION:
|
||||
// An ALICE base chatbot hosted at Pandorabots.com
|
||||
//
|
||||
//
|
||||
// Place these two scripts in an object. The first one is the listener for you to customize and control who it listens to. The second one is the actual engine itself.
|
||||
// :CODE:
|
||||
string mesg;
|
||||
|
||||
key gOwner;
|
||||
|
||||
list talkers;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
listen_to(key talker)
|
||||
|
||||
{
|
||||
|
||||
integer index = llListFindList( talkers, [talker] );
|
||||
|
||||
if ( index != -1 )
|
||||
|
||||
{
|
||||
|
||||
talkers = llDeleteSubList(talkers, index, index);
|
||||
|
||||
llMessageLinked(LINK_SET,0,"BYE",talker);
|
||||
|
||||
}
|
||||
|
||||
else
|
||||
|
||||
{
|
||||
|
||||
talkers = talkers + talker;
|
||||
|
||||
llMessageLinked(LINK_SET,0,"HI",talker);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
default
|
||||
|
||||
{
|
||||
|
||||
state_entry()
|
||||
|
||||
{
|
||||
|
||||
gOwner = llGetOwner();
|
||||
|
||||
llListen(0,"",NULL_KEY,"");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
on_rez(integer i)
|
||||
|
||||
{
|
||||
67
Pandora_Chatbot/Pandora_Chatbot/Object/Pandora_Chatbot_2.lsl
Normal file
67
Pandora_Chatbot/Pandora_Chatbot/Object/Pandora_Chatbot_2.lsl
Normal file
@@ -0,0 +1,67 @@
|
||||
// :CATEGORY:ChatBot
|
||||
// :NAME:Pandora_Chatbot
|
||||
// :AUTHOR:Destiny Niles
|
||||
// :CREATED:2010-01-10 05:20:56.000
|
||||
// :EDITED:2013-09-18 15:38:59
|
||||
// :ID:603
|
||||
// :NUM:827
|
||||
// :REV:1.0
|
||||
// :WORLD:Second Life
|
||||
// :DESCRIPTION:
|
||||
// pandorabot script
|
||||
// :CODE:
|
||||
key requestid;
|
||||
|
||||
string botid;
|
||||
|
||||
string cust;
|
||||
|
||||
string reply;
|
||||
|
||||
string newreply;
|
||||
|
||||
integer that_begin;
|
||||
|
||||
integer that_end;
|
||||
|
||||
integer cust_begin;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
string SearchAndReplace(string input, string old, string new)
|
||||
|
||||
{
|
||||
|
||||
return llDumpList2String(llParseString2List(input, [old], []), new);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
default
|
||||
|
||||
{
|
||||
|
||||
state_entry()
|
||||
|
||||
{
|
||||
|
||||
cust="";
|
||||
|
||||
botid="b1e9139eee362838";
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
on_rez(integer param)
|
||||
|
||||
{
|
||||
|
||||
llResetScript();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
vti_encoding:SR|utf8-nl
|
||||
vti_timelastmodified:TR|18 Sep 2013 20:38:59 -0000
|
||||
vti_extenderversion:SR|12.0.0.0
|
||||
vti_cacheddtm:TX|18 Sep 2013 20:38:59 -0000
|
||||
vti_filesize:IR|1816
|
||||
vti_backlinkinfo:VX|
|
||||
@@ -0,0 +1,6 @@
|
||||
vti_encoding:SR|utf8-nl
|
||||
vti_timelastmodified:TR|18 Sep 2013 20:38:59 -0000
|
||||
vti_extenderversion:SR|12.0.0.0
|
||||
vti_cacheddtm:TX|18 Sep 2013 20:38:59 -0000
|
||||
vti_filesize:IR|2258
|
||||
vti_backlinkinfo:VX|
|
||||
8
Pandora_Chatbot/Pandora_Chatbot/Pandora_Chatbot.prj
Normal file
8
Pandora_Chatbot/Pandora_Chatbot/Pandora_Chatbot.prj
Normal file
@@ -0,0 +1,8 @@
|
||||
<Project name="Pandora_Chatbot" guid="D7E6B0F5-6C00-1014-B904-200204C60A89">
|
||||
<Object name="Object" guid="D7E6B20A-6C00-1014-B904-200204C60A89">
|
||||
<Script name="Pandora_Chatbot_1.lsl" guid="D7E6DA98-6C00-1014-B904-200204C60A89">
|
||||
</Script>
|
||||
<Script name="Pandora_Chatbot_2.lsl" guid="D7E6F0A1-6C00-1014-B904-200204C60A89">
|
||||
</Script>
|
||||
</Object>
|
||||
</Project>
|
||||
@@ -0,0 +1,6 @@
|
||||
vti_encoding:SR|utf8-nl
|
||||
vti_timelastmodified:TR|17 Aug 2013 23:32:34 -0000
|
||||
vti_extenderversion:SR|12.0.0.0
|
||||
vti_cacheddtm:TX|17 Aug 2013 23:32:34 -0000
|
||||
vti_filesize:IR|367
|
||||
vti_backlinkinfo:VX|
|
||||
6
Pandora_Chatbot/_vti_cnf/Pandora_Chatbot.sol
Normal file
6
Pandora_Chatbot/_vti_cnf/Pandora_Chatbot.sol
Normal file
@@ -0,0 +1,6 @@
|
||||
vti_encoding:SR|utf8-nl
|
||||
vti_timelastmodified:TR|17 Aug 2013 23:32:34 -0000
|
||||
vti_extenderversion:SR|12.0.0.0
|
||||
vti_cacheddtm:TX|17 Aug 2013 23:32:34 -0000
|
||||
vti_filesize:IR|140
|
||||
vti_backlinkinfo:VX|
|
||||
Reference in New Issue
Block a user