mIRC Home    About    Download    Register    News    Help

Print Thread
How to diable mIRC scripts with another script #215259 09/09/09 08:01 PM
Joined: Sep 2009
Posts: 20
M
mets081234 Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Sep 2009
Posts: 20
For instinces if i put !noticeoff it will disable the *JOIN:#: command. Can anyone tell me how to do this... also if you know how to enable it as well. all help is appriciated.

Re: How to diable mIRC scripts with another script [Re: mets081234] #215260 09/09/09 08:04 PM
Joined: Jan 2007
Posts: 1,156
D
DJ_Sol Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
If you want to disable an event ...

Now Ive never had to do this so I dont know if mirc has a way built-in, but you can put code in the 1st loaded script.

Code:
on ^*:join:#:halt
on ^*:text:*:#:halt
on ^*:notice:*:#:halt

to make sure the script is the 1st one loaded you can use..
on *:start:{
  if ($nopath($script(1)) != scriptname.mrc) load -rs1 scriptname.mrc
}


Re: How to diable mIRC scripts with another script [Re: mets081234] #215261 09/09/09 08:16 PM
Joined: Dec 2002
Posts: 2,010
R
RoCk Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,010

If you want to disable a specific script event, you could put the event inside of a group.

Code:

#OnJoinNotice on

on !*:JOIN:#: {
  .notice $nick Welcome to my channel $nick $+ !
}

#OnJoinNotice end

on *:TEXT:*:#: {
  if ($1 == !noticeoff) .disable #OnJoinNotice
  elseif ($1 == !noticeon) .enable #OnJoinNotice
  .notice $nick ON JOIN Notice is $group(#OnJoinNotice)
}



/help /disable
/help /enable
/help $group


Re: How to diable mIRC scripts with another script [Re: RoCk] #215262 09/09/09 08:23 PM
Joined: Sep 2009
Posts: 20
M
mets081234 Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Sep 2009
Posts: 20
thanks for helping but.... i copied the code directly into the remote tab and it didnt work frown

Re: How to diable mIRC scripts with another script [Re: mets081234] #215263 09/09/09 08:25 PM
Joined: Dec 2002
Posts: 2,010
R
RoCk Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,010

I misread your topic anyway, try the other.

Re: How to diable mIRC scripts with another script [Re: RoCk] #215264 09/09/09 08:48 PM
Joined: Sep 2009
Posts: 20
M
mets081234 Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Sep 2009
Posts: 20
still no luck frown

Re: How to diable mIRC scripts with another script [Re: mets081234] #215267 09/09/09 09:00 PM
Joined: Dec 2002
Posts: 2,010
R
RoCk Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,010

The only way can think of turning off remote events remotely while still being able to remotely turn them back on is....

Code:

ctcp *:!eventsoff:?:events off | notice $nick Remote events are off.

ctcp *:!eventson:?:events on | notice $nick Remote events are on.



/ctcp <nick> !eventson
/ctcp <nick> !eventsoff

Re: How to diable mIRC scripts with another script [Re: RoCk] #215269 09/09/09 09:32 PM
Joined: Jan 2007
Posts: 1,156
D
DJ_Sol Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
Hey yeah, see learn something new. Ive never needed to do this but ...


Originally Posted By: "mirc help file"
General Commands



/ctcps [on|off]

This switches processing of ctcp events on/off.



/events [on|off]

This switches processing of named events on/off.



/dlevel <level>

This changes the default user level to the specified level.



/raw [on|off]

This switches processing of numeric events on/off.



/remote [on|off]

This switches processing of all scripts on/off.


Re: How to diable mIRC scripts with another script [Re: DJ_Sol] #215271 09/09/09 09:37 PM
Joined: Sep 2009
Posts: 20
M
mets081234 Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Sep 2009
Posts: 20
i need like actually commands for and to disable only one command

Re: How to diable mIRC scripts with another script [Re: DJ_Sol] #215272 09/09/09 09:37 PM
Joined: Sep 2009
Posts: 20
M
mets081234 Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Sep 2009
Posts: 20
i need like actually commands for and to disable only one command

Re: How to diable mIRC scripts with another script [Re: mets081234] #215273 09/09/09 09:48 PM
Joined: Jan 2007
Posts: 1,156
D
DJ_Sol Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
If none of this info has helped you,


What exactly do you need disabled?

Re: How to diable mIRC scripts with another script [Re: DJ_Sol] #215274 09/09/09 09:54 PM
Joined: Sep 2009
Posts: 20
M
mets081234 Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Sep 2009
Posts: 20
to disable to JOIN script then being able to re-enable it with !noticeon Its for Justin.tv

Re: How to diable mIRC scripts with another script [Re: mets081234] #215280 10/09/09 05:50 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Use the group option suggested earlier
example:
Code:
on *:text:!notice*:#justin.tv:{
  if !$2 {
    .msg $nick Join notice for $chan is $group(#join)
  }
  elseif $2 == on && $group(#join) == off {
    .enable #join
  }
  elseif $2 == off && $group(#join) == on {
    .disable #join
  }
}
#join on
on !*:join:#justin.tv:{
  .describe $chan welcomes $nick to $chan
}
#join end