mIRC Home    About    Download    Register    News    Help

Print Thread
#10563 11/02/03 02:17 AM
Joined: Jan 2003
Posts: 108
H
Vogon poet
OP Offline
Vogon poet
H
Joined: Jan 2003
Posts: 108
Code:
alias kill15 { /mode $$1 -o+b $$2 $address($$2,3) | /kick $$1 $$2 15 second time ban! | /timer 1 15 { /mode $chan -bb $$2 $address($$2,3) | /notice $$2 $$3- } } 

Im confused, because the timer runs and sends the notice right after activated, although it waits for the -b. Any help would be greatly appriciated. smile

#10564 11/02/03 02:27 AM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
To separate delayed commands within a timer, use $chr(124) instead of a plain pipe separator.
Code:

alias kill15 { 
  mode $1 -o+b $$2 $address($2,3) 
  kick $1 $2 15 second time ban! 
  timer 1 15 mode $1 -bb $2 $address($2,3) $chr(124) notice $2 $3- 
}

#10565 11/02/03 02:30 AM
Joined: Dec 2002
Posts: 332
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 332
are you wanting to ban them for 15 seconds ?
if so you would use this
Code:
 
/ban -u15 # $$1 4
 

the -u15 is the 15 second timer and 4 would be the ban type

#10566 11/02/03 02:30 AM
Joined: Jan 2003
Posts: 108
H
Vogon poet
OP Offline
Vogon poet
H
Joined: Jan 2003
Posts: 108
thanks smile

#10567 11/02/03 02:31 AM
Joined: Jan 2003
Posts: 108
H
Vogon poet
OP Offline
Vogon poet
H
Joined: Jan 2003
Posts: 108
Cheech i want to run two commands with one timer. Like -b then notice. Both at the same time.

#10568 11/02/03 02:35 AM
Joined: Dec 2002
Posts: 332
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 332
ah ic that now and i didnt know that answer anyhow lol but i do now

#10569 11/02/03 02:36 AM
Joined: Jan 2003
Posts: 108
H
Vogon poet
OP Offline
Vogon poet
H
Joined: Jan 2003
Posts: 108
If you have an easier way to do it with less code, by all means post it. smile

#10570 11/02/03 02:42 AM
Joined: Dec 2002
Posts: 332
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 332
an nope once again i was saying i had no idea as to how to solve the problem really but after reading onlines reply i learned the answer however just as a question on the subject if you were to add another /timer 1 15 after the pipe would the result be the same ? thats not less code but i am just curious

#10571 11/02/03 02:45 AM
Joined: Jan 2003
Posts: 108
H
Vogon poet
OP Offline
Vogon poet
H
Joined: Jan 2003
Posts: 108
you mean would it execute the same thing? in theory yes it would, but then you would have two timers running, and with that much code its slow already so, you could do it, I just wouldnt recommend it


Link Copied to Clipboard