Top
TravisT
Comments: 3
 
mIRC Snippet:  INPUT
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.
TravisT
Comments: 3
 
mIRC Snippet:  Anti Spam Dialog
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?
napa182
Comments: 1,228
 
mIRC Snippet:  INPUT
Posted on Jan 7, 2009 12:25 am
lol
* ~napa182 slaps morbid with a pitchfork...
napa182
Comments: 1,228
 
mIRC Snippet:  IRC UNO
Posted on Jan 7, 2009 12:22 am
from the intro
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.
Demothense
Comments: 3
 
mIRC Snippet:  INPUT
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
napa182
Comments: 1,228
 
mIRC Snippet:  Sudoku
Posted on Jan 7, 2009 12:18 am
nice work, but i have seen a few diff versions of this for mirc before.
F*U*R*B*Y*
Comments: 613
 
PHP Snippet:  Basic PHP IRC Bot
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
Aucun50
Comments: 81
 
mIRC Snippet:  INPUT
Posted on Jan 7, 2009 12:12 am
True
SirJaxx
Comments: 3
 
mIRC Snippet:  IRC UNO
Posted on Jan 7, 2009 12:11 am
Where do I load it into?
napa182
Comments: 1,228
 
mIRC Snippet:  INPUT
Posted on Jan 7, 2009 12:06 am
Aucun50 said:
Quote:
He/She could but then he/she wouldn't know how to add things. Unless he/she know how to use $regex and $iif.


well thats what /help and Tutorials are for as well as this site.
Aucun50
Comments: 81
 
mIRC Snippet:  INPUT
Posted on Jan 6, 2009 11:52 pm
He/She could but then he/she wouldn't know how to add things. Unless he/she know how to use $regex and $iif.
napa182
Comments: 1,228
 
mIRC Snippet:  INPUT
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
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-) }
}

Aucun50
Comments: 81
 
mIRC Snippet:  INPUT
Posted on Jan 6, 2009 11:16 pm
Then again that would make you look stupid if you forgot to put in $2 && $3 and you get a msg from yourself saying you forgot it lol.
Aucun50
Comments: 81
 
mIRC Snippet:  Sudoku
Posted on Jan 6, 2009 11:08 pm
Works good for me, Good job on it this is something new that no one has do as far as i know.

Finally something new that's not a bot commands or something along that line lol.
Aucun50
Comments: 81
 
mIRC Snippet:  INPUT
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.
mountaindew
Comments: 1,762
 
mIRC Snippet:  INPUT
Posted on Jan 6, 2009 10:48 pm
Use $iif
Code:

mode $chan +o $iif($2,$2,$me)


Oh and btw, these aren't aliases :/
ODD
Comments: 7
 
PHP Snippet:  game search bot
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
Aucun50
Comments: 81
 
mIRC Snippet:  Steam_id ban
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
Cheiron
Comments: 366
 
mIRC Snippet:  Armageddon Allnetwork
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
irchainscriptz
Comments: 91
 
PHP Snippet:  Latest post on your homepage ( phpbb )
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 :)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Next
Bottom