mIRC Homepage
Posted By: Xtibian [Script Request]Thanks for the invite - 25/08/06 12:41 AM
I'm looking for a thanks for the invite script. So when my gets invited to a channel my bot will say Thank you for the invite (name of person who invited bot). When my bot joins that channel it says that of course.

I'm learning slowly about scripting so soon you wont hear me asking for newbie things like this. :P
Posted By: hixxy Re: [Script Request]Thanks for the invite - 25/08/06 12:49 AM
Code:
alias _msg {
  if ($me ison $1) { msg $1- }
}
on *:invite:#:{
  join $chan
  .timerinvite 1 1 _msg $chan Thank you for the invite $nick
}
Posted By: Xtibian Re: [Script Request]Thanks for the invite - 25/08/06 01:02 AM
Thank you. Forgot to ask but whats the script thing to tell how many times its been invited so it can also say?
Posted By: RusselB Re: [Script Request]Thanks for the invite - 25/08/06 01:21 AM
Code:
 alias _msg {
  if ($me ison $1) { msg $1- }
}
on *:invite:#:{
  inc $+(%,invite,.,$chan)
  join $chan
  .timerinvite 1 1 _msg $chan Thank you for the invite $nick $+ . This is the $ord($($+(%,invite,.,$chan),2)) time I've been invited to $chan
} 
© mIRC Discussion Forums