mIRC Homepage
Posted By: _Patrik_ Help on ctcp script - 18/09/04 07:30 AM
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 I´m 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 I´m using $version you were the $ord(%versions) person to version me | halt }

Secerely/Patrik



Posted By: LocutusofBorg Re: Help on ctcp script - 18/09/04 02:28 PM
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.
Posted By: _Patrik_ Re: Help on ctcp script - 18/09/04 10:41 PM
well, I loaded those snippets in remote section--
...
how did u test it?
Posted By: Coolkill Re: Help on ctcp script - 18/09/04 10:46 PM

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.
Posted By: _Patrik_ Re: Help on ctcp script - 19/09/04 03:08 PM
it worked laugh
ty guys and gals :tongue:
© mIRC Discussion Forums