mIRC Home    About    Download    Register    News    Help

Print Thread
Page 2 of 2 1 2
Joined: May 2008
Posts: 329
A
AWEstun Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: May 2008
Posts: 329
So you have to do a beginning comment out and an ending comment out, instead of just commenting out any on's?

Okay that got it going, but it's still showing the current joining user, the previous user's info, as if it's lagged. Do I need to add some kind of 5-10 second timer delay?

EDIT: okay I tried a timer, but it's still showing the previous user's into to the next user.

Last edited by AWEstun; 02/05/08 11:28 PM.

I registered; you should too.
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

Did you try how I showed you in that last code of my last post?

Joined: May 2008
Posts: 329
A
AWEstun Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: May 2008
Posts: 329
So it would look something like this?

raw 205:*: {
if ($eval($+(%,didtrace.,$nick),2)) msg $nick Hello $4 and welcome! Today is $date (dd/mm/yyyy) and the time is $time (CST).
haltdef
}

It's not showing anything for $nick when it tries to msg $nick.

Would it be possible to 'shave' the $left side of $4 (starting from the very left and going to a [ ) and get that name? E.x. $4 = name[12345678_12345678@1.2.3.4]

If we can do that, then we'll have the exact name we need.

Last edited by AWEstun; 03/05/08 01:10 AM.

I registered; you should too.
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

Nevermind, I see what you mean .. you need $gettok()

Try this out...
Code:

raw 200:*:haltdef
raw 262:*:haltdef
raw 205:*: {
  var %nick = $gettok($4,1,91)
  if ($eval($+(%,didtrace.,%nick),2)) msg %nick Hello $4 and welcome! Today is $date (dd/mm/yyyy) and the time is $time (CST).
  haltdef
}

on *:JOIN:#: {
  if (($nick == $me) || ($eval($+(%,didtrace.,$nick),2))) return
  set -eu60 $+(%,didtrace.,$nick) $true
  !trace $nick
}



Joined: May 2008
Posts: 329
A
AWEstun Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: May 2008
Posts: 329
OMG it works!!!

Now.. smile

How do I go about saving $4 to a text file.

I want to start out simple and then eventially be able to save same screen names with different IP's and same IP's with different screen names to the file. So I can do something like right click on a name on the room and a list of all the IP's that that name has used will list and a list of all the names that that IP has used.


I registered; you should too.
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

You want them all in one .txt file? Add this to your raw 205 event on the line above the haltdef. Change the file name to whatever you want.

write tracenicks.txt $4

Joined: May 2008
Posts: 329
A
AWEstun Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: May 2008
Posts: 329
Where is that file stored?


I registered; you should too.
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

That would store it in the mirc folder or the settings folder. You could use $scriptdir to store it where the script file is...

write $qt($scriptdirtracenicks.txt) $4

Joined: May 2008
Posts: 329
A
AWEstun Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: May 2008
Posts: 329
It must be in a hidden dir under document and settings > applications data > mirc? If so how to I access that folder?

EDIT: Accessed that hidden mirc folder and made a shortcut to the folder. Looks like it's building...

Last edited by AWEstun; 03/05/08 02:23 AM.

I registered; you should too.
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

Use $mircdir

//run $mircdir

Joined: May 2008
Posts: 329
A
AWEstun Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: May 2008
Posts: 329
Okay now lets say I want to 'read' back in a 'list' of all the screennames that are the same, how would I go about that?

Format is: screenname[12345678_12345678@1.2.3.4]

Then have it output something like:
screenname is screenname[12345678_12345678]@1.2.3.4 (current) also using IPs: @5.6.7.8, @4.3.2.1, @8.7.6.5, etc.

screenname[12345678_12345678] will always stay the same, but the IP may change, especially if they log in from various locations.

This server is modified and does not let the user change their screenname or account info [12345678_12345678].

Last edited by AWEstun; 03/05/08 02:45 AM.

I registered; you should too.
Page 2 of 2 1 2

Link Copied to Clipboard