Nick Alert

By #Warizardworks on Aug 10, 2009

Hey guys. This script is just a simple Nick Alert script.

How it works: When a person types the nick you want (which is where $1- isin $me is), it makes a beeping noise and the logo of mIRC at the bottom of your computer flashes. It also tells you someone alerted you in the channel you are currently in and your status window. It tells the channel name and what time. Almost like the highlight option. :)

How to active it: Just put it in remote!

Edits: Edited it so you didn't have to specify your nick, but now it just uses your current nick.

That's about it. Enjoy!

~ This script was made by Wariopower and BM88 of #WarizardWorks on irc.purplesurge.com ~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~ mIRC Nick Alert ~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ON $*:TEXT:*:#: {
  var %alerter $nick
  if ($me isin $1-) && ($target != $active) {
    timer 1 .5 flash -r 10
    timer 1 .5 beep 10
    echo -ast 4 %alerter alerted you on $chan at $time $+ .
  }
}

Comments

Sign in to comment.
Hugh Tash   -  Feb 14, 2015

Here's a script that creates a Desktop Window when somebody mentions your nick on mIRC channel window (Nick alert script).

Every time someone mentions your nick, new entry is added into a single Desktop Window. In case someone needs it, here's the script code:

on :Text:$( $+ $me $+ *):#: {
if (!$window(@mIRC-NickAlert)) { window -mdk0 @mIRC-NickAlert }
window @mIRC-NickAlert
aline @mIRC-NickAlert 3Network: $str($chr(160),8), 6 $network
aline @mIRC-NickAlert 3Channel: $str($chr(160),8), 8 $chan
aline @mIRC-NickAlert 3Nick: $str($chr(160),14), 12 $nick
aline @mIRC-NickAlert 3Date & Time: $str($chr(160),2), 4 $+($date(yyyy mmmm d) ,$chr(32),2 $chr(40),$date(dddd),$chr(41) ,$chr(32),10 $time )
aline @mIRC-NickAlert $crlf
aline @mIRC-NickAlert 13T e x t: $str($chr(160),12), $1-
aline @mIRC-NickAlert $crlf
aline @mIRC-NickAlert 5-----------------------------------------------------------------------------------
aline @mIRC-NickAlert$crlf
}

View the image in order to see how the script looks in reality.

 Respond  
Lagrenouille   -  Dec 25, 2014

on :TEXT::#:{ if ($regex($1-,/\b $+ $me $+ \b/Sig)) && ($chan != $active) { echo -atg *** $chan $+($chr(60),$nick,$chr(62)) $1- } }
the above is a simple nick alert script, I want to add an echo command for network name because I'm in five or six networks at a time and some of them have common channels... alerts from these shared channels get to be quite confusing... any suggestions?

 Respond  
yelow79   -  Mar 31, 2011

good point napa. but I know there is a way to do it so that immune would not trigger for im.

 Respond  
napa182   -  Aug 09, 2010

yelow79 you can not use if ($me == $1-) being if they said something then ur nick being last or in the middle it will not work.

 Respond  
yelow79   -  Aug 09, 2010

I would change this line

if ($me isin $1-) && ($target != $active) {

to

if ($me == $1-) && ($target != $active) {

because, the isin will cause a trigger by words containing your nick
ie my nick is Im and someone says immune.

just a thought.

 Respond  
Korvin   -  Mar 03, 2010

:)

 Respond  
#Warizardworks   -  Mar 03, 2010

Oh yeah, okay. Thanks Korvin.
~ WP

 Respond  
Korvin   -  Mar 02, 2010

i would add if ($target != $active)

 Respond  
#Warizardworks   -  Mar 02, 2010

Okay, thanks. I'll take out the unset %alerter, I wasn't quite sure if I needed to unset it or not. Thanks for the comments. :D
~ WP

 Respond  
Jethro   -  Mar 02, 2010

You don't have to unset %alerter since you use a local variable. A local variable unsets itself after finishing processing its task.

In fact, I don't see the need for the variable. The script can be shortened as shown to you by gooshie, but you still keep it redundant.

 Respond  
#Warizardworks   -  Mar 02, 2010

Edited with more features, as listed in the description. :3
~ WP

 Respond  
gooshie   -  Nov 18, 2009

PsyberSin

[ALT]+R gets you to remote section

Put it on top line of any file there
so its the only thing on the line.

 Respond  
PsyberSin   -  Nov 18, 2009

Guys, when I go to Scripts Editor - which tab do I paste this under? TIA....

 Respond  
surewhynot   -  Aug 26, 2009

I don't have an events ini file?
:\

 Respond  
#Warizardworks   -  Aug 25, 2009

@Gooshie: Cool, I didn't try to write it out that way. Very cool.

@GlobalAnomaly: Yeah, most people would use the highlight option, but I figured I'd just make it for lolz and also a few of my friends couldn't figure out the highlight thing so I just made a quick script and passed it on to them. But yeah, I use the highlight option as well. xP

~ Wariopower

 Respond  
GlobalAnomaly   -  Aug 25, 2009

It works, but I'd rather use my highlight option in mIRC, (so I don't have to have any more remotes than needed).

 Respond  
gooshie   -  Aug 25, 2009

The beep and flash can be combined using the flash command switches.
Really no need for a 1/2 second timer delay for this type code.

on *:TEXT:$($+(*,$me,*)):#:flash -b5r10

This exact same functionality can be setup using the $me
identifier within Highlighting options now moved to the
address book under the last tab.

 Respond  
#Warizardworks   -  Aug 11, 2009

Wow cool, I didn't know you could do that. Thanks for the help guys. Very cool.
~WZW

 Respond  
Atr   -  Aug 11, 2009

Cool, wasn't sure if that sort of thing would work.

 Respond  
Jethro   -  Aug 11, 2009

Or you could just do this:

on *:TEXT:$(* $+ $me $+ *):#: {
  .timer 1 .5 flash -r 10
  .timer 1 .5 beep 5
}
 Respond  
Atr   -  Aug 11, 2009
ON *:TEXT:*:#: {
  if ($me isin $1-) {
    .timer 1 .5 flash -r 10
    .timer 1 .5 beep 5
  }
}

More effective than having to constantly manually change the code each nick change, and silenced timers.

 Respond  
#Warizardworks   -  Aug 10, 2009

Sorry about the confusion. If you are wondering what that first post is for it is this:

Myself (Wariopower) posted this script and then BM88 left a comment using the same account. It was all a bit confusing so I'll be erasing it. xP

Sorry again.
~WZW

 Respond  
Jethro   -  Aug 10, 2009

I imagine the selfness thanking warizardworks for being flattered. lol

 Respond  
PATX   -  Aug 10, 2009

u posted this... :P

 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.