Welcome, Guest. Please login or register.
Did you miss your activation email?
February 08, 2012, 05:37:17 am

Login with username, password and session length
Welcome to the lostmoment forums. If you are new, Please read trough all the announcements and also every README FIRST post on sections.
Follow the InterGlobal forum ethics (Basic rules that most forums have)
625 Posts in 87 Topics by 85 Members
Latest Member: SecurityAVZ
Search:     Advanced search
+  Lostmoment
|-+  Lostmoment Services
| |-+  Lostmoment IRC Network
| | |-+  [script] Now You Decide If You Want To Have Color
« previous next »
Pages: [1] Go Down Print
Author Topic: [script] Now You Decide If You Want To Have Color  (Read 3787 times)
Da-Huntha
Janitor
Administrator
Rank 2/4
*
Offline Offline

Posts: 218


Moo Moo Machine


View Profile WWW
[script] Now You Decide If You Want To Have Color
« on: June 23, 2004, 11:11:23 am »

So, all OPs are away on a channel and you want to turn those damn annoying colors off because some dude is using them all them time?

Or perhaps because he talks in a color that matches your background color and you dont want another color or you are just to lazy to change it?

Here is the sollution!!!

Code:
on ^*:text:*:#:{
  if (%colorson = false) {
    /echo $chan $timestamp < $+ $nick $+ > $strip($1-)
    haltdef
  }
}

alias /colorson {
  /set %colorson true
  /echo $chan Colors are turned on
}
alias /colorsoff {
  /set %colorson false
  /echo $chan Colors are turned off
}

Do /colorson to turn thy damn colors on and /colorsoff to turn em off

You might wanna tweak it....
if the channel is +S you still cannot see colors altrough you turned em on...

this script has effect on ALL channels you are on...
soon il make it so you can turn off certain channels....
« Last Edit: June 23, 2004, 11:12:00 am by Da-Huntha » Logged

This signature is tasty.
cpprograms
Global Moderator
Rank 0/4
*****
Offline Offline

Posts: 18



View Profile
[script] Now You Decide If You Want To Have Color
« Reply #1 on: June 23, 2004, 05:49:29 pm »

true, but what if the person doesn't usually have timestamps? /me has a solution.

Code:
on ^*:text:*:#:{
 if (%colorson == false) {
   /echo -t $active < $+ $nick $+ > $strip($1-)
   haltdef
 }
}

alias /colorson {
 /set %colorson true
 /echo $active Colors are turned on
}
alias /colorsoff {
 /set %colorson false
 /echo $active Colors are turned off
}

//echo -t adds a timestamp if timestamping is on. also, I changed $chan to $active, since I think $active also works in pms, and $chan isn't always the active chan (usually is for this type of thing tho, lol) The last thing I did was add ==, since it is the thing that actually compares them, lol.

also, you want one for on /me statements too? put this in also
Code:
on ^*:action:*:#:{
 if (%colorson == false) {
   /echo -t $active 6* $nick $strip($1-)
   haltdef
 }
}
« Last Edit: June 23, 2004, 06:37:50 pm by cpprograms » Logged
Kesha
Global Moderator
Rank 0/4
*****
Offline Offline

Posts: 17


View Profile WWW
[script] Now You Decide If You Want To Have Color
« Reply #2 on: June 23, 2004, 09:50:40 pm »

Actually, that would send messages from all chans directly to you...  Shocked  
But doesn't mIRC have a turn off colors and stuff option internally?

well here's one that comes with action, notices and ctcps =D
Code:
on ^*:text:*:#:{
  if (%colorson == false) {
    echo -t $chan < $+ $nick $+ > $strip($1-)
    haltdef
  }
}
on ^*:text:*:?:{
  if (%colorson == false) {
    echo -t $nick < $+ $nick $+ > $strip($1-)
    haltdef
  }
}
on ^*:action:*:#:{
  if (%colorson == false) {
    echo -t $chan * $nick $strip($1-)
    haltdef
  }
}
on ^*:action:*:?:{
  if (%colorson == false) {
    echo -t $nick * $nick $strip($1-)
    haltdef
  }
}
on ^*:notice:*:#:{
  if (%colorson == false) {
    echo -t $chan - $+ $nick $+ - $strip($1-)
    haltdef
  }
}
on ^*:notice:*:?:{
  if (%colorson == false) {
    echo -ts - $+ $nick $+ - $strip($1-)
    haltdef
  }
}
ctcp ^*:*:*:#:{
  if (%colorson == false) {
    echo -t $chan [ $+ $nick $strip($1-) $+ ] $strip($2-)
    haltdef
  }
}
ctcp ^*:*:*:?:{
  if (%colorson == false) {
    echo -ts [ $+ $nick $strip($1-) $+ ] $strip($2-)
    haltdef
  }
}
alias colors {
  if (%colorson == false) {
    set %colorson true
    echo $active * Colors are turned on
  }
  if (%colorson == true) {
    set %colorson false
    echo $active * Colors are turned off
  }
}
Logged
Da-Huntha
Janitor
Administrator
Rank 2/4
*
Offline Offline

Posts: 218


Moo Moo Machine


View Profile WWW
[script] Now You Decide If You Want To Have Color
« Reply #3 on: June 23, 2004, 09:54:36 pm »

schweet yes, but CPP your script would only annoy since it sends everything directly to you.. and i know the script should get some improvement but this was right for me XD
in dont wanna spend my time on this instead Wink

feel free to finish or alter it in anyway and putting it in this topic..
Logged

This signature is tasty.
Catclone
I like turtles
Administrator
Rank 2/4
*
Offline Offline

Posts: 173


View Profile
[script] Now You Decide If You Want To Have Color
« Reply #4 on: October 27, 2004, 03:17:20 pm »

Quote
schweet yes, but CPP your script would only annoy since it sends everything directly to you.. and i know the script should get some improvement but this was right for me XD
in dont wanna spend my time on this instead Wink

feel free to finish or alter it in anyway and putting it in this topic..
They already did Tongue
Logged
Da-Huntha
Janitor
Administrator
Rank 2/4
*
Offline Offline

Posts: 218


Moo Moo Machine


View Profile WWW
[script] Now You Decide If You Want To Have Color
« Reply #5 on: January 31, 2005, 12:45:52 am »

Quote
Quote
schweet yes, but CPP your script would only annoy since it sends everything directly to you.. and i know the script should get some improvement but this was right for me XD
in dont wanna spend my time on this instead Wink

feel free to finish or alter it in anyway and putting it in this topic..
They already did Tongue
They must have edited it then secretly Tongue
Logged

This signature is tasty.
Catclone
I like turtles
Administrator
Rank 2/4
*
Offline Offline

Posts: 173


View Profile
Re: [script] Now You Decide If You Want To Have Color
« Reply #6 on: April 15, 2005, 09:46:22 am »

Suuuuuuuuuuuuuuuuuuuuuurrrrrrreeeeeeeee they did
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Valid XHTML 1.0! Valid CSS!
Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Design by 7dana.com