mIRC Home    About    Download    Register    News    Help

Print Thread
#260809 20/06/17 06:32 AM
Joined: Jun 2017
Posts: 3
8
8440 Offline OP
Self-satisified door
OP Offline
Self-satisified door
8
Joined: Jun 2017
Posts: 3
I have this script for twitch.tv that is supposed change my color every time I talk but it isn't working

on *:text:*:#: {
if ( $nick = $me ) {
if (!%color) {
set %color 1
}
if (%color = 19) {
set %color 1
msg $chan .color #E76060
}
else {
if (%color = 1) { TimerColor 1 0 msg $chan .color #E76060 }
if (%color = 2) { TimerColor 1 0 msg $chan .color #FBC514 }
if (%color = 3) { TimerColor 1 0 msg $chan .color #FCF8A1 }
if (%color = 4) { TimerColor 1 0 msg $chan .color #519872 }
if (%color = 5) { TimerColor 1 0 msg $chan .color #088DA5 }
if (%color = 6) { TimerColor 1 0 msg $chan .color #B0E0E6 }
if (%color = 7) { TimerColor 1 0 msg $chan .color #770F5D }
if (%color = 8) { TimerColor 1 0 msg $chan .color #FFC0CD }
if (%color = 9) { TimerColor 1 0 msg $chan .color #000000 }
if (%color = 10) { TimerColor 1 0 msg $chan .color #E76060 }
if (%color = 11) { TimerColor 1 0 msg $chan .color #FBC514 }
if (%color = 12) { TimerColor 1 0 msg $chan .color #FCF8A1 }
if (%color = 13) { TimerColor 1 0 msg $chan .color #519872 }
if (%color = 14) { TimerColor 1 0 msg $chan .color #088DA5 }
if (%color = 15) { TimerColor 1 0 msg $chan .color #B0E0E6 }
if (%color = 16) { TimerColor 1 0 msg $chan .color #770F5D }
if (%color = 17) { TimerColor 1 0 msg $chan .color #FFC0CD }
if (%color = 18) { TimerColor 1 0 msg $chan .color #000000 }
inc %color

}
}
}

Any help will be appreciated

Joined: Apr 2010
Posts: 969
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 969
on text does not trigger for messages sent from the mIRC instance.

You will need to look into on Input


I am SReject
My Stuff
Joined: Jun 2017
Posts: 3
8
8440 Offline OP
Self-satisified door
OP Offline
Self-satisified door
8
Joined: Jun 2017
Posts: 3
Originally Posted By: FroggieDaFrog
on text does not trigger for messages sent from the mIRC instance.

You will need to look into on Input


Elaborate, I'm new to this lol.

Joined: Apr 2010
Posts: 969
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 969
The on text event doesn't trigger for text you send from mIRC to twitch's servers; that event is for messages received.

Instead you will need to use the on input event(in mIRC: /help on input) to detect when your mIRC sends a message


I am SReject
My Stuff
Joined: Jun 2017
Posts: 3
8
8440 Offline OP
Self-satisified door
OP Offline
Self-satisified door
8
Joined: Jun 2017
Posts: 3
Originally Posted By: FroggieDaFrog
The on text event doesn't trigger for text you send from mIRC to twitch's servers; that event is for messages received.

Instead you will need to use the on input event(in mIRC: /help on input) to detect when your mIRC sends a message


I got it thank you


Link Copied to Clipboard