mIRC Homepage

Help with nicks..

Posted By: ErikDestler

Help with nicks.. - 28/04/08 10:07 PM

This is probably some obvious feature, but I cannot figure it out.

How do I change <nickname> to [nickname], (nickname) or even to «nickname»?
I'm trying to change the things around the nick. .-.;

minus the things with the A above them.. they aren't supposed to be there.. >_>
Posted By: Riamus2

Re: Help with nicks.. - 28/04/08 11:10 PM

Code:
on ^*:text:*:*: {
  echo -at $+([,$nick,]) $1-
  haltdef
}

on *:input:*: {
  if ($left($1,1) != /) {
    .msg $target $1-
    echo -at $+([,$me,]) $1-
    halt
  }
}


Just replace the characters you want around the nicks. If you're distributing the script or you changed your command character from / to something else, you may want to have the IF check for the command character in mirc.ini as well. If you didn't change it and it's just for yourself, there's no need.

Note that you may want to consider adding some other switches to the echo commands if you want things like flashing or beeping or highlighting or whatever to work. Type /help /echo to see other switches you can use to suit your needs. Also, if you color the nicks, you may want to use some color codes around the nicks so they are colored.
Posted By: ErikDestler

Re: Help with nicks.. - 29/04/08 09:49 PM

Originally Posted By: Riamus2
Code:
on ^*:text:*:*: {
  echo -at $+([,$nick,]) $1-
  haltdef
}

on *:input:*: {
  if ($left($1,1) != /) {
    .msg $target $1-
    echo -at $+([,$me,]) $1-
    halt
  }
}


Just replace the characters you want around the nicks. If you're distributing the script or you changed your command character from / to something else, you may want to have the IF check for the command character in mirc.ini as well. If you didn't change it and it's just for yourself, there's no need.

Note that you may want to consider adding some other switches to the echo commands if you want things like flashing or beeping or highlighting or whatever to work. Type /help /echo to see other switches you can use to suit your needs. Also, if you color the nicks, you may want to use some color codes around the nicks so they are colored.

Er, that worked, except messages are now displayed in other channels, so it's kind of confusing.. .-.;
Posted By: RoCk

Re: Help with nicks.. - 29/04/08 09:53 PM


Replace -at with $target

Or this...

echo -cti2 normal $target $+([,$nick,]) $1-
Posted By: Riamus2

Re: Help with nicks.. - 29/04/08 10:11 PM

Sorry, forgot about the location. As mentioned, you can use

echo -at $target $+([,$nick,]) $1-

(the same idea for the second echo)
© 2022 mIRC Discussion Forums