mIRC Home    About    Download    Register    News    Help

Print Thread
#258812 02/09/16 12:08 AM
Joined: Jul 2014
Posts: 9
L
Linkin Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
L
Joined: Jul 2014
Posts: 9
Hello everyone,

So I'm trying to teach myself mIRC scripting with what I can find online. Currently, I am following this tutorial. However I am finding myself stuck on a simple on:TEXT command.

Right now, this is what I have in my remote section:
Quote:
#Greet off
on 1:JOIN:#:{
.notice $nick Hello and welcome to $chan !!
}
#Greet End

on +100:TEXT:Greet on:?:{
.enable #Greet | /msg $nick The auto-greet is now active
}
on +100:TEXT:Greet off:?:{
.disable #Greet | /msg $nick The auto-greet is now inactive
}
on *:TEXT:Hi:#:{
/say Hello $nick
}


The problem I am having is with the last part when someone says "Hi". I want the bot to say hello back, but not as a private message or notice. I am currently getting an error saying "* You are not on a channel (line 14, script1.ini)".

Can anyone identify what my problem is? is it a simple thing that I am missing?

I really appreciate the help!

Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
Don't use /say, use msg #

Joined: Jul 2014
Posts: 9
L
Linkin Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
L
Joined: Jul 2014
Posts: 9
OMG... Thank you! I knew it was something silly I was missing.


Link Copied to Clipboard