Advertisement
SaNCaK

mIRC Text event

Feb 15th, 2014
554
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.09 KB | None | 0 0
  1. alias nickcolors { return 3 4 5 6 7 10 12 13 }
  2. raw 352:*: { cline $r(1,15) $2 $6 }
  3. on ^:join:#: { cline $r(1,15) # $nick }
  4.  
  5. on ^*:text:*:#: {
  6.   if ($readini(nicks.ini,$nick,color) == $null) {
  7.     var %color = $gettok($nickcolors,$calc($base($left($md5($address),8),16,10) % 10), 32)
  8.   }
  9.   if ($readini(nicks.ini,$nick,color) != $null) {
  10.     var %color = $readini(nicks.ini,$nick,color)
  11.   }
  12.   echo -tlm # < $+ $chr(3) $+ %color $+ $iif($nick isreg #,$null,$left($nick(#,$nick).pnick,1)) $+ $nick $+ $chr(15) $+ > $1- | haltdef
  13. }
  14. on ^*:text:*:?: {
  15.   if ($readini(nicks.ini,$nick,color) == $null) {
  16.     var %color = $gettok($nickcolors,$calc($base($left($md5($address),8),16,10) % 10), 32)
  17.   }
  18.   if ($readini(nicks.ini,$nick,color) != $null) {
  19.     var %color = $readini(nicks.ini,$nick,color)
  20.   }
  21.   echo -tlm $nick < $+ $chr(3) $+ %color $+ $iif($nick isreg #,$null,$left($nick(#,$nick).pnick,1)) $+ $nick $+ $chr(15) $+ > $1- | haltdef
  22. }
  23. alias color {
  24.   if ($1 != $null) {
  25.     if ($2 != $null) {
  26.       writeini nicks.ini $1 color $2
  27.       echo $1 $+ 's color has been set to $2 $+ .
  28.     }
  29.   }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement