mIRC Home    About    Download    Register    News    Help

Print Thread
#193464 19/01/08 07:43 PM
Joined: Nov 2007
Posts: 19
J
Jyang Offline OP
Pikka bird
OP Offline
Pikka bird
J
Joined: Nov 2007
Posts: 19
Code:
alias start start2 $chan $me
alias start2 timer $+ $1 1 2 begin
alias begin echo -a Triggered: $1

This script doesn't work, and I believe it's a bug in mIRC. I narrowed the script I was using to the three lines, but it still doesn't work.
When typing /start, it'll display "* Timer #chan activated", but after 2 seconds, it will not say "* Timer #chan halted". Instead, the script won't do anything.

$timer(#Chan).com = begin
$timer(#Chan).secs = 0 (After the first 2 seconds)

Thanks

EDIT:
Quote:

Tried the code I posted, it worked.

Here's the raw code I used, that didn't work. It probably has something to do with the alias name.
Code:
alias start unostart $chan $me
alias unostart timer $+ $1 1 30 unobegin $2
alias unobegin echo -a Triggered: $1


Last edited by Jyang; 19/01/08 08:25 PM.
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
I can't reproduce this.

Not connected:

Code:
* Timer hixxy activated
-
Triggered:
-
* Timer hixxy halted


Connected:

Code:
* Timer #hixxytest activated
Triggered:
* Timer #hixxytest halted

Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

Can't reproduce it here either with 6.31

* Timer #rock- activated
Triggered:
* Timer #rock- halted
* Disconnected
* Timer #rock- activated

Triggered:
* Timer #rock- halted

Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
You might want to make sure you don't have a /timer alias that's causing this. $isalias(timer) will return $true if you do.

The only other thing I can think of that would stop the timer without telling you is if you disconnect from the server - but then $timer(#chan) would return $null.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Joined: Nov 2007
Posts: 19
J
Jyang Offline OP
Pikka bird
OP Offline
Pikka bird
J
Joined: Nov 2007
Posts: 19
Tried the code I posted, it worked.
Here's the raw code I used, that didn't work. It probably has something to do with the alias name.
Code:
alias start unostart $chan $me
alias unostart timer $+ $1 1 30 unobegin $2
alias unobegin echo -a Triggered: $1

Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

Well it's taking longer because the timer delay is 28 seconds longer than the first one, but it's still working here.

* Timer #rock- activated
Triggered: RoCk-
* Timer #rock- halted
* Disconnected
* Timer #rock- activated

Triggered: RoCk-
* Timer #rock- halted

Joined: Nov 2007
Posts: 19
J
Jyang Offline OP
Pikka bird
OP Offline
Pikka bird
J
Joined: Nov 2007
Posts: 19
I unloaded all my scripts and tried. Seems to work fine now. Probably one of my scripts affecting it, even if $isalias(timer) = $false.

Anyway, thanks.

Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

Maybe you have another alias named unostart or unobegin ?

Joined: Jan 2008
Posts: 16
J
Pikka bird
Offline
Pikka bird
J
Joined: Jan 2008
Posts: 16
no idea what you're talking about

Joined: Jan 2007
Posts: 1,156
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
Whats the format of the channel names on the server you chat on?

Is it #Channel or %#Channel?


Link Copied to Clipboard