mIRC Home    About    Download    Register    News    Help

Print Thread
#196789 23/03/08 02:47 AM
Joined: Sep 2007
Posts: 109
K
kwell Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Sep 2007
Posts: 109
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]

Joined: Nov 2007
Posts: 8
C
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
C
Joined: Nov 2007
Posts: 8
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

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
I have a script that's similar to what you seem to be asking for.
AKA by RusselB

Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
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.

Joined: Sep 2007
Posts: 2
S
Bowl of petunias
Offline
Bowl of petunias
S
Joined: Sep 2007
Posts: 2
Nice script i like it , i use i tnow to Thnx


IceIRC.hopto.org -j #lobby<---- Join and make me happy

Link Copied to Clipboard