mIRC Home    About    Download    Register    News    Help

Print Thread
Newbie, need help with a simple greeting script #2682 20/12/02 10:35 AM
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

Re: Newbie, need help with a simple greeting script #2683 20/12/02 10:40 AM
Joined: Dec 2002
Posts: 18
W
watcher Offline
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
Re: Newbie, need help with a simple greeting script #2684 20/12/02 10:59 AM
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

Re: Newbie, need help with a simple greeting script #2685 20/12/02 11:00 AM
Joined: Dec 2002
Posts: 18
W
watcher Offline
Pikka bird
Offline
Pikka bird
W
Joined: Dec 2002
Posts: 18
msg # smile


-watcher
Re: Newbie, need help with a simple greeting script #2686 20/12/02 11:03 AM
Joined: Dec 2002
Posts: 1,527
L
landonsandor Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,527
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
Re: Newbie, need help with a simple greeting script #2687 21/12/02 08:35 PM
Joined: Dec 2002
Posts: 1,237
T
The_Game Offline
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)