mIRC Homepage
Posted By: bojak71730 please help me - 13/12/07 10:48 PM
ok this is what i want the script to do.
i want it to Permanently set my colors to 9,1 for a certain room and for a certain network
Posted By: Riamus2 Re: please help me - 13/12/07 11:50 PM
Code:
on *:input:#yourchan: {
  if ($network == some_network) {
    msg $chan 09,01 $+ $1-
    halt
  }
}


Replace the network name and the channel name.
Posted By: bojak71730 Re: please help me - 14/12/07 12:24 AM
Code:
on *:input:#PG-21: {
  if ($network == irc.torncity.com) {
    msg $chan 09,01 $+ $1-
    halt
  }
}
 


this is not working
Posted By: bojak71730 Re: please help me - 14/12/07 12:29 AM
i fixed it!
Posted By: bojak71730 Re: please help me - 14/12/07 12:32 AM
but now when i do /join #chan it types it out instead of joining the room
Posted By: Bekar Re: please help me - 14/12/07 12:42 AM
Code:
on *:input:#PG-21: {
  if (!$ctrlenter && $left($1-,1) != $readini($mircini,text,commandchar)) {
    if ($network == irc.torncity.com) {
      say 09,01 $+ $1-
      halt
    }
  }
}
Posted By: bojak71730 Re: please help me - 14/12/07 12:44 AM
its giving me this error /if: invalid format (line 2, remote.ini)
and my colors not working
Posted By: Bekar Re: please help me - 14/12/07 01:19 AM
It was missing a ), that's been fixed.
Posted By: bojak71730 Re: please help me - 14/12/07 01:23 AM
Code:
on *:input:#PG-21: {

  if (!$ctrlenter && $left($1-,1) != $readini($mircini,text,commandchar)) {
    if ($network == irc.torncity.com) {
      msg $chan 9,1 $+ $1-
      halt
    }
  }
}
 


ok i fixed it but another problem now the color doesnt work
Posted By: Riamus2 Re: please help me - 14/12/07 11:19 AM
$network is never == irc.network.net... it should only be the network name. To see what it should be, just type //echo -a $network while on that network. Sorry for forgeting about /commands when writing that up. I don't do a lot with input halting and it slipped my mind.
Posted By: bojak71730 Re: please help me - 16/12/07 09:35 AM
Code:
 on *:input:#PG-21: {

  if (!$ctrlenter && $left($1-,1) != $readini($mircini,text,commandchar)) {
    if ($network == irc.torncity.com) {
     //echo -a $network
      msg $chan  9,1 $+ $1-
      halt
    }
  }
}


so like this?
Posted By: bojak71730 Re: please help me - 16/12/07 09:37 AM
that did not work idk if its not in the right place or what
Posted By: bojak71730 Re: please help me - 16/12/07 10:25 AM
it just gives the text color codes 9,1 plus whatever i type for regular text example: 9,1text
Posted By: bojak71730 Re: please help me - 16/12/07 11:26 AM
i just read your post again and you didnt mean put that into the script you meant just type that into mirc lol... i still run into the problem with colors not working for it though
Posted By: Riamus2 Re: please help me - 16/12/07 11:28 AM
Yes, sorry. smile

I'm not sure why the colors aren't working, however I purposely gave you 09,01 instead of 9,1 for a reason. If you put 9,1 next to a line of text starting with a number, you will change your background color if you don't use at least 01. It's always best to use 2-digit color codes.
Posted By: hixxy Re: please help me - 16/12/07 11:31 AM
You might have to go back into the script and add the colour code yourself then. Some browsers have problems copying/pasting colour codes.
Posted By: bojak71730 Re: please help me - 16/12/07 11:49 AM
thanks hixxy that was the problem
© mIRC Discussion Forums