|
|
| Author |
Message |
Lord_Diablo Newbie

Joined: 10 Sep 2007 Posts: 80 Location: Fairfield,CA
|
Posted: Sep 13, 2007 3:14pm Post subject: A simple script gone wrong, help please =\ |
|
|
Hey, i used to be good at this mIRC scriptin stuff, and it seems ive forgotten every little bit of it.
I'm tryign to make a mirc script that will set mode +v for someone in our help channel on the !help command, this is what I've got, anyone know one that will work?
on *:!help:#Help:{ /mode #Help +v $nick } |
|
| Back to top |
|
 |
Pingu Newbie

Joined: 17 Aug 2006 Posts: 56
|
Posted: Sep 14, 2007 3:16am Post subject: |
|
|
give this a go
on *:text:!help:#Help:{ /mode #Help +v $nick } |
|
| Back to top |
|
 |
Lord_Diablo Newbie

Joined: 10 Sep 2007 Posts: 80 Location: Fairfield,CA
|
Posted: Sep 14, 2007 4:07am Post subject: |
|
|
Thanks alot bud  |
|
| Back to top |
|
 |
SyntaxIRC none

Joined: 07 Dec 2006 Posts: 27
|
Posted: Sep 14, 2007 7:13am Post subject: |
|
|
And remember: /'s aren't needed in scripts, so I'd be able to use it like:
on *:text:!help:#Help: { mode $chan +v $nick } |
|
| Back to top |
|
 |
bubblez6000 Newbie

Joined: 06 Sep 2007 Posts: 60
|
Posted: Sep 14, 2007 7:45am Post subject: |
|
|
| Code: | | on *:text:!help:#Help: { mode $chan +v $nick } |
another way is
| Code: | | on *:text:!help:#Help: { mode # +v $nick } |
|
|
| Back to top |
|
 |
PingBad Guru

Joined: 05 Feb 2005 Posts: 2031 Location: New Zealand
|
Posted: Sep 15, 2007 10:30am Post subject: |
|
|
| bubblez6000 wrote: | | Code: | | on *:text:!help:#Help: { mode $chan +v $nick } |
another way is
| Code: | | on *:text:!help:#Help: { mode # +v $nick } |
| The former being my preferred way (if only by experience, I've had a lot of scripts using # as a substitute for $chan backfire on me) |
|
| Back to top |
|
 |
mage Newbie

Joined: 04 Oct 2006 Posts: 72
|
Posted: Dec 13, 2007 10:14pm Post subject: |
|
|
Sorry to peek in in this post but may I add a suggestion?
on *:text:!help:#Help:mode # +v $nick
that way is better, dont use braces on scripts that don't contain more than 1 command for it slows down the parser.
However, if you want to use braces the proper way to put them is
on *:text:!help: {
mode # +v $nick
}
This way you can do use of the braces tool of mirc scripts editor and help the parser speed up the code parsing, less memory usage etc |
|
| Back to top |
|
 |
|