mIRC Home    About    Download    Register    News    Help

Print Thread
#52364 03/10/03 08:53 AM
Joined: Oct 2003
Posts: 18
I
Pikka bird
OP Offline
Pikka bird
I
Joined: Oct 2003
Posts: 18
I am looking for someone to help me create a script that counts words,special charaters and smileys.
if anyone knows how please contact me at
insanatise@hotmail.com
Thank You

#52365 03/10/03 11:36 AM
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
whose words, special chrs and smilies?

/help on text
/help on input
/help text and number identifiers
/help hash tables


Code:
//if ( khaled isgod ) echo yes | else echo no
#52366 03/10/03 05:39 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
this should get you started..\

on *:START: {
if (%count.msgs == $null) /count.reset
}

on *:TEXT:*:#: {
if ($$1 != !stats) {
/inc %count.msgs
/inc %count.words $0
/inc %count.chars $len($1-)

; add more here
var %smiles = smile wink :-) ;-) >:) >:( >:D :\ smirk :-\ :-/ >:\ >:/ >:P :P ;P

var %tok = 1
while ($gettok(%smiles, %tok, 32)) {
if ($istok($1-, $ifmatch, 32)) /inc %count.smiles
/inc %tok
}
}
else /msg $chan I have seen a total of %count.msgs messages sent. These messages were $&
made up of %count.words words containing %count.chars characters and %count.smiles smiles.
}

alias count.reset {
/set %count.msgs 0
/set %count.words 0
/set %count.chars 0
/set %count.smiles 0
}


-KingTomato
#52367 12/10/03 11:51 AM
Joined: Oct 2003
Posts: 18
I
Pikka bird
OP Offline
Pikka bird
I
Joined: Oct 2003
Posts: 18
Thank You KingTomato
Is there a way that i could create a file that records how many words,characters a user syas while they are on the channel i am in?


Link Copied to Clipboard