Knowledgebase
Storm Palace Hosting
>
Storm Hosting Help Desk
>
Knowledgebase
Ask a question:
Loading knowledgebase suggestions...
Rephraser Script
Solution
; BB Scring Rephraser
ON OUTCHAT
{
{
"$1Welcome to Adara$2" GREPSUB CHATSTR =
} { CHATSTR "^(.*)ppsay(.*)$" GREPSTR } WHILE
{
"$1" GREPSUB Text1 =
"$2" GREPSUB Text2 =
CHATSTR LS =
"" CHATSTR =
{
{ Text1 "welcome back" & SAY "" LS =} Text2 "" == IF
{
Text1 "welcome back" & Text2 & SAY
"" LS =
} Text2 "^ " GREPSTR IF
} Text1 " $" GREPSTR IF
{
{ Text1 "Welcome back" & SAY "" LS =} Text2 "" == IF
{
Text1 "Welcome back" & Text2 & SAY
"" LS =
} Text2 "^ " GREPSTR IF
} Text1 "" == IF
{LS SAY} LS "" <> IF
} { CHATSTR "^(.*)wb(.*)$" GREPSTR } WHILE
{
"$1" GREPSUB Text1 =
"$2" GREPSUB Text2 =
CHATSTR LS =
"" CHATSTR =
{
{ Text1 "no problem" & SAY "" LS =} Text2 "" == IF
{
Text1 "no problem" & Text2 & SAY
"" LS =
} Text2 "^ " GREPSTR IF
} Text1 " $" GREPSTR IF
{
{ Text1 "No problem" & SAY "" LS =} Text2 "" == IF
{
Text1 "No problem" & Text2 & SAY
"" LS =
} Text2 "^ " GREPSTR IF
} Text1 "" == IF
{LS SAY} LS "" <> IF
} { CHATSTR "^(.*)np(.*)$" GREPSTR } WHILE
{
"$1" GREPSUB Text1 =
"$2" GREPSUB Text2 =
CHATSTR LS =
"" CHATSTR =
{
{ Text1 "your welcome" & SAY "" LS =} Text2 "" == IF
{
Text1 "your welcome" & Text2 & SAY
"" LS =
} Text2 "^ " GREPSTR IF
} Text1 " $" GREPSTR IF
{
{ Text1 "Your welcome" & SAY "" LS =} Text2 "" == IF
{
Text1 "Your welcome" & Text2 & SAY
"" LS =
} Text2 "^ " GREPSTR IF
} Text1 "" == IF
{LS SAY} LS "" <> IF
} { CHATSTR "^(.*)yw(.*)$" GREPSTR } WHILE
{
"$1" GREPSUB Text1 =
"$2" GREPSUB Text2 =
CHATSTR LS =
"" CHATSTR =
{
{ Text1 "thank you" & SAY "" LS =} Text2 "" == IF
{
Text1 "thank you" & Text2 & SAY
"" LS =
} Text2 "^ " GREPSTR IF
} Text1 " $" GREPSTR IF
{
{ Text1 "Thank You" & SAY "" LS =} Text2 "" == IF
{
Text1 "Thank ou" & Text2 & SAY
"" LS =
} Text2 "^ " GREPSTR IF
} Text1 "" == IF
{LS SAY} LS "" <> IF
} { CHATSTR "^(.*)ty(.*)$" GREPSTR } WHILE
}
Was this article helpful?
yes
/
no
Article details
Article ID:
34
Category:
Cyborg
Date added:
04-02-2011 12:45:59
Views:
353
Rating (Votes):
(1)
<<
Go back
Powered by
Help Desk Software
HESK™