mIRC Home    About    Download    Register    News    Help

Print Thread
Help on ctcp script #97864 18/09/04 07:30 AM
Joined: Sep 2004
Posts: 17
_
_Patrik_ Offline OP
Pikka bird
OP Offline
Pikka bird
_
Joined: Sep 2004
Posts: 17
Hello,
I added a counter to this ctcp event that appears below, and it worked! ping, fingers ctcp replayer worked but timer and version didnt. My question is, is their any way to add a little counter to ctcp version and timer too?

These works: (just copy and paste it into remote)

Ctcp 1:ping:{ inc %pings 1 | notice $nick Im not your ping servant $nick laugh you were the $ord(%pings) person to ping me | halt }

ctcp 1:finger:{ inc %fingers 1 | notice $nick You just got the finger $nick :tongue: you were the $ord(%fingers) person to finger me | /halt

and these does not:

ctcp *:time:?:{ inc %time 1 | notice $nick The current time in Sweden is $chr(91) $time $chr(93) <><> $chr(91) $date $chr(93) you were the $ord(%time) person to check my current time/date | halt }

Ctcp *:version:*:{ inc %versions 1 | notice $nick Im using $version you were the $ord(%versions) person to version me | halt }

Secerely/Patrik





*!*@help.me.if.you.can
Re: Help on ctcp script #97865 18/09/04 02:28 PM
Joined: Mar 2003
Posts: 1,271
L
LocutusofBorg Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
There is a problem with the way you are testing these codes, as they both work fine for me.

PS: those halt commands are obsolete, they do nothing. You might as well remove them.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
Re: Help on ctcp script #97866 18/09/04 10:41 PM
Joined: Sep 2004
Posts: 17
_
_Patrik_ Offline OP
Pikka bird
OP Offline
Pikka bird
_
Joined: Sep 2004
Posts: 17
well, I loaded those snippets in remote section--
...
how did u test it?


*!*@help.me.if.you.can
Re: Help on ctcp script #97867 18/09/04 10:46 PM
Joined: Dec 2002
Posts: 788
C
Coolkill Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788

ctcp 1:finger:{ inc %fingers 1 | notice $nick You just got the finger $nick you were the $ord(%fingers) person to finger me | /halt

Check that there is a } at the end of that, if there is not - thats your reason.

Eamonn.

Re: Help on ctcp script #97868 19/09/04 03:08 PM
Joined: Sep 2004
Posts: 17
_
_Patrik_ Offline OP
Pikka bird
OP Offline
Pikka bird
_
Joined: Sep 2004
Posts: 17
it worked laugh
ty guys and gals :tongue:


*!*@help.me.if.you.can