mIRC Home    About    Download    Register    News    Help

Topic Options
#256648 - 07/02/16 12:09 PM [twitch]stream mode(texts-joins-spripts on-off?)
x3pos Offline
Babel fish

Registered: 17/01/16
Posts: 79
i need this script
I=!stream mod on
bot =only stream text activated
I=!stream mod off
bot=all text command working

i need disable some text commands.


Edited by x3pos (07/02/16 05:11 PM)

Top
#256651 - 07/02/16 12:17 PM Re: [twitch]stream mode(texts-joins-spripts on-off?) [Re: x3pos]
westor Offline
Hoopy frood

Registered: 27/12/08
Posts: 1511
Loc: Greece
What is this ?

Please make again the post by giving a better description about your problem in order to help you.

Posting only the code doesn't really helping out us to understand you and help you.
_________________________
Need Online mIRC help or an mIRC Scripting Freelancer? -> http://westor.ucoz.com/contact <-

Top
#256658 - 07/02/16 05:11 PM Re: [twitch]stream mode(texts-joins-spripts on-off?) [Re: x3pos]
x3pos Offline
Babel fish

Registered: 17/01/16
Posts: 79
sorry.

Top
#256662 - 07/02/16 05:47 PM Re: [twitch]stream mode(texts-joins-spripts on-off?) [Re: x3pos]
westor Offline
Hoopy frood

Registered: 27/12/08
Posts: 1511
Loc: Greece
You need to provide here all the commands in order to fix them with that you want for, also when you paste all the !commands then specify which of them are stream related and which are not in order to understand.
_________________________
Need Online mIRC help or an mIRC Scripting Freelancer? -> http://westor.ucoz.com/contact <-

Top
#256695 - 10/02/16 10:51 AM Re: [twitch]stream mode(texts-joins-spripts on-off?) [Re: x3pos]
x3pos Offline
Babel fish

Registered: 17/01/16
Posts: 79
how to turn on-off Text commands?

Top
#256697 - 10/02/16 12:31 PM Re: [twitch]stream mode(texts-joins-spripts on-off?) [Re: x3pos]
lostay Offline
Nutrimatic drinks dispenser

Registered: 04/02/16
Posts: 7
Not sure I got your question but if you want to turn off some commands...

You can use a global variable(using "set") and every time you want to turn off some commands you will set the variable On. On each command that you want to be able to turn off you can just simply add an if statement that will check if that variable is On. If it's On, you just return (or halt).

Hope it helped.

Top
#256741 - 12/02/16 04:40 PM Re: [twitch]stream mode(texts-joins-spripts on-off?) [Re: lostay]
x3pos Offline
Babel fish

Registered: 17/01/16
Posts: 79
Originally Posted By: lostay
Not sure I got your question but if you want to turn off some commands...

You can use a global variable(using "set") and every time you want to turn off some commands you will set the variable On. On each command that you want to be able to turn off you can just simply add an if statement that will check if that variable is On. If it's On, you just return (or halt).

Hope it helped.

example please.

Top
#256745 - 12/02/16 06:38 PM Re: [twitch]stream mode(texts-joins-spripts on-off?) [Re: x3pos]
westor Offline
Hoopy frood

Registered: 27/12/08
Posts: 1511
Loc: Greece
This is an example code of the !commands ON/OFF

Code:
ON *:TEXT:!commands *:#: {
  if ($2 == ON) {
    if (!%commands) { set %commands 1 | .msg $chan ( $+ $nick $+ ): All the text commands have been enabled! }
    elseif (%commands) { .msg $chan ( $+ $nick $+ ): The text commansd are already enabled! }
  }
  if ($2 == OFF) {
    if (%commands) { unset %commands | .msg $chan ( $+ $nick $+ ): All the text commands have been disabled! }
    elseif (!%commands) { .msg $chan ( $+ $nick $+ ): The text commansd are already disabled! }
  }
}
_________________________
Need Online mIRC help or an mIRC Scripting Freelancer? -> http://westor.ucoz.com/contact <-

Top
#256746 - 12/02/16 08:10 PM Re: [twitch]stream mode(texts-joins-spripts on-off?) [Re: westor]
x3pos Offline
Babel fish

Registered: 17/01/16
Posts: 79
thanks for helping.i have one question.
Code:
on *:TEXT:1:* { msg $chan $nick 1 }
on *:TEXT:2:* { msg $chan $nick 2 }
on *:TEXT:3:* { msg $chan $nick 3 }
on *:TEXT:4:* { msg $chan $nick 4 }

how to turn on-off only 1 and 2 text?

Top
#256747 - 12/02/16 08:19 PM Re: [twitch]stream mode(texts-joins-spripts on-off?) [Re: x3pos]
westor Offline
Hoopy frood

Registered: 27/12/08
Posts: 1511
Loc: Greece
Try use this code:

Code:
ON *:TEXT:1:* { 
  if (%commands) { msg $chan $nick 1 }
}
_________________________
Need Online mIRC help or an mIRC Scripting Freelancer? -> http://westor.ucoz.com/contact <-

Top
#256758 - 13/02/16 10:01 PM Re: [twitch]stream mode(texts-joins-spripts on-off?) [Re: x3pos]
x3pos Offline
Babel fish

Registered: 17/01/16
Posts: 79
thanks for helping all working. only this thing not working.

Code:
ON $*:TEXT: { 
  if (%commands)
  /^\w+ are you here\?$/iS:#: $IIF($1 ison $chan, MSG $chan $1 is here., MSG $chan $1  is not here.)
}

Top
#256759 - 13/02/16 10:26 PM Re: [twitch]stream mode(texts-joins-spripts on-off?) [Re: x3pos]
westor Offline
Hoopy frood

Registered: 27/12/08
Posts: 1511
Loc: Greece
Use this code:

Code:
ON $*:TEXT:/^\w+ are you here\?$/iS:#: { 
  if (%commands) {
    if ($1 ison $chan) { msg $chan $1 is here. }
    elseif ($1 !ison $chan) { msg $chan $1  is not here. }
  }
}
_________________________
Need Online mIRC help or an mIRC Scripting Freelancer? -> http://westor.ucoz.com/contact <-

Top
#256878 - 25/02/16 06:23 PM Re: [twitch]stream mode(texts-joins-spripts on-off?) [Re: westor]
x3pos Offline
Babel fish

Registered: 17/01/16
Posts: 79
Code:
ON *:TEXT:!commands *:#: {
  if ($2 == ON) {
    if (!%commands) { set %commands 1 | .msg $chan ( $+ $nick $+ ): All the text commands have been enabled! }
    elseif (%commands) { .msg $chan ( $+ $nick $+ ): The text commansd are already enabled! }
  }
  if ($2 == OFF) {
    if (%commands) { unset %commands | .msg $chan ( $+ $nick $+ ): All the text commands have been disabled! }
    elseif (!%commands) { .msg $chan ( $+ $nick $+ ): The text commansd are already disabled! }
  }
}


how to add command if (nick == x3pos)

Top
#256880 - 25/02/16 07:01 PM Re: [twitch]stream mode(texts-joins-spripts on-off?) [Re: x3pos]
westor Offline
Hoopy frood

Registered: 27/12/08
Posts: 1511
Loc: Greece
Use this code:

Code:
ON *:TEXT:!commands *:#: {
  if ($nick == x3pos) {
    if ($2 == ON) {
      if (!%commands) { set %commands 1 | .msg $chan ( $+ $nick $+ ): All the text commands have been enabled! }
      elseif (%commands) { .msg $chan ( $+ $nick $+ ): The text commansd are already enabled! }
    }
    if ($2 == OFF) {
      if (%commands) { unset %commands | .msg $chan ( $+ $nick $+ ): All the text commands have been disabled! }
      elseif (!%commands) { .msg $chan ( $+ $nick $+ ): The text commansd are already disabled! }
    }
  }
}
_________________________
Need Online mIRC help or an mIRC Scripting Freelancer? -> http://westor.ucoz.com/contact <-

Top