mIRC Home    About    Download    Register    News    Help

Print Thread
#205641 27/10/08 05:25 PM
Joined: Dec 2007
Posts: 61
P
PO3 Offline OP
Babel fish
OP Offline
Babel fish
P
Joined: Dec 2007
Posts: 61
How would one make chat colors show in mIRC ?

like a user type in chat and it blue how would I get that to show in mIRC?

please

Thanks

PO3 #205645 27/10/08 07:37 PM
Joined: Oct 2007
Posts: 214
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Oct 2007
Posts: 214
Hi POE,

Judging from your posts i'd say that you were using Buzzen flash chat.

What you will need to do to accomplish your request is:

1. Read the output from the server with the font code.
2. You will then need to setup an alias to closely match the color code with mirc, mirc obviously cant support many colors, so you will need to create a number range.
3. Vincula created by Exonyte similarly used this technique as well. http://www.exonyte.com/vincula/vincula49.zip

Sample Code

Code:
Converts default mIRC color numbers to MSN color codes
alias msn.mrctomsn {
  if ($msn.get($2,frand)) tokenize 32 $rand(0,7)

  if ($1 == 0) return $chr(1)
  elseif ($1 == 1) return $chr(2)
  elseif ($1 == 5) return $chr(3)
  elseif ($1 == 3) return $chr(4)
  elseif ($1 == 2) return $chr(5)
  elseif ($1 == 7) return $chr(6)
  elseif ($1 == 6) return $chr(7)
  elseif ($1 == 10) return $chr(8)
  elseif ($1 == 15) return $chr(9)
  elseif ($1 == 4) return $chr(11)
  elseif ($1 == 9) return $chr(12)
  elseif ($1 == 8) return $chr(14)
  elseif ($1 == 13) return $chr(15)
  elseif ($1 == 11) return $chr(16)
  elseif ($1 == 12) return \r
  elseif ($1 == 14) return \n
  else return $chr(2)
}

;Converts MSN color codes to default mIRC color numbers
alias msn.msntomrc {
  if ($1 == $chr(1)) return 00
  elseif ($1 == $chr(2)) return 01
  elseif ($1 == $chr(3)) return 05
  elseif ($1 == $chr(4)) return 03
  elseif ($1 == $chr(5)) return 02
  elseif ($1 == $chr(6)) return 07
  elseif ($1 == $chr(7)) return 06
  elseif ($1 == $chr(8)) return 10
  elseif ($1 == $chr(9)) return 15
  elseif ($1 == $chr(11)) return 04
  elseif ($1 == $chr(12)) return 09
  elseif ($1 == $chr(14)) return 08
  elseif ($1 == $chr(15)) return 13
  elseif ($1 == $chr(16)) return 11
  elseif ($1 == \r) return 12
  elseif ($1 == \n) return 14
  else return 01
}

    elseif ($2 == PRIVMSG) {
      if ($4 == :S) {
        if (?#* !iswm $3) sockwrite -tn %x $1 NOTICE $3 : $+ $remove($6-,$chr(1))
        else {
          var %color $left($5,1), %style $mid($5,2,1)
          if (%color == \) {
            %color = $left($5,2)
            %style = $mid($5,3,1)
          }
          %color = $base($msn.msntomrc(%color),10,10,2)

          if (($msn.get($sockname,docolor)) && ((%style == $chr(2)) || (%style == $chr(4)))) %style = 
          elseif (($msn.get($sockname,docolor)) && ((%style == $chr(6)) || (%style == $chr(8)))) %style = 
          elseif (($msn.get($sockname,docolor)) && ((%style == $chr(5)) || (%style == $chr(7)))) %style = 
          else unset %style

          if (%color == $color(background)) %color = %color(normal)
          sockwrite -tn %x $1 $2 $3 : $+ $iif($msn.get($sockname,docolor), $+ %color) $+ %style $+ $left($6-,-1)
        }
      }

[/code]

Just look in the vincula file, there are references of it on many events.

Last edited by Buggs2008; 27/10/08 07:37 PM.
Buggs2008 #205660 27/10/08 10:40 PM
Joined: Dec 2007
Posts: 61
P
PO3 Offline OP
Babel fish
OP Offline
Babel fish
P
Joined: Dec 2007
Posts: 61
ok so the color list I got

Code:
 
#000000  Black
#2F4F4F  DarkSlateGray
#708090  SlateGrey
#778899  LightSlateGray
#696969  DimGrey
#BEBEBE  Grey
#4682B4  SteelBlue
#ADD8E6  LightBlue
#87CEFA  LightSkyBlue
#00BFFF  DeepSkyBlue
#1E90FF  DodgerBlue
#6495ED  CornflowerBlue
#4169E1  RoyalBlue
#0000FF  Blue
#0000CD  MediumBlue
#6A5ACD  SlateBlue
#483D8B  DarkSlateBlue
#000080  NavyBlue
#461b7e  Purple4
#8A2BE2  Blueviolet
#A020F0  Purple
#9370DB  MediumPurple
#C26DF5  lightPurple
#9932CC  DarkOrchid
#BA55D3  MediumOrchid
#e57ded  Orchid
#e473e7  Orchid2
#FF00FF  Magenta
#B03060  Maroon
#CD2990  Maroon3
#DDA0DD  Plum
#b93b8f  Plum2
#EE82EE  Violet
#CD6889  PaleVioletRed
#f6358a  VioleTRed1
#EE3A8C  VioletRed2
#e4317f  VioleTRed3
#D02090  VioletRed
#CD1076  DeepPink
#FF69B4  HotPink
#c25283  HotPink2
#8B0000  DeepPink2
#c48189  LightPink
#CD0000  Red3
#e55451  IndianRed2
#c24641  IndianRed3
#c22817  OrangeRed3
#e43117  OrangeRed4
#FF0000  Red
#FF6347  Tomato
#FF4500  OrangeRed
#FFA500  Orange
#FEB776  Brightorange
#fa9b17  Orange1
#e78e17  Orange2
#FF8C00  DarkOrange
#FF7F50  Coral
#c35617  DarkOrange3
#CD5C5C  DarkSalmon
#FA8072  Salmon
#FFA07A  LightSalmon
#c22217  Brown3
#980517  Brown
#fa9b3c  Tan1
#CD853F  Peru
#D2B48C  Tan
#F5DEB3  Wheat
#fddaa3  NavajoWhite
#eac995  NavajoWhite2
#c8b189  Wheat1
#DEB887  Burlywood
#F4A460  SandyBrown
#817468  AntiqueWhite
#A0522D  Sienna
#D2691E  Chocolate
#8B4513  SaddleBrown
#B8860B  DarkGoldenrod
#DAA520  goldenrod
#fbb917  Goldenrod1
#e9ab17  Goldenrod2
#c68e17  Goldenrod3
#EEDD82  LightGoldenrod
#FDE979  Yellow
#FFD700  Gold
#F0E68C  Khaki
#BDB76B  DarkKhaki2
#ada96e  Khaki2
#827839  Khaki3
#c9c299  LemonChiffon1
#827b60  LemonChiffon2
#9ACD32  YellowGreen
#32CD32  LimeGreen
#4ADB04  lightGreen
#2BAE2B  lightGreen2
#009D07  Green
#3CB371  MediumSeaGreen
#4aa02c  SpringGreen
#6B8E23  OliveDrab
#228B22  ForestGreen
#347c2c  SpringGreen2
#348017  MediumSpringGreen
#006400  DarkGreen
#556B2F  DarkOliveGreen
#417c64  Aquamarine4
#43b7ba  Aquamarine
#20B2AA  LightSeaGreen
#3ea99f  LightSeaGreen2
#8FBC8F  DarkSeaGreen
#008B8B  Darkcyan
#5F9EA0  CadetBlue
#40E0D0  Turquoise
#48D1CC  MediumTurquoise
#00CED1  DarkTurquoise


so I would need to do something like this ?

alias buzz.buzztomrc {
if ($1 == $chr(000000)) return 00


Link Copied to Clipboard