mIRC Home    About    Download    Register    News    Help

Print Thread
L
LordKatsuhito
LordKatsuhito
L
OK what I am trying to do is make my own welcome message and commands like !rules and !Help for my IRC so my members can get the chan rules and help on registering ther account

on *:JOIN:*: { /notice $nick Hello!welcome to the chat. make sure to read the chan rules by typing !Rules. If you need any help with some of the commands in IRC Type !Help. Feel free to send me a PM if you need somehelp thanks ^_^}
I want to add in a !rules and !Help

I also want to make it show up in only the chan its ment for too

Thanks for the help
Code:
  

Joined: Feb 2003
Posts: 3,412
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,412
Code:
on *:JOIN:[color:red]#channel[/color]: { /notice $nick Hello!welcome to the chat. make sure to read the chan rules by typing !Rules. If you need any help with some of the commands in IRC Type !Help. Feel free to send me a PM if you need somehelp thanks ^_^}

on *:TEXT:[color:red]#channel[/color]:!help*: {
  what to happen
}

Replace the red part with the channel you want it to show on..

or you can also use:
Code:
on *:TEXT:[color:red]#channel[/color]:*: {
 if ($1 == !help) { what to happen }
 else if ($1 == word) { what to happen }
 else if ($1 == word2) { what to happen }
 else { return }
}

Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
You have the On text event the other way around.

Code:
 on *:TEXT:#channel:!help*: {

should be
Code:
  on *:TEXT:!help*:#Channel: {


Same format goes to the other. smile

L
LordKatsuhito
LordKatsuhito
L
Thanks but I can't get ether a notice or a query to work with the on text stuff.

Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
Paste your code so we can take a look at it.

L
LordKatsuhito
LordKatsuhito
L
on *:JOIN:#AnimeOST.net: { /notice $nick Hello and welcome to AnimeOST.net IRC chan. We hope you have a good time here with us and enjoy your stay. Please make sure to read the chan rules. you can do so by typing !rules in the chat window. If you need any IRC help you can type !help and get help with registering your nick or any other IRC commands you would like to know ^_^ Have fun and enjoy your stay!}

on *:TEXT:!help: {/query $nick This will help you learn the IRC commands.
/query $nick You can register your nick by typing /nickserv REGISTER <password> <email> Password being your desired password. and Email being your valid email.
}

Joined: Oct 2005
Posts: 1,671
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,671
Try this:
Code:
on *:JOIN:#AnimeOST.net: { 
  .notice $nick Hello and welcome to AnimeOST.net IRC chan. We hope you have a good time here with us and enjoy your stay. Please make sure to read the chan rules. you can do so by typing !rules in the chat window. 
  .notice $nick If you need any IRC help you can type !help and get help with registering your nick or any other IRC commands you would like to know ^_^ Have fun and enjoy your stay!
}

on *:TEXT:!help:[color:red]#AnimeOST.net[/color]:{
.notice $nick This will help you learn the IRC commands.
.notice $nick You can register your nick by typing /nickserv REGISTER &lt;password&gt; &lt;email&gt; 
.notice $nick Password being your desired password. and Email being your valid email.
} 


You were missing the #channel in the TEXT event. I also made the messages silent, so you won't see them being sent. You won't be able to test the messages yourself, so someone else will have to test it for you.

-genius_at_work

Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
you just need to remember to put in all the parts of the event

on text Where
channel? query? dcc?
Code:
 on *:TEXT:!help: [color:red]{/q[/color]uery $nick This will help you learn the IRC commands.
/query $nick You can register your nick by typing /nickserv REGISTER &lt;password&gt; &lt;email&gt; Password being your desired password. and Email being your valid email.
} 
you have to have spaces between the brackets and the code
you dont need / in a script, only on a command line in the edit box for chats status channel etc.
you dont really need to use query here,  msg will work fine

 on *:TEXT:!help *:*: {
if ($$2 == register) {
msg $nick This will help you learn the IRC commands.
msg $nick You can register your nick by typing /nickserv REGISTER &lt;password&gt; &lt;email&gt; Password being your desired password. and Email being your valid email.
} 
}

Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
hey, your post wasnt there when I started typing
shocked


Link Copied to Clipboard