Top

Simple Seen System


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  8.6 (of 12 scores)
Date Added  Oct 02, 2003
Last Updated  Aug 29, 2005

Introduction

Keeps track of the last time you saw a user.

Grab the Code

; Paste into remotes.
; After you have pasted and saved either restart mIRC or type
; '/hmake seen 100' into your status window.
;
; Usage: /seen nick
; other users can type: !seen nick
;
; Tye @ DALnet/UnderNet (tye at mirc.net)
ON *:START: {
  hmake seen 100
  if ($isfile(seen.dat)) { hload seen seen.dat }
}
ON *:EXIT: {
  if ($hget(seen)) { hsave -o seen seen.dat }
}
ON *:TEXT:*:#: {
  hadd seen $nick text $chan $ctime $1-
  if ($1 = !seen) {
    if ($2 ison $chan) { msg $chan $2 is right here. }
    else { msg $chan $nick $+ : $seenparse($2) }
  }
}
alias seen {
  echo $colour(info) -a *** $seenparse($1)
}
ON *:ACTION:*:#: {
  hadd seen $nick act $chan $ctime $1-
}
ON *:QUIT: {
  hadd seen $nick quit $ctime $1-
}
on *:PART:#: {
  hadd seen $nick part $chan $ctime $1-
}
on *:JOIN:#: {
  hadd seen $nick join $chan $ctime $1-
}
ON *:NICK: {
  hadd seen $nick nick $newnick $ctime
}
ON *:KICK:#: {
  hadd seen $nick kicking $chan $ctime $knick $1-
  hadd seen $knick kick $chan $ctime $nick $1-
}
alias -l seenparse {
  var %x = $hget(seen,$1)
  if (!%x) { return I have not seen $1 }
  var %n = $1
  tokenize 32 %x
  if ($1 = text) { return I last saw %n in $2 $duration($calc($ctime - $3)) ago saying $4- }
  if ($1 = act) { return I last saw %n in $2 $duration($calc($ctime - $3)) ago acting $4- }
  if ($1 = quit) { return I last saw %n quiting $duration($calc($ctime - $2)) ago $iif($3,with the message $3-) }
  if ($1 = part) { return I last saw %n leaving $2 $duration($calc($ctime - $3)) ago with the message $4- }
  if ($1 = join) { return I last saw %n joining $2 $duration($calc($ctime - $3)) ago. }
  if ($1 = nick) { return I last saw %n changing their nickname to $2 $duration($calc($ctime - $3)) ago. }
  if ($1 = kicking) { return I last saw %n kicking $4 from $2 $duration($calc($ctime - $3)) ago with the reason $5- }
  if ($1 = kick) { return I last saw %n being kicked from $2 by $4 $duration($calc($ctime - $3)) with the reason $5- }
}

Comments

  (16)  RSS
VVhispers
Comments: 5
 
mIRC Snippet:  Simple Seen System
Posted on Jan 9, 2004 12:25 am
Hey, this code works and greatly, if not inaccurately...It says people joined, parted, quit, etc 35 years ago (1775 weeks)...
VVhispers
Comments: 5
 
mIRC Snippet:  Simple Seen System
Posted on Jan 9, 2004 12:36 am
n/m, I fixed it...LoL....Don't ever edit a script thinking you know how...I tried to make it to where it won't display channel names...I succeeded but I messed up the time somehow...Works now, not tye's fault...twas my own
X-FILE
Comments: 98
 
mIRC Snippet:  Simple Seen System
Posted on Jan 9, 2004 3:48 pm
it works fine , nice to see a seen system using hash tables . Good Job tye
squid
Comments: 1
 
mIRC Snippet:  Simple Seen System
Posted on Sep 3, 2004 6:55 am
but mine didn't work, the bot replied nothing, what happen with the bot or the script ?
xwindows
Comments: 5
 
mIRC Snippet:  Simple Seen System
Posted on Jan 27, 2005 8:33 am
The Code is Nice.. enks
ttteesstteerr
Comments: 5
 
mIRC Snippet:  Simple Seen System
Posted on Sep 15, 2005 5:29 pm
very nice code but dont work with the host ... !seen blabla.bla.bla
anyway is very usefull!!
err2
Comments: 38
 
mIRC Snippet:  Simple Seen System
Posted on Nov 9, 2005 2:22 pm
finally a seen script that actually wrks fer me. gewd jobness
2slogan
Comments: 1
 
mIRC Snippet:  Simple Seen System
Posted on May 19, 2006 10:34 am
I modified mines a lil so that it wouldnt say "*NAME*, is right here" when you try and search for yourself.

ON *:TEXT:*:#: {
hadd seen $nick text $chan $ctime $1-
if ($1 = !seen) { if ($2 == $nick) { msg $chan $nick $+ , Lost Yourself? }
elseif ($2 ison $chan) { msg $chan $2 $+ , is right here. }
else { msg $chan $nick $+ : $seenparse($2) }
}
}

eddygordo
Comments: 2
 
mIRC Snippet:  Simple Seen System
Posted on Jan 27, 2007 8:44 pm
doesnt work for me =\
Blank
Comments: 6
 
mIRC Snippet:  Simple Seen System
Posted on Sep 3, 2007 6:47 am
just a suggestion, but i added a timer that saved the hash db every 30 seconds, in case my computer crashed or lost power.
Mitchell
Comments: 23
 
mIRC Snippet:  Simple Seen System
Posted on Apr 20, 2008 8:53 am
awesome !seen script, works amazingly. great job :)
Eugenio
Comments: 1,193
 
mIRC Snippet:  Simple Seen System
Posted on May 27, 2008 12:12 am
bloody good script
/me rates 9/10
Xpl0reR
Comments: 223
 
mIRC Snippet:  Simple Seen System
Posted on Nov 1, 2008 10:26 pm
nice script. i use it, and i vote 9/10

it would be nice to be able to use wildcards and *!*@hosts.com

that would deserve a big 10

PATX
Comments: 389
 
mIRC Snippet:  Simple Seen System
Posted on Mar 14, 2009 7:54 pm
great script!

i will not say what i voted. however i will say that the average score went from 8.5 to 8.6
Eugenio
Comments: 1,193
 
mIRC Snippet:  Simple Seen System
Posted on Mar 15, 2009 9:09 am
smh
PATX
Comments: 389
 
mIRC Snippet:  Simple Seen System
Posted on Mar 15, 2009 11:51 am
lol

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  
Bottom