mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2003
Posts: 12
T
Pikka bird
OP Offline
Pikka bird
T
Joined: Oct 2003
Posts: 12
I have some remote scripts and wondered if there is any procedure to turn off one specific one.

Thanks,
N.

Joined: Oct 2004
Posts: 38
S
Ameglian cow
Offline
Ameglian cow
S
Joined: Oct 2004
Posts: 38
/unload -rs your_script_name.ini\mrc...

Joined: Oct 2003
Posts: 12
T
Pikka bird
OP Offline
Pikka bird
T
Joined: Oct 2003
Posts: 12
Thanks but that just unloads it right? I just wanted to be able to turn it off and on as needed.

Possible?

Joined: Oct 2003
Posts: 96
J
Babel fish
Offline
Babel fish
J
Joined: Oct 2003
Posts: 96
group maybe ?

#your.script on <-- beginning of file

#your.script end <-- end of file

then just need to ..

/enable #your.script
/disable #your.script

but then you wouldn't be able to use groups in your script. confused

Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Groups will let you turn them on and off, just put #<group> on at the top of the script file and #<group> end at the end of the script file, that way you can use /enable #<group> to turn the script on and /disable #<group> to turn it off.

Change <group> to anything you want, as long as it's only one word.


New username: hixxy
Joined: Oct 2003
Posts: 12
T
Pikka bird
OP Offline
Pikka bird
T
Joined: Oct 2003
Posts: 12
Okay, my newness is showing here, but hey, you guys are infinitely patient (/me has her fingers crossed)

that goes right in the file where the specific remote is?

Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
If you put one in every script file, then you can turn them on and off as you please, it would be a good idea to name each group something you'll remember, eg:

Code:
#spamkick on
alias spamkick {
  &lt;insert spam kick stuff here&gt;
}
#spamkick end


New username: hixxy
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Yes, #group on goes above the triggering event. And #group end goes at the bottom of the triggering script.

Example:
Code:
#group on
on *:Text:*Hello*:?: {
  msg $nick Hello back at you. 
}
#group end


Link Copied to Clipboard