Greeting message [UPDATED]

By reider45 on May 21, 2011

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

Comments

Sign in to comment.
HaLF_EviL   -  May 28, 2011

but jethro_ i nedd help only from ur side pal =)..... as well in forum!!

 Respond  
HaLF_EviL   -  May 28, 2011

@jethro_ thanks pal , my bad iam sory idnt about that ! :-)

 Respond  
Jethro   -  May 27, 2011

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.

 Respond  
HaLF_EviL   -  May 27, 2011

@jethro_
hi
i need ur help sir please if you dnt mind , actulayy i want to make a script which is that .. a person who join From mirc he got auto banned ..for join-ing the mirc ..please make/made sum script for me.. i shall be very thank fuup to you !! =)
Please reply
thanks ~!

 Respond  
Savage_CL   -  May 25, 2011

:P

 Respond  
Jethro   -  May 23, 2011

Never mind. I see you have edited your code after I posted mine. :P

 Respond  
Savage_CL   -  May 23, 2011

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
  }
}
 Respond  
Jethro   -  May 22, 2011

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.

 Respond  
Dani_l11   -  May 22, 2011

No need to give timers names jethro, this one will unset in 3 seconds anyway. And why use an alias and not just

on !*:JOIN:#: .timer 1 3 msg # YOUR MESSAGE

No need for the alias?

 Respond  
Epic   -  May 21, 2011

hey you could also make it for more people by using a $readini :) but i like the way you made yours

 Respond  
Jethro   -  May 21, 2011

Opps, I forgot to mention that the timer needs to be named. Make it: > .timergreet 1 3 greeting $chanso that the message will only be sent out once if you get flooded.

 Respond  
reider45   -  May 21, 2011

ok sounds really kool thanks as i said im a new scripter so i hae no clue about how to use timers :D

 Respond  
Jethro   -  May 21, 2011

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.

dma  -  May 17, 2018

how do i get this to use it in one channel its doing it where ever the bots is

Sign in to comment

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.