Top

nick alert


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  0.0 (of 0 scores)
Date Added  Jun 28, 2009
Last Updated  Jun 28, 2009
Tags  alert  auto  nick  respond 

Introduction

simple snippet for nick alert

Grab the Code

;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
;name: nick alert
;author: MasTer^PriNce
;version 1.0
;comment: simple snippet for nick alert
;Email: EyiezINC@gmail.Com
;Website: Www.EyiezINC.info
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 
 
;this is for text 
On *:text:*:#: {
  if ($istok($strip($1-),$me,32)) && ($active != $chan) { inc -u2 %psafe | if (%psafe == 1) { $iif($left($active,1) != $chr(35),$iif($active != status window,$iif($active == $nick,msg $chan yes? can i help you?,describe $chan now private chat with $active),describe $chan now check something at status window),describe $chan now active at channel $remove($active,$chr(35))) | .echo -a $nick call you at $chan } }
}
;and this is for action
On *:action:*:#: {
  if ($istok($strip($1-),$me,32)) && ($active != $chan) { inc -u2 %psafe | if (%psafe == 1) { $iif($left($active,1) != $chr(35),$iif($active != status window,$iif($active == $nick,msg $chan yes? can i help you?,describe $chan now private chat with $active),describe $chan now check something at status window),describe $chan now active at channel $remove($active,$chr(35))) | .echo -a $nick call you at $chan } }
}

Comments

  (5)  RSS
knoeki
Comments: 120
 
mIRC Snippet:  nick alert
Posted on Jun 28, 2009 1:50 pm
okay, so... what does this actually do? how does it work? There's a reason that there's a description field, use it properly. Not even attempting to decipher your code gave me an idea what this exactly does.
Jethro_
Comments: 437
 
mIRC Snippet:  nick alert
Posted on Jun 28, 2009 5:47 pm
As the title states, it's a pager where it alerts you when someone calls out to you in a channel where you are.

For your info, There is an operator for
Quote:
if ($active != $chan)
->
Code:
if ($active !ischan)
These are the same thing, but ischan is a bit shorter. lol
napalm`
Comments: 182
 
mIRC Snippet:  nick alert
Posted on Jun 29, 2009 9:54 am
Jethro you are incorrect.

if ($active != $chan) this means If the $active channel window is not the channel this event took palce in, continue.

if ($active !ischan) this means If the $active channel window is in fact a channel i am on, continue.
napalm`
Comments: 182
 
mIRC Snippet:  nick alert
Posted on Jun 29, 2009 9:57 am
Regardless, this code does nothing but set a variable for two seconds if your nickname is typed in a channel you are not looking at.

Fail.
WorldDMT
Comments: 171
 
mIRC Snippet:  nick alert
Posted on Jun 29, 2009 10:14 am
to not repeat u can use an alias if u want like this (just an idea)

Code:
on *:action:*:#:call # $nick $me $active $1-
on *:text:*:#:call # $nick $me $active $1-
alias call {
  tokenize 32 $strip($1-)
  if $istok($5-,$3,32) {
    if ($4 == status window) describe $1 now check something at status window
    elseif ($4 == $2) msg $2 yes? can i help you $2 ?
    elseif ($4 ischan) describe $1 now active at channel $remove($4,$v2)
    elseif ($istok($regsubex($str(.,$query(0)),/./g,$query(\\n) $+ $chr(46)),$4,46)) describe $1 now private chat with $4
    echo -a $2 call you at $1
  }
}

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  
Bottom