mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2002
Posts: 18
G
Gwion Offline OP
Pikka bird
OP Offline
Pikka bird
G
Joined: Dec 2002
Posts: 18
Hi,

I'd like to greet visitors joining my channel with a message that gives some info. Joining visitors mainly have the nick guestxyz (xyz is a number) but some
have other nicks. The guest visitors should get a different message if possible.
I have no clues (well, only very few) about scripting and would need a detailed help how to write that.

Thanks in advance.
Gwion

Joined: Dec 2002
Posts: 18
W
Pikka bird
Offline
Pikka bird
W
Joined: Dec 2002
Posts: 18
Code:
on *:join:#chan:{
  if $nick != $me {
   if guest* iswm $nick { msg $nick ... }
   else { msg $nick .... }
 }
}

:]

Last edited by watcher; 20/12/02 10:49 AM.

-watcher
Joined: Dec 2002
Posts: 18
G
Gwion Offline OP
Pikka bird
OP Offline
Pikka bird
G
Joined: Dec 2002
Posts: 18
Hi,

Thanks.
The message now appears in the status window.
Is there a way to display it in the main channel window for the user?

Gwion

Joined: Dec 2002
Posts: 18
W
Pikka bird
Offline
Pikka bird
W
Joined: Dec 2002
Posts: 18
msg # smile


-watcher
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
try:

on !*:join:#mychannel:{
if guest* iswm $nick { msg $chan $nick ... }
else { msg $chan $nick .... }
}

You should only do this for channels that say you can. All other channels MIGHT ban you for this kind of stuff. Some things to note:

1) the ! switch replace if ($nick != $me)
2) #mychan is your channel (not somebody else's) unless you get approval from the ops in another channel to use that


Those who fail history are doomed to repeat it
Joined: Dec 2002
Posts: 1,237
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,237
on *:JOIN:#: {
/notice $nick <messag>!
}

That works for me anyways....i can see it in my channel window but whom ever states it usually shows it in their status (i like to keep it simple)


Link Copied to Clipboard