mIRC Snippet:
INPUT
Posted on Jan 7, 2009 2:18 am
Posted on Jan 7, 2009 2:18 am
lol, actually $iif is a bit slower than using if.
I was going to suggest not checking the comparison twice.
if (!$2) mode $chan +o $me
else { mode $chan +o $2 }
but safer to say ...
if ($2 ison $chan) { mode $chan +o $2 }
else { mode $chan +o $me }
I, however, prefer the method stated with the regex. One line that handles all modes. :)
on *:input:#:{
if ($1 == .m) { var %m2 = $iif($3 ison $chan,$3,$me) | mode $chan $2 %m2 }
elseif ($1 == .k) && ($2 ison $chan) { kick $chan $2 $3- }
}
example:
.m +v nickname
Does require more to type though.
I was going to suggest not checking the comparison twice.
if (!$2) mode $chan +o $me
else { mode $chan +o $2 }
but safer to say ...
if ($2 ison $chan) { mode $chan +o $2 }
else { mode $chan +o $me }
I, however, prefer the method stated with the regex. One line that handles all modes. :)
on *:input:#:{
if ($1 == .m) { var %m2 = $iif($3 ison $chan,$3,$me) | mode $chan $2 %m2 }
elseif ($1 == .k) && ($2 ison $chan) { kick $chan $2 $3- }
}
example:
.m +v nickname
Does require more to type though.
mIRC Snippet:
Anti Spam Dialog
Posted on Jan 7, 2009 12:41 am
Posted on Jan 7, 2009 12:41 am
Yeah that was my first thought. Better to write down the allowed urls. There are way less allowed urls than urls to kick for. You can't possibly think of all the urls you dont want posted in your room.
Also, I don't think it is wise to do a loop through every line in a text file for every text event.
I also don't see any flood protection. What does this code do during a text flood?
Also, I don't think it is wise to do a loop through every line in a text file for every text event.
I also don't see any flood protection. What does this code do during a text flood?
mIRC Snippet:
IRC UNO
Posted on Jan 7, 2009 12:22 am
Posted on Jan 7, 2009 12:22 am
from the intro
@ Sir Jaxx: load it in a new remote of ur bot.
| Quote: |
| Again if you don't know how to play you can learn from playing one game. These are all text events, so you will need to put this script in an mIRC bot. If your looking for some people to play with, i play in #cwcommunity on swiftirc. |
@ Sir Jaxx: load it in a new remote of ur bot.
mIRC Snippet:
INPUT
Posted on Jan 7, 2009 12:22 am
Posted on Jan 7, 2009 12:22 am
eh I don't know why I put aliases and Napa hush up Ill sick Jenn on you :P
PHP Snippet:
Basic PHP IRC Bot
Posted on Jan 7, 2009 12:17 am
Posted on Jan 7, 2009 12:17 am
ODD, atm, I'm rewriting it to make it so others can have it, and have it easy. but I'll be sure to let you have it once its rewritten
mIRC Snippet:
INPUT
Posted on Jan 6, 2009 11:30 pm
Posted on Jan 6, 2009 11:30 pm
you could make it abit shorter by useing regex and $iif's
for the user modes and kick kickban's and so on somthing like
for the user modes and kick kickban's and so on somthing like
| Code: |
| on *:INPUT:#:{ if ($regex($1,/^[+-][ov]$/S)) { mode # $1 $iif(!$2,$nick,$2) } if ($regex($1,/^(.k|.kb)$/S) && $2) { $iif($regml(1) == .k,kick # $2 $iif(!$3,Cya,$3-),$iif($regml(1) == .kb,ban -k # $2 2 $iif(!$3,Cya,$3-))) } if ($regex($1,/^(.kill|.akill)$/S) && $2) { $right($regml(1),-1) $2 $iif(!$3,Piss off,$3-) } } |
mIRC Snippet:
INPUT
Posted on Jan 6, 2009 11:04 pm
Posted on Jan 6, 2009 11:04 pm
I was about to say that to, for your
if ($1 == .k) {
if ($2) kick $2 $3-
}
You could put: if (!$2) && (!$3) { msg $chan No Name or Channel entered }
if ($1 == .k) {
if ($2) kick $2 $3-
if (!$2) && (!$3) { msg $chan No Name or Channel entered }
}
You can also do that for .kb, .kill and so on.
if ($1 == .k) {
if ($2) kick $2 $3-
}
You could put: if (!$2) && (!$3) { msg $chan No Name or Channel entered }
if ($1 == .k) {
if ($2) kick $2 $3-
if (!$2) && (!$3) { msg $chan No Name or Channel entered }
}
You can also do that for .kb, .kill and so on.
mIRC Snippet:
INPUT
Posted on Jan 6, 2009 10:48 pm
Posted on Jan 6, 2009 10:48 pm
Use $iif
Oh and btw, these aren't aliases :/
| Code: |
mode $chan +o $iif($2,$2,$me) |
Oh and btw, these aren't aliases :/
PHP Snippet:
game search bot
Posted on Jan 6, 2009 8:54 pm
Posted on Jan 6, 2009 8:54 pm
Actually i did some research.
If you are behind a firewall please allow port 6667 in quakenet or any other necessary port and i think it shall work for you
If you are behind a firewall please allow port 6667 in quakenet or any other necessary port and i think it shall work for you
mIRC Snippet:
Steam_id ban
Posted on Jan 6, 2009 4:46 pm
Posted on Jan 6, 2009 4:46 pm
Looks good two things, if (%found == $null) make it if (!%found), if you wont it to work even if they type in color do if (!addban == $strip($1)) { and if (!findban == $strip($1)) {
Also you could add a !findsteam command
Also you could add a !findsteam command
mIRC Snippet:
Armageddon Allnetwork
Posted on Jan 6, 2009 4:10 pm
Posted on Jan 6, 2009 4:10 pm
ummm couple of things here.. firstly, scripts must be published in english... secondly war scripts to my knowledge are banned here on hawkee. i may be wrong on that though
PHP Snippet:
Latest post on your homepage ( phpbb )
Posted on Jan 6, 2009 1:49 pm
Posted on Jan 6, 2009 1:49 pm
I like the snippet but as i can see wont work for ppl on Evo-nuke sites :P but other then that nice snippet there :)









