mIRC Home    About    Download    Register    News    Help

Print Thread
#125612 19/07/05 05:25 PM
B
bodo0815
bodo0815
B
hello
i have this:
Code:
on *:JOIN:#channel: {
    .timer 1 10 mk $nick #
  }
}
alias mk {
  if ($1 ison $2) { 
    hinc -m tmpj $1
    .timer 1 10 mk $1- 
  }
}

...this give on:join users one point every 10sec.
but i need another script that check the users in a channel
if i part or quit the channel

thx bodo

D
DaveC
DaveC
D
You cant check if the users are in the channel if your not, well not without alot of whoising, and im blowed if im gonna write a server flooder!

B
bodo0815
bodo0815
B
i will check if i join the room again :-)
and with a whoistimer?
how ever... how does look such a scipt?

thx bodo

Joined: Aug 2004
Posts: 7,168
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,168
To my knowledge you can't call an alias from within the alias, which is what you appear to be doing in the line
Code:
 alias mk {
  if ($1 ison $2) {
     hinc -m tmpj $1
  [color:red]    .timer 1 10 mk $1- [/color] 
   }
}
 


BTW: I'd be more than happy to be proven wrong on this point.

Joined: Feb 2004
Posts: 2,013
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Feb 2004
Posts: 2,013
He's not calling the alias from within the alias, he's putting it in a timer, which will call that alias 10 seconds later. There are more occasions where you can call the same command in the same alias, filter with -k flag comes to mind, or any custom alias that you script which overrides an internal command.

alias echo {
echo -a lol
}



Link Copied to Clipboard