mIRC Home    About    Download    Register    News    Help

Print Thread
#188680 28/10/07 01:57 AM
Joined: Oct 2007
Posts: 214
B
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Oct 2007
Posts: 214
Hello,

I am trying to create a Helpdesk script that when I give a +v to a user, that it will look for their name in the nicklist and color their nickname in red. When I have set mode -v'd them it will then turn their nick color back to the original color black. I am aware of nicklists that use this feature for multiple nicks but I would just like to color in nicely, just one, I would like to know if this is possible?

Thanks a bunch.

Cheers,

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
/help /abook

or /help Address Book

All you need is in there.

Joined: Oct 2007
Posts: 214
B
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Oct 2007
Posts: 214
I should have been more precise, I know mIRC's address book does a good job of doing this, but what id like to do is just highlight only ONE nick from the nicklist and that is the nick that I am helping at the moment, when I -v them I will then turn their nick color back,

so the problem with the address book, I do not wish to color all nicks with a +v and only on my trigger do wish to turn only one nick to a color.


So what I am looking for is an $alias(nickname,chan) where it will find the nick in the nicklist, from the active chan and turn it to the color red.

Thanks a bunch!

Last edited by Buggs2008; 28/10/07 05:50 PM.
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
maybe a while loop, then match the user status on the nick ?

after that cline the nick in the userlist.
if ($nick isvo $chan) { cline -l 5 $chan $nick }

maybe replace $nick with a var, same goes for $chan, easyer when you use a while loop "i guess".


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Use /cline.

Let's say your command to help the user is: !help nick

Code:
on *:input:#: {
  if ($1 == !help) {
    mode $chan +v $2
    cline 4 $nick($chan,$2)
  }
  elseif ($1 == !done) {
    mode $chan -v $2
    cline -r 4 $nick($chan,$2)
  }
}


Invision Support
#Invision on irc.irchighway.net
Joined: Oct 2007
Posts: 214
B
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Oct 2007
Posts: 214
Thank you, I initiated your command using the nicklist , thanks a bunch =)


Link Copied to Clipboard