mIRC Home    About    Download    Register    News    Help

Print Thread
Help with nicks.. #198452 28/04/08 10:07 PM
Joined: Feb 2007
Posts: 10
E
ErikDestler Offline OP
Pikka bird
OP Offline
Pikka bird
E
Joined: Feb 2007
Posts: 10
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.. >_>

Re: Help with nicks.. [Re: ErikDestler] #198455 28/04/08 11:10 PM
Joined: Oct 2004
Posts: 8,327
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,327
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.


Invision Support
#Invision on irc.irchighway.net
Re: Help with nicks.. [Re: Riamus2] #198507 29/04/08 09:49 PM
Joined: Feb 2007
Posts: 10
E
ErikDestler Offline OP
Pikka bird
OP Offline
Pikka bird
E
Joined: Feb 2007
Posts: 10
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.. .-.;

Re: Help with nicks.. [Re: ErikDestler] #198508 29/04/08 09:53 PM
Joined: Dec 2002
Posts: 2,010
R
RoCk Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,010

Replace -at with $target

Or this...

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

Last edited by RoCk; 29/04/08 10:02 PM.
Re: Help with nicks.. [Re: ErikDestler] #198509 29/04/08 10:11 PM
Joined: Oct 2004
Posts: 8,327
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,327
Sorry, forgot about the location. As mentioned, you can use

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

(the same idea for the second echo)


Invision Support
#Invision on irc.irchighway.net