server !seen and !idle scripts
Please Register to submit score.
| Average Score | 8.0 |
| Scores Submitted | 3 |
| Date Added | Apr 17, 2008 |
| Last Updated | Apr 25, 2008 |
| Tags | bot idle script seen server whois |
Introduction
Syntex:
!seen <nick> - Will first check if user is on the server, if not it will deliver what the target was last seen doing, and how long ago
!idle <nick> - Delivers the nicks idle time (not channel idle time, server idle time)
!search - If the target of the !seen command is on the server, the bot will locate the target for the user if the user wishes.
note: you only have 2 minutes to use the !search command after you perform the !seen command and the target is on the server :P
I am pretty sure all bugs are worked out, it you find any please let me know.
Special Thanks to OliMaylen for the raw 319 portion
:) Enjoy
- PePSiMaN
mIRC Snippet:
server !seen and !idle scripts
Posted on Apr 17, 2008 8:56 pm
Posted on Apr 17, 2008 8:56 pm
Since this is an update of your previous snippet, just update your old snippet as said on the rules of posting snippets.
**
DO NOT post new versions as new snippets. You must edit your previous snippet.
(If you add Snippet v1.0 and Snippet v2.0 as two snippets Snippet v2.0 will be deleted.)
**
**
DO NOT post new versions as new snippets. You must edit your previous snippet.
(If you add Snippet v1.0 and Snippet v2.0 as two snippets Snippet v2.0 will be deleted.)
**
mIRC Snippet:
server !seen and !idle scripts
Posted on Apr 18, 2008 1:49 am
Posted on Apr 18, 2008 1:49 am
Its not, its a completely new script... Does completely new things
mIRC Snippet:
server !seen and !idle scripts
Posted on Apr 18, 2008 11:59 am
Posted on Apr 18, 2008 11:59 am
I would say it's just an UPDATED snippet :). Also, I like your xSeen variables and aliases. I think I've seen them somewhere... =P
mIRC Snippet:
server !seen and !idle scripts
Posted on Apr 18, 2008 12:21 pm
Posted on Apr 18, 2008 12:21 pm
Haha, I've seen them somewhere too :)
mIRC Snippet:
server !seen and !idle scripts
Posted on Apr 18, 2008 5:29 pm
Posted on Apr 18, 2008 5:29 pm
Are you kidding me? Are you accusing me of stealing this script? I wrote this entire script from scratch....
mIRC Snippet:
server !seen and !idle scripts
Posted on Apr 18, 2008 7:04 pm
Posted on Apr 18, 2008 7:04 pm
no one is accusing you of anything =/ all they said is
xDaeMoN
so take it ez...
xDaeMoN
| Quote: |
| Also, I like your xSeen variables and aliases. I think I've seen them somewhere... =P |
so take it ez...
mIRC Snippet:
server !seen and !idle scripts
Posted on Apr 20, 2008 6:14 pm
Posted on Apr 20, 2008 6:14 pm
Hi there, I'm new to the site & new to IRC scripting. This is the first time I have studied it & the first time editing it, (learning as I go) so go easy on me if there are glaringly obvious errors.
I really liked this script as it was the only one I could find that used WHOIS to find a user that was not in the channel. I added it to a mIRC bot, (Yourbot IRC Bot 4.5.2) which was intergrated into mIRC v6.2, but the last user action (ie: Kick, Quit, Part etc) database wouldnt function properly & the script would freeze giving the bot client the error message: * Invalid format: $left (line 17, seen.mrc).
After some playing with the code & changing the v6.2 mIRC exe for the new v6.31 exe, the script works exactly as it should for my bot.
Like I said, it worked for me, there may have been a much easier way to sort the problem, but I didn't know it. :-) Thought I would share this in case other people had the same problem, or to see if there was an easier way of fixing the problem.
The code I changed was:
I really liked this script as it was the only one I could find that used WHOIS to find a user that was not in the channel. I added it to a mIRC bot, (Yourbot IRC Bot 4.5.2) which was intergrated into mIRC v6.2, but the last user action (ie: Kick, Quit, Part etc) database wouldnt function properly & the script would freeze giving the bot client the error message: * Invalid format: $left (line 17, seen.mrc).
After some playing with the code & changing the v6.2 mIRC exe for the new v6.31 exe, the script works exactly as it should for my bot.
Like I said, it worked for me, there may have been a much easier way to sort the problem, but I didn't know it. :-) Thought I would share this in case other people had the same problem, or to see if there was an easier way of fixing the problem.
The code I changed was:
| Code: |
raw 402:*: { if (%xseen) { if (!$hget(xSeen,%xseen.target)) { msg %xseen.chan 12Sorry,4 %xseen.target 12was not found in my database, or on the server. } if ($hget(xSeen,%xseen.target)) { var %xseen.data $left($hget(xSeen,%xseen.target),1) tokenize 32 $hget(xSeen,%xseen.target) if ($1 = Q) { msg %xseen.chan %xseen.target was last seen Quitting (Quit Message: $4- $+ ) $duration($calc($ctime - $3)) ago. } if ($1 = S) { msg %xseen.chan %xseen.target was last seen by me on the server $duration($calc($ctime - $3)) ago. } if ($1 = K) { msg %xseen.chan %xseen.target was last seen being kicked from $4 (Kick Reason: $5- $+ ) $duration($calc($ctime - $3)) ago. } if ($1 = P) { msg %xseen.chan %xseen.target was last seen parting $4 (Part Reason: $5- $+ ) $duration($calc($ctime - $3)) ago. } if ($1 = N) { msg %xseen.chan %xseen.target was last seen changing his/her nick to $4 $duration($calc($ctime - $3)) ago. } } xdefclear } |
mIRC Snippet:
server !seen and !idle scripts
Posted on Apr 22, 2008 2:28 pm
Posted on Apr 22, 2008 2:28 pm
Thought this might be useful, I have progressed a lot since my last comment, which I am unable to delete. I think I had other errors which accounted for the error I had before. Anyway I edited part of the script & added bits to handle the 319 code from the raw whois. Now instead of just saying if the user is on the server, it now returns a list of channels the user you "!seen" is on. It now also handles if users are on the server but not in any rooms and tells you this info also.
The bits I added may be a little crude, but it works. Changed the
to
in a lot of places for my own use so as not to spam the room with people going mad with the script. It puts a nice touch to an already great script I think. :-)
Here is the bit i edited:
The bits I added may be a little crude, but it works. Changed the
| Code: |
| msg $chan" |
to
| Code: |
| .notice %xseen.nick |
in a lot of places for my own use so as not to spam the room with people going mad with the script. It puts a nice touch to an already great script I think. :-)
Here is the bit i edited:
| Code: |
raw 402:*: { if (%xseen) { if (!$hget(xSeen,%xseen.target)) { .notice %xseen.nick 12Sorry,4 %xseen.target 12was not found in my database, or on the server. } if ($hget(xSeen,%xseen.target)) { var %xseen.data $left($hget(xSeen,$2),1) tokenize 32 $hget(xSeen,%xseen.target) if ($1 = Q) { .notice %xseen.nick 4 $+ %xseen.target 12was last seen Quitting 4(Quit Message: $4- $+ ) $duration($calc($ctime - $3)) ago. } if ($1 = S) { .notice %xseen.nick 4 $+ %xseen.target 12was last seen by me on the server4 $duration($calc($ctime - $3)) ago. } if ($1 = K) { .notice %xseen.nick 4 $+ %xseen.target 12was last seen being kicked from4 $4 (Kick Reason: $5- $+ ) $duration($calc($ctime - $3)) ago. } if ($1 = P) { .notice %xseen.nick 4 $+ %xseen.target 12was last seen parting4 $4 (Part Reason: $5- $+ ) $duration($calc($ctime - $3)) ago. } if ($1 = N) { .notice %xseen.nick 4 $+ %xseen.target 12was last seen changing his/her nick to4 $4 $duration($calc($ctime - $3)) ago. } } xdefclear } if (%idle.time.get = on) { .notice %idle.x 12Sorry4 %idle.x $+ 12,4 %idle.nick 12was not found on this server. Try 4!seen12 %idle.nick unset %idle.nick unset %idle.chan unset %idle.time.get unset %idle.x halt } } raw 319:*:{ if (%xseen) { .notice %xseen.nick 12User4 $2 12is currently in:9 $3- .notice %xseen.nick 12Click a room(s) to join them, or type 4!search 12& I'll tell them you're looking for them. set -u60 %xfind. [ $+ [ %xseen.nick ] ] %xseen.target hadd -m xSeen %xseen.target S $nick $ctime xdefclear ;halt } } raw 317:*:{ if (%xseen) { .notice %xseen.nick 4 $+ $2 12was found on the server but not in any channel. .notice %xseen.nick 12If you would like me to inform4 $2 12you are looking for them, type 4!search set -u60 %xfind. [ $+ [ %xseen.nick ] ] %xseen.target hadd -m xSeen %xseen.target S $nick $ctime xdefclear } if (%idle.time.get = on) { set %temp.idle.time $3 .notice %idle.x 4 $+ $2 12has been idle for4 $duration(%temp.idle.time) unset %temp.idle.time unset %idle.nick unset %idle.chan unset %idle.time.get halt } } |
mIRC Snippet:
server !seen and !idle scripts
Posted on Apr 22, 2008 3:48 pm
Posted on Apr 22, 2008 3:48 pm
I like that, good job i will update it and give you credit :)
mIRC Snippet:
server !seen and !idle scripts
Posted on Apr 22, 2008 3:55 pm
Posted on Apr 22, 2008 3:55 pm
Snippet updated, i also took the time to remove the ^,@,+, and % from the beggining of channels when a whois is done.
mIRC Snippet:
server !seen and !idle scripts
Posted on Apr 23, 2008 11:41 am
Posted on Apr 23, 2008 11:41 am
Thanks, I'm still very new. Used to mess with VB "back in the day", this is the first bit of coding/scripting for ages & I'm finding it fun.
Only started looking at it week ago, so most of the stuff I try is trial & error at the moment.
Anyway, glad you liked it & thanks for a nice script. :)
Only started looking at it week ago, so most of the stuff I try is trial & error at the moment.
Anyway, glad you liked it & thanks for a nice script. :)
mIRC Snippet:
server !seen and !idle scripts
Posted on Apr 23, 2008 6:57 pm
Posted on Apr 23, 2008 6:57 pm
Thank you :)
mIRC Snippet:
server !seen and !idle scripts
Posted on Apr 24, 2008 4:39 am
Posted on Apr 24, 2008 4:39 am
Hi ,love the snippet,im no scripter and yes im a noob but just im just a wondering the point of these lines
if ($2 = $nick) { Are you trying to find yourself $nick $+ ? I know of some great Counselors that might be able to help you :- | halt }
if ($2 = $me) { Find my yet, $nick $+ ? | halt }
because of this line
if ($2 ison $chan) { msg $chan $2 is currently on the channel. | halt }
if ($2 = $nick) { Are you trying to find yourself $nick $+ ? I know of some great Counselors that might be able to help you :- | halt }
if ($2 = $me) { Find my yet, $nick $+ ? | halt }
because of this line
if ($2 ison $chan) { msg $chan $2 is currently on the channel. | halt }
mIRC Snippet:
server !seen and !idle scripts
Posted on Apr 24, 2008 8:28 am
Posted on Apr 24, 2008 8:28 am
Vexx,
if ($2 = $nick) is if the person using the !seen command types in their own name.
if ($2 = $me) is if the person tries to perform the !seen command on the bot/user running the script. It's just a bit of fun. It could be left so it just says they are on the channel, but it just adds a bit extra to the script to give a humerous answer if a user "!seen's" themselves or the bot/user running the script. :)
if ($2 = $nick) is if the person using the !seen command types in their own name.
if ($2 = $me) is if the person tries to perform the !seen command on the bot/user running the script. It's just a bit of fun. It could be left so it just says they are on the channel, but it just adds a bit extra to the script to give a humerous answer if a user "!seen's" themselves or the bot/user running the script. :)
mIRC Snippet:
server !seen and !idle scripts
Posted on Apr 24, 2008 10:33 am
Posted on Apr 24, 2008 10:33 am
yeah i get that OliMaylen, sorry i wasnt quite clear..having set this in a bot of mine
i asked the bot !seen vexx it returned "vexx is currently on the channel."
then asked the bot !seen bot it returned "bot is currently on the channel."
this piece of coding doesnt even come into use
if ($2 = $nick) { Are you trying to find yourself $nick $+ ? I know of some great Counselors that might be able to help you :- | halt }
if ($2 = $me) { Find my yet, $nick $+ ? | halt }
unless you remove this line
if ($2 ison $chan) { msg $chan $2 is currently on the channel. | halt }
after removing that 1 line the replies now are
!seen vexx returns Are you trying to find yourself vexx ? I know of some great Counselors that might be able to help you :-
!seen bot returns Find me yet, vexx ?
but of course removing that line when asked if !seen <anyone> in the channel and that person is in the same room,it returns the list of rooms they are currently in, rather than say is currently in the channel..
hope thats a bit more clearer
way to solve this ?
unless its just me =/
then in which case may brimstone and fire rain down on my home
thanks
i asked the bot !seen vexx it returned "vexx is currently on the channel."
then asked the bot !seen bot it returned "bot is currently on the channel."
this piece of coding doesnt even come into use
if ($2 = $nick) { Are you trying to find yourself $nick $+ ? I know of some great Counselors that might be able to help you :- | halt }
if ($2 = $me) { Find my yet, $nick $+ ? | halt }
unless you remove this line
if ($2 ison $chan) { msg $chan $2 is currently on the channel. | halt }
after removing that 1 line the replies now are
!seen vexx returns Are you trying to find yourself vexx ? I know of some great Counselors that might be able to help you :-
!seen bot returns Find me yet, vexx ?
but of course removing that line when asked if !seen <anyone> in the channel and that person is in the same room,it returns the list of rooms they are currently in, rather than say is currently in the channel..
hope thats a bit more clearer
way to solve this ?
unless its just me =/
then in which case may brimstone and fire rain down on my home
thanks
mIRC Snippet:
server !seen and !idle scripts
Posted on Apr 25, 2008 1:14 am
Posted on Apr 25, 2008 1:14 am
You are right Vexx, i am sorry about that i had it in the wrong order, Just updated. Get the snippet again and it will work fine :)
mIRC Snippet:
server !seen and !idle scripts
Posted on Apr 25, 2008 4:47 am
Posted on Apr 25, 2008 4:47 am
lol. no need for sorry pepsi_man. re got it now and working fine..Thanks
=D
=D
mIRC Snippet:
server !seen and !idle scripts
Posted on May 3, 2008 10:42 am
Posted on May 3, 2008 10:42 am
Ah sorry Vexx, didn't get what you ment, but yes you were right. They were in the wrong order which Pepsi_man has stated. I had already swapped them around so they worked right for my bot, but forgot to mention that to pepsi. :)
mIRC Snippet:
server !seen and !idle scripts
Posted on May 4, 2008 7:19 pm
Posted on May 4, 2008 7:19 pm
i am not using a bot in my room, but can i have past this script in remot. when i type !seen nick doesnt do anything for me, i am using pnplus script. or this script only for bot> thanks for ur help
mIRC Snippet:
server !seen and !idle scripts
Posted on Jun 5, 2008 5:19 pm
Posted on Jun 5, 2008 5:19 pm
I keep geting this error.
3:14pm] ««Ë®®öR»»Unknown command: XSEEN.SAVE
3:14pm] ««Ë®®öR»»Unknown command: XTIMEDCLEAR
3:14pm] ««Ë®®öR»»Unknown command: XSEEN.SAVE
3:14pm] ««Ë®®öR»»Unknown command: XTIMEDCLEAR
mIRC Snippet:
server !seen and !idle scripts
Posted on Jun 5, 2008 5:37 pm
Posted on Jun 5, 2008 5:37 pm
It also says that there is currently a !seen check going though. There is none. what am i doing wrong?







