Badfatcat23

new color script

May 10th, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. #replace any coloron script with this one instead
  2.  
  3. on ^*:TEXT:*:*: {
  4. echo -trlmbf # $+(<, $chr(3), $calc(($left($regsubex($nick,/(.)/g,$asc(\1) $chr(32) $chr(43)),-3)) % 16), $nick($chan, $nick).pnick, $chr(3), >) $1-
  5. haltdef
  6. }
  7.  
  8. on *:INPUT:*: {
  9. if ( $left($1,1) != / ) {
  10. if ( $left($active,1) == $chr(35) ) {
  11. if (%color) && ($left($1,1) !isin /!) && (c !isincs $chan(#).mode) {
  12. echo -t $active < $+  $+ $nick($active,$me).color $+ $bob_pnick($active,$me) $+ > $+($chr(3),%color,$1-)
  13. }
  14. else echo -t $active < $+  $+ $nick($active,$me).color $+ $bob_pnick($active,$me) $+ > $1-
  15. }
  16. if (%color) && ($left($1,1) !isin /!) && (c !isincs $chan(#).mode) {
  17. .msg $active $+($chr(3),%color,$1-)
  18. }
  19. else .msg $active $1-
  20. haltdef
  21. }
  22. }
  23.  
  24. alias -l bob_pnick {
  25. var %upnck $2
  26. var %upnckp $nick($1,$2).pnick
  27. var %pnckt $remove(%upnckp,%upnck)
  28. return $left(%pnckt,1) $+ %upnck
  29. }
  30.  
  31. alias coloron { set -n %color $1 }
  32. alias coloroff { unset %color }
  33.  
  34. # source https://dev.adiirc.com/boards/5/topics/167; https://crrpg.com/forums/mirc-scripts/(bobbold)-bold-nicks-(ingame-nicks-and-irc-nicks)/; http://hawkee.com/snippet/5875/; all with some modification
Advertisement
Add Comment
Please, Sign In to add comment