Top

Pager


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  0.0 (of 0 scores)
Date Added  Jul 03, 2009
Last Updated  Jul 03, 2009
Tags  mirc  pager  paging  script  simple 

Introduction

Just type !page (nickname) (reason) and the bot will send a memo to whoever your looking to grab a hold of.

Grab the Code

on *:text:!page *:#: {
  if ($2 == $me) msg $nick I cannot page myself
  if ($2 == $me) halt
  if ($nick == $2) msg $nick You cannot page yourself.
  if ($nick == $2) halt
  msg $nick $nick you have successfully paged $2
  msg $2 $2 you have been paged in $chan by $nick . Reason: $3-
}
 

Comments

  (3)  RSS
Weasel
Comments: 117
 
mIRC Snippet:  Pager
Posted on Jul 3, 2009 3:25 pm
you could simplify this
Code:
 on *:text:!page *:#: {
  if ($2 == $me) msg $nick I cannot page myself | halt
  if ($nick == $2) msg $nick You cannot page yourself. | halt
  notice $nick $nick you have successfully paged $2
  notice $2 $2 $+, you have been paged in $chan by $nick $+ . Reason: $3- at $asctime
}
knoeki
Comments: 120
 
mIRC Snippet:  Pager
Posted on Jul 3, 2009 5:42 pm
or alternatively:

Code:
on *:TEXT:!page *:#: {
   if (%page.flood. [ $+ [ $nick ] ] == $null) {
      if (($2 != $me) && ($2 != $nick)) {
         set -u3600 %page.flood. [ $+ [ $nick ] ] 1
         var %x 1
         while %x <= $chan(0)) {
            if ($2 ison $chan(%x)) {
               msg $nick You have been paged by $nick on $+($chan,:) $3-
               var %x $chan(0)
               var %delivered 1
            }
         }
         if (%delivered != 1) {
            notify $2
            set %page.nick. [ $+ [ $2 ] ] $nick
            set %page.time. [ $+ [ $2 ] ] $ctime
            set %page.mesg. [ $+ [ $2 ] ] $3-
            msg $chan Message for $nick will be delivered when (s)he comes online.
         }
      }
      else {
         msg $chan You cannot page me or yourself.
      }
   }
}

on *:NOTIFY: {
   if (%page.notify.nick. [ $+ [ $nick ] ] != $null) {
      msg $nick %page.notify.nick. [ $+ [ $nick ] ] sent you a page $duration($calc($ctime - %page.time. [ $+ [ $nick ] ])) ago, saying: %page.mesg. [ $+ [ $nick ] ]
      notify -r $nick
   }
}


sends the page to the person, providing the person is on the same channel as the bot that probably has this script loaded. else, it will store the message, and add the target nick to the notify list, so the message can get sent as soon as he/she comes online. also has floodprotection, you can only send one message per hour per nick... not really perfect, but you get the idea.

untested, just coded it because I felt inspired ;_)
PATX
Comments: 390
 
mIRC Snippet:  Pager
Posted on Jul 4, 2009 9:19 pm
@weasel if u use ur stupid piped halts one more time i'm gunna explode. i could be totoally wrong but u don't need a halt. and if you do put in on the next line |s make ur code sloppy and slow. although ur comment was ok :/

@jess000 i like it. good job

Commenting Options

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

  
Bottom