Advertisement
illpastethat

Simple Highlight Script (Notice and Counter) special-g

May 5th, 2013
486
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;Simple Highlight Script (Notice and Counter)
  2. ;Made by nick1
  3. ;Last edit June 20, 2013 (Using Rev. August 29, 2011) - disabling few chans, disabling for nick = abc
  4.  
  5. alias nohlchans {
  6.   ;Add in the chans you don't want notices for here
  7.   return #news,#spec,#1337Kelpies
  8. }
  9. on $*:TEXT:/(ComeAtMe|Spec-G|Special-G|SpecialG|Spec-G|ComeAtMe|InvalidUsername|_\|_|abc)/Si:*: {  
  10.   $iif($istok($nohlchans,$chan,44),halt,noop)
  11.   inc %highlights
  12.   inc %highlights [ $+ [ $nick ] ]
  13.   inc %highlights [ $+ [ $chan ] ]
  14.   $iif(!$window(@Highlights- $+ $network),window -ev @Highlights- $+ $network,noop)
  15.   echo @Highlights- $+ $network 3 $+ $timestamp $+(13,[,4,$iif($chan,$v1,Query),13,]) 1< $+ $iif($left($nick($chan,$nick).pnick,1) isin $prefix,$v1) $+ $nick $+ > 4>>>10 $replace($1-,Special-G,4Special-G10) 4<<<
  16.   if (($active != $chan) && ($active != $window(@Highlights- $+ $network)) && ($active != $nick) ) {
  17.     echo -a $+(13,[,13,$iif($chan,$v1,Query),13,]) 1< $+ $iif($left($nick($chan,$nick).pnick,1) isin $prefix,$v1) $+ $nick $+ > 13>>>10 $replace($1-,Special-G,4Special-G10) 13<<<
  18.   }
  19. }
  20.  
  21. on *:input:*: {
  22.   if ($1 == !hls) && ($2 == $null) {
  23.     .timer 1 1 msg $chan 10I have been highlighted a total of4 %highlights 10times...
  24.   }
  25.   elseif ($1 == !hls) && ($2 != $null) && ($2 !isnum) {
  26.     .timer 1 1 msg $chan 10I have been highlighted4 $iif($($+(%, highlights,$2),2),$($+(%, highlights,$2),2),0) 10times $iif(($left($2,1) == $chr(35)),in,by) $+ 4 $2
  27.   }
  28.   elseif ($1 == !hls) && ($2 >= 1) {
  29.     var %i = 2
  30.     while (%i <= $var(%highlights*, 0)) {
  31.       if ($var(%highlights*,%i).value >= $2) $iif(*#* iswm $($var(%highlights*,%i),0),noop,inc %x)
  32.       inc %i
  33.     }
  34.     .timer 1 1 msg $chan 10A total of4 %x 10people have highlighted me over4 $210 times...
  35.     unset %x
  36.   }
  37.  
  38.   elseif ($1 == !highlights) && ($2 == $null) {
  39.     .timer 1 1 msg $chan 10I have been highlighted a total of4 %highlights 10times...
  40.   }
  41.   elseif ($1 == !highlights) && ($2 != $null) && ($2 !isnum) {
  42.     .timer 1 1 msg $chan 10I have been highlighted4 $eval($+(%, highlights, $2), 2) 10times by4 $2
  43.   }
  44.   elseif ($1 == !highlights) && ($2 >= 1) {
  45.     var %i = 2
  46.     while (%i <= $var(%highlights*, 0)) {
  47.       if ($var(%highlights*,%i).value >= $2) $iif(*#* iswm $($var(%highlights*,%i),0),noop,inc %x)
  48.       inc %i
  49.     }
  50.     .timer 1 1 msg $chan 10A total of4 %x 10people have highlighted me over4 $210 times...
  51.     unset %x
  52.   }
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement