Seen script.
mIRC Code
+ 1 likes
Please Register to submit score.
| Average Score | 5.0 (of 4 scores) |
| Date Added | Oct 11, 2009 |
| Last Updated | Oct 11, 2009 |
| Tags | file have ini it read readini seen writeini yet you |
Introduction
mIRC Snippet:
Seen script.
Posted on Oct 11, 2009 8:14 am
Posted on Oct 11, 2009 8:14 am
maybe add so it will track the host too?
also
:p
also
| Quote: |
| im very proud of the fact i added my $fulldate with out the ending which would just annoy me :| |
| Code: |
| $time(ddd mmm d) |
mIRC Snippet:
Seen script.
Posted on Oct 11, 2009 9:22 am
Posted on Oct 11, 2009 9:22 am
Lol @ not tracking Guests..
mIRC Snippet:
Seen script.
Posted on Oct 11, 2009 10:10 am
Posted on Oct 11, 2009 10:10 am
| Quote: |
| if ( uest isin $nick ) { halt } |
| Code: |
| if ($nick != uest) { |
| Quote: |
| on *:PART:#: { if ($nick != $me) { on *:JOIN:#: { if ($nick != $me) { on *:QUIT: { if ($nick != $me) { on *:ACTION:#: { if ($nick != $me) { |
can be coded as:
| Code: |
on !*:PART:#: { on !*:JOIN:#: { on !*:QUIT: { on !*:ACTION:#: { |
p.s. for your on nick event...if I'm correct, is supposed to trigger when a user changes nickname. If that's the case, your $nick != $me will never be true.
mIRC Snippet:
Seen script.
Posted on Oct 11, 2009 10:29 am
Posted on Oct 11, 2009 10:29 am
| Code: |
if ($nick != uest) { |
That wouldnt work, that will only take place if $nick == uest, i want if guest isin the nick or guest9823498 isin the nick, it doesnt track, not just 1 nick.
and i dont see ho that list of things will work, all on events in 1. thats a first for me.
mIRC Snippet:
Seen script.
Posted on Oct 11, 2009 10:33 am
Posted on Oct 11, 2009 10:33 am
Oh, I mistook that as a nickname. Then you can use
| Code: |
| if (guest* !iswm $nick) |
mIRC Snippet:
Seen script.
Posted on Oct 11, 2009 10:37 am
Posted on Oct 11, 2009 10:37 am
The use of isin operator is not safe, because if nicks have "uest" in them, they'll be negated, hence your use of /halt
mIRC Snippet:
Seen script.
Posted on Oct 11, 2009 10:44 am
Posted on Oct 11, 2009 10:44 am
Thanks jethro_, thats nice :P. i updated script. tyvm :D.
mIRC Snippet:
Seen script.
Posted on Oct 11, 2009 12:24 pm
Posted on Oct 11, 2009 12:24 pm
Using ini's for a script like this is impractical.
For a script that is constantly writing data you must use hashtables if you want to make an efficient script. Writeini was not made to be used this way. This is why the -n was added as an afterthought to override the 64k limit.
Also, if someone is using the script at the same time that someone gets kicked, the .ini is likely to get corrupted.
Not to mention the fact that your script will be to busy writing files during kicks that it won't be able to respond in a timely manner to the current event.
If you used hashtables you would just write one entry with all the information.
For a script that is constantly writing data you must use hashtables if you want to make an efficient script. Writeini was not made to be used this way. This is why the -n was added as an afterthought to override the 64k limit.
Also, if someone is using the script at the same time that someone gets kicked, the .ini is likely to get corrupted.
Not to mention the fact that your script will be to busy writing files during kicks that it won't be able to respond in a timely manner to the current event.
If you used hashtables you would just write one entry with all the information.
mIRC Snippet:
Seen script.
Posted on Oct 11, 2009 3:27 pm
Posted on Oct 11, 2009 3:27 pm
make a skip-over for unknown, like you have with guest. as the same principal occurs.
mIRC Snippet:
Seen script.
Posted on Oct 12, 2009 8:27 am
Posted on Oct 12, 2009 8:27 am
As fordlawnmower said, hashtables are much better suited for this job. Just use a timer or so to ocassionally store the hashtable to a file, in case of a sudden crash, and load the file back in the hashtable in an on START event or so.
Also, instead of checking if the nick IS a guest nick and halting, why not check if the nick ISNT a guest, and then write to a file, else do nothing. saves a bit code and looks somewhat more neat, imho.
I might post my own seen script in a while, when it's completely done. :_)
Also, instead of checking if the nick IS a guest nick and halting, why not check if the nick ISNT a guest, and then write to a file, else do nothing. saves a bit code and looks somewhat more neat, imho.
I might post my own seen script in a while, when it's completely done. :_)











