mIRC Home    About    Download    Register    News    Help

Print Thread
#186178 18/09/07 04:51 PM
Joined: Sep 2007
Posts: 109
K
kwell Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Sep 2007
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 }
 }
}
 

Last edited by kwell; 18/09/07 04:52 PM.
kwell #186179 18/09/07 04:58 PM
Joined: Jan 2006
Posts: 111
N
Vogon poet
Offline
Vogon poet
N
Joined: Jan 2006
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.

Last edited by noMen; 18/09/07 04:59 PM.
kwell #186180 18/09/07 05:44 PM
Joined: Sep 2007
Posts: 109
K
kwell Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Sep 2007
Posts: 109
tank you noMen other question ...
to maintain a left margin with any typography

kwell #186182 18/09/07 06:59 PM
Joined: Jan 2006
Posts: 111
N
Vogon poet
Offline
Vogon poet
N
Joined: Jan 2006
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

noMen #186183 18/09/07 07:17 PM
Joined: Mar 2007
Posts: 218
V
Fjord artisan
Offline
Fjord artisan
V
Joined: Mar 2007
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-

vexed2 #186184 18/09/07 07:34 PM
Joined: Jan 2006
Posts: 111
N
Vogon poet
Offline
Vogon poet
N
Joined: Jan 2006
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.

vexed2 #186192 18/09/07 09:37 PM
Joined: Sep 2007
Posts: 109
K
kwell Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Sep 2007
Posts: 109
the problem is in typography tahoma

Sorry for mi english

kwell #186212 19/09/07 02:28 AM
Joined: Mar 2007
Posts: 218
V
Fjord artisan
Offline
Fjord artisan
V
Joined: Mar 2007
Posts: 218
Tahoma font isn't fixed width.
you'd need to find one that is.

vexed2 #186238 19/09/07 07:50 PM
Joined: Sep 2007
Posts: 109
K
kwell Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Sep 2007
Posts: 109
Eh seen ...
Font: Tahoma Font Style: Normal Size:8



frown

kwell #186241 19/09/07 09:06 PM
Joined: Mar 2007
Posts: 218
V
Fjord artisan
Offline
Fjord artisan
V
Joined: Mar 2007
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.

vexed2 #186267 20/09/07 03:38 AM
Joined: Sep 2007
Posts: 109
K
kwell Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Sep 2007
Posts: 109
The remote belongs to ircap 8.3

Thx vexed2 saludos.

vexed2 #186269 20/09/07 05:15 AM
Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
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).

vexed2 #186278 20/09/07 11:26 AM
Joined: Mar 2007
Posts: 218
V
Fjord artisan
Offline
Fjord artisan
V
Joined: Mar 2007
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

vexed2 #186310 20/09/07 06:10 PM
Joined: Sep 2007
Posts: 109
K
kwell Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Sep 2007
Posts: 109
tank you vexed2
-Suerte-


Link Copied to Clipboard