Nick Alert

By Bouncer on Apr 29, 2007

It is pretty straightforward. Paste this into your remotes. When someone says your nick or name it will open a new window and show you what was said, when it was said, by who, and in what channel. But if your nick or name was said in your active channel it will not.
Just replace where it says nick with your nickname and where it says name with your name.

on *:TEXT:*nick*:#: {
  if ($chan == $active) { halt }
  window @Nick
  aline @Nick 14,1 $nick 0,1called you at14,1 $time 0,1on channel14,1 $chan 0,1saying:14,1 $1- $+ 0,1.
  aline @Nick 14,1 -
}
on *:ACTION:*nick*:#: {
  if ($chan == $active) { halt }
  window @Nick
  aline @Nick 14,1 $nick 0,1called you at14,1 $time 0,1on channel14,1 $chan 0,1saying:14,1 $1- $+ 0,1.
  aline @Nick 14,1 -
}
on *:TEXT:*name*:#: {
  if ($chan == $active) { halt }
  window @Name
  aline @Name 14,1 $nick 0,1called you at14,1 $time 0,1on channel14,1 $chan 0,1saying:14,1 $1- $+ 0,1.
  aline @Name 14,1 -
}
on *:TEXT:*name*:#: {
  if ($chan == $active) { halt }
  window @Name
  aline @Name 14,1 $nick 0,1called you at14,1 $time 0,1on channel14,1 $chan 0,1saying:14,1 $1- $+ 0,1.
  aline @Name 14,1 -
}

Comments

Sign in to comment.
pwnisher3   -  Aug 16, 2008

i think mine is better

 Respond  
Just1nn   -  May 25, 2007

This is an awesome script but I turned on mIRC and all the sudden it doesnt work.. to replace the words nick and name i put justin (my name) except action, for action i put my bots nick, am i doing something wrong? whenever someone says my name it says unknown command...

 Respond  
Bouncer   -  May 01, 2007

I haven\'t used wildcards yet Lindrian so I will mess around with that code and when I feel comfortable that I can code it properly I will update my code. :)

 Respond  
Lindrian   -  May 01, 2007

there\'s no need for all text events, and u can do:

if $wildtok($1-,$+(*,word,*),1,32) {
  • Replace \'word\'
 Respond  
Bouncer   -  May 01, 2007

Now I remember why I didn\'t use that code. If I do then my @Name alerts do not work and would need to be put in a seperate remotes.

 Respond  
Bouncer   -  May 01, 2007

Chevy $nick in my code will never come out as \"what\" or anything other then the persons nick who said my nick/name. And in the example code you gave, you yourself used $nick right after you said to use $$1. And ty |Meliorite| for the advice. I thought about using it to begin with but for some reason I can\'t remember right now why I decided not to. Might update it later.

 Respond  
|MELIORITE|   -  Apr 30, 2007

In that case perhaps, using that format:

on *:text:*: {
  if ($me is in $1-) && if ($chan != $active) { ETC

Soemthing liek that anyways...

 Respond  
xDaeMoN   -  Apr 30, 2007

@ Russelb, the author did say that you have to manually change the word \"nick\" with your nick or any other name that you use.

 Respond  
RusselB   -  Apr 30, 2007

Your on text events would respond to the actual word nick or name said anywhere in the line, not the person\'s nick.

 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.