mIRC Homepage
Posted By: ameregirl Adjusting nick tracker display - 20/08/18 12:21 AM
How do I adjust the script to not display in my active window? I am having a heck of a time with it. I don't want it showing when I have a query window open. I just want it to show in status if possible or in the room where the person enters.

Any help is greatly appreciated!

Here is the code I have:

ON *:START: {
hmake trackusers 10
if ($isfile(trackusers.dat)) {
hload trackusers trackusers.dat
}
}
on *:JOIN:#: {
if ($hget(trackusers,$address($nick,3))) {
var %n = $ifmatch
if ($istok(%n,$nick,32)) { var %d = $deltok(%n,$findtok(%n,$nick,1,32),32) }
else { var %d = %n }
if (!%d) { return }
echo -a 8,12 * $nick joined $chan before with the nickname $+ $iif($numtok(%d,32) > 1,s:,:) %d

;this is the original line but changed it with the one above to be larger font with color
; echo $colour(info) -ti2 $chan * $nick has also used the nickname $+ $iif($numtok(%d,32) > 1,s:,:) %d

if (!$istok(%n,$nick,32)) {
hadd trackusers $address($nick,3) %n $nick
}
}
else {
hadd trackusers $address($nick,3) $nick
}
}
on *:NICK: {
if ($hget(trackusers,$address($newnick,3))) {
var %n = $ifmatch
if (!$istok(%n,$newnick,32)) {
hadd trackusers $address($newnick,3) %n $newnick
}
}
else {
hadd trackusers $address($nick,3) $newnick
}
}
menu {
Track Users
.View Other Nicknames:{
if (!$address($$1,3)) { echo $colour(info) -ti2 # * IAL not updated for $$1 $+ , performing userhost lookup | userhost $$1 | return }
if ($hget(trackusers,$address($$1,3))) {
var %n = $ifmatch
if ($istok(%n,$$1,32)) { var %d = $deltok(%n,$findtok(%n,$$1,1,32),32) }
else { var %d = %n }
if (!%d) { goto notknown }
echo -a 4 * $nick joined $chan before with the nickname $+ $iif($numtok(%d,32) > 1,s:,:) %d

;this is the original line but changed it with the one above to be larger font with color
; echo $colour(info) -ti2 # * $$1 has also used the nickname $+ $iif($numtok(%d,32) > 1,s:,:) %d
}
else {
:notknown
echo $colour(info) -ti2 # * $$1 has not been known by any other nickname
}
}
.Reset:hdel trackusers $address($$1,3)
}
ON *:EXIT: {
if ($hget(trackusers)) { hsave -o trackusers trackusers.dat }
}
Posted By: KindOne Re: Adjusting nick tracker display - 20/08/18 12:57 AM
You can replace the "echo -a" with "echo -s" so it shows in the status window.

-a is for active window
-s is for status window

https://en.wikichip.org/wiki/mirc/commands/echo
© mIRC Discussion Forums