mIRC Home    About    Download    Register    News    Help

Print Thread
#127532 14/08/05 02:26 PM
Joined: May 2005
Posts: 79
M
Babel fish
OP Offline
Babel fish
M
Joined: May 2005
Posts: 79
I have this to align nicks with there mode prefix


Code:
 alias xnick2 {
  var %a $iif($2,$2,$chan),%b $iif($1 !isreg %a,$left($nick(%a,$1).pnick,1)) $+ $1
  return $str(ÿ,$calc(11 - $len(%b))) $+ $iif($1 !isreg %a,$+(11,$left(%b,1),08,$mid(%b,2,10)),$+(08,$mid(%b,1,11)))
} 


which when added to my on input event would look like < .mooo> hi

but i'd like the mode prefix seperate from the nick like <. mooo> hi

any help would be great

#127533 14/08/05 02:37 PM
Joined: Aug 2005
Posts: 128
S
Vogon poet
Offline
Vogon poet
S
Joined: Aug 2005
Posts: 128
I don't understand what you're trying to do. Can you explain more detailed? Are you trying to make a $nick($chan,$nick).pnick function ?

#127534 14/08/05 02:40 PM
Joined: May 2005
Posts: 79
M
Babel fish
OP Offline
Babel fish
M
Joined: May 2005
Posts: 79
That alias will show the mode prefix for me and align the nickname from right to left in my font

eg; with the on input font echo -a $xnick($me) : $1-

but in that alias the mode prefix is actually part ofr the nick, i want it to be seperate, so it's at the start <. mooo> hi

#127535 14/08/05 02:44 PM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
alias pnick return $iif($left($nick($2,$1).pnick,1) isin $prefix,11 $+ $v1) 08 $+ $1

Usage: $pnick(<nickname>,$chan)


Gone.
#127536 14/08/05 03:01 PM
Joined: May 2005
Posts: 79
M
Babel fish
OP Offline
Babel fish
M
Joined: May 2005
Posts: 79
That's exactly what's needed, accept nickname length is supposed to be for a maximum of 10 chars, and whether the nick is 4 chars or 10 chars, it's aligned

#127537 14/08/05 03:15 PM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
I'm not going to make it all for you. I gave that code so that you can incorporate it with whatever you are doing. Try to create the end result yourself, you'll be proud you managed without needing to be told how to do it.


Gone.

Link Copied to Clipboard