mIRC Home    About    Download    Register    News    Help

Topic Options
#253689 - 27/06/15 09:23 PM [Twitch] making a pyramid command with custominput
arabalidos Offline
Self-satisified door

Registered: 27/06/15
Posts: 3
im trying to make a command that whould be like so a pyramid command with twitch.tv emotes which whould start with for example
Kappa once then
Kappa Kappa
Kappa Kappa Kappa
Kappa Kappa
Kappa
hard to explain :$
but i want it to be a command that ops / a user (me) can only use and it needs to have delayed messages by one second so it doesnt get spammed too fast to get timed out by the website, the last idea was if i whould make it with a custom emote like !pyramid "emote" and make it as so if you get me i have tried many times but never succeeded

please help


Edited by arabalidos (27/06/15 09:36 PM)

Top
#253690 - 27/06/15 09:50 PM Re: [Twitch] making a pyramid command with custominput [Re: arabalidos]
Newbie Offline
Babel fish

Registered: 24/11/14
Posts: 79
Don't know if this is what you're asking for but here goes
Code:
on *:TEXT:!pyramid &:#: {
if ((%floodpyramid) || ($($+(%,floodpyramid.,$nick),2))) { return }
    set -10 %floodpyramid On
    set -60 %floodpyramid. $+ $nick On
 if ($nick isop) {
  .timerOne 1 1 msg # $2
  .timerTwo 1 2 msg # $2 $2
  .timerThree 1 3 msg # $2 $2 $2
  .timerFour 1 4 msg # $2 $2
  .timerFive 1 5 msg # $2 
 }
}


So the way it works is you trigger the command by typing !pyramid Kappa where Kappa can be any emote you want it to be. But you do have to type a second emote.

So for example !pyramid FrankerZ should make a pyramid of frankerZ


Edited by Newbie (27/06/15 09:51 PM)

Top
#253691 - 27/06/15 09:55 PM Re: [Twitch] making a pyramid command with custominput [Re: Newbie]
arabalidos Offline
Self-satisified door

Registered: 27/06/15
Posts: 3
wow thanks for the quick reply bro, im trying to make it available to me if im not a op in the channel i think there is a missing $chan in the code cause its not working but ill reply when ive tried it

Top
#253692 - 27/06/15 09:58 PM Re: [Twitch] making a pyramid command with custominput [Re: Newbie]
arabalidos Offline
Self-satisified door

Registered: 27/06/15
Posts: 3
its not working, this is the code atm
Code:
on *:TEXT:!pyramid &:#: {
  if ((%floodpyramid) || ($($+(%,floodpyramid.,$nick),2))) { return }
  set -10 %floodpyramid On
  set -60 %floodpyramid. $+ $nick On
  if ($nick isop) {
    .timerOne 1 1 msg # $chan $2
    .timerTwo 1 2 msg # $chan $2 $2
    .timerThree 1 3 msg $chan # $2 $2 $2
    .timerFour 1 4 msg $chan # $2 $2
    .timerFive 1 5 msg $chan # $2 
  }
}


Edited by arabalidos (27/06/15 10:00 PM)
Edit Reason: changed to code

Top
#255875 - 28/11/15 11:24 PM Re: [Twitch] making a pyramid command with custominput [Re: arabalidos]
acpixel Offline
Pikka bird

Registered: 19/08/15
Posts: 16
you need to make it
Code:
 if ($nick isop #) 

Top