[REQUEST] "Bye [username]" |
Author: |
Message: |
Jonte135
Junior Member
Posts: 57
– / – /
Joined: Aug 2007
|
O.P. [REQUEST] "Bye [username]"
Hello, if anyone know the script called "AutoBye (English Version)" they understand how it works. Is it possible to add so it says: "Bye, have a nice day [contact I'm taling with].". Thanks.
|
|
08-25-2007 11:58 PM |
|
|
toddy
Veteran Member
kcus uoy
Posts: 2573 Reputation: 49
– / /
Joined: Jun 2004
|
RE: [REQUEST] "Bye [username]"
have you got a link to the script ?
|
|
08-26-2007 12:26 AM |
|
|
davidpolitis
Full Member
Posts: 371 Reputation: 16
Joined: Aug 2006
|
RE: [REQUEST] "Bye [username]"
Hmm. You'd need to upload it for us seeing as it has been removed from the scripts database.
Anyway, for those of you that can understand Spanish, read up on it here
This post was edited on 08-26-2007 at 12:29 AM by davidpolitis.
|
|
08-26-2007 12:28 AM |
|
|
Pyro
Full Member
The Frog Is Back!
Posts: 152 Reputation: -6
32 / / –
Joined: Jun 2005
|
RE: [REQUEST] "Bye [username]"
i have it.. it came with msgplus live. or its in the database.
/!\5816 days, 7 hours, 57 minutes, 22 seconds ago Until Xmas!! /!\
|
|
08-26-2007 01:09 AM |
|
|
toddy
Veteran Member
kcus uoy
Posts: 2573 Reputation: 49
– / /
Joined: Jun 2004
|
RE: [REQUEST] "Bye [username]"
quote: Originally posted by YA_MUM
i have it.. it came with msgplus live. or its in the database.
it use to be in the database but got removed. if you wanna do something useful, upload it here as an attachment. or copy and paste the code in here
|
|
08-26-2007 01:16 AM |
|
|
Jonte135
Junior Member
Posts: 57
– / – /
Joined: Aug 2007
|
O.P. RE: [REQUEST] "Bye [username]"
Ok, here is the code:
code: /// Script created by Davinxi.
/// www.davinxi.net
/// davinxi@gmail.com
/// Answers to the words "Bye" "Goodbye" ... and deriveds
/// with: "Bye, have a nice day."
var ok = 'Bye, have a nice day.'
var on = '1'
function OnEvent_Initialize(MessengerStart)
{
if (on == '0'){
MsgPlus.DisplayToast('AutoBye - ', 'AutoBye is: Off\r\n\r\Visit www.davinxi.net for more details');
}
else
{
MsgPlus.DisplayToast('AutoBye - ', 'AutoBye is: On\r\n\r\Visit www.davinxi.net for more details');
}
}
function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin, Message, MessageKind)
{
if (on == '1'){
if (Origin != Messenger.MyName){
if (Message.match(/(^|\s+)(\*)?bye(d|s)?(\*)?($|\s+)/i)!=null)
{
ChatWnd.SendMessage(ok);
}
if (Message.match(/(^|\s+)(\*)?byebye(d|s)?(\*)?($|\s+)/i)!=null)
{
ChatWnd.SendMessage(ok);
}
if (Message.match(/(^|\s+)(\*)?see you(d|s)?(\*)?($|\s+)/i)!=null)
{
ChatWnd.SendMessage(ok);
}
if (Message.match(/(^|\s+)(\*)?see u(d|s)?(\*)?($|\s+)/i)!=null)
{
ChatWnd.SendMessage(ok);
}
if (Message.match(/(^|\s+)(\*)?see ya(d|s)?(\*)?($|\s+)/i)!=null)
{
ChatWnd.SendMessage(ok);
}
if (Message.match(/(^|\s+)(\*)?see u later(d|s)?(\*)?($|\s+)/i)!=null)
{
ChatWnd.SendMessage(ok);
}
if (Message.match(/(^|\s+)(\*)?see you later(d|s)?(\*)?($|\s+)/i)!=null)
{
ChatWnd.SendMessage(ok);
}
if (Message.match(/(^|\s+)(\*)?see u tomorrow(d|s)?(\*)?($|\s+)/i)!=null)
{
ChatWnd.SendMessage(ok);
}
if (Message.match(/(^|\s+)(\*)?see u(d|s)?(\*)?($|\s+)/i)!=null)
{
ChatWnd.SendMessage(ok);
}
if (Message.match(/(^|\s+)(\*)?see you soon(d|s)?(\*)?($|\s+)/i)!=null)
{
ChatWnd.SendMessage(ok);
}
if (Message.match(/(^|\s+)(\*)?see u soon(d|s)?(\*)?($|\s+)/i)!=null)
{
ChatWnd.SendMessage(ok);
}
if (Message.match(/(^|\s+)(\*)?goodbye(d|s)?(\*)?($|\s+)/i)!=null)
{
ChatWnd.SendMessage(ok);
}
if (Message.match(/(^|\s+)(\*)?godbye(d|s)?(\*)?($|\s+)/i)!=null)
{
ChatWnd.SendMessage(ok);
}
if (Message.match(/(^|\s+)(\*)?see you tomorrow(d|s)?(\*)?($|\s+)/i)!=null)
{
ChatWnd.SendMessage(ok);
}
}
}
}
function OnEvent_Uninitialize(MessengerExit)
{
}
function OnEvent_ChatWndSendMessage(ChatWnd, Message)
{
if(Message.substr(0, 15) == '/okon'){
okon();
return '';
}
if(Message.substr(0, 15) == '/okoff'){
okoff();
return '';
}
if(Message.substr(0, 15) == '/okonoff'){
onoff();
return '';
}
}
function OnGetScriptMenu(Location)
{
var ScriptMenu = '<ScriptMenu>';
ScriptMenu += '<MenuEntry Id=\'onoff\'>AutoBye On or Off ?</MenuEntry>';
ScriptMenu += '<MenuEntry Id=\'StartStop\'>';
if(on == '0') {
ScriptMenu += 'Turn On or Turn Off AutoBye';
ScriptMenu += '</MenuEntry>';
}else {
ScriptMenu += 'Turn On or Turn Off AutoBye';
ScriptMenu += '</MenuEntry>';
}
ScriptMenu += '</ScriptMenu>';
return ScriptMenu;
}
function OnEvent_MenuClicked(MenuItemId,Location,OriginWnd) {
switch(MenuItemId) {
case 'StartStop':
okturn();
break;
case 'onoff':
onoff();
break;
case 'about':
msgbox();
break;
}
}
function msgbox() {
var wnd = MsgPlus.CreateWnd('msgbox.xml', 'autookmsgbox');
wnd.SetControlText(msg);
}
function OnautookmsgboxEvent_CtrlClicked(PlusWnd,ControlId) {
switch(ControlId) {
case "Ok":
PlusWnd.Close(0);
break;
}
}
function onoff()
{
if (on == '0'){
MsgPlus.DisplayToast('AutoBye -', 'AutoBye is now: Off\r\n\r\Visit www.davinxi.net for more details');}
else
{
MsgPlus.DisplayToast('AutoBye -', 'AutoBye is now: On\r\n\r\Visit www.davinxi.net for more details');
}
}
function okon()
{
if (on == '0') {
on = '1'
MsgPlus.DisplayToast('AutoBye -', 'AutoBye is now: On\r\n\r\Visit www.davinxi.net for more details');
}
}
function okoff()
{
if (on == '1') {
on = '0'
MsgPlus.DisplayToast('AutoBye -', 'AutoBye is now: Off\r\n\r\Visit www.davinxi.net for more details');
}
}
function okturn()
{
if (on == '0'){
on = '1'
MsgPlus.DisplayToast('AutoBye -', 'AutoBye is now: On\r\n\r\Visit www.davinxi.net for more details');
}
else
{
on = '0'
MsgPlus.DisplayToast('AutoBye -', 'AutoBye is now: Off\r\n\r\Visit www.davinxi.net for more details');
}
}
|
|
08-26-2007 09:47 AM |
|
|
segosa
Community's Choice
Posts: 1407 Reputation: 92
Joined: Feb 2003
|
RE: [REQUEST] "Bye [username]"
change every one of these:
code: ChatWnd.SendMessage(ok);
to
code: ChatWnd.SendMessage(ok + Origin + ".");
and
code: var ok = 'Bye, have a nice day.'
to
code: var ok = 'Bye, have a nice day '
btw, this script is coded horribly.
The previous sentence is false. The following sentence is true.
|
|
08-26-2007 10:01 AM |
|
|
Jonte135
Junior Member
Posts: 57
– / – /
Joined: Aug 2007
|
O.P. RE: [REQUEST] "Bye [username]"
A little late but thanks
|
|
08-31-2007 11:30 PM |
|
|
|