mIRC Home    About    Download    Register    News    Help

Topic Options
#198452 - 28/04/08 11:07 PM Help with nicks..
ErikDestler Offline
Pikka bird

Registered: 16/02/07
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.. >_>

Top
#198455 - 29/04/08 12:10 AM Re: Help with nicks.. [Re: ErikDestler]
Riamus2 Offline
Planetary brain

Registered: 13/10/04
Posts: 8327
Loc: MA, USA
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

Top
#198507 - 29/04/08 10:49 PM Re: Help with nicks.. [Re: Riamus2]
ErikDestler Offline
Pikka bird

Registered: 16/02/07
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.. .-.;

Top
#198508 - 29/04/08 10:53 PM Re: Help with nicks.. [Re: ErikDestler]
RoCk Offline
Hoopy frood

Registered: 16/12/02
Posts: 2009

Replace -at with $target

Or this...

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


Edited by RoCk (29/04/08 11:02 PM)

Top
#198509 - 29/04/08 11:11 PM Re: Help with nicks.. [Re: ErikDestler]
Riamus2 Offline
Planetary brain

Registered: 13/10/04
Posts: 8327
Loc: MA, USA
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

Top