mIRC Home    About    Download    Register    News    Help

Print Thread
Page 1 of 3 1 2 3
mode color #93558 10/08/04 11:51 PM
Joined: Jul 2004
Posts: 169
S
ShinZon Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Jul 2004
Posts: 169
how can i do this:

@op nicks are blue and while talking their text is blue
+v nicks are green and while talking their colour is green

?

and one q more:

if Ops are blue, vops are green, uops are teal (by java applet)
what is colour of hops (i never saw it) if someone knows this too ?

Last edited by ShinZon; 10/08/04 11:53 PM.
Re: mode color #93559 11/08/04 12:11 AM
Joined: Feb 2004
Posts: 714
Z
Zyzzyx26 Offline
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
on mIRC, hit Alt + B and then go to the Colors tab. Click on Add and choose the settings: color to highlight, modes, address, etc.. That should color the @Ops and +v as you want.

About the text coloring... I think using a script is the best way.
Code:
On *:TEXT:*:[color:red]#[/color]: {
 if ($nick isop [color:red]#[/color]) { echo 12 -mtbfl [color:red]#[/color] $+(<,$nick,>) $1- }
if ($nick isvoice [color:red]#[/color]) { echo 3 -mtbfl [color:red]#[/color] -mtbfl $chan $+(<,$nick,>) $1- }
}
This should work. Change the # to a specific channel if you wish to.

Hope it helps smile

Zyzzyx.

PS: Dont know about the halfop matter.


"All we are saying is give peace a chance" -- John Lennon
Re: mode color #93560 11/08/04 12:18 AM
Joined: Jul 2004
Posts: 169
S
ShinZon Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Jul 2004
Posts: 169
can this with alt+b be done thru scripting somehow ?
(coz of themes)

and does this code that you gave me work if it is putted in alias or only in remotes ?

Re: mode color #93561 11/08/04 12:33 AM
Joined: Nov 2003
Posts: 257
A
alkahol1k Offline
Fjord artisan
Offline
Fjord artisan
A
Joined: Nov 2003
Posts: 257
i think this is what you are looking for:

alias mode1 {
if ($nick(#,$nick,r)) return
return $replace($left($nick)(#,$nick).pnick,1) ,+, +,@, @,%, %,., .)
}

this will color the mode but not the text


Re: mode color #93562 11/08/04 12:36 AM
Joined: Nov 2003
Posts: 257
A
alkahol1k Offline
Fjord artisan
Offline
Fjord artisan
A
Joined: Nov 2003
Posts: 257
just to break it down a bit more:

alias mode1 {
if ($nick(#,$nick,r)) return
return $replace($left($nick(#,$nick).pnick,1) ,+,+v,@,+o,%,+h,.,+q) <------ change the color on the second mode (+q,h,o,v)
}

Re: mode color #93563 11/08/04 12:41 AM
Joined: Jul 2004
Posts: 169
S
ShinZon Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Jul 2004
Posts: 169
will this work on mirc 6.03 ?

Re: mode color #93564 11/08/04 12:48 AM
Joined: Nov 2003
Posts: 257
A
alkahol1k Offline
Fjord artisan
Offline
Fjord artisan
A
Joined: Nov 2003
Posts: 257
yup it should , i had it running way back on 5.91 i think.

on ^*:Text:*:#: { ech $chan [[ $+ $mode1 $+ / $+ text $+ / $+ $nick $+ ] $1- | halt }

i see:

[@/text/moo123] ty

Re: mode color #93565 11/08/04 12:54 AM
Joined: Jul 2004
Posts: 169
S
ShinZon Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Jul 2004
Posts: 169
but in that alias i dont see FOR WHAT mode to set color and WHERE

can you pls give me 1 example, like for voice, just so i know for other modes

Re: mode color #93566 11/08/04 01:00 AM
Joined: Nov 2003
Posts: 257
A
alkahol1k Offline
Fjord artisan
Offline
Fjord artisan
A
Joined: Nov 2003
Posts: 257
try this

alias mode1 {
if ($nick(#,$nick,r)) return
return $replace($left($nick(#,$nick).pnick,1) ,+,3+,@,12@,%,13%,.,7.)
}

Re: mode color #93567 11/08/04 01:01 AM
Joined: Feb 2003
Posts: 83
L
LO_KEY Offline
Babel fish
Offline
Babel fish
L
Joined: Feb 2003
Posts: 83
you can use the /color command to change all colors avail in mIRC on the fly.....

an ex out of my script... (its in dialog so i hope u understand....)

Code:
 
 [color:red]
    did -a w 40 ACTION
    did -a w 40 BACKGROUND
    did -a w 40 CTCP
    did -a w 40 EDITBOX
    did -a w 40 EDITBOX TEXT
    did -a w 40 HIGHLIGHT
    did -a w 40 INACTIVE
    did -a w 40 INFO
    did -a w 40 INFO2
    did -a w 40 INVITE
    did -a w 40 JOIN
    did -a w 40 KICK
    did -a w 40 LISTBOX
    did -a w 40 MODE
    did -a w 40 NORMAL
    did -a w 40 NOTICE
    did -a w 40 NOTIFY
    did -a w 40 OTHER
    did -a w 40 OWN
    did -a w 40 PART
    did -a w 40 QUIT
    did -a w 40 TOPIC
    did -a w 40 WALLOPS
    did -a w 40 WHOIS
[/color]
 [color:green] 
if ($did($dname,40).seltext = $null) { did -d $dname $did 0 | did -u $dname $did | halt }
      if ($did($dname,$did).seltext = White) { color $did($dname,40).seltext 0 }
      if ($did($dname,$did).seltext = Black) { color $did($dname,40).seltext 1 }
      if ($did($dname,$did).seltext = Dark Blue) { color $did($dname,40).seltext 2 }
      if ($did($dname,$did).seltext = Green) { color $did($dname,40).seltext 3 }
      if ($did($dname,$did).seltext = Red) { color $did($dname,40).seltext 4 }
      if ($did($dname,$did).seltext = Brown) { color $did($dname,40).seltext 5 }
      if ($did($dname,$did).seltext = Purple) { color $did($dname,40).seltext 6 }
      if ($did($dname,$did).seltext = Orange) { color $did($dname,40).seltext 7 }
      if ($did($dname,$did).seltext = Yellow) { color $did($dname,40).seltext 8 }
      if ($did($dname,$did).seltext = Light Green) { color $did($dname,40).seltext 9 }
      if ($did($dname,$did).seltext = Teal) { color $did($dname,40).seltext 10 }
      if ($did($dname,$did).seltext = Light Blue) { color $did($dname,40).seltext 11 }
      if ($did($dname,$did).seltext = Blue) { color $did($dname,40).seltext 12 }
      if ($did($dname,$did).seltext = Violet) { color $did($dname,40).seltext 13 }
      if ($did($dname,$did).seltext = Grey) { color $did($dname,40).seltext 14 }
      if ($did($dname,$did).seltext = Light Grey) { color $did($dname,40).seltext 15 }
 [/color] 
 

[/color]
basically it boils down to:
color red option [color:green] colorcode

hope this helps. laugh


any help would make me happy
Re: mode color #93568 11/08/04 01:13 AM
Joined: Jul 2004
Posts: 169
S
ShinZon Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Jul 2004
Posts: 169
well i get blue text from op
green from vop

[+/text/shinzon] sometext

but first "[" is black
and why this "/text/" is there ?
and on nicklist colors are not changing, why ?

Re: mode color #93569 11/08/04 01:15 AM
Joined: Jul 2004
Posts: 169
S
ShinZon Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Jul 2004
Posts: 169
erm, thanks for help, but what i need is something different smile this colors can be changed thru mirc too =)
thanks anyway

Last edited by ShinZon; 11/08/04 01:15 AM.
Re: mode color #93570 11/08/04 01:15 AM
Joined: Nov 2003
Posts: 257
A
alkahol1k Offline
Fjord artisan
Offline
Fjord artisan
A
Joined: Nov 2003
Posts: 257
lol i thought you knew how to script, i'm not going to do it ALL for you i just gave you a very basic method that works. You can edit how you like.

Re: mode color #93571 11/08/04 01:18 AM
Joined: Nov 2003
Posts: 257
A
alkahol1k Offline
Fjord artisan
Offline
Fjord artisan
A
Joined: Nov 2003
Posts: 257
In an earlier post you wanted it to be done with scripting so thats what i did *shrugs*

Re: mode color #93572 11/08/04 01:19 AM
Joined: Jul 2004
Posts: 169
S
ShinZon Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Jul 2004
Posts: 169
i know some basis, but these are more like mirc secret addons for me smirk

thanks anyway

Re: mode color #93573 11/08/04 04:18 PM
Joined: Feb 2004
Posts: 714
Z
Zyzzyx26 Offline
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
(even though you two worked it out, I'm still going to answer what you asked me)

Yes, the Alt + B thing can be done via script. And the code I gave you should be put on Remotes. The next code should also be put in remotes. It will do what the Alt + B does.. it also contains an update to the earlier code I gave you, so its best if you put them in the same file.
Code:
on me:*:JOIN:[color:red]#[/color]: .timerCheckJoin 1 5 colormode $chan

alias ColorMode {
 :start
 if (!$ial) { who $1 | goto start }
 var %i = $nick ($1,0)
 while (%i) {
  if ($nick($1,%i) isop $1) { cline 12 $1 $nick($1,%i) }
  if ($nick($1,%i) isvoice $1) { cline 3 $1 $nick($1,%i) }
  dec %i
 }
}
This will color the nick in the nicklist: @'s and +'s. Paste it in the same file that the other code is in. If both codes are loaded, this should (not tested) color the nickname in the list, the nick in the channel message and the message itself.

Good luck!
Zyzzy smile


"All we are saying is give peace a chance" -- John Lennon
Re: mode color #93574 11/08/04 07:50 PM
Joined: Jul 2004
Posts: 169
S
ShinZon Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Jul 2004
Posts: 169
Alkoholic1:
your code doesnt color nicks with modes in nicklist frown

Zyzzy:
your code freezes my mirc shocked

so i will make this the simple...
not to bother ppl with coding, new request needed:
just to colorise nicknames with @ % + (op, ho, vop)

but some code that will work ?
anyone who helps me in this will be my saviour !

Re: mode color #93575 11/08/04 10:32 PM
Joined: Feb 2004
Posts: 714
Z
Zyzzyx26 Offline
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
Code:
alias ColorMode {
 :start
 if (!%temp) { who $1 | goto start | inc -u30 %temp }
 var %i = $nick ($1,0)
 while (%i) {
  if ($nick($1,%i) isop $1) { cline 12 $1 $nick($1,%i) }
  if ($nick($1,%i) isvoice $1) { cline 3 $1 $nick($1,%i) }
  dec %i
 }
}
It was my mistake.. the $ial thingie wouldnt work. This should do it smile


"All we are saying is give peace a chance" -- John Lennon
Re: mode color #93576 11/08/04 10:36 PM
Joined: Jul 2004
Posts: 169
S
ShinZon Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Jul 2004
Posts: 169
i tested this on clean mirc 6.03

nothing is changed or Oped nick and voped nick
and on /hop and /join i got exces flood kill

Last edited by ShinZon; 11/08/04 10:38 PM.
Re: mode color #93577 11/08/04 10:53 PM
Joined: Feb 2004
Posts: 714
Z
Zyzzyx26 Offline
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
Im such a stupid guy! var %i = %nick_($1,0) <- that space doesnt exist! :P That was causing the excess flood

Try this code, it will work when you join a channel
Code:
raw 366:*: {
  var %i = $nick($2,0)
  while (%i) {
    if ($nick($2,%i) isop $2) { cline 12 $2 $nick($2,%i) }
    if ($nick($2,%i) isvoice $2) { cline 3 $2 $nick($2,%i) }
    dec %i
  }
}
Sorry for the mistake!

Zyzzy smile


"All we are saying is give peace a chance" -- John Lennon
Page 1 of 3 1 2 3