Remote, Raw Section

Everything sent through the server to mirc can be edited anyway you like using the raw section. Here you can find many useful ways to enhance the look of your script.

Blocking the Server Motd

Whenever you connect to a server you are sent the welcome stuff, the lusers and the motd. You can block all three if you want but here is how to block the motd. There are 3 numerics for the motd:
375 RPL_MOTDSTART
372 RPL_MOTD
376 RPL_MOTDEND
The first and last one only send one line so its safe to have them echo something, but you'll be better off only putting a halt in the 372. Here's what you'll need to add to the Remote, Raw Section:
372:*: {
   halt
}
375:*: {
   echo 2 Systems Online: Attemping to Block out server MOTD....
   halt
}
376:*: {
   echo 2 System Update: MOTD Successfully blocked.
   halt
}
Thats all there is to it, just remember you'll need a halt at the end of each one of it will echo your response and mirc's.

Gathering Channel Statistics

With this you can echo the number of users,ops,users marked away, ircops, bans, voiced users, and more. This one will be using 3 numerics to gather information:
324 RPL_CHANNELMODEIS
352 RPL_WHOREPLY
367 RPL_BANLIST
You'll need an alias to run this one, the alias will do a /who {chan}, /mode {chan}, and /mode {chan} b. Here's what you'll need to add.
Alias Section:
chanstat {
   echo 2 $active Gathering needed information.......
   set %voice 0
   set %bans 0  
   set %away 0
   set %ircops 0
   .enable #chanstat
   .mode $$1
   .mode $$1 b
   .who $$1  
   .timer 1 10 /showstat $$1
}
showstat {
   echo 4 $active Current Channel Stats for $$1
   echo 4 $active Topic: $topic($$1)
   echo 4 $active Channel Mode: %mode 
   echo 4 $active Total Users: $nick(0,$$1)    Voiced: %voice
   echo 4 $active Ops: $opnick(0,$$1)    Non-Ops: $nopnick(0,$$1)
   echo 4 $active Away: %away    IRCOp's: %ircop
   echo 4 $active Total Bans: %bans 
   .disable #chanstat
   unset %voice
   unset %bans
   unset %away
   unset %ircops
}
Remote, Raw Section:
#chanstat disabled
324:*: {
  set %mode $parm3
}
352:*: {
  if (G isin $parm7) {
    inc %away 1
  }
  if ($chr(43) isin $parm7) {
    inc %voice 1
  }
  if ($chr(42) isin $parm7) {
    inc %ircop 1
  }
}
367:*: {
  inc %bans 1
}
#chanstat end
Then you just /chanstat {channel}, wait 10 seconds and you get a listing of everything.

Raw Numeric Listing

Due to the fact that there are hundreds of raw server numerics I have put them in a .txt file you can d/l or view, just follow this link - rawnum.txt


This page hosted by Get your own Free Homepage
©1996 The Scripters Guild All Rights Reserved
Please send all questions and comments to TiAMaT


1