mIRC Homepage
Posted By: TUSK3N [Twitch] !py emote script (pyramid) - 08/06/16 07:16 AM
Hello I found this script that works great

Code:
on *:TEXT:Salty:#: {
  if ($nick == yournick) {
    .timer 1 2 .msg $chan PJSalt
    .timer 1 4 .msg $chan PJSalt PJSalt
    .timer 1 6 .msg $chan PJSalt PJSalt PJSalt
    .timer 1 8 .msg $chan PJSalt PJSalt
    .timer 1 10 .msg $chan PJSalt
  }
}


But I want it to be more advanced so if I type !py Kappa 10 it should do a 10 Kappa pyramid. I dont know how to set it up.

so the command should be

!py [pyramid text] [amount] [seconds between each msg]

so If I do
!py hello 3 3
the output would be

Code:
    .timer 1 3 .msg $chan hello
    .timer 1 6 .msg $chan hello hello
    .timer 1 9 .msg $chan hello hello hello
    .timer 1 12 .msg $chan hello hello
    .timer 1 15 .msg $chan hello



I hope that explains it.
Posted By: Psyqological Re: [Twitch] !py emote script (pyramid) - 11/06/16 07:33 PM
I have Mike's script but it's only working for mods LUL
Posted By: Mike_1311 Re: [Twitch] !py emote script (pyramid) - 11/06/16 07:56 PM
Code:
on *:text:!py*:#CHANNEL_NAME:{
  if ($nick == YOUR_USERNAME) {
    var %x = 0
    var %y = 0
    while ( %x < $3 ) {
      %x = %x + 1
      %y = %y + 1
      timer -m 1 $calc($4 * 1000 * %y) msg $chan $str($2 $chr(32), %x)
    }
    while ( %x > 1 ) {
      %x = %x - 1
      %y = %y + 1
      timer -m 1 $calc($4 * 1000 * %y) msg $chan $str($2 $chr(32), %x)
    }
  }
}


usage:
!py [pyramid text] [amount] [seconds between each msg]

delete "* 1000" if you want to be more precisely and specify the interval in milliseconds
© mIRC Discussion Forums