Saturday, December 18, 2010

Bot Invincibility

Bot Invincibility, it will reconnect if you were ghosted or killed, but will do so after five seconds to avoid throttle kill. Also it will unban if you were banned, and kick if you were kicked. Keeps bans too. Nick preservation system is in here too. It'll activate on connect, and will definetly help against takeovers. Also has an annoying message system ;D use it to annoy all those ****ers in there ;). All code tested and functional.

Edit: Final debugging done, v2 is released. Enjoy all of you! :)

Enjoy!
-Z


on *:load: {
set %botowner $?="Bot Owner Nick?"
set %channel $?="What channel do you want it on?"
set %botnick $?="What is the nick of the bot?"
set %botpass $?="Nick Password?"
echo -a 4This script has been made to provide full invincibility for your bot. This is v2. Thanks to people who have helped! -Swat-
}

alias protection {
if ($1 == $null) {
echo -a 4Welcome to Protection-Script. Made by -Swat- All systems ready. Please type /protection joinmessage, /protection nick, and /protection topic.
echo -a 4Message system goes with "/message".
}
elseif ($1 == joinmessage) {
echo -a 4Your Join Message has been set to: %protectjoin -Swat-
}
elseif ($1 == nick) {
set %nicktoprotect $?="What will your standard nick be?"
set %nickpassword $?="And it's pass is?"
echo -a 4Nick Protection set for %nicktoprotect. -Swat-
}
elseif ($1 == topic) {
set %topicmessage $?="Topic to hold?"
echo -a 4 Topic held at: %topicmessage 4 -Swat-
}
}

on *:TOPIC:#: {
cs topic $chan %topicmessage
}

on !@*:BAN:#: {
if ($banmask iswm $ial($me)) {
cs unban # $v1
mode # -b $2
ban # $nick 2
cs kick # $nick Owned by:
}
}

on !*:JOIN:#: {
/msg $chan Hi, I'm $me . At your service and invincible.
/msg $nick You betta not mess with meh, 'cause that'll be the last thing you do in this channel.
}



on *:connect: {
if ($me == %botnick) {
/msg nickserv identify %botpass
/timer 1 5 cs unban %channel
/timer 2 5 join %channel
}
elseif ($me != %botnick) {
/ns GHOST %botnick %botpass
/nick %botnick
/msg nickserv identify %botpass
if ($me == %botnick) { HALT }
else {
/timer 1 30 /nick %botnick
/timer 2 35 /msg nickserv identify %botpass
/timer 3 40 /join %channel
}
}
}

on @*:unban:#: {
if ($nick != $me) {
mode $chan +bbb $nick $wildsite $2 | kick # $nick
}
}

on *:KICK:#: {
if ($knick == $me) {
cs unban #
join #
kick # $nick
}
}

on *:Disconnect: {
/timer 1 5 server $server
}


alias message {
set %msgchan $?="Channel?"
set %message $?="Message?"
join %msgchan
msg %msgchan %message
part %msgchan
unset %msg*
}


No comments:

Post a Comment