[BOT] IRC War Game

By LucSatise on Mar 01, 2008

This is a simple battle game where you fight each other by kicks.

How to Use:
Load into Bots Remotes.
Join Channel
1st User types !Warreg
more users join using same command
Try to keep op and in the chan for as long as possible.

Bot will keep a champion.

In Variables add This:

%l 11,1{12-11
%r 12,1-11}

Before anyone says i didn't make this i am rayth.

;;;;;;;;;;;;;;;;;;;;;;;;;;
;    WAR BOT SCRIPT      ;
;   CREATED BY RAYTH     ;
;;;;;;;;;;;;;;;;;;;;;;;;;;

on *:JOIN:#ChanWars:{
  if ($nick == $me) { mode #ChanWars +e $me | halt }
  if (!$istok(%WarNicks,$nick,32)) {
    notice $nick %l Welcome to #ChanWars %r
    notice $nick %l The Aim of This is for you to takeover the channel of all ops for as long as possible. %r
    notice $nick %l Rules: %r
    notice $nick %l You can use scripts to aid you. %r
    notice $nick %l You MUST NOT set Bans (this will make u get ak icked for 1hour) %r
    notice $nick %l No +e or +I Modes Allowed (will get you akicked if you are in the game) %r
    notice $nick %l To Join in type !WarReg %r 
  }
  if ($istok(%WarNicks,$nick,32)) { notice $nick %l You are Currently In the War. %r | mode $chan +o $nick }
}
on *:TEXT:!WarReg:#ChanWars:{
  if ($nick == XeroCreative) { halt }
  notice $nick You are now Registering for the Channel Wars.
  notice $nick You will be added to the Battle in 1 Minute. 
  timeradd $+ $nick 1 60 AddWar $nick
}
alias AddWar {
  set %WarNicks $addtok(%WarNicks,$1,32)
  mode #ChanWars +o $1
  msg #ChanWars %l $1 Has Just Entered the War. %r
  notice $1 %l You have been Added to the War. Please remember the Rules. If you wish to Leave type !LeaveWar %r
  if (%WarNicks == $null) { set %Champion $1 }
}
on *:TEXT:!Rules:#ChanWars:{
  notice $nick %l The Aim of This is for you to takeover the channel of all ops for as long as possible. %r
  notice $nick %l Rules: %r
  notice $nick %l You can use scripts to aid you. %r
  notice $nick %l You MUST NOT set Bans (this will make u get ak icked for 1hour) %r
  notice $nick %l No +e or +I Modes Allowed %r
  notice $nick %l To Join in type !WarReg %r 
}
on *:TEXT:!leaveWar:#:{
  if ($nick == XeroCreative) { halt }
  notice $nick %l You have left the War. %r
  msg #ChanWars %l $nick Has left the War. %r
  delwar $nick
}
alias delwar {
  if ($1 == %Champion) { unset %Chapion | msg #ChanWars %l Champion has Left. next person to kick gets Champion. %r }
  set %WarNicks $remtok(%WarNicks,$1,32)
  mode #ChanWars -o $1
}
on *:RAWMODE:#ChanWars:{
  if ($nick == $me) { halt }
  if ($nick == XeroCreative) { halt }
  if ($nick == Chanserv) { halt }
  if (+ isin $1) && (o isin $1) { mode #ChanWars -oooooooooooo $2- }
  if (- isin $1) && (o isin $1) { mode #ChanWars +oooooooooooo $2- }
  if (e isin $1) { mode #ChanWars -eeeeeeeeeeee $2- }
  if (I isin $1) { mode #ChanWars -IIIIIIIIIIII $2- }
  if (b isin $1) { mode #ChanWars -bbbbbbbbbbbb $2- | delwar $nick | cs akick #ChanWars add $address($nick,2) No Setting Bans. 1Hour Akick | timerDelAkick $+ $nick 1 3600 cs akick #ChanWars del $address($nick,2) }
}
on *:KICK:#ChanWars:{
  if ($nick == $me) || ($nick == XeroCreative) || ($nick == Chanserv) { halt }
  if ($knick !isop #ChanWars) { 
    delwar $nick
    cs akick #ChanWars add $address($nick,2) No Kicking Non-Warrers. 1Hour Akick 
    timerDelAkick $+ $nick 1 3600 cs akick #ChanWars del $address($nick,2) 
  }
  else {
    if ($nick == %Champion) { msg #ChanWars %l And the Champion Strikes Again! %r }
    if ($knick == %Champion) { msg #ChanWars %l The Champion got Beaten! %r | notice $nick %l You are now the champion. %r | set %champion $nick
}
on *:NICK:{
  if ($nick ison #ChanWars) && ($istok(%WarNicks,$nick,32)) {
    $remtok(%WarNicks,$nick,32)
    $addtok(%WarNicks,$newnick,32)
    if ($nick == %Champion) { set %Champion $newnick }
    notice $newnick Your war nick has been updated.
  }
}

Comments

Sign in to comment.
Ghost-writer   -  Jul 26, 2009

missing 2 brackets and you got some typos and this COULD result in a server ban for the bot,but i like the concept

 Respond  
LucSatise   -  Feb 06, 2009

why would u do tht? thts like massive server abuse

 Respond  
Rottybot   -  Oct 09, 2008

Took me ages to get this to work then I found out....

on *:TEXT:!WarReg:#ChanWars:{

on *:TEXT:!WarReg:#:{ <--- needed it to work in all channels. not just #ChanWars

 Respond  
LucSatise   -  Jun 05, 2008

Press alt + r
Copy paste code into remotes.

EDIT: I do actually have a script i made to go along with this, but the thing is that it could be used for takeovers so im not going to post it.

If you really want it you have to pm me and give me time to find it.

 Respond  
Balle123   -  Apr 27, 2008

Can you please explain me in details how i load this to my channel?

 Respond  
LucSatise   -  Mar 02, 2008

thanks el. i made it cos ppl kept abusing and i was like bah let them abuse :D

Best thing is im still unbeaten.
You can play here:

/server irc.scrollrack.com -j #ChanWars

 Respond  
EL   -  Mar 01, 2008

Lol.Dude i have a channel for this called #king_Of_The_room ima test this.Cool nie idea to XD

 Respond  
LucSatise   -  Mar 01, 2008

Enjoy. Also u shuld let ppl make scripts for this as it makes it faster and harder.

I got the idea from this from somewhere. I think it was hackthissite.org but they dont let u use mIRC and its a bot that has to do it.

 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.