Top

Simple Seen Script


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  0.0 (of 0 scores)
Date Added  Aug 06, 2009
Last Updated  Aug 06, 2009
Tags  script  seen  tssguy123 

Introduction

Simple seen script by me.. Uses ini files. Currently a person has to leave/join the channel for the script to recognize them. I'm sure I could figure a way to fix this but I don't want to at the moment.

Grab the Code

on *:JOIN:#:{
  writeini online.ini Online $nick true
}
 
on *:PART:#:{
  writeini online.ini Online $nick false
  writeini lastonline.ini Time $nick $time(h:nn TT)
}
 
on *:QUIT:{
  writeini online.ini Online $nick false
  writeini lastonline.ini Time $nick $time(h:nn TT)
}
 
on *:TEXT:!seen*:#:{
  if ($readini(online.ini,Online, $2 ) == true) {
    msg $chan Oh no! I think you're going blind! $2 is already online.
  } 
  else {
    if ($readini(online.ini,Online, $2 ) == false) {
      msg $chan I last saw $2 online at $readini(lastonline.ini, Time, $2)
    }
  }
} 

Comments

  (11)  RSS
Cazz
Comments: 40
 
mIRC Snippet:  Simple Seen Script
Posted on Aug 7, 2009 3:44 pm
You could use:
if ($nick ison $chan) {
To see if they are currently in the channel.

You might also want to put a spam protection script into that somehow. Possibly using timers and vars.

AND you may even want to have an enable/disable command.
Cazz
Comments: 40
 
mIRC Snippet:  Simple Seen Script
Posted on Aug 7, 2009 3:47 pm
You may want to use
if ($nick ison $chan) {
To see if the user is currently on the channel.
Cazz
Comments: 40
 
mIRC Snippet:  Simple Seen Script
Posted on Aug 7, 2009 3:48 pm
You also add a spam protection using timers and vars, or some other techniquie.
AND add an enable/disable command for OP's.

if ($nick isop $chan) || if ($nick ishop $chan) {

That might work.
Jethro_
Comments: 437
 
mIRC Snippet:  Simple Seen Script
Posted on Aug 7, 2009 4:05 pm
Cazz, this is the correct format:
Code:
if ($nick isop $chan || $nick ishop $chan) {
or
Code:
if ($nick isop $chan) || ($nick ishop $chan) {
Halit
Comments: 9
 
mIRC Snippet:  Simple Seen Script
Posted on Sep 3, 2009 10:11 pm
GlobalAnomaly
Comments: 77
 
mIRC Snippet:  Simple Seen Script
Posted on Sep 4, 2009 12:16 am
God Cazz, triple posting with error code and code you personally like? :P
Cazz
Comments: 40
 
mIRC Snippet:  Simple Seen Script
Posted on Sep 5, 2009 8:53 am
What?
Ghost-writer
Comments: 257
 
mIRC Snippet:  Simple Seen Script
Posted on Sep 19, 2009 3:13 pm
lots of things gone wrong, i change my nick. were did i go?
Noutrious
Comments: 365
 
mIRC Snippet:  Simple Seen Script
Posted on Sep 20, 2009 4:22 am
Code:
on *:JOIN:#:writeini -n seen.ini seen $nick $ctime
on *:PART:#:writeini -n seen.ini seen $nick $ctime
on *:QUIT:writeini -n seen.ini seen $nick $ctime
on *:TEXT:*:*:{
writeini -n seen.ini seen $nick $ctime
if ($1 = !seen) $iif($chan,notice,msg) $nick $iif($2,$iif($readini(seen.ini,seen,$2),Seen $2 before $duration($calc($ctime - $v1),2) $+ .,Sorry $+ $chr(44) haven't seen $2 $+ .),Please specify user to check for.)
}


Tadaaaa!
Ghost-writer
Comments: 257
 
mIRC Snippet:  Simple Seen Script
Posted on Sep 21, 2009 6:43 am
2 $iif statements in 1, thats a first. $iif(bla,$iif( <-- god damn intresting. lol :P. nice job but i still dont like it :D
Jethro_
Comments: 437
 
mIRC Snippet:  Simple Seen Script
Posted on Sep 21, 2009 12:12 pm
I reckon using hash tables is better than using ini for a seen script like this, which isn't hard to do the converting.

@Ghost-Writer, you can use more than one $iif followed by another $iif...just to make sure the comparisons and closing bracket are properly placed.

Commenting Options

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

  
Bottom