mIRC Homepage

nick brackets

Posted By: Daedalus

nick brackets - 07/04/04 04:16 PM

Code:
 on ^*:TEXT:*:*: { 
  echo -ti2m $iif($target ischan,$chan,$nick) $+($chr(3),15,-[ $iif($target ischan,$nick($chan,$nick).pnick,$nick) ]-) $+($chr(3),15,$1-) 
  haltdef 
} 

on ^*:ACTION:*:*: { 
  echo -t $chan $+($chr(3),15,-[) $+($chr(3),15,$chr(2),$nick,$chr(2)) $+($chr(3),15,$1-) 
  haltdef 
} 

on *:INPUT:*: { 
  if ($left($1,1) != /) { 
    echo -ti2 $target $+($chr(3),15,-[ $me ]-) $1- 
    .msg $target $1- 
    halt 
  } 
  elseif ($1 == /me) { 
    echo -ti2 $target $+($chr(3),15,-[) $+($chr(3),15,$chr(2),$me,$chr(2)) $+($chr(3),15,$2-) 
    .me $2- 
    halt 
  } 
} 


I got these codes to alter the default nick-brackets, but when I have a script doing a /say or /me it will show up as default. Is there a way to "lock" the brackets so I don't have to script the "bracket-codes" into every script that uses /say and /me ? confused
Posted By: Online

Re: nick brackets - 08/04/04 12:22 AM

Yes, you'll have to make custom aliases too. Here's a sample of a "theme" system:
  • On ^*:text:*:#: haltdef | print_msg # $nick(#,$nick).pnick $1-
    On ^*:text:*:?: haltdef | print_msg $nick $nick $1-
    On ^*:action:*:#: haltdef | print_me # $nick $1-
    On ^*:action:*:?: haltdef | print_me $nick $nick $1-
    On *:input:#: if /* !iswm $1 { say $1- | halt }
    On *:input:?: if /* !iswm $1 { say $1- | halt }
    alias say msg $active $1-
    alias me describe $active $1-
    alias msg {
    if $show && $window($1) { .msg $1- | print_msg $1 $me $2- }
    else msg $1-
    }
    alias describe {
    if $show && $window($1) { .describe $1- | print_me $1 $me $2- }
    else describe $1-
    }
    alias print_msg echo -mbflirt $1 15-[ $2 ]- $3-
    alias print_me echo -mbflirt $1 15-[  $+ $2 $3-
© 2022 mIRC Discussion Forums