Guest User

Untitled

a guest
May 24th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. ; Colors assigned by hashing the current nickname, rather than assigning a random one.
  2. ; Adapted from another script with an unknown author.
  3. ;
  4. ; Also copy the following variable to the Variables section (Do not copy the semicolon):
  5. ; %colors 0 2 3 4 5 6 7 9 10 11 12 13 14 15
  6.  
  7. on ^*:TEXT:*:#:{
  8. if ($cnick($nick).color == $color(normal text)) {
  9. set %colors_hash $calc($hash($1, 16) % $numtok(%colors, 32))
  10. echo -s Color: $nick set to %colors_hash
  11. .cnick $nick $gettok(%colors, %colors_hash, 32)
  12. }
  13. }
Add Comment
Please, Sign In to add comment