Jump to content

Nick Change Dedector Problem


Rashed

Recommended Posts

This code not working ,, whats the problem?!



#nicktracker on

on *:JOIN:#: exoclonecheck $nick $address $chan

raw knock:*: exoclonecheck $nick $address $1


alias exoclonecheck {

if ($1 != $me) {

;If you want it to store more or less nicknames,

;change this number below to the number you want to store.

var %n 4


var %x $read($scriptdir $+ exoclonecheck.txt,sn,$2)

if (%x == $null) write $+(",$scriptdir,exoclonecheck.txt") $2 $1

else {

%x = $addtok(%x,$1,32)

if ($numtok(%x,32) > %n) %x = $deltok(%x,1,32)

write -l $+ $readn $+(",$scriptdir,exoclonecheck.txt") $2 %x

}

if ($numtok(%x,32) > 1) msg # S \rTahoma;0 $5 $+ ( $+ $ecc.decode $1 $+ ) Last $+ $numtok(%x,32) Nicks Used :-( $+ $replace(%x,$chr(32),$chr(44) $+ $chr(32))) $+ )-

elseif ((%x != $1) && (%x)) msg # S \rTahoma;0 $ecc.decode($1 $+ 's last name: %x)

}

}


alias ecc.decode {

if ($msn.vver) return $Buzz.ifdecode($1-)

else return $1-

}

#nicktracker end


Link to comment
Share on other sites

it's right at the top of the code

menu channel {
  Nick History
  .$iif($istok(%nickhistorychannels,$chan,44),$style(1)) Log $chan : {
    $iif($istok(%nickhistorychannels,$chan,44),set %nickhistorychannels $remtok(%nickhistorychannels,$chan,1,44),set %nickhistorychannels $addtok(%nickhistorychannels,$chan,44))
  }
  .-
  .Log Room : lognicks $chan
}

so if it's not working there must be some issue in your script preventing it

Link to comment
Share on other sites

ok it works now

if i want it to be a message in chat not eco that would be

 

echo $chan [Nick Change] ---------------------------------------------------------------------------------------
msg $chan $+ $nick has made a nick change. Previous $iif($gettok($gettok($read(%r,$readn),2,32),2,44),nicks have been,nick was) $sorttok($gettok($read(%r,$readn),2,32),44,c)
echo $chan -----------------------------------------------------------------------------------------------------
}
Right?
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...