mIRC Home    About    Download    Register    News    Help

Print Thread
#61576 23/11/03 05:15 PM
Joined: Nov 2003
Posts: 257
A
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Nov 2003
Posts: 257
how do i change the way text looks when i use the /say command?

#61577 23/11/03 06:06 PM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
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,.) }
#61578 23/11/03 07:42 PM
Joined: Nov 2003
Posts: 257
A
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Nov 2003
Posts: 257
Thanks alot I am rusty

#61579 24/11/03 01:45 AM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
No Problem smile


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#61580 24/11/03 01:30 PM
Joined: Apr 2003
Posts: 426
Fjord artisan
Offline
Fjord artisan
Joined: Apr 2003
Posts: 426
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)

Link Copied to Clipboard