Advertisement
illpastethat

Simple Highlight Script (Notice and Counter)

Apr 16th, 2012
604
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 3.46 KB | None | 0 0
  1. ;Simple Highlight Script (Notice and Counter)
  2. ;Made by nick1
  3. ;Last edit June 18, 2014
  4.  
  5. On $*:TEXT:$(/\b( $+ $me $+ |nick1)\b/Si):*:{
  6.   ;The line above will activate for your current nick or "nick1" change this or add using "nick1|nick2.."
  7.   inc %highlights
  8.   inc %highlights [ $+ [ $nick ] ]
  9.   inc %highlights [ $+ [ $chan ] ]
  10.   var %hltext 12< $+ $iif($left($nick($chan,$nick).pnick,1) isin $prefix,$v1) $+ $nick $+ > 4>>>10 $replace($1-,$regml(1),$+(04,$regml(1),10)) 4<<<
  11.   $iif(!$window(@Highlights- $+ $network),window -evn @Highlights- $+ $network,noop)
  12.   echo @Highlights- $+ $network 10 $+ $timestamp $+(12,[,4,$iif($chan,$v1,Query),12,]) %hltext
  13.   if ((($active != $chan) && ($active != $window(@Highlights- $+ $network)) && ($active != $nick)) || (!$appactive)) {
  14.     noop $tip('Tray Tip', $network  » $iif($chan,$v1,Query),%hltext,10,,,,$window($iif($chan,$v1,$nick)).wid)
  15.     ;echo -a $+(12,[,4,$iif($chan,$v1,Query),12,]) %hltext
  16.   }
  17.   ;clipboard $+(12,[,4,$iif($chan,$v1,Query),12,]) %hltext
  18. }
  19.  
  20. On $*:ACTION:$(/\b( $+ $me $+ |nick1)\b/Si):*:{
  21.   ;The line above will activate for your current nick or "nick1" change this or add using "nick1|nick2.."
  22.   inc %highlights
  23.   inc %highlights [ $+ [ $nick ] ]
  24.   inc %highlights [ $+ [ $chan ] ]
  25.   var %hltext 12< $+ $iif($left($nick($chan,$nick).pnick,1) isin $prefix,$v1) $+ $nick $+ > 4>>>10 $replace($1-,$regml(1),$+(04,$regml(1),10)) 4<<<
  26.   $iif(!$window(@Highlights- $+ $network),window -evn @Highlights- $+ $network,noop)
  27.   echo @Highlights- $+ $network 10 $+ $timestamp $+(12,[,4,$iif($chan,$v1,Query),12,]) %hltext
  28.   if ((($active != $chan) && ($active != $window(@Highlights- $+ $network)) && ($active != $nick)) || (!$appactive)) {
  29.     noop $tip('Tray Tip', $network  » $iif($chan,$v1,Query),%hltext,10,,,,$window($iif($chan,$v1,$nick)).wid)
  30.     ;echo -a $+(12,[,4,$iif($chan,$v1,Query),12,]) %hltext
  31.   }
  32.   ;clipboard $+(12,[,4,$iif($chan,$v1,Query),12,]) %hltext
  33. }
  34.  
  35. on *:input:*: {
  36.   if ($1 == !hls) && ($2 == $null) {
  37.     .timer 1 1 msg $chan 10I have been highlighted a total of4 $bytes(%highlights,bd) 10times...
  38.   }
  39.   elseif ($1 == !hls) && ($2 != $null) && ($2 !isnum) {
  40.     .timer 1 1 msg $chan 10I have been highlighted4 $bytes($iif($($+(%, highlights,$2),2),$($+(%, highlights,$2),2),0),bd) 10times $iif(($left($2,1) == $chr(35)),in,by) $+ 4 $2
  41.   }
  42.   elseif ($1 == !hls) && ($2 >= 1) {
  43.     var %i = 2
  44.     while (%i <= $var(%highlights*, 0)) {
  45.       if ($var(%highlights*,%i).value >= $2) $iif(*#* iswm $($var(%highlights*,%i),0),noop,inc %x)
  46.       inc %i
  47.     }
  48.     .timer 1 1 msg $chan 10A total of4 $bytes(%x,bd) 10people have highlighted me over4 $bytes($2,bd)10 times...
  49.     unset %x
  50.   }
  51.  
  52.   elseif ($1 == !highlights) && ($2 == $null) {
  53.     .timer 1 1 msg $chan 10I have been highlighted a total of4 $bytes(%highlights,bd) 10times...
  54.   }
  55.   elseif ($1 == !highlights) && ($2 != $null) && ($2 !isnum) {
  56.     .timer 1 1 msg $chan 10I have been highlighted4 $bytes($iif($($+(%, highlights,$2),2),$($+(%, highlights,$2),2),0),bd) 10times $iif(($left($2,1) == $chr(35)),in,by) $+ 4 $2
  57.   }
  58.   elseif ($1 == !highlights) && ($2 >= 1) {
  59.     var %i = 2
  60.     while (%i <= $var(%highlights*, 0)) {
  61.       if ($var(%highlights*,%i).value >= $2) $iif(*#* iswm $($var(%highlights*,%i),0),noop,inc %x)
  62.       inc %i
  63.     }
  64.     .timer 1 1 msg $chan 10A total of4 %x 10people have highlighted me over4 $bytes($2,bd)10 times...
  65.     unset %x
  66.   }
  67. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement