Search
 
 

Display results as :
 


Rechercher Advanced Search

Web Applications
install Joomla Wordpress Phpbb Drupal FluxBB PunBB osCommerce simple-machines MYBB moodle vBulletin Dolphin-v.7.1.1 PHPNUKE XOOPS
Services
install BorkNet Services X3 Services Anope Atheme Services Srvx IRC Srervices
IRCD
install Snircd IRCU INSPIRCD UNREAL Nefarious Bircd Bahamut Asuka Charybdis
TCL SCRIPT
TCL SCRIPT FOR EGGDROP Allprotection4.7 Antiproxy
Bots
Bots install FishBot bobot++ Eggdrop janus Omega Security Services Botnix Bopm
Latest topics
» מדריך התקנה מערכת הפעלה FREEBSD
Yesterday at 12:59 am by Chief

» מדריך התקנה conferenceroom-2-1 WINDOWS&& LINUX
Tue Jun 13, 2017 4:02 am by Chief

» Guide install Janus IRC
Sat Dec 03, 2016 3:46 am by Chief

» Guide install Anope in Centos 7
Sat Nov 19, 2016 7:24 am by Chief

» mIRCx IRC Network Config
Tue Oct 18, 2016 10:52 pm by Chief

» מדריך התקנה מירק על ubuntu 14.04
Mon Sep 19, 2016 2:40 am by Chief

» Guide install srvx 1.4.1-rc1  in ubuntu
Fri Aug 26, 2016 5:02 pm by Chief

» Guide install Inspircd
Fri Aug 19, 2016 8:21 am by Chief

» config Inspircd+atheme 7.2.4
Mon Aug 01, 2016 2:21 am by Chief

June 2017
MonTueWedThuFriSatSun
   1234
567891011
12131415161718
19202122232425
2627282930  

Calendar Calendar

Affiliates
free forum

Affiliates
free forum


GatherBot Snippets

View previous topic View next topic Go down

GatherBot Snippets

Post  Admin on Fri May 04, 2012 4:06 pm

Code:

on *:text:!start *:#:{
  .set %nick $nick
  .set %chan $chan
  .set %ip $2
  .set %port $3
  /sockopen cs %ip %port
}

on *:SOCKOPEN:cs: {
  if (!$sockerr) { notice %nick Server is ONLINE | .set %online 1 }
  else { notice %nick Server is OFFLINE | .set %online 0 }
  /sockclose cs
  if (%online = 1) {
    notice %nick Please type the password.
  }
}

on *:OPEN:?:{
  if ($nick = %nick) && (%online = 1) {
    .set %pass.typed $1-
    if (%pass.typed = %pass) start
    .close -m $nick
  }
}

alias start {
  .set %gather.on 1
  .set %last.player 0
  .set %p1 x | .set %p2 x | .set %p3 x | .set %p4 x | .set %p5 x | .set %p6 x | .set %p7 x | .set %p8 x | .set %p9 x | .set %p10 x
  .msg %chan Gather is turned on
  .msg %chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10
}

on *:text:!add*:#:{
  if (%gather.on = 1) {
    if ($2) {
      if ($2 ison $chan) && ($nick isop $chan) {
        if (%p1 != $2) && (%p2 != $2) && (%p3 != $2) && (%p4 != $2) && (%p5 != $2) && (%p6 != $2) && (%p7 != $2) && (%p8 != $2) && (%p9 != $2) && (%p10 != $2) {
          if (%p10 = x) && (%last.player != 10) {
            .set %p $+ $calc(%last.player + 1) $2-
            .set %last.player $calc(%last.player + 1)
            .write gather.txt $2-
            .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10
            if (%last.player = 10) { .msg $chan Gather is full. Please wait till we generate the teams. | /make.teams }
          }
        }
        else { .msg %chan Sorry you are already in gather. }
      }
      elseif ($2 !ison $chan) { .msg %chan $2 is not in the channel }
    }
    else {
      if (%p1 != $nick) && (%p2 != $nick) && (%p3 != $nick) && (%p4 != $nick) && (%p5 != $nick) && (%p6 != $nick) && (%p7 != $nick) && (%p8 != $nick) && (%p9 != $nick) && (%p10 != $nick) {
        if (%p10 = x) && (%last.player != 10) {
          .set %p $+ $calc(%last.player + 1) $nick
          .set %last.player $calc(%last.player + 1)
          .write gather.txt $nick
          .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10
          if (%last.player = 10) { make.teams }
        }
      }
      else { .msg %chan Sorry you are already in gather. }
    }
  }
}

on *:text:!rem*:#:{
  if (%gather.on = 1) {
    if ($2) && ($nick isop $chan) {
      if (%p1 = $2) { .set %p1 %p2 | .set %p2 %p3 | .set %p3 %p4 | .set %p4 %p5 | .set %p5 %p6 | .set %p6 %p7 | .set %p7 %p8 | .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $2- gather.txt }
      elseif (%p2 = $2) { .set %p2 %p3 | .set %p3 %p4 | .set %p4 %p5 | .set %p5 %p6 | .set %p6 %p7 | .set %p7 %p8 | .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $2- gather.txt }
      elseif (%p3 = $2) { .set %p3 %p4 | .set %p4 %p5 | .set %p5 %p6 | .set %p6 %p7 | .set %p7 %p8 | .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $2- gather.txt }
      elseif (%p4 = $2) { .set %p4 %p5 | .set %p5 %p6 | .set %p6 %p7 | .set %p7 %p8 | .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $2- gather.txt }
      elseif (%p5 = $2) { .set %p5 %p6 | .set %p6 %p7 | .set %p7 %p8 | .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $2- gather.txt }
      elseif (%p6 = $2) { .set %p6 %p7 | .set %p7 %p8 | .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $2- gather.txt }
      elseif (%p7 = $2) { .set %p7 %p8 | .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1 | /.write -ds $+ $2- gather.txt) }
      elseif (%p8 = $2) { .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) }
      elseif (%p9 = $2) { .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) }
    }
    else {
      if (%p1 = $nick) { .set %p1 %p2 | .set %p2 %p3 | .set %p3 %p4 | .set %p4 %p5 | .set %p5 %p6 | .set %p6 %p7 | .set %p7 %p8 | .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $nick gather.txt }
      elseif (%p2 = $nick) { .set %p2 %p3 | .set %p3 %p4 | .set %p4 %p5 | .set %p5 %p6 | .set %p6 %p7 | .set %p7 %p8 | .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $nick gather.txt }
      elseif (%p3 = $nick) { .set %p3 %p4 | .set %p4 %p5 | .set %p5 %p6 | .set %p6 %p7 | .set %p7 %p8 | .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $nick gather.txt }
      elseif (%p4 = $nick) { .set %p4 %p5 | .set %p5 %p6 | .set %p6 %p7 | .set %p7 %p8 | .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $nick gather.txt }
      elseif (%p5 = $nick) { .set %p5 %p6 | .set %p6 %p7 | .set %p7 %p8 | .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $nick gather.txt }
      elseif (%p6 = $nick) { .set %p6 %p7 | .set %p7 %p8 | .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $nick gather.txt }
      elseif (%p7 = $nick) { .set %p7 %p8 | .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $nick gather.txt }
      elseif (%p8 = $nick) { .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $nick gather.txt }
      elseif (%p9 = $nick) { .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $nick gather.txt }
    }
  }
}

on *:part:#:{
  if (%gather.on = 1) {
    if (%p1 = $nick) { .set %p1 %p2 | .set %p2 %p3 | .set %p3 %p4 | .set %p4 %p5 | .set %p5 %p6 | .set %p6 %p7 | .set %p7 %p8 | .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $nick gather.txt }
    elseif (%p2 = $nick) { .set %p2 %p3 | .set %p3 %p4 | .set %p4 %p5 | .set %p5 %p6 | .set %p6 %p7 | .set %p7 %p8 | .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $nick gather.txt }
    elseif (%p3 = $nick) { .set %p3 %p4 | .set %p4 %p5 | .set %p5 %p6 | .set %p6 %p7 | .set %p7 %p8 | .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $nick gather.txt }
    elseif (%p4 = $nick) { .set %p4 %p5 | .set %p5 %p6 | .set %p6 %p7 | .set %p7 %p8 | .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $nick gather.txt }
    elseif (%p5 = $nick) { .set %p5 %p6 | .set %p6 %p7 | .set %p7 %p8 | .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $nick gather.txt }
    elseif (%p6 = $nick) { .set %p6 %p7 | .set %p7 %p8 | .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $nick gather.txt }
    elseif (%p7 = $nick) { .set %p7 %p8 | .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $nick gather.txt }
    elseif (%p8 = $nick) { .set %p8 %p9 | .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $nick gather.txt }
    elseif (%p9 = $nick) { .set %p9 %p10 | .set %p10 x | .msg $chan Players: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 $chr(124) %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10 | .set %last.player $calc(%last.player - 1) | /.write -ds $+ $nick gather.txt }
  }
}

alias make.teams {
  if ($len(gather.txt) = 10) {
    .set %i 1
    .set %last.num 1

    while (%i <= 10) {
      .set %tmp $read(gather.txt)
      .set %p $+ %last.num %tmp
      inc %i
      .set %last.num $calc(%last.num + 1)
      /.write -ds $+ %tmp gather.txt
      .unset %tmp
    }
    msg $chan Team A: %p1 $chr(124) %p2 $chr(124) %p3 $chr(124) %p4 $chr(124) %p5 Team B: %p6 $chr(124) %p7 $chr(124) %p8 $chr(124) %p9 $chr(124) %p10
    msg $chan Match Begins. Please wait till you get the password.
    /send.pass
  }
}

on *:text:!off:#:{
  if ($nick isop $chan) {
    if (%gather.on = 1) {
      .set %gather.on 0
      .msg $chan Gather is now turned off
      .set %p1 x | .set %p2 x | .set %p3 x | .set %p4 x | .set %p5 x | .set %p6 x | .set %p7 x | .set %p8 x | .set %p9 x | .set %p10 x
      .unset %ip | .unset %port | .unset %chan | .unset %nick
      .unset %pass.typed | .unset %last.player | .unset %last.num
      /.remove gather.txt
      .set %online 0
    }
    elseif (%gather.on = 0) { msg $chan Gather is already off }
  }
}
alias send.pass {
  .write gather.txt %p1 | .write gather.txt %p2 | .write gather.txt %p3 | .write gather.txt %p4 | .write gather.txt %p5 | .write gather.txt %p6 | .write gather.txt %p7 | .write gather.txt %p8 | .write gather.txt %p9 | .write gather.txt %p10
  .set %i 1
  while (%i <= 10) {
    .set %tmp $read(gather.txt,%i)
    inc %i
    if (%tmp != $null) {
      .msg %tmp Hello, server ip is  $+ %server.ip $+  and the password is  $+ %pass $+ 
      .msg %tmp Good luck & have fun
    }
    .unset %tmp
  }
  .msg %chan Game information has been sent. If u didnt get it plz ask administration.
  /.remove gather.txt
  if (%gather.on = 1) {
    .set %gather.on 0
    .set %p1 x | .set %p2 x | .set %p3 x | .set %p4 x | .set %p5 x | .set %p6 x | .set %p7 x | .set %p8 x | .set %p9 x | .set %p10 x
    .unset %ip | .unset %port | .unset %chan | .unset %nick
    .unset %pass.typed | .unset %last.player | .unset %last.num
    /.remove gather.txt
    .set %online 0
  }
}

menu menubar {
  Gather
  .Set pass:/.set %pass $?="What's the pasword?"
  .Set IP:/.set %server.ip $?="What's the server ip?"
  .Set map:/.set %map $?="What's the map?"
}
avatar
Admin
Admin

מספר הודעות : 288
Join date : 2009-09-12
Age : 37
מיקום : mIRCX IRC Network

View user profile http://mircx.forumotion.net

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum