mIRC Home    About    Download    Register    News    Help

Print Thread
Page 1 of 2 1 2
Welcome Message #48882 12/09/03 12:17 AM
Joined: Sep 2003
Posts: 122
Gar Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Sep 2003
Posts: 122
I was wondering if there was a script that set up that would automatically greet a nick when he/she enters a channel that I am part of?

If there is could anyone tell me where I can find it and how to install it. I am very new to scripting frown

Re: Welcome Message #48883 12/09/03 12:21 AM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Code:
on !*:JOIN:[color:green]#channel[/color]:{
  msg # Welcome to # $nick
}

Re: Welcome Message #48884 12/09/03 12:31 AM
Joined: Sep 2003
Posts: 122
Gar Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Sep 2003
Posts: 122
What do I change to make a custom welcome message? The "Welcome To"?

Also when I put this scripts into the remote area of mIRC do I put it exactly as I see it with all the breaks and spaces? I copied one before and it put it automatically as one long line of text.

Re: Welcome Message #48885 12/09/03 12:56 AM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Quote:
What do I change to make a custom welcome message? The "Welcome To"?

Yes.

Quote:
Also when I put this scripts into the remote area of mIRC do I put it exactly as I see it with all the breaks and spaces? I copied one before and it put it automatically as one long line of text.

The spacing will be done automatically by mIRC if you put the line breaks in the right place.

Re: Welcome Message #48886 12/09/03 12:58 AM
Joined: Sep 2003
Posts: 122
Gar Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Sep 2003
Posts: 122
is there a way of editing that so it does a /me command rather then saying it?

ie)

*Gararion watches as someone makes their way into the channel. Welcome to the Elusive channel #Santharia Charles

and is there a way of putting putting a " after Charles and changing the color of the nick and channe?

Last edited by Gar; 12/09/03 01:02 AM.
Re: Welcome Message #48887 12/09/03 12:59 AM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Change "msg #" to "describe #".

Re: Welcome Message #48888 12/09/03 01:05 AM
Joined: Sep 2003
Posts: 122
Gar Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Sep 2003
Posts: 122
reposted as I edited at the same time you posted.

Can I change the color of the channel and the nick?

Re: Welcome Message #48889 12/09/03 01:09 AM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Code:
on !*:JOIN:[color:green]#channel[/color]:{
  describe # Gararion watches as someone makes their way into the channel. Welcome to the Elusive channel 4 $+ # $nick $+ $+ "
}

Re: Welcome Message #48890 12/09/03 01:14 AM
Joined: Sep 2003
Posts: 122
Gar Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Sep 2003
Posts: 122
nvm got it:

Code:
  on !*:JOIN:#Santharia:{
  describe # watches as someone makes their way into the channel.  4"Welcome to the elusive channel # $nick $+ $+ ".
}


Thanks everyone that helped smile

Re: Welcome Message #48891 12/09/03 01:16 AM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Just noticed I put an extra $+ in, doesn't really matter but you might wanna get rid of it.

Re: Welcome Message #48892 12/09/03 01:25 AM
Joined: Sep 2003
Posts: 122
Gar Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Sep 2003
Posts: 122
I already removed it. Thought it was a typo. Thanks once again smile

Re: Welcome Message #48893 12/09/03 02:00 AM
Joined: Sep 2003
Posts: 122
Gar Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Sep 2003
Posts: 122
One more question.

how can I but a comma in it to prduce the following.

*gararion watches as someone makes their way into the channel. "Welcome to the friendly channel #Santharia , Charles."

I know how to put the " and the . in but how do I but the , in after the channel name?

This is what I have atm:

Code:
on !*:JOIN:#Santharia:{
  describe # watches as someone makes their way into the channel.  4"Welcome to the friendly channel # $nick $+ ."
}

Re: Welcome Message #48894 12/09/03 02:33 AM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Code:
on !*:JOIN:#Santharia:{
  describe # watches as someone makes their way into the channel.  4"Welcome to the friendly channel # $+ , $nick $+ ."
}


Edit: Forgot to sort out line breaks.

Last edited by Collective; 12/09/03 02:35 AM.
Re: Welcome Message #48895 12/09/03 02:40 AM
Joined: Sep 2003
Posts: 122
Gar Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Sep 2003
Posts: 122
Thanks. Is there a way of editing this same script to make it post a message when someone leave or exits the channel? Whould I replace JOIN with LEAVE or EXIT?

Re: Welcome Message #48896 12/09/03 02:42 AM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
change the :JOIN: to :PART: smirk


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Re: Welcome Message #48897 12/09/03 02:45 AM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
There are two events that you'd need to add. The first would be on PART, which has the same syntax as on JOIN. The second is on QUIT, for which the syntax is slightly different.

Code:
on *:QUIT:{
  if ( $nick ison #Santharia ) {
    describe #Santharia watches as someone leaves the channel.  4"I'll miss you $nick $+ ."
  }
}

One thing to note about on QUIT is that you can't use # or $chan to reference the channel name, as people don't quit channels, they quit the IRC server.

Re: Welcome Message #48898 12/09/03 04:01 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
on *:QUIT:{
describe $comchan($nick,1) watches as someone leaves the channel. 4"I'll miss you $nick $+ ."
}
on *:PART:#:{
describe $chan watches as someone leaves the channel. 4"I'll miss you $nick $+ ."
}


new username: tidy_trax
Re: Welcome Message #48899 12/09/03 04:46 PM
Joined: May 2003
Posts: 161
A
Ashkrynt Offline
Vogon poet
Offline
Vogon poet
A
Joined: May 2003
Posts: 161
Autogreets are kinda dumb if you ask me. Why would anyone want to have a script say hello to them? Also, if someone join/parts the channel repeatedly, you could end up flooding yourself off.

Re: Welcome Message #48900 12/09/03 10:59 PM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
That will message him on the first common channel, which won't always be #Santharia.

Re: Welcome Message #48901 12/09/03 11:00 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
he never asked for santharia specific wink


new username: tidy_trax
Page 1 of 2 1 2