|
|
Joined: Sep 2006
Posts: 43
Ameglian cow
|
OP
Ameglian cow
Joined: Sep 2006
Posts: 43 |
timerjoin69 0 10 $iif($me !ison #UNLOBBY,join $v2,timerjoin69 off) sometimes the timer will stop but MOST times the timer will not
|
|
|
|
Joined: Dec 2002
Posts: 2,962
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,962 |
The $iif() is being evaluated when you set the timer so whether it stops or not is determined by whether you were in that channel at that time, not every ten seconds. To do that you need to prevent the $iif() from being evaluated like so: timerjoin69 0 10 $!iif($me !ison #UNLOBBY,join $!v2,timerjoin69 off)
Spelling mistakes, grammatical errors, and stupid comments are intentional.
|
|
|
|
Joined: Sep 2006
Posts: 43
Ameglian cow
|
OP
Ameglian cow
Joined: Sep 2006
Posts: 43 |
The $iif() is being evaluated when you set the timer so whether it stops or not is determined by whether you were in that channel at that time, not every ten seconds. To do that you need to prevent the $iif() from being evaluated like so: timerjoin69 0 10 $!iif($me !ison #UNLOBBY,join $!v2,timerjoin69 off) got this error with that $IIF($ME Unknown command - $IIF($ME Unknown command - $IIF($ME Unknown command - $IIF($ME Unknown command
Last edited by McOwnage; 24/01/07 10:01 PM.
|
|
|
|
Joined: Oct 2005
Posts: 1,741
Hoopy frood
|
Hoopy frood
Joined: Oct 2005
Posts: 1,741 |
Using $!escaped identifiers in timers can be confusing. Try this instead:
//timerjoin69 0 10 $($iif($me !ison #UNLOBBY,join $v2,timerjoin69 off),0)
-genius_at_work
|
|
|
|
Joined: Sep 2006
Posts: 43
Ameglian cow
|
OP
Ameglian cow
Joined: Sep 2006
Posts: 43 |
Using $!escaped identifiers in timers can be confusing. Try this instead:
//timerjoin69 0 10 $($iif($me !ison #UNLOBBY,join $v2,timerjoin69 off),0)
-genius_at_work Same thing $IIF($ME Unknown command - $IIF($ME Unknown command
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,330 |
Personally, I like aliases in timers better than escaping everything anyhow.
.timerjoin69 0 10 JoinChan
alias JoinChan {
$iif($me !ison #UNLOBBY,join $v2,timerjoin69 off)
}
Invision Support #Invision on irc.irchighway.net
|
|
|
|
Joined: Jan 2007
Posts: 1,156
Hoopy frood
|
Hoopy frood
Joined: Jan 2007
Posts: 1,156 |
I agree with Riamus completely. When I first started working with timers I found lots of problems when it was anything more than a simple command. I create an alias as well.
|
|
|
|
Joined: Dec 2006
Posts: 80
Babel fish
|
Babel fish
Joined: Dec 2006
Posts: 80 |
Scripto ---- Life is about the relationships. The correct code being: $replace($them,$you,$me)
|
|
|
|
Joined: Sep 2006
Posts: 43
Ameglian cow
|
OP
Ameglian cow
Joined: Sep 2006
Posts: 43 |
Personally, I like aliases in timers better than escaping everything anyhow.
.timerjoin69 0 10 JoinChan
alias JoinChan {
$iif($me !ison #UNLOBBY,join $v2,timerjoin69 off)
}
Thanks that works GREAT
|
|
|
|
|
|