mIRC Home    About    Download    Register    News    Help

Print Thread
Page 2 of 2 1 2
Re: how to sort and save [Re: nomer2007] #188239 19/10/07 01:31 PM
Joined: Jun 2007
Posts: 933
5
5618 Offline
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.
Re: how to sort and save [Re: 5618] #188242 19/10/07 04:02 PM
Joined: Aug 2005
Posts: 1,052
L
Lpfix5 Offline
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* }
Re: how to sort and save [Re: 5618] #188265 20/10/07 02:12 AM
Joined: Oct 2007
Posts: 92
N
nomer2007 Offline OP
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

Re: how to sort and save [Re: nomer2007] #188270 20/10/07 03:06 AM
Joined: Aug 2005
Posts: 1,052
L
Lpfix5 Offline
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* }
Re: how to sort and save [Re: Lpfix5] #188271 20/10/07 03:19 AM
Joined: Oct 2007
Posts: 92
N
nomer2007 Offline OP
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