Mitsukaru Main Administrator
Admin '10 : GFX Crew '10 : Recruiter '10 : Posts : 1328 HWPoints : 1548 Join date : 2008-06-14
| Subject: User Colors(mIRC) Mon Jul 12, 2010 3:27 am | |
| I was looking through my script files and found this interesting thing. What it does is if you have a name of somebody in your message and send it, it will change the color of their name based on their status. Try it out. Just Checked: I'm pretty sure this is FirstMate's so I'm not taking credit for it. - Code:
-
on *:INPUT:#: { if ($left($1,1) != / && !$ctrlenter) { var %x = $1-, %y = $nick($chan,0) while (%y > 0) { var %p = $nick($chan,%y) if ($istok(%x,%p,32)) { var %t = $left($remove($nick($chan,%y).pnick,%y),1) ;%x = $reptok(%x,%p,$iif(%t,$+($replace(%t,6,4,&,3,@,13,%,12,+,7),%p),$+(3,%p)),0,32) %x = $reptok(%x,%p,$iif(%p isop $chan,04 $+ %p $+ ,$iif(%p ishop $chan,03 $+ %p $+ ,$iif(%p isvoice $chan,13 $+ %p $+ ,$iif(%p isreg $chan,7 $+ %p $+ ,%p)))),0,32) } dec %y } msg $chan $replace(%x,\|,$chr(124)) halt } }
| |
|