mIRC Home    About    Download    Register    News    Help

Print Thread
[Script Request]Thanks for the invite #157392 25/08/06 12:41 AM
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
Re: [Script Request]Thanks for the invite #157393 25/08/06 12:49 AM
Joined: Sep 2005
Posts: 2,878
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,878
Code:
alias _msg {
  if ($me ison $1) { msg $1- }
}
on *:invite:#:{
  join $chan
  .timerinvite 1 1 _msg $chan Thank you for the invite $nick
}

Re: [Script Request]Thanks for the invite #157394 25/08/06 01:02 AM
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
Re: [Script Request]Thanks for the invite #157395 25/08/06 01:21 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
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
}