Jump to content

plz help me i gone crazy


TOPX

Recommended Posts

  • 2 weeks later...

on *:START: { 
  hmake jcount 100 
  if ($isfile(jcount.dat)) hload jcount jcount.dat 
} 

on *:EXIT: hsave -o jcount jcount.dat 

on !*:JOIN:#: {
  if ( $hget(jcount,$+($network,.,$chan,.,$nick)) ) {
    tokenize 32 $v1
    var %t = $calc($1 + 1)
    .msg $chan Welcome Back $nick $+ . Last time you joined $chan was on $2 $+ , $duration($calc($ctime - $3)) ago $+ . (Your total visits: %t $+ )
    hadd -m jcount $+($network,.,$chan,.,$nick) %t $asctime(mm/dd/yyyy) $ctime
  }
  else { 
    hinc -m jcount $+($network,.,$chan,.,total.count)
    .msg $chan Welcome $nick $+ ! You're visitor $chr(35) $+ $hget(jcount,$+($network,.,$chan,.,total.count)) to join $chan $+ .
    hadd -m jcount $+($network,.,$chan,.,$nick) 1 $asctime(mm/dd/yyyy) $ctime
  }
}

 

 

Lookin for some kind of script that clears the screen with /clearall after 25 joins or whatever. Anyone got?

Link to comment
Share on other sites

Guest X-Fusion

Your own screen? Or the chat screen?

on *:JOIN:#:{ 
if (%cn = 25) clearall
else inc %cn
}
alias clearall { 
  var %aclear.chan.max $chan(0) + 1
  var %aclear.chan.number 1
  while (%aclear.chan.number < %aclear.chan.max) {
    clear $chan(%aclear.chan.number)
    inc %aclear.chan.number
  }
  clear -s
}

Thats for clearing your own. It clears all screens as well, not just one. As far as clearing the chat screen, I dont have the little things for it.

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...