mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Aug 2006
Posts: 44
X
Xtibian Offline OP
Ameglian cow
OP Offline
Ameglian cow
X
Joined: Aug 2006
Posts: 44
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


Newbie Scripter. Learning pretty fast...lol :P
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Code:
alias _msg {
  if ($me ison $1) { msg $1- }
}
on *:invite:#:{
  join $chan
  .timerinvite 1 1 _msg $chan Thank you for the invite $nick
}

Joined: Aug 2006
Posts: 44
X
Xtibian Offline OP
Ameglian cow
OP Offline
Ameglian cow
X
Joined: Aug 2006
Posts: 44
Thank you. Forgot to ask but whats the script thing to tell how many times its been invited so it can also say?


Newbie Scripter. Learning pretty fast...lol :P
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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
} 


Link Copied to Clipboard