mIRC Home    About    Download    Register    News    Help

Print Thread
#124300 04/07/05 09:32 AM
Joined: Aug 2004
Posts: 21
S
sCHuTt Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Aug 2004
Posts: 21
I've got this m8 of mine, an he ':p' alot. And I do mean ALOT lol.
Up to the point where it annoys me, now to annoy him back, I'd like some kind of a counter for every time he types ':p'

This possible? cuz the on:TEXT::p thingy kinda whistles up with the :: :S

- sChutt

#124301 04/07/05 09:46 AM
Joined: May 2005
Posts: 106
S
Vogon poet
Offline
Vogon poet
S
Joined: May 2005
Posts: 106
i got a starter

Code:
 
on *:TEXT:;p:*:{
  if ($nick == yourmate'snick) {
  and i don't know how to do a counter so ask someone else
  }
}
 


and thats the way the scout leader burns
#124302 04/07/05 09:47 AM
Joined: Jun 2003
Posts: 5,024
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
Type /set %tongue 0.

You could then use something like this:

on *:text:*:#:{
if ($nick == YourFriend) && (:p isin $1-) {
inc %tongue
}
}


Regards,


Mentality/Chris
#124303 04/07/05 02:28 PM
Joined: Apr 2004
Posts: 759
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Apr 2004
Posts: 759
inc creates the variable if it doesnt excist so you dont have to set it before hand


$maybe
#124304 04/07/05 02:43 PM
Joined: Jun 2003
Posts: 5,024
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
o0o, haven't tried before!

* Mentality hands out cookies when Para isn't looking

Regards,


Mentality/Chris
#124305 04/07/05 04:24 PM
Joined: Sep 2004
Posts: 200
I
Fjord artisan
Offline
Fjord artisan
I
Joined: Sep 2004
Posts: 200
this should work:
on *:text:*:#: {
if ($nick == nickname) && ($regex($1-,/:P/gi)) {
var %s = $v1
if (%s) set %smiles $iif(%s == 0,%smiles,$calc(%smiles $+ %s))
}
}

im not sure if u used braclets corectly as i made this on the fly smile

#124306 04/07/05 04:43 PM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
In theory, that variable could already exist, which in turn would give a wrong representation of the value of %tongue.

If %tongue had a non-numerical value, then the inc would do nothing, and if it had, it would increase, whilst we'd want it to be 0 when the script is first started.

Yes, the odds are slim, however, I thought it was justified to tell him to type /set %tongue 0 first for that reason.

Greets


Gone.
#124307 04/07/05 05:43 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Code:
on $*:text:/\72p/i:#:{ 
  if ($nick == nickname) {
    if (%tongue !isnum 1-) { set %tongue 0 }
    inc %tongue $count($1-,:p)
  }
}

Last edited by tidy_trax; 04/07/05 05:45 PM.

New username: hixxy
#124308 05/07/05 01:33 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Just as a side note .... I made a stats script awhile back which allowed you to use a dialog and enter all the types of characters you want to use for smiles, frowns, and laughs, and then it tracks those (along with lines and various other things). That was a long time ago, so it could probably be improved, but just commenting that if you want to track multiple types of smiles as well as tracking frowns and laughs and whatever else, you might consider creating a dialog for entering the types you want to track.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard