Bot Message op/hop/admin/talk

By DaDealer on Dec 13, 2008

Ok not all of my op's and hop's use mIRC so they didnt have a /omsg or /msg @%&#chan...Plus its fun to have a bot that they can make talk like a /bs say command. so this is designed for a mIRC bot in your #. This will also close all pm's after it looks for the commands, So if you like to keep the PM window open or get them from people wanting to chat then take out the last line of code "Closemsg $nick". I tried to find one like this on here, but nobody seemed to have one. So here it is.

you would use it like this:
/msg BotName !say #ChanName Hello DaDealer
/msg BotName !msgall #ChanName All ops and hops need to come to the meeting!

As Always i'm not the best at scripting, but it works, and I'm sure there was a better way to do it so no need to tell me.

Oh and incase your new to this stuff...Paste it in the Remote Section. (ALT + R in mIRC)

;****************************************;
;*******     Made By: DaDealer     ******;
;******* Some Credit would be nice ******;
;*******     If you use it.        ******;
;****************************************;

on *:open:?:*: { 
  set %chann $2
  set %doneb $address($nick,2)
  if ($3 == !op) || ($3 == !hop) || ($2 == vop) || ($2 == aop) || ($2 == hop) || ($3 == !addrandom) {
    cs hop %chann del $nick
    cs aop %chann del $nick
    cs vop %chann del $nick
    notice $me ALERT!!!! $nick Issued $1- at $time
    notice $me ALERT!!!! $nick Issued $1- at $time
    notice $me ALERT!!!! $nick Issued $1- at $time
    NOTICE & $+ @ $+ % $+ %chann ALERT!!!! $nick Issued $1- at $time and has lost all Promotions and has been added to the PBan list!!! Leave it that way!!! 
    inc %banned. [ $+ [ %doneb ] ] [ $+ [ %chann ] ]
    ban -k %chann $address($nick,2)
    kick %chann $2 $3-
    closemsg $nick
    unset %chann
    unset doneb
    halt
  }
  else {
    if ($nick isop %chann || $nick ishop %chann) { 
      if ($1 == !say) {
        msg $2 $3-
      }
      if ($1 == !act) {
        describe $2 $3-
      }
      if ($1 == !msgop) {
        msg @ $+ $2 $3-
      }
      if ($1 == !msghop) {
        msg % $+ $2 $3-
      }
      if ($1 == !msgadmin) {
        msg & $+ $2 $3-
      }
      if ($1 == !msgall) {
        msg % $+ @ $+ $2 $3-
      }
    }
  }
  else {
    notice $nick You dont have the power to use these commands!
  }
  closemsg $nick
  unset %chann
  unset doneb
}

Comments

Sign in to comment.
Virusless   -  Sep 13, 2011

Cool script.

I'm too new to scripting to even try to understand what everything means.
I was thinking, can you make me a version of this which, when put before certain commands, stops anyone who is less than 'hop' using said scripts?

Thanks in advance,
Virusless

 Respond  
DaDealer   -  Dec 13, 2008

ok I just updated it so only op's and hop's can use the command...and sends a notice to anyone who does not have the power to use any of the commands.

 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.