mIRC Home    About    Download    Register    News    Help

Print Thread
#198452 28/04/08 10:07 PM
Joined: Feb 2007
Posts: 10
E
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.. >_>

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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
Joined: Feb 2007
Posts: 10
E
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.. .-.;

Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

Replace -at with $target

Or this...

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

Last edited by RoCk; 29/04/08 10:02 PM.
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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

Link Copied to Clipboard