mIRC Homepage

Newbie, need help with a simple greeting script

Posted By: Gwion

Newbie, need help with a simple greeting script - 20/12/02 10:35 AM

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
Posted By: watcher

Re: Newbie, need help with a simple greeting script - 20/12/02 10:40 AM

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

:]
Posted By: Gwion

Re: Newbie, need help with a simple greeting script - 20/12/02 10:59 AM

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
Posted By: watcher

Re: Newbie, need help with a simple greeting script - 20/12/02 11:00 AM

msg # smile
Posted By: landonsandor

Re: Newbie, need help with a simple greeting script - 20/12/02 11:03 AM

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
Posted By: The_Game

Re: Newbie, need help with a simple greeting script - 21/12/02 08:35 PM

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)
© 2020 mIRC Discussion Forums