|
|
Joined: Aug 2004
Posts: 21
Ameglian cow
|
OP
Ameglian cow
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
|
|
|
|
Joined: May 2005
Posts: 106
Vogon poet
|
Vogon poet
Joined: May 2005
Posts: 106 |
i got a starter
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
|
|
|
|
Joined: Jun 2003
Posts: 5,024
Hoopy frood
|
Hoopy frood
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
|
|
|
|
Joined: Apr 2004
Posts: 759
Hoopy frood
|
Hoopy frood
Joined: Apr 2004
Posts: 759 |
inc creates the variable if it doesnt excist so you dont have to set it before hand
$maybe
|
|
|
|
Joined: Jun 2003
Posts: 5,024
Hoopy frood
|
Hoopy frood
Joined: Jun 2003
Posts: 5,024 |
o0o, haven't tried before!
* Mentality hands out cookies when Para isn't looking
Regards,
Mentality/Chris
|
|
|
|
Joined: Sep 2004
Posts: 200
Fjord artisan
|
Fjord artisan
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
|
|
|
|
Joined: Feb 2004
Posts: 2,019
Hoopy frood
|
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.
|
|
|
|
Joined: Nov 2003
Posts: 2,327
Hoopy frood
|
Hoopy frood
Joined: Nov 2003
Posts: 2,327 |
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
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
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
|
|
|
|
|
|