Auto Greet Humper >.>

By CommonKnowledge on Jan 21, 2012

So yeah, This would be my first SMALL snippet. please go light with the comments >.<
its pretty self-explanatory on what this does.
but for those who don't know, when a person enters that channel, you will hump and greet them.
its a dumb snippet, not worth anything. but its my first, and i figured it should be posted as such.
sorry for the n00bness >.<

Updated to work correctly lol.
if you don't want it to do it to each nickname, take out " if ($nick == $nick) "
and replace it with this " ($istok(nickname|nickname|nickname|nickname,$nick,124)) "

replacing "nickname" with that persons nickname, and seperated by " | "
as you can see, i've left 4 open spaces for nicknames on there for you already.
Add and delete how ever many your heart desires :)

I also want to give credit to Expl0reR and GrimReaper for helping me with this code.
and also thanks to those who gave excellent feedback to make this script better.
Thank You!

on *:join:#: {
  if (%noflood.example. [ $+ [ $chan ] ] >= 2) { halt }
  inc -u3 %noflood.example. [ $+ [ $chan ] ] 1
  If ($nick == $nick)  {
    timer 1 3 Describe $chan humps $nick 
    timer 1 5 msg $chan Ohhaithar $nick
    timer 1 7 msg $chan how YOU doin?!? ;)
  }
}

Comments

Sign in to comment.
xplo   -  Jan 26, 2012

i taught you were talking about putting it there !%var
my bad.

 Respond  
WorldDMT   -  Jan 26, 2012

what r u telling me??
on **!*:join:#:{ the "!" on prefix it's stop the execution of code if YOU** ARE JOIN CHANNEL

about %var if 2 nicks join same time or in less than 3 seconds only one of then will be gratified

 Respond  
xplo   -  Jan 24, 2012

if the %var is equal to 2 or more, it will /HALT (do nothing)
and you don't need to put ! because its not "if not" its "if its"

 Respond  
WorldDMT   -  Jan 22, 2012

if (%noflood.example. [ $+ [ $chan ] ] >= 2) { halt }

so if 3 different nick jion the channel this will do noting?

and may be better to add "!" on prefix of event

 Respond  
Jethro   -  Jan 22, 2012

if ($nick == Ryan) { <- this tells mIRC to only respond to Ryan when he joins. $nick == $nick doesn't serve any purpose. It's like saying 0+0 = 0

on !*:join:#:{
.timeroponly 1 2 greetmsg $nick #
}
alias -l greetmsg {
if ($1 isop $2) {
.Describe $1 humps $2
.msg $1 Ohhaithar $2
.msg $1 how YOU doin?!? ;)
}
}

 Respond  
CommonKnowledge   -  Jan 22, 2012

its not really for a bot.. it was for my personal use. and i've been looking at codes for a while, and i used what i remember works. noone ever explained to me that ($nick == $nick) isn't necessary, nor did i put it that deep in thought.

 Respond  
CommonKnowledge   -  Jan 22, 2012

you mean.. Rip? Lol

 Respond  
xplo   -  Jan 21, 2012

why would you want to say a long amount of text via a mirc bot. just do longer phrases

talking like this
is
really
gay
but, talking like this is the proper way to do. multiple lines is not always the best way to go, and if i were you, i would delete this piece of code. Its not really a code, you simply added a if ($nick == $nick) that is equivalent to if (1 == 1) {...}
You should try and look at other people's codes. use them, modify them extremely, and then take out another version to call it your own. (hawkee reality)

 Respond  
CommonKnowledge   -  Jan 21, 2012

but thank you all for your input, I will try to create something more useful next time. this was just my eagerness getting the best of me to make my first snippet/post >.<

 Respond  
CommonKnowledge   -  Jan 21, 2012

i didn't origionally make it so that you could add or delete nicks.
but the next time i edit/build onto it, i'm going to attempt to take it further. cuz i do have to agree with Xpl0reR, there are a ton of worthless snippets on hawkee that should be made more useful, and also be a longer amount of text.

 Respond  
CommonKnowledge   -  Jan 21, 2012

$nick == $nick regardless with this script. i could have left it out, and it still would have functioned the correct way anyways.

 Respond  
blackvenomm666   -  Jan 21, 2012

extremety i beleive the if $nick == nick is meant to be replaced with if $nick == someonesnickhere that way it only goes off on that certain person i could be wrong but i beleive so

 Respond  
xplo   -  Jan 21, 2012

something you might wanna add is a flood protection.
Lets say on your channel, there is 100 nicknames/users
Bam! .net .split
50% of them leaves.
Bam. Net-merge (a ".net .split" fixing itself)

50 users joins your room. you send 150 /say, you quit in (Excess flood)

Try to make sure they are not rejoining from a netsplit, or put a %var that will make the script do nothing if exceeded . with a /return or /halt.

here is an example with your code.

on *:join:#: {
  if (%noflood.example. [ $+ [ $chan ] ] >= 2) { halt }
  inc -u3 %noflood.example. [ $+ [ $chan ] ] 1
  if ($nick == $nick) {
    timer 1 3 Describe $chan humps $nick 
    timer 1 5 say Ohhaithar $nick
    timer 1 7 say how YOU doin?!? ;)
  }
}

Please keep in mind, that i really don't think small lines of useless codes like this one should be on hawkee.
There should be a minimum of ~50 lines to be valid...

But the method is there, learn from it, and use it in everything. (with different %variable.names.

Here is what i would do. (if i would be in a life or death situation)

on *:join:#: {
  if (%noflood.example. [ $+ [ $chan ] ] >= 2) { halt }
  inc -u3 %noflood.example. [ $+ [ $chan ] ] 1
    Describe $chan humps $nick 
    .notice $nick Welcome on $chan $+($nick,!) This is your $iif($+(%n.j.,$chan) == 0,First, $+(%n.j.,$chan)) Visit with us. Have fun :)
  }
}

Welcome on hawkee :)

 Respond  
CommonKnowledge   -  Jan 21, 2012

Okay, Y'all are right, i just had an issue with it. one of my opers came into every room i was in, and it was a mess. i'm not sure how to make it work only once. :/

 Respond  
Kentaro Kurosaki   -  Jan 21, 2012

Same here, I can see that getting a bit troublesome, especially with troublemakers
Though as good fyi, don't always rely on operstatus to help you out with your own code, use common sense with it and I could probably help you with the "certain people" etc.

 Respond  
Jethro   -  Jan 21, 2012

You may get rid of the timers if you want. There's only three-line output. One pet peeve I can see is that this snippet could get a bit annoying.

 Respond  
CommonKnowledge   -  Jan 21, 2012

Well, I didn't see flooding as an issue, becuase the only server i'm on that has a flood limit is my own, but then i have the operstatus to back me up. but i also wasn't thinking about the users who might use this snippet. i also wanted to make it into a dialog, where you can add your own actions or things to say to people on entry, or to certain people on entry, using possibly an ini file or whatever. however. with my lack of knowledge in scripting, it'll be a while >.< but Ty for the input! much appreciated!

 Respond  
extremity   -  Jan 21, 2012

Congrats on posting your first snippet. The only thing I can say is the if ($nick==$nick) statement is really not necessary. It will always return true. If you are going to build further on this snippet, you may want to consider what happens if alot of users join at once or a server reset. You might flood out.

 Respond  
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.