Home | Networks | Community | Need Help? 

 
 Quick search

 
 
 RegisterRegister   Log inLog in 

A simple script gone wrong, help please =\

 
Post new topic   Reply to topic    SearchIRC Forum Index -> IRC Scripts
Author Message
Lord_Diablo
Newbie
Newbie


Joined: 10 Sep 2007
Posts: 80
Location: Fairfield,CA

PostPosted: Sep 13, 2007 3:14pm    Post subject: A simple script gone wrong, help please =\ Reply with quote

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
Newbie


Joined: 17 Aug 2006
Posts: 56

PostPosted: Sep 14, 2007 3:16am    Post subject: Reply with quote

give this a go

on *:text:!help:#Help:{ /mode #Help +v $nick }
Back to top
Lord_Diablo
Newbie
Newbie


Joined: 10 Sep 2007
Posts: 80
Location: Fairfield,CA

PostPosted: Sep 14, 2007 4:07am    Post subject: Reply with quote

Thanks alot bud Very Happy
Back to top
SyntaxIRC
none
none


Joined: 07 Dec 2006
Posts: 27

PostPosted: Sep 14, 2007 7:13am    Post subject: Reply with quote

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
Newbie


Joined: 06 Sep 2007
Posts: 60

PostPosted: Sep 14, 2007 7:45am    Post subject: Reply with quote

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
Guru


Joined: 05 Feb 2005
Posts: 2031
Location: New Zealand

PostPosted: Sep 15, 2007 10:30am    Post subject: Reply with quote

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
Newbie


Joined: 04 Oct 2006
Posts: 72

PostPosted: Dec 13, 2007 10:14pm    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    SearchIRC Forum Index -> IRC Scripts All times are GMT - 6 Hours
Page 1 of 1

 
 
Forum powered by phpBB
 
 © 2000 - 2008 EverythingIRC, Inc. All rights reserved. Please read our disclaimer