simple snippet for nick alert
;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 } }
}
to not repeat u can use an alias if u want like this (just an idea)
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
}
}