mIRC Home    About    Download    Register    News    Help

Print Thread
#38707 28/07/03 04:12 AM
Joined: Jul 2003
Posts: 14
O
Obelisk Offline OP
Pikka bird
OP Offline
Pikka bird
O
Joined: Jul 2003
Posts: 14
Is there any way to have it automatically have ur font a certain color? i use CTRL+K but it gets frustrating doing it everytime i wanna use a color. Can u guys help? confused

#38708 28/07/03 04:15 AM
Joined: Mar 2003
Posts: 272
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Mar 2003
Posts: 272
Well for exemple, if you want to always speak in red, put this in remotes:
Code:
#redtalk off
On *^&:INPUT:#:{
  if ($left($1,1) != /) {
  msg $chan [color:red]$1-[/color] 
  halt
}
}
#redtalk end
menu channel {
Red Talk
.Enable:/.enable #redtalk
.Disable:/.disable #redtalk
}



- cF
Dedicated helper for rent.
#38709 28/07/03 04:23 AM
Joined: Jul 2003
Posts: 14
O
Obelisk Offline OP
Pikka bird
OP Offline
Pikka bird
O
Joined: Jul 2003
Posts: 14
thanks but im new a t scripting and it doesnt work. is there sumthin i could be missin?

#38710 28/07/03 04:38 AM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Try this:
Code:
#redtalk on
on &*:INPUT:#:{
  if ( $left($1,1) != / ) && ( $left($1,1) != $readini($mircini,n,text,commandchar) ) {
    msg # 04 $+ $1-
    halt
  }
}
#redtalk end
menu channel {
  Red Talk
  .Enable:.enable #redtalk
  .Disable:.disable #redtalk
}

#38711 28/07/03 06:22 AM
Joined: Jul 2003
Posts: 14
O
Obelisk Offline OP
Pikka bird
OP Offline
Pikka bird
O
Joined: Jul 2003
Posts: 14
Thanks it works now.. */me bows down, lol, IM NOT WORTHY!

#38712 28/07/03 07:59 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Might i recomment this snipplet...

Code:
on 1:LOAD: {
  /echo -s Initializing Color Chatter
  /set %chat.color 4
  /echo -s Chat color initialised to 4Red Please right click in the channel or query window to change the text color.
}

on 1:UNLOAD: {
  /echo -s Clearing Variables For Chatter
  /unset %chat.color
  /echo -s Chatter Uninstalled
}

#chat.color off
on *:INPUT:#,?: {
  if ($left($1, 1) !isin $+(/,$readini($mircini,text,commandchar))) {
    /msg $active $+(,%chat.color,,$1-)
    /halt
  }
}
#chat.color end

alias -l chat.color.pop {
  var %c = White,Black,Dark Blue,Dark Green,Red,Dark Red,Violet,Orange,Yellow,Green,Cyan,Teal,Blue,Pink,Dark Gray,Gray, %n = $$1 - 1
  if ($$1 isin beginend) return -
  else return $gettok(%c, $$1, 44) : /chat.color.set %n $gettok(%c, $$1, 44)
}

alias -l chat.color.set {
  /set %chat.color $$1
  /echo -a Chat Color has been set to $+(,%chat.color,$$2)
}

menu channel,query {
  Chat Color
  .Toggle Chat Color ( $+ $iif($group(#chat.color) == on, Enabled, Disabled) $+ ): {
    var %action = $iif($group(#chat.color) == on, disable, enable)
    /. [ $+ [ %action ] ] #chat.color
    /echo -a Color chatter has been $+($upper($left(%action, 1)),$right(%action, -1),d)
  }
  .Change Color
  ..$submenu($chat.color.pop($$1))
}


I just improves apon collectives code, and made the popup handle colors as well as its in an easy to manage dropdown >:D It also will work for queries and channels, not just channels laugh


-KingTomato

Link Copied to Clipboard