mIRC Home    About    Download    Register    News    Help

Topic Options
#61576 - 23/11/03 05:15 PM /say help
alkahol1k Offline
Fjord artisan

Registered: 22/11/03
Posts: 257
how do i change the way text looks when i use the /say command?

Top
#61577 - 23/11/03 06:06 PM Re: /say help
sparta Offline
Planetary brain

Registered: 22/02/03
Posts: 3432
Loc: Sweden/Borlänge
You have to make an alias of the /say command..

Code:
[color:red]alias[/color] say {
  echo -a < $+ $me $+ > $1- | .msg $active $1- | halt
}

and that goes to your remote section.. ALT + R in your mirc.. or if you want it in the alias section ALT + A .. then remove the red text..
_________________________
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Top
#61578 - 23/11/03 07:42 PM Re: /say help
alkahol1k Offline
Fjord artisan

Registered: 22/11/03
Posts: 257
Thanks alot I am rusty

Top
#61579 - 24/11/03 01:45 AM Re: /say help
sparta Offline
Planetary brain

Registered: 22/02/03
Posts: 3432
Loc: Sweden/Borlänge
No Problem smile
_________________________
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Top
#61580 - 24/11/03 01:30 PM Re: /say help
neophyte Offline
Fjord artisan

Registered: 12/04/03
Posts: 426
Loc: Australia
If you want a slightly more complex one that involves some decent error checking (and acts as close to the mIRC original), then use this:

Code:
/say {
  if ((=* iswm $active) && ($chat($remove($active,=)) == $remove($active,=))) {
    !say $1-
  }
  else {
    if ($1- != $null) {
      raw -q PRIVMSG $active : $+ $1-
      if (($active ischan) && ($me ison $chan)) {
        if ($gettok($readini($mircini,options,n0),23,44) == 1) {
          echo $colour(own) -tmi $+ $len($timestamp) $active ( $+  $+ $colour(highlight) $+ $nick($chan,$me).pnick $+  $+ ) $1-
        }
        if ($gettok($readini($mircini,options,n0),23,44) != 1) {
          echo $colour(own) -tmi $+ $len($timestamp) $active ( $+  $+ $colour(highlight) $+ $me $+  $+ ) $1-
      }
    }
      if ($query($active)) {
        echo $colour(own) -tmi $+ $len($timestamp) $active ( $+  $+ $colour(highlight) $+ $me $+  $+ ) $1-
    }
  }
}
_________________________
--------
mIRC - fun for all the family (except grandma and grandpa)

Top