I had a simple version of this script which was on *:JOIN:#: { msg $chan Your text here } But Jethro_ helped me improve it and now it has been improved :).
on !*:JOIN:#:{
.timergreet 1 3 greeting $chan
}
alias -l greeting {
msg $1 YOUR MESSAGE HERE
}
SPECIAL THANKS TO Jethro_ :) REMOVE THIS TEXT
HaLF_EviL, please kindly use the Hawkee forum. Hijacking someone's thread is not an ideal, courteous gesture to ask for help.
Posting your questions at the forum will get your more responses and benefit other people in the future when they seek similar answers to their questions.
I also get inundated with requests in my PM constantly. PLEASE, people, use Hawkee forum as your destination for further assistance.
I would do a little different:
The first line (where nick1...nick3 is) can be a list of people you don't want to greet, space delimited
the second is a list of excluded channels, space delimited
the third, (where GREETHERE is) will be the greet message.
The timer is named based on nick so that if two people join in a row they both get greeted, but if the same person joins and parts and joins... they don't unless it's after three seconds.
and finally, I would put something like "Welcome to $chan, $nick $+ !" for my greet, so if bob joins #joe, it will read "Welcome to #joe, bob!"
alias -l bad { return nick1 nick2 nick3 }
alias -l cbad { return #chan1 #chan2 #chan3 }
alias -l greet { return GREET HERE }
on !*:JOIN:#:{
if (!$istok($bad,$nick,32)) && (!$istok($cbad,$chan,32)) {
.timer $+ $nick 1 3 msg $chan $greet
}
}
No need for the alias?Yes, you're right. Using an alias is one thing that came to mind. Besides, you can make a comparison later if you only want it to trigger on certain ranks of users. You need an alias for that. Surely you can use the $iif() but it's cleaner with an alias. I'll still prefer that the timer to be named because it'll generate flood with lots of timers if being attacked.
It's very rudimentary, but is also inclined to being flooded if someone malicious sends in a massive amount of bots to get you thrown out of the network and possibly get banned for sending too many lines of greetings too fast.
It'd be best if you considered using a timer like so:
on !*:JOIN:#:{
.timer 1 3 greeting $chan
}
alias -l greeting {
msg $1 YOUR MESSAGE HERE
}
This tells mIRC to wait about 3 seconds after a user has joined before your greetings are sent. The ! by the join event will not trigger when you (the client that runs the code) join. It'll trigger upon other people's entry only.
You can adjust the delay longer if you wish.
how do i get this to use it in one channel its doing it where ever the bots is