mIRC Homepage
Posted By: Anonymous ON *:TEXT: - 11/02/07 01:42 PM
Code:

ON *:TEXT:*ty*:#:{
  if $nick == $me {
 set %ty 1
}
  Else {
 inc %ty
}



What is wrong with that?:|
Posted By: hixxy Re: ON *:TEXT: - 11/02/07 01:58 PM
You're missing a closing bracket at the end, and on TEXT will never trigger for your own messages. Try this:

Code:
on *:input:#:{
  if (*ty* iswm $1-) { set %ty 1 }
}
on *:text:*ty*:#:{ inc %ty }
Posted By: Anonymous Re: ON *:TEXT: - 11/02/07 02:05 PM
That doesn't work.
Cause if i say 1 time ty. It does %ty 1
if i say 2 ty's in a line it does %ty 2
but do i AGAIN 1 ty it does %ty 1
¬¬
Posted By: hixxy Re: ON *:TEXT: - 11/02/07 02:20 PM
This script does exactly what your original script was trying to do. Perhaps if you explain what you want to do I'll be able to help you..
Posted By: Anonymous Re: ON *:TEXT: - 11/02/07 02:39 PM
I wanna count how many i said "ty"
Posted By: hixxy Re: ON *:TEXT: - 11/02/07 02:41 PM
Then a simple:

Code:
on *:input:#:{ inc %ty $count($1-,ty) }


Will be sufficient smile
Posted By: Anonymous Re: ON *:TEXT: - 11/02/07 02:52 PM
Yeah cool! Thanks
Posted By: Anonymous Re: ON *:TEXT: - 11/02/07 02:55 PM
Can i do that like :

ON *:KICK:#:{ inc %kick $cont($1- == $me} }

or something shocked

If im kicking, i count how many times i kicked?
Posted By: hixxy Re: ON *:TEXT: - 11/02/07 02:59 PM
Code:
ON *:KICK:#:{ 
  if ($nick == $me) { inc %kick }
}
Posted By: Anonymous Re: ON *:TEXT: - 11/02/07 03:00 PM
cool smile
Posted By: Kurdish_Assass1n Re: ON *:TEXT: - 12/02/07 05:48 PM
DuXxXieJ, I'd suggest using tokens for this one, it will increase the variable even if you say "pretty" or something that has "ty" in it. This will look at your sentence and see if you have "ty" as a word.

Code:
on *:INPUT:#: {
  if ($istok($1-,ty,32)) { inc %ty }
}
Posted By: Anonymous Re: ON *:TEXT: - 12/02/07 06:02 PM
Aah, cool. ^_^ Ty.
© mIRC Discussion Forums