Supreme NickCatcher

By Gemster on Apr 24, 2008

A simple but yet impressive NickCatcher with ON/OFF switchs in dialog.

This snippet will open a window that will display any one who has said or actioned(/me) your nick with the server name, time, nick and what was said.
Will not open if your nick is said in a channel you are currently talking in :P

Very simple to use, just copy/paste into remotes (alt+r) and your set.

Just a small Note:
This is the first time I have used radio buttons on my dialogs, i have tested this snippet quite a few times and have had no bugs.

So Enjoy...
:D

#NickCatcher off

on *:text:*:#: {
  if ($me isin $1-) {
    if ($chan == $active) { halt }
    else {
      window @nc 20 20 580 380
      aline @nc ......4......12......7......9......
      aline @nc 12 Server:4 $server
      aline @nc 12 Nick:4 $+ $nick 
      aline @nc 12 Time:4 $time
      aline @nc 12 Channel4 $chan $+ 12. 
      aline @nc 12 $nick said:4 $1-
      aline @nc ......4......12......7......9......
    }
  } 
}
on *:action:*:#: {
  if ($me isin $1-) {
    if ($chan == $active) { halt }
    else {
      window @nc
      aline @nc ......4......12......7......9......
      aline @nc 12 Server:4 $server
      aline @nc 12 Nick:4 $+ $nick 
      aline @nc 12 Time:4 $time
      aline @nc 12 Channel4 $chan $+ 12. 
      aline @nc 12 $nick said:4 $nick $1-
      aline @nc ......4......12......7......9......
    }
  } 
}

#NickCatcher End

on *:LOAD:{
  .echo -a You Have Loaded The NickCatcher Script By Gemster.
  .echo -a to use it right click in the channel, Then go to NickCatcher , Click on that, Then select on/off from the dialog... Enjoy!!!
}

alias nickC { dialog -m nickC nickC }
dialog nickC {
  title "NickCatcher"
  size -1 -1 56 78
  option dbu
  text "NickCatcher By Gemster", 1, 10 5 38 12, center
  text "NickCatcher", 2, 9 30 32 8
  radio "ON", 3, 9 38 50 10
  radio "Off", 4, 9 46 50 10
  box "Set", 5, 5 23 47 37
  button "OK", 6, 16 63 23 10, ok
}

on *:dialog:nickC:*:*:{ 
  if ($devent == init) did -c $dname $iif(%nc,3,4) 
  if ($devent == sclick) { 
    if ($did == 3) { 
      set %nc 3 
      enable #NickCatcher
      echo -a !!!NickCatcher is now on!!! 
    } 
    if ($did == 4) { 
      unset %nc 
      disable #NickCatcher
      echo -a !!!Nick Catcher is now off!!! 
    } 
  } 
} 

menu channel {
  NickCatcher:/nickC
}

Comments

Sign in to comment.
criminal   -  Apr 24, 2008

Nice :P
I love the colors you used too, matches perfectly with my background :o
anyways, gj

 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.