Advertisement
FichteFoll

mIRC - Colormanipulation for mr.rattlz' epvp Shoutbox

Sep 6th, 2011
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.63 KB | None | 0 0
  1. ; manipulate text messages
  2. ON ^*:TEXT:*:#shoutbox: {
  3.   ; parse text
  4.   if ($regex($1-,/^\s*\x03(\d{1,2})(?:,\d{1,2})?(.*?)\s*$/)) {
  5.     var %col = $regml(1), %msg = $regml(2)
  6.     ; replace yellow with orange
  7.     if (%col == 8) %col = 7
  8.     ; display text
  9.     echo # [[ $+ $time $+ ]] < $+ $chr(3) $+ %col $+ $nick($chan,$nick).pnick $+ $chr(3) $+ > %msg
  10.     halt
  11.   }
  12.   else if ($regex($1-,/^\s*(.*?)\s*$/)) {
  13.     ; display text without color and strip spaces
  14.     echo # [[ $+ $time $+ ]] < $+ $nick($chan,$nick).pnick $+ > $regml(1)
  15.     halt
  16.   }
  17.   ; otherwise do nothing
  18. }
  19.  
  20. ; prevent join msgs
  21. on ^1:JOIN:#shoutbox: halt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement