mIRC Home    About    Download    Register    News    Help

Print Thread
#252763 09/05/15 08:19 PM
Joined: May 2015
Posts: 2
A
alexwj Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
A
Joined: May 2015
Posts: 2
hello, i need help regarding this:



Basically it's nick!ident.

want the script to retrieve the nick & ident of the user upon their join. and echo it in different colors.

so far what I got is:

%nickuser = $address($nick,5)
%nickuser2 = $gettok(%nickuser,1,64)

.echo %nickuser2

This gives the whole thing same color.

Thanks in advance for anyone who helps smile

alexwj #252771 10/05/15 10:34 AM
Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Try use this code:

Code:
ON ^!*:JOIN:#: {
  var %host = $gettok($address($nick,5),2-,33)
  var %id = $gettok(%host,1,64)
  echo $chan $chr(3) $+ $color(join) $+ $timestamp * Joins: $nick ( $+ $chr(3) $+ 9 $+ %id $+ $chr(3) $+ $color(join) $+ @ $+ $chr(3) $+ 4 $+ $gettok(%host,2,64) $+ $chr(3) $+ $color(join) $+ )
  haltdef
}


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
westor #252774 10/05/15 06:15 PM
Joined: May 2015
Posts: 2
A
alexwj Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
A
Joined: May 2015
Posts: 2
thank you! that actually was a better idea than mine smile Much appreciated ! laugh


Link Copied to Clipboard