mIRC Home    About    Download    Register    News    Help

Print Thread
[twitch]stream mode(texts-joins-spripts on-off?) #256648 07/02/16 12:09 PM
Joined: Jan 2016
Posts: 79
X
x3pos Offline OP
Babel fish
OP Offline
Babel fish
X
Joined: Jan 2016
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.

Last edited by x3pos; 07/02/16 05:11 PM.
Re: [twitch]stream mode(texts-joins-spripts on-off?) [Re: x3pos] #256651 07/02/16 12:17 PM
Joined: Dec 2008
Posts: 1,511
westor Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
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.

Re: [twitch]stream mode(texts-joins-spripts on-off?) [Re: x3pos] #256658 07/02/16 05:11 PM
Joined: Jan 2016
Posts: 79
X
x3pos Offline OP
Babel fish
OP Offline
Babel fish
X
Joined: Jan 2016
Posts: 79
sorry.

Re: [twitch]stream mode(texts-joins-spripts on-off?) [Re: x3pos] #256662 07/02/16 05:47 PM
Joined: Dec 2008
Posts: 1,511
westor Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
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.

Re: [twitch]stream mode(texts-joins-spripts on-off?) [Re: x3pos] #256695 10/02/16 10:51 AM
Joined: Jan 2016
Posts: 79
X
x3pos Offline OP
Babel fish
OP Offline
Babel fish
X
Joined: Jan 2016
Posts: 79
how to turn on-off Text commands?

Re: [twitch]stream mode(texts-joins-spripts on-off?) [Re: x3pos] #256697 10/02/16 12:31 PM
Joined: Feb 2016
Posts: 7
L
lostay Offline
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
L
Joined: Feb 2016
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.

Re: [twitch]stream mode(texts-joins-spripts on-off?) [Re: lostay] #256741 12/02/16 04:40 PM
Joined: Jan 2016
Posts: 79
X
x3pos Offline OP
Babel fish
OP Offline
Babel fish
X
Joined: Jan 2016
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.

Re: [twitch]stream mode(texts-joins-spripts on-off?) [Re: x3pos] #256745 12/02/16 06:38 PM
Joined: Dec 2008
Posts: 1,511
westor Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
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! }
  }
}

Re: [twitch]stream mode(texts-joins-spripts on-off?) [Re: westor] #256746 12/02/16 08:10 PM
Joined: Jan 2016
Posts: 79
X
x3pos Offline OP
Babel fish
OP Offline
Babel fish
X
Joined: Jan 2016
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?

Re: [twitch]stream mode(texts-joins-spripts on-off?) [Re: x3pos] #256747 12/02/16 08:19 PM
Joined: Dec 2008
Posts: 1,511
westor Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
Try use this code:

Code:
ON *:TEXT:1:* { 
  if (%commands) { msg $chan $nick 1 }
}

Re: [twitch]stream mode(texts-joins-spripts on-off?) [Re: x3pos] #256758 13/02/16 10:01 PM
Joined: Jan 2016
Posts: 79
X
x3pos Offline OP
Babel fish
OP Offline
Babel fish
X
Joined: Jan 2016
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.)
}

Re: [twitch]stream mode(texts-joins-spripts on-off?) [Re: x3pos] #256759 13/02/16 10:26 PM
Joined: Dec 2008
Posts: 1,511
westor Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
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. }
  }
}

Re: [twitch]stream mode(texts-joins-spripts on-off?) [Re: westor] #256878 25/02/16 06:23 PM
Joined: Jan 2016
Posts: 79
X
x3pos Offline OP
Babel fish
OP Offline
Babel fish
X
Joined: Jan 2016
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)

Re: [twitch]stream mode(texts-joins-spripts on-off?) [Re: x3pos] #256880 25/02/16 07:01 PM
Joined: Dec 2008
Posts: 1,511
westor Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
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! }
    }
  }
}