mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2005
Posts: 15
D
dtrmp4 Offline OP
Pikka bird
OP Offline
Pikka bird
D
Joined: Feb 2005
Posts: 15
Sorry for the bad wording in the topic title, tried to make it all fit. Anyways, I want a script that will do this:
* User has joined #channel
<dtrmp4> Hi, user

or something like that, just a small script that will make me automatically say something when someone joins. I already tried searching, but I didn't find anything.

Thanks.

Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
on !*:JOIN:[color:green]#yourchannel:msg # Hi, $nick[/color]

Goes in Remotes (Alt+R). Only use it where you have permission to.

Joined: Feb 2005
Posts: 15
D
dtrmp4 Offline OP
Pikka bird
OP Offline
Pikka bird
D
Joined: Feb 2005
Posts: 15
Thanks, but I only want it to be for certain users, not every user.

Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
on !*:JOIN:#yourchannel:{ if ($istok(bonno fred bill barney,$nick,32)) { msg # Hi, $nick } }

Joined: Feb 2005
Posts: 15
D
dtrmp4 Offline OP
Pikka bird
OP Offline
Pikka bird
D
Joined: Feb 2005
Posts: 15
I'm not to good with this mIRC scripting stuff, what exactly am I supposed to put? I tried this:
on !*:JOIN:#dtrmp4:{ if ($istok(User,$nick,32)) { msg # Hi, $nick } }
but it didn't do anything when they joined, and I tried restarting mIRC, still didn't work.

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Try changing the channel name to the channel you're using.

-Andy

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Replace User in on !*:JOIN:#dtrmp4:{ if ($istok(User,$nick,32)) { msg # Hi, $nick } } with a list of nicks each nick being separated with a space. Hopefully a dumb point, but you also have to be in #dtrmp4 for it to work.

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Just incase you didn't know, there doesn't need to be a list delimited by a space, one would work fine dude.. smile

-Andy

Joined: Feb 2005
Posts: 15
D
dtrmp4 Offline OP
Pikka bird
OP Offline
Pikka bird
D
Joined: Feb 2005
Posts: 15
I know about the channel, #dtrmp4 is my testing channel.

Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
that went in alt-r/file/new
and then type /REMOTE ON

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Yeah, but if he's just wanting a single nick, why not use if ($nick == <nick>) rather then the tokens?

Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
dtrmp said:
Quote:
Thanks, but I only want it to be for certain users, not every user.

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Yeah...your point is?

I just pointed out that if they only wanted it for a certain nick they could use the if statement checking for a specific nick, rather than using $gettok with a single entry.

Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
Well he did say that he wanted "certain users". So maybe he just used one nick for a test then he could add more nicks like DaveC's example.


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!

Link Copied to Clipboard