mIRC Home    About    Download    Register    News    Help

Topic Options
#215259 - 09/09/09 09:01 PM How to diable mIRC scripts with another script
mets081234 Offline
Ameglian cow

Registered: 07/09/09
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.

Top
#215260 - 09/09/09 09:04 PM Re: How to diable mIRC scripts with another script [Re: mets081234]
DJ_Sol Offline
Hoopy frood

Registered: 04/01/07
Posts: 1156
Loc: Seattle
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
}


Top
#215261 - 09/09/09 09:16 PM Re: How to diable mIRC scripts with another script [Re: mets081234]
RoCk Offline
Hoopy frood

Registered: 16/12/02
Posts: 2009

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


Top
#215262 - 09/09/09 09:23 PM Re: How to diable mIRC scripts with another script [Re: RoCk]
mets081234 Offline
Ameglian cow

Registered: 07/09/09
Posts: 20
thanks for helping but.... i copied the code directly into the remote tab and it didnt work frown

Top
#215263 - 09/09/09 09:25 PM Re: How to diable mIRC scripts with another script [Re: mets081234]
RoCk Offline
Hoopy frood

Registered: 16/12/02
Posts: 2009

I misread your topic anyway, try the other.

Top
#215264 - 09/09/09 09:48 PM Re: How to diable mIRC scripts with another script [Re: RoCk]
mets081234 Offline
Ameglian cow

Registered: 07/09/09
Posts: 20
still no luck frown

Top
#215267 - 09/09/09 10:00 PM Re: How to diable mIRC scripts with another script [Re: mets081234]
RoCk Offline
Hoopy frood

Registered: 16/12/02
Posts: 2009

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

Top
#215269 - 09/09/09 10:32 PM Re: How to diable mIRC scripts with another script [Re: RoCk]
DJ_Sol Offline
Hoopy frood

Registered: 04/01/07
Posts: 1156
Loc: Seattle
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.


Top
#215271 - 09/09/09 10:37 PM Re: How to diable mIRC scripts with another script [Re: DJ_Sol]
mets081234 Offline
Ameglian cow

Registered: 07/09/09
Posts: 20
i need like actually commands for and to disable only one command

Top
#215272 - 09/09/09 10:37 PM Re: How to diable mIRC scripts with another script [Re: DJ_Sol]
mets081234 Offline
Ameglian cow

Registered: 07/09/09
Posts: 20
i need like actually commands for and to disable only one command

Top
#215273 - 09/09/09 10:48 PM Re: How to diable mIRC scripts with another script [Re: mets081234]
DJ_Sol Offline
Hoopy frood

Registered: 04/01/07
Posts: 1156
Loc: Seattle
If none of this info has helped you,


What exactly do you need disabled?

Top
#215274 - 09/09/09 10:54 PM Re: How to diable mIRC scripts with another script [Re: DJ_Sol]
mets081234 Offline
Ameglian cow

Registered: 07/09/09
Posts: 20
to disable to JOIN script then being able to re-enable it with !noticeon Its for Justin.tv

Top
#215280 - 10/09/09 06:50 AM Re: How to diable mIRC scripts with another script [Re: mets081234]
RusselB Offline
Planetary brain

Registered: 03/08/04
Posts: 7252
Loc: Ontario, Canada
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


Top