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?!? ;)
}
}
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?!? ;)
}
}
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)
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.
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 :)
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!
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.