mIRC Home    About    Download    Register    News    Help

Print Thread
Page 2 of 2 1 2
Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
Code:
on *:text:!regnick*:#channel:{
  var %x = 1
  while (%x <= $lines(filter.txt)) {
    if ($left($read(filter.txt,n,%x),1) == @) || ($v1 == +) { inc %x }
    else { .timer 1 1 msg # $read(filter.txt,n,%x) }
    inc %x
  }
}


That's because the code above sets all timers to 1 second,and since the script finishes almost instantaneously, they all end after 1 second. A fix for both your problems should be:

Code:
on *:text:!regnick*:#channel:{
  var %y = 1
  while ($read(filter.txt,n,1)) {
    if ($left($read(filter.txt,n,1),1) != @) && ($v1 != +) { .timer 1 %y msg $chan $read(filter.txt,n,1) | inc %y }
    write -dl1 filter.txt
  }
}

Last edited by 5618; 19/10/07 01:36 PM.
Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
oops im sorry i forgot to increment within the statement very sorry


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
Joined: Oct 2007
Posts: 92
N
Babel fish
OP Offline
Babel fish
N
Joined: Oct 2007
Posts: 92
works properly thanks...

how can i adjust the timer coz when it joined a big channel it get excess after20-30 nicks.. thanks

Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
in the second snipplet the timer has a variable set called y if you change the var %y = numberhere then put the amount of seconds you want else if your editing a regular .timer its like this...

.timer 1(means repititions/How many times) 1(means seconds of timer) /command

.timer 1 2 /msg # I created a 2 second timer.


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
Joined: Oct 2007
Posts: 92
N
Babel fish
OP Offline
Babel fish
N
Joined: Oct 2007
Posts: 92
ok got it thanks to you all

Page 2 of 2 1 2

Link Copied to Clipboard