KiLLErMaN99 Tech Co-Leader
Posts : 685 Points : 6166 Reputation : -11 Join date : 2010-07-03 Location : Here
| Subject: User Colors Sat Jul 03, 2010 11:48 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 } }
| |
|