Simple Shitlist For Bot

Platform:  mIRC
Published  Mar 25, 2008
Updated  Mar 27, 2008
It's just a simple blacklist using hash tables. [For a Bot]

***<!---Start Note---!>***
It will give you an error the first time you use this. There is most likely not a table in your mIRC directory named shoot.tmp. This is ok. The script will make one, and save it.
***<!--End Note--!>***

Just set the var, %owner, to your nick, or whoever the owner is. on *:start: hmake shoot 100 | hload shoot shoot.tmp
on *:exit: hsave shoot shoot.tmp
on *:join:#: if ($me isop $chan) && ($botaccess($fulladdress) = Dead) { kick $chan $nick You've been shoot! | mode # +b $address($nick,5) }
on *:text:~add*:#: if ($2 = shoot) && ($nick = %owner) { hadd shoot $3 Dead }
on *:text:~del*:#: if ($2 = shoot) && ($nick = %owner) { hdel shoot $3 Dead }
alias botaccess { return $hget(shoot, $hfind(shoot, $1, 1, W)) }

Comments

Sign in to comment.
Gecko321   -  Mar 30, 2008
if you change your On Start to
on *:start: hmake shoot 100 | if ($findFile($MircDir,shoot.tmp,0)) { .hload shoot shoot.tmp }

it will get rid of that error
 Respond  
Soulkeeper   -  Mar 27, 2008
Lol. Forgot to take out the 2 part.
 Respond  
Andrew-|   -  Mar 27, 2008
Where is the botaccess2 alias?
 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.