Counter/Watcher/Thanker

By SnoooP on Nov 09, 2009

This is a variety of snippets that I use combined together.

It includes:
-Whois Watcher (ircops)
-Join Counter (Only Your Joins)
-Nick Watcher/Counter
-Connect Counter (Only when you connect)
-Mode Thanker/Counter (On voice, halfop, op, protect, deprotect, deop, dehalfop, devoice)

Also:
-You can enable or disable any of the snippets mentioned above
-Simply right click anywere in mirc and you will have a popup named 'Options' When you click on options you will have the option to 'Enable Script' And also the option to 'Disable Script'.... When you click on the enable/disable nother list will appear with all the mentioned snippets, here you can simply click on the snippet and it -Will enable it or disable it
-=-=-=-=-=-=-=-
Also:
-Each snippet counts how many times the appropriate action has happened.. to access this right click anywere in mIRC and select 'My Stats' then when the list appears click on 'Show All' to see all of the stats, you can choose too display in the channel or in your active window... You can also once on the my stats menu click an individual snippet. 'Whois Watcher' for example, it will then echo into the current window how many times you have been whois'd
-=-=-=-=-=-=-=-
Extra:
-On load a small brief will display
-In the options I added the option to change the mirc font. (you will be suprised how many people request help to do this)
-You can right click and press Internet... and internet explorer will display.. (I added this because i'm lazy, if anybody wants I can do it for firefox too)

Some people may not like the colours I chose, I know... Don't comment and say things like 'horrible colours' I like them :)

IF YOU ARE GOING TO COMMENT ON THIS BE CONSTRUCTIVE OR I WILL SIMPLY DELETE THE COMMENT

ON *:LOAD: {
  echo -a You have loaded the watcher/counter snippet by 8Snoopy(8Bertrum)
  echo -a -=-
  echo -a Right click to see what commands are available and to enable/disable them accordingly
  echo -a Go to options and then select 'enable script' or disable script' for whatever you please
  echo -a -=-
  echo -a Check the counters also by right clicking and going to 'my stats'
}

###NICKNAME WATCHER###
#nickwatch on
on *:text:$($+(*,$me,*)):#: window @nickwatcher | echo @nickwatcher 7[8Nickname7]4-=-7[8 $+ $nick $+ 7]4 Said Your Nickname At 7[8 $+ $time $+ 7]4 $nick Said 7[8 $+ $1- $+ 7]4 In 7[8 $+ $chan $+ 7] | /inc %nickcount | echo @nickwatcher  7[8Counter7]4 My Nickname Has Been Said 7[8 %nickcount 7] 4times
#nickwatch end

###JOIN COUNTER###
#jc on
on 1:join:#: {
  if ($nick == $me) { 
    inc %joincounter
    echo -a  7[8I Have Joined7]4 %joincounter 7[8Channels7] 
  }
}
#jc end

###WHOIS WATCHER###
#whoiswatch on
on *:SNOTICE:*whois on you*: { 
  window @whois | echo @whois 7[8Whois Watcher7]4-=-7[8 $+ $2 $+ 7]47[8 $+ $3 $+ 7]4 Whois'd you at 7[8 $+ $time $+ 7]4 on 7[8 $+ $date $+ 7]4  | /inc %whoiscount | 
}
#whoiswatch end

###MODE THANKER###
#Thanks on
on *:rawmode:*: {
  if ($me isin $2) && (+ isin $1) && (v isin $1) {
    inc %voice
    msg $chan 7[8Thanks7]4 $nick 7[8For The7]4 +! - Count 7[8 %voice 7] 
  }    
  if ($me isin $2) && (- isin $1) && (-v isin $1) {
    inc %devoice
    msg $chan 7[8Ohh Man7]4 $nick 7[8Took My7]4 +! - Count 7[8 %devoice 7] 
  }
  if ($me isin $2) && (+ isin $1) && (o isin $1) {
    inc %op
    msg $chan  7[8Thanks7]4 $nick 7[8For The7]4 @! - Count 7[8 %op 7] 
  }    
  if ($me isin $2) && (- isin $1) && (-o isin $1) {
    inc %deop
    msg $chan  7[8Ohh Man7]4 $nick 7[8Took My7]4 @! - Count 7[8 %deop 7] 
  }
  if ($me isin $2) && (+ isin $1) && (q isin $1) {
    inc %Founder
    msg $chan 7[8Thanks7]4 $nick 7[8For The7]4 ~! - Count 7[8 %founder 7] 
  }
  if ($me isin $2) && (- isin $1) && (-q isin $1) {
    inc %DeFounder
    msg $chan  7[8Ohh Man7]4 $nick 7[8Took My7]4 ~! - Count 7[8 %defounder 7] 
  }
}

#Thanks End

###CONNECT COUNTER###
#connectwatch on
on *:SNOTICE:*Looking up your hostname*: { 
  .timer 1 6 echo -a 7[8Connection7]4-=-4 You have connected to 7[8 $+ $server $+ 7]4 on the 7[8 $+ $network $+ 7]4 network on 7[8 $+ $fulldate $+ 7]4  | /inc %ConnectCount | 
}
#connectwatch end

menu * {
  -
  My Stats
  .Show All Stats
  ..In Active: .timer 1 1 echo -a  7[8Counter7]4 I have connected to 7[8 %connectcount 7] 4servers. | .timer 1 1 echo -a  7[8Counter7]4 I Have Been Voiced 7[8 %voice 7] 4times.....  I Have Been Devoiced 7[8 %devoice 7] 4times.....  I Have Been Op'd 7[8 %op 7] 4times.....  I Have Been Deop'd 7[8 %deop 7] 4times.....  I Have Been Founder 7[8 %Founder 7] 4times.....  I Have Been Stripped From Founder 7[8 %defounder 7] 4times..... | .timer 1 1 echo -a  7[8Counter7]4 I have been whois'd 7[8 %whoiscount 7] 4times. | echo -a  7[8Counter7]4 I have seen 7[8 %spamcount 7] 4links. | .timer 1 2 echo -a 7[8Counter7]4 I Have Joined 7[8 %joincounter 7] 4Channels | .timer 1 2 echo -a  7[8Counter7]4 My Nickname Has Been Said 7[8 %nickcount 7] 4times  
  ..In Chan: .timer 1 1 msg $chan  7[8Counter7]4 I have connected to 7[8 %connectcount 7] 4servers. | .timer 1 1 msg $chan  7[8Counter7]4 I Have Been Voiced 7[8 %voice 7] 4times.....  I Have Been Devoiced 7[8 %devoice 7] 4times.....  I Have Been Op'd 7[8 %op 7] 4times.....  I Have Been Deop'd 7[8 %deop 7] 4times.....  I Have Been Founder 7[8 %Founder 7] 4times.....  I Have Been Stripped From Founder 7[8 %defounder 7] 4times..... | .timer 1 1 msg $chan  7[8Counter7]4 I have been whois'd 7[8 %whoiscount 7] 4times. | msg $chan  7[8Counter7]4 I have seen 7[8 %spamcount 7] 4links. | msg $chan 7[8Counter7]4 I Have Joined 7[8 %joincounter 7] 4Channels | msg $chan  7[8Counter7]4 My Nickname Has Been Said 7[8 %nickcount 7] 4times  
  .NickWatcher:  echo -a  7[8Counter7]4 My Nickname Has Been Said 7[8 %nickcount 7] 4times
  .Join Counter: echo -a 7[8Counter7]4 I Have Joined 7[8 %joincounter 7] 4Channels
  .Whois Counter:  echo -a  7[8Counter7]4 I have been whois'd 7[8 %whoiscount 7] 4times.
  .Thanker: echo -a  7[8Counter7]4 I Have Been Voiced 7[8 %voice 7] 4times.....  I Have Been Devoiced 7[8 %devoice 7] 4times.....  I Have Been Op'd 7[8 %op 7] 4times.....  I Have Been Deop'd 7[8 %deop 7] 4times.....  I Have Been Founder 7[8 %Founder 7] 4times.....  I Have Been Stripped From Founder 7[8 %defounder 7] 4times.....  
  .Connect Counter:  echo -a  7[8Counter7]4 I have connected to 7[8 %connectcount 7] 4servers.
  -
  Internet: run iexplore.exe www.google.com
  -
  Options
  .Change mIRC Font: font
  .Enable Script
  ..Nick Watcher: enable #nickwacth
  ..Join Counter: enable #jc
  ..Whois Watcher: enable #whoiswatch
  ..Thanker: enable #thanks
  ..Connect Counter: enable #connectwatch
  .Disable Script
  ..Nick Watcher: disable #nickwatch
  ..Join Counter: disable #jc
  ..Whois Watcher: disable #whoiswatch
  ..Thanker: disable #thanks
  ..Connect Counter: disable #connectwatch
  -
}

Comments

Sign in to comment.
SnoooP   -  Nov 10, 2009

I agree with putting the / in but I guess that is just force of habbit, i've noticed myself and a few others do it.

 Respond  
Ghost-writer   -  Nov 09, 2009

You can use $readini and wrieini instead of using variables & i guess its cleanly coded but its not that big so i cant tell, all you need to do is not put / in the code and its good.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.