mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Mar 2016
Posts: 50
T
TUSK3N Offline OP
Babel fish
OP Offline
Babel fish
T
Joined: Mar 2016
Posts: 50
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.

Last edited by TUSK3N; 08/06/16 07:16 AM.
Joined: Jun 2016
Posts: 9
P
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
P
Joined: Jun 2016
Posts: 9
I have Mike's script but it's only working for mods LUL

Joined: Jun 2016
Posts: 1
M
Mostly harmless
Offline
Mostly harmless
M
Joined: Jun 2016
Posts: 1
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

Last edited by Mike_1311; 11/06/16 08:06 PM.

Link Copied to Clipboard