mIRC Home    About    Download    Register    News    Help

Topic Options
#186178 - 18/09/07 05:51 PM Nick Completion
kwell Offline
Vogon poet

Registered: 18/09/07
Posts: 109
My english is bad, one question, my code is validate ?

Code:
on ^*:TEXT:*:*:{
 if ($nick isop $chan) { echo $chan  $+ @ $+ $nick  $1- | halt }
 if ($nick ishop $chan) { echo $chan  $+ % $+ $nick  $1- | halt }
 if ($nick isvoice $chan) { echo $chan  $+ + $+ $nick  $1- | halt }
 if ($nick ison $chan) { echo $chan  $nick  $1- | halt }
 { .echo $nick {  $nick  $1- | halt }
 }
}
 


Edited by kwell (18/09/07 05:52 PM)

Top
#186179 - 18/09/07 05:58 PM Re: Nick Completion [Re: kwell]
noMen Offline
Vogon poet

Registered: 17/01/06
Posts: 111
It could be:
Code:
on ^*:TEXT:*:*:{
 if ($nick isop $chan) { echo $chan  $+ @ $+ $nick  $1- }
 if ($nick ishop $chan) { echo $chan  $+ % $+ $nick  $1- }
 if ($nick isvoice $chan) { echo $chan  $+ + $+ $nick  $1- }
 if ($nick isreg $chan) { echo $chan  $nick  $1- }
 halt
}

Ignore that strange A in front of <<, it happend when I copied and pasted your code.


Edited by noMen (18/09/07 05:59 PM)

Top
#186180 - 18/09/07 06:44 PM Re: Nick Completion [Re: kwell]
kwell Offline
Vogon poet

Registered: 18/09/07
Posts: 109
tank you noMen other question ...
to maintain a left margin with any typography

Top
#186182 - 18/09/07 07:59 PM Re: Nick Completion [Re: kwell]
noMen Offline
Vogon poet

Registered: 17/01/06
Posts: 111
Ehm... mirc doesn't allow for more than one space in a line unless you use special characters like $chr(160). But besides that, you have to know the length of the longest nickname but you never can be sure when new people arrive. Buenas noches smile

Top
#186183 - 18/09/07 08:17 PM Re: Nick Completion [Re: noMen]
vexed2 Offline
Fjord artisan

Registered: 31/03/07
Posts: 218
Code:
alias ontext {
  var %a $iif($2,$2,$chan),%x $iif($1 !isreg %a && $1 !ischan,+), %b $iif(%x,$left($nick(%a,$1).pnick,1)) $+ $1
  return $iif(%x,$+(,09,$left(%b,1))) $+ $str($chr(160),$calc(13 - $len(%b))) $+ $iif(%x,$+(01,$mid(%b,2,12)),$+(,01,$mid(%b,1,13)))
}

on *:INPUT:#: {
  if ($left($1,1) != /) { 
    haltdef
    .raw -q privmsg $active : $+ $1-
    echo $chan $+(03,$ontext($me),03) $1-
  }
}

on ^1:TEXT:*:#:{ 
  echo $chan $+(03,$ontext($nick),03) $1-
  halt
}


my bad, missed $1-

Top
#186184 - 18/09/07 08:34 PM Re: Nick Completion [Re: vexed2]
noMen Offline
Vogon poet

Registered: 17/01/06
Posts: 111
It misses the text they entered plus it doesn't put your own messages in the window but that can be solved easily. Now I see it can be done if you take the longest possible nickname into account. Very good vexed2.

Top
#186192 - 18/09/07 10:37 PM Re: Nick Completion [Re: vexed2]
kwell Offline
Vogon poet

Registered: 18/09/07
Posts: 109
the problem is in typography tahoma

Sorry for mi english

Top
#186212 - 19/09/07 03:28 AM Re: Nick Completion [Re: kwell]
vexed2 Offline
Fjord artisan

Registered: 31/03/07
Posts: 218
Tahoma font isn't fixed width.
you'd need to find one that is.

Top
#186238 - 19/09/07 08:50 PM Re: Nick Completion [Re: vexed2]
kwell Offline
Vogon poet

Registered: 18/09/07
Posts: 109
Eh seen ...
Font: Tahoma Font Style: Normal Size:8



frown

Top
#186241 - 19/09/07 10:06 PM Re: Nick Completion [Re: kwell]
vexed2 Offline
Fjord artisan

Registered: 31/03/07
Posts: 218
Well, my tahoma font is certainly not that one
when i say fixed width, it means every single character is the same width in pixels, and i know mine isn't.
even looking at your screenshot you can see that they aren't either.
So i can't help you there. And i noticed the | character seperating the nicknames from the text, I looked at the charmap and the | isn't broken, so either that's a different font or the pictyre has been doctered.

Top
#186267 - 20/09/07 04:38 AM Re: Nick Completion [Re: vexed2]
kwell Offline
Vogon poet

Registered: 18/09/07
Posts: 109
The remote belongs to ircap 8.3

Thx vexed2 saludos.

Top
#186269 - 20/09/07 06:15 AM Re: Nick Completion [Re: vexed2]
schaefer31 Offline
Fjord artisan

Registered: 27/08/05
Posts: 525
Originally Posted By: vexed2
And i noticed the | character seperating the nicknames from the text, I looked at the charmap and the | isn't broken, so either that's a different font or the pictyre has been doctered.


It's not a different font, it's a different character entirely (166, broken bar).

Top
#186278 - 20/09/07 12:26 PM Re: Nick Completion [Re: vexed2]
vexed2 Offline
Fjord artisan

Registered: 31/03/07
Posts: 218
I just downloaded it and took a look.
He is using Tahoma (which is still not a fixed width font)
He's made his own alias to align it, which looks quite complicated i think. Using $widths $calcs and $ints.
Sorry i can't help any further with it.
Personally i'd stick to a fixed width font using the code i pasted previously, much easier grin

Top
#186310 - 20/09/07 07:10 PM Re: Nick Completion [Re: vexed2]
kwell Offline
Vogon poet

Registered: 18/09/07
Posts: 109
tank you vexed2
-Suerte-

Top