mIRC Home    About    Download    Register    News    Help

Print Thread
#162219 15/10/06 08:03 PM
M
McOwnage
McOwnage
M
I have donloaeded and tried 20+ scripts that have seen command i was wondering if maybe someone has seen one that is what i am looking for I want a seen script that will accept partial nicks example
!seen Mc
script returns (say there are these userers)
McOwnage was last seen parting #channel on oct 15 2006 at 1:51pm
Mcnugget was last seen parting #channel on oct 12 2006 at 2:23 pm
Mcblast was last seen parting #channel on oct 1 2006 at 1:53 am

anyone seen a script like this i would also like to configure the responces/erroes Thanks

#162220 15/10/06 09:30 PM
Joined: Aug 2004
Posts: 7,168
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,168
Give this a try. I know the basic script works, but in regards to the configuration you'll have to modify the script yourself, or let me know how you want it modified.
Code:
 on *:quit:{
  var %a = 1, %b = $comchan($nick,0)
  while %a <= %b {
    .hadd -m Seen $+($nick,.,$chan) $ctime
    inc %a
  }
}
on *:kick:#:{
  .hadd -m Seen $+($knick,.,$chan) $ctime
}
on *:part:#:{
  .hadd -m Seen $+($nick,.,$chan) $ctime
}
on *:text:!seen*:#:{
  if !$2 {
    describe # has seen $hfind(Seen,$+(*,.,$chan),0,w) people
  }
  else {
    var %b = $hfind(Seen,$+($2,*,.,$chan),0,w)
    if !%b {
      describe # hasn't seen anyone with a nick that starts with $2
    }
    elseif %b = 1 {
      var %nick = $gettok($hfind(Seen,$+($2,*,.,$chan),1,w).item,1,46)
      %dpt = $hfind(Seen,$+($2,*,.,$chan),1,w).data
      if !$nick($chan,%nick) {
        describe # saw %nick leaving at $asctime(%dpt,ddd mmm dd yyyy @ hh:nn:ss ap)
        .msg $chan that was $duration($calc($ctime - %dpt)) ago
      }
      else {
        describe # schedules an eye examination for $nick $+ , since %nick is in the room
      }
    }
    else {
      var %a = 1
      describe # has seen $v1 people whose nicks have started with $2
      .msg $chan These people are:
      while %a <= %b {
        var %nick = $gettok($hfind(Seen,$+($2,*,.,$chan),%a,w).item,1,46)
        %dpt = $hfind(Seen,$+($2,*,.,$chan),%a,w).data
        .timer 1 %a .msg $chan %a $+ ) %nick leaving at $asctime(%dpt,ddd mmm dd yyyy @ hh:nn:ss ap)
        .timer 1 %a .msg $chan that was $duration($calc($ctime - %dpt)) ago
        inc %a
      }
    }
  }
}
on *:join:#:{
  .hadd -m Seen $+($nick,.,$chan) $ctime
}
on *:start:{
  if !$hget(Seen) { .hmake Seen 100 }
  if $exists(Seen.hsh) { .hload Seen Seen.hsh }
}
on *:exit:{
  .hsave -o Seen Seen.hsh
}
on *:disconnect:{
  .hsave -o Seen Seen.hsh
}
 

#162221 15/10/06 10:07 PM
B
BuTLeR
BuTLeR
B
well i tested this script and this is wot i get

* (nick) saw (nick) leaving at
<(nick)> that was 1919wks 3days 22hrs 5mins 50secs ago

even when i changed the nick for !seen

but then again it could just be me i aint very gd at scripting =P

Last edited by BuTLeR; 15/10/06 10:12 PM.
#162222 15/10/06 10:42 PM
Joined: Aug 2004
Posts: 7,168
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,168
Had the person named in the !seen command joined and/or left the channel since the script was started?

#162223 15/10/06 11:02 PM
B
BuTLeR
BuTLeR
B
yes.

#162224 16/10/06 06:39 AM
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
You can try my xSeen script. Though it doesn't reply like what you wanted, but it would display the 5 recent seen users starting with your query.

i.e.
<user> !seen Mc*
<bot> I found 62 matches to your query. Here are the 5 most recent (sorted): Mcgowen Mcdonalds Mcmac Mcadams Mcditto. user, Mcgowen is right here!

#162225 16/10/06 06:40 AM
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
Quote:

Code:
 on *:quit:{
  var %a = 1, %b = $comchan($nick,0)
  while %a &lt;= %b {
    .hadd -m Seen $+($nick,.,$chan) $ctime
    inc %a
  }
}
 


I think you meant $comchan($nick,%b) instead of $chan.

#162226 16/10/06 07:21 AM
M
McOwnage
McOwnage
M
I like it xDaeMoN BUT how do others in the channel use it? I tried !seen and Xseen but no responce

#162227 16/10/06 08:45 AM
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
Like other Seen scripts, you type '!seen nick' or '!seen *nick*'. A readme.txt file is also included in the zip file which will give you it's features. smile

#162228 16/10/06 08:59 AM
M
McOwnage
McOwnage
M
Quote:
Like other Seen scripts, you type '!seen nick' or '!seen *nick*'. A readme.txt file is also included in the zip file which will give you it's features. smile


Tried !seen did not work at all no reply (on different computer)
tried a /seen on the comp with xseen running (i have it turned on) here is the info
[00:03] * Hex has joined #UNLOBBY
[00:15] * Hex has quit IRC (Quit: The problem with the gene pool is that there is no lifeguard)
did /seen Hex at 01:13 got this reply *** McOwnage_Comp2, I have not seen .

#162229 16/10/06 09:55 AM
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
Sorry, but I'm unable to reproduce the problem you're having. The script currently works fine. I even tested it again in a clean mirc, works as it should. As long as IAL is ON & version of mIRC is 6.16 & above.

#162230 16/10/06 10:59 AM
M
McOwnage
McOwnage
M
As long as IAL is ON & version of mIRC is 6.16 & above.

i have version 6.2
IAL is on

Clean install only your script on it

maybe i got older version of your script? the one i got from your link is
xSeen
version 3.7
Written by: xDaeMoN
Email: (removed so scan bots don't get it) *mcownage*
07.22.06

#162231 17/10/06 08:15 AM
Joined: Feb 2005
Posts: 344
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Feb 2005
Posts: 344
i have that script and it works fine.
you can edit the lines you want to send to the channel.
maybe uninstall an reinstall will work.
for everything else leave the servername and channelname and i will come and see what does and doesn't work.

Greetzz


Link Copied to Clipboard