Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 2.50 KB | None | 0 0
  1. on *:TEXT:*:*:{
  2.   if ($me == [UCT]Bot) {
  3.     if ($nick isop $chan) {
  4.       if ($regex($1,/[!@.]h(igh)?l(ight)?tag(s|z)?$/Si)) {
  5.         msg # $iif($fline($chan,*[UCT]*,0,1) = 0,$tit(Hltag) $c1(No tags online), $tit(Hltag) $c2($remove($regsubex($str(.,$fline($chan,*[UCT]*,0,1)),/./g,$fline($chan,*[UCT]*,\n,1).text $+ $chr(32)), [UCT]Bot)))      
  6.       }
  7.       if ($regex($1,/[!@.]set(web)?(site|forum(s|z)?)$/Si)) {
  8.         writeini $qt($+($mircdir,UCT\Settings.ini)) Site site $2-
  9.         msg # $tit(Site) $c1(The site has been set! Type) $c2(!site) $c1(to see it.)
  10.       }
  11.       if ($regex($1,/[!@.]setreq(uirement)?(s|z)?$/Si)) {
  12.         writeini $qt($+($mircdir,UCT\Settings.ini)) Reqs reqs $2-
  13.         msg # $tit(Reqs) $c1(The requirements have been set! Type) $c2(!reqs) $c1(to see them.)
  14.       }
  15.       if ($regex($1,/[!@.]setc(lan)?c(hat)?$/Si)) {
  16.         writeini $qt($+($mircdir,UCT\Settings.ini)) Cc cc $2-
  17.         msg # $tit(Clanchat) $c1(The clan chat has been set! Type) $c2(!cc) $c1(to see it.)
  18.       }
  19.       if ($regex($1,/^[!@.]inv(ite)/)) {
  20.         invite $2 #
  21.       }
  22.       if ($regex($1,/^[+-].*/)) {
  23.         if ($regex($1,/^([+-][mpi]+)+/)) {
  24.           mode # $1
  25.         }
  26.         if ($regex($1,/^([+-][qaohv]+)+/)) {
  27.           mode # $1 $2-
  28.         }
  29.         var %regex = /^([+-][beI]+)+/i
  30.         if ($regex($1,%regex)) {
  31.           who #
  32.           var %B $count($1,b,e,I) + 1
  33.           var %X 2
  34.           while (%X <= %B) {
  35.             var %Ban = %Ban $address($ [ $+ [ %X ] ],2)
  36.             inc %X
  37.           }
  38.           mode # $1 %Ban
  39.         }
  40.       }
  41.  
  42.     }
  43.     if ($regex($1,/[!@.]c(ount)?tag(s|z)?$/Si)) {
  44.       $iif(@ isin $1,msg #,notice $nick) $tit(Counttag) $c1(There are currently) $c2($calc($fline($chan,*[UCT]*,0,1) - 1)) $c1(nicknames with the tag) $c2([UCT]) $c1(in them. (Not including me))
  45.     }
  46.     if ($regex($1,/[!@.](web)?(site|forum(s|z)?)$/Si)) {
  47.       $iif(@ isin $1,msg #,notice $nick) $tit(Site) $c1(The site for) $c2(Uncontrollable) $c1(is) $c2($readini($qt($+($mircdir,UCT\Settings.ini)),Site,site))
  48.     }
  49.     if ($regex($1,/[!@.]req(uirement)?(s|z)?$/Si)) {
  50.       $iif(@ isin $1,msg #,notice $nick) $tit(Reqs) $c1(The requirements for) $c2(Uncontrollable) $c1(are) $c2($readini($qt($+($mircdir,UCT\Settings.ini)),Reqs,reqs))
  51.     }
  52.     if ($regex($1,/[!@.]c(lan)?c(hat)?$/Si)) {
  53.       $iif(@ isin $1,msg #,notice $nick) $tit(Clanchat) $c1(The clan chat for) $c2(Uncontrollable) $c1(is) $c2($readini($qt($+($mircdir,UCT\Settings.ini)),Cc,cc))
  54.     }
  55.   }
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement