mIRC Home    About    Download    Register    News    Help

Print Thread
#125017 13/07/05 10:25 PM
Joined: Aug 2004
Posts: 43
J
javatis Offline OP
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Aug 2004
Posts: 43
i have a lil problem

iam using a script as base that works fine but it replys on time with us time instead of german time... i deleted everything into the remote files with ctcpreply $nick TIME also turned off the "listen" to ctcp under remote , users, variables....

but it still replys..


can someone tell what i have to searc for.. i searched each file in each subfolder

pls help

#125018 13/07/05 11:47 PM
Joined: Feb 2005
Posts: 15
X
Pikka bird
Offline
Pikka bird
X
Joined: Feb 2005
Posts: 15
You don't need to turn it off! Just use this script.

ctcp *:TIME:*:{
ctcpreply $nick TIME $asctime(hh:nn:ss)
halt
}

#125019 14/07/05 07:21 AM
Joined: Aug 2004
Posts: 43
J
javatis Offline OP
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Aug 2004
Posts: 43
hey ... than i have 2 local times:D an english and an german one!!

but i only whant to responde once!


Greetz

Last edited by javatis; 14/07/05 07:24 AM.
#125020 14/07/05 12:38 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Try this:

Code:
ctcp ^*:TIME:*:{
  ctcpreply $nick TIME $asctime(hh:nn:ss)
  haltdef
} 


Note that I haven't tested it.


Invision Support
#Invision on irc.irchighway.net
#125021 14/07/05 02:01 PM
Joined: Aug 2004
Posts: 43
J
javatis Offline OP
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Aug 2004
Posts: 43
thisone also replys 2 times english one and time only ...

well may i find it in files the english ctcprply is (for example):

Thu Jul 14 15:57:54 2005

so what would be the script code for that ???

ddd mmm dd $time yyyy

^^ that^^ (was not fund in any of the files)

greetzs

#125022 14/07/05 02:45 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
the format of $fulldate is what you posted:
Thu Jul 14 07:37:05 2005

You could also do:
Code:
//say $asctime(ddd mmm dd hh:nn:ss yyyy)

//say $asctime(mm/dd/yy hh:nn:ss) returns 07/14/05 07:41:10

//say $asctime(dddd) the $ord($asctime(d)) of $asctime(mmmm) at $asctime(h:nn TT)
returns Thursday the 14th of July at 7:43 AM


does this help?

#125023 14/07/05 03:13 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
from mIRC help files:
Quote:

Changing a standard CTCP reply

ctcp 1:ping:?:/notice $nick Ouch! | /halt

This will react to the standard ping CTCP and will reply with "Ouch!". The /halt at the end of the line prevents the standard ping reply from being sent. If you don't use the /halt, the standard reply to PING will be sent.

ctcp 1:time:?:/notice $nick The time here is around $time | /halt

This will react to the standard time CTCP and will reply with the above message. Again, the /halt prevents the standard time reply from being sent.

so try
Code:
ctcp *:time:?:{
notice $nick $asctime(mm/dd/yy hh:mm TT)
halt
}

#125024 14/07/05 05:54 PM
Joined: Aug 2004
Posts: 43
J
javatis Offline OP
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Aug 2004
Posts: 43
lol i found it i searched all files in the mirc script folder for $fulldate foundet 2 rows and deleted them laugh

greeeeeetzzzz

and thx very much


Link Copied to Clipboard