mIRC Homepage
Posted By: Toxcicity Help with on join msg - 12/05/11 04:18 AM
Code:
ON *:JOIN:#:
{
  if ($nick isop $chan || $nick ishop $chan || $nick isvoice $chan) {
    msg $nick Hello $nick $+ ! Good to see you again
  }
}


Im looking to pm everyone who joins "good to see you again" but to only VOICED AND UP.

I believe this is the right code, but I'm having problems. Everyone is voiced by a botserv, therefore the code is worthless because the person is voiced a little bit after the code runs "on join".

If there was a way to set a timer or something to start the entire code, it might be fixed. If anyone can do this or has any other ideas on how to get the people voiced+ pm'd please let me know :]
Posted By: Tomao Re: Help with on join msg - 12/05/11 04:47 AM
I think this should do it:
Code:
on !*:join:#:.timerjm 1 2 jm $nick #
alias -l jm {
  if ($1 !isreg $2) {
    msg $1 Hello $1! Good to see you again
  }
}
Posted By: Toxcicity Re: Help with on join msg - 12/05/11 06:05 AM
Originally Posted By: Tomao
I think this should do it:
Code:
on !*:join:#:.timerjm 1 2 jm $nick #
alias -l jm {
  if ($1 !isreg $2) {
    msg $1 Hello $1! Good to see you again
  }
}


WORKS PERFECTLY!

Thank you so much :}
Posted By: Toxcicity Re: Help with on join msg - 17/05/11 06:37 PM
hmm, my friend wants this bot in his channel on a different server. Is it possible to get this script with a different message on his without messing up my own?
Posted By: Tomao Re: Help with on join msg - 17/05/11 09:25 PM
What does that have to do with messing up yours? He's going to run the code with his own mIRC on his server. You're to give him the code and then he changes the "Good to see you again" message to the one he wants. It's simple as that.
Posted By: RusselB Re: Help with on join msg - 17/05/11 11:54 PM
The only thing that I can think of, is that Toxicity's friend doesn't have their own bot and wants Toxicity to run his/her bot on the other network simultaneously.
While this can be done, the code would have to be altered to account for the different connections and channels.

The easiest way is for Toxicity's friend to run their own bot, as stated by Tomao.
Posted By: Toxcicity Re: Help with on join msg - 19/05/11 12:56 AM
Yeah made him use his own bot wink thanks again guys
© mIRC Discussion Forums