mIRC Homepage
Posted By: kwell Any thoughts? (Old Nick) - 23/03/08 02:47 AM
Does anyone have any idea of how to create this event?

* Joins: [NICK] (ident@1288B29.D44D44A5.C5B56A3A.IP)
* Parts: [NICK] (ident@1288B29.D44D44A5.C5B56A3A.IP)
* Joins: [NEWNICK] (ident@1288B29.D44D44A5.C5B56A3A.IP) Old Nick [NICK]
Posted By: Clorith Re: Any thoughts? (Old Nick) - 23/03/08 03:03 AM
What you would want to do, is save nicknames based on address, and when a user joins, just cross reference the address.

I recomend using hash tables for storing the stuff wink

Other the ntaht, it'll be a normal on join event with an if statement in it.


Feel free to ask more if you are uncertain as to how the actual script should look/work
Posted By: RusselB Re: Any thoughts? (Old Nick) - 23/03/08 03:52 AM
I have a script that's similar to what you seem to be asking for.
AKA by RusselB
Posted By: hixxy Re: Any thoughts? (Old Nick) - 24/03/08 01:38 PM
Code:
#ntacrosssessions off
#ntacrosssessions end

alias nicktracking {
  $iif($group(#ntacrosssessions) == on,.disable,.enable) #ntacrosssessions
  echo -ac info * Nick tracking across sessions is now $group(#ntacrosssessions)
}
alias -l hsh return $scriptdirnicktracking.hsh
on !^*:join:#:{
  if ($hget(nicktracking,$wildsite)) && ($v1 != $nick) {
    echo -bcfilrt join $chan * Joins: $+([,$nick,]) ( $+ $site $+ ) Old Nick $+($chr(3),04[,$v1,])
    haltdef
  }
  hadd -m nicktracking $wildsite $nick
}
on *:exit:{
  if ($group(#ntacrosssessions) == on) hsave -o nicktracking $qt($hsh)
}
on *:start:{
  if ($group(#ntacrosssessions) == on) && ($isfile($hsh)) {
    hmake 50 nicktracking
    hload nicktracking $qt($hsh)
  }
}


This is somewhat less complicated than RusselB's script but should do what you want.

Type /nicktracking to toggle the accross sessions option (which means it will save the tracking table when you exit mIRC and load it when you start mIRC). If this option is off then no data will be saved when you exit mIRC.
Posted By: swiffer Re: Any thoughts? (Old Nick) - 24/03/08 01:56 PM
Nice script i like it , i use i tnow to Thnx
© mIRC Discussion Forums