Since i appear to be in the necromancy business this year, and the subject was broached in OOC, thought i'd throw up the current, somewhat simplified version of the login script i'm currently using:
- Code: Select all
on 1:JOIN:#lonely_inn_ooc:{
if ( $nick == $me ) {
/timer 1 2 dologin
}
}
on 1:DEVOICE:#lonely_inn_ooc:{
if ( $vnick == $me ) {
/timer 1 2 dologin
}
}
alias dologin {
if ( ( Desdaemona isop #lonely_inn_ooc ) && ( $me ison #lonely_inn_ooc ) && ( $me !isvoice #lonely_inn_ooc ) ) {
/msg Desdaemona !login <password> <character name>
}
elseif ( ( $me ison #lonely_inn_ooc ) && ( $me !isvoice #lonely_inn_ooc ) ) {
/timer 1 200 dologin
}
}
Triggers: Whenever i join the OOC room, or when I am devoiced in the OOC room: Log in after 2 seconds.
Login function: If (at the end of the timer) Desdaemon is present, and oped in the OOC room, and I am still not voiced, send my login details to Desdaemona.
If Desdaemona is not in the OOC room, or is not oped, but I am still, wait 200 seconds and try again.
Otherwise (I've either left the room or have a voice), do nothing.